Jelajahi Sumber

【CHG】修改接口参数

zhaomn 2 tahun lalu
induk
melakukan
aa90d6e00b

+ 2 - 2
railway-admin/src/main/resources/application-local.yml

@@ -56,13 +56,13 @@ spring:
   # redis 配置
   redis:
     # 地址
-    host: 127.0.0.1
+    host: 192.168.10.130
     # 端口,默认为6379
     port: 6379
     # 数据库索引
     database: 3
     # 密码
-    password:
+    password: 123456
     # 连接超时时间
     timeout: 100s
     lettuce:

+ 2 - 1
railway-business/src/main/java/com/railway/business/bi/controller/ShowBdycController.java

@@ -1,6 +1,7 @@
 package com.railway.business.bi.controller;
 
 import com.railway.business.bi.domain.ShowBdyc;
+import com.railway.business.bi.domain.vo.DlycQuery;
 import com.railway.business.bi.service.IShowBdycService;
 import com.railway.common.core.controller.BaseController;
 import com.railway.common.core.page.TableDataInfo;
@@ -29,7 +30,7 @@ public class ShowBdycController extends BaseController {
 
   @ApiOperation(value = "列表")
   @GetMapping(value = "/list")
-  public TableDataInfo getList(ShowBdyc showBdyc) {
+  public TableDataInfo getList(DlycQuery showBdyc) {
     startPage();
     List<ShowBdyc> list = showBdycService.getList(showBdyc);
     return getDataTable(list);

+ 2 - 1
railway-business/src/main/java/com/railway/business/bi/mapper/ShowBdycMapper.java

@@ -2,6 +2,7 @@ package com.railway.business.bi.mapper;
 
 import com.github.pagehelper.Page;
 import com.railway.business.bi.domain.ShowBdyc;
+import com.railway.business.bi.domain.vo.DlycQuery;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Repository;
@@ -39,6 +40,6 @@ public interface ShowBdycMapper {
   /**
    * 查询列表
    */
-  Page<ShowBdyc> getList(ShowBdyc showBdyc);
+  Page<ShowBdyc> getList(DlycQuery showBdyc);
 
 }

+ 2 - 1
railway-business/src/main/java/com/railway/business/bi/service/IShowBdycService.java

@@ -1,6 +1,7 @@
 package com.railway.business.bi.service;
 
 import com.railway.business.bi.domain.ShowBdyc;
+import com.railway.business.bi.domain.vo.DlycQuery;
 import java.util.List;
 /**
 * 大屏展示-变电异常信息详情表
@@ -32,6 +33,6 @@ public interface IShowBdycService{
     /**
     * 查询列表
     */
-    List<ShowBdyc> getList(ShowBdyc showBdyc);
+    List<ShowBdyc> getList(DlycQuery showBdyc);
 
 }

+ 2 - 1
railway-business/src/main/java/com/railway/business/bi/service/impl/ShowBdycServiceImpl.java

@@ -1,6 +1,7 @@
 package com.railway.business.bi.service.impl;
 
 import com.railway.business.bi.domain.ShowBdyc;
+import com.railway.business.bi.domain.vo.DlycQuery;
 import com.railway.business.bi.mapper.ShowBdycMapper;
 import com.railway.business.bi.service.IShowBdycService;
 import com.railway.common.utils.SecurityUtils;
@@ -68,7 +69,7 @@ public class ShowBdycServiceImpl implements IShowBdycService {
   /**
    * 查询列表
    */
-  public List<ShowBdyc> getList(ShowBdyc showBdyc) {
+  public List<ShowBdyc> getList(DlycQuery showBdyc) {
     return showBdycMapper.getList(showBdyc);
   }
 }

+ 0 - 39
railway-business/src/main/resources/mapper/bi/ShowBdycMapper.xml

@@ -185,51 +185,12 @@
     FROM show_bdyc
     <where>
       del_flag='0'
-      <if test="foundDate!=null and foundDate!=''">
-        and found_date=#{foundDate}
-      </if>
-      <if test="lineName!=null and lineName!=''">
-        and line_name=#{lineName}
-      </if>
-      <if test="stationName!=null and stationName!=''">
-        and station_name=#{stationName}
-      </if>
-      <if test="qxsbmc!=null and qxsbmc!=''">
-        and qxsbmc=#{qxsbmc}
-      </if>
-      <if test="yxbh!=null and yxbh!=''">
-        and yxbh=#{yxbh}
-      </if>
       <if test="qxdj!=null and qxdj!=''">
         and qxdj=#{qxdj}
       </if>
-      <if test="qxnr!=null and qxnr!=''">
-        and qxnr=#{qxnr}
-      </if>
-      <if test="reason!=null and reason!=''">
-        and reason=#{reason}
-      </if>
-      <if test="zrbm!=null and zrbm!=''">
-        and zrbm=#{zrbm}
-      </if>
       <if test="sjgq!=null and sjgq!=''">
         and sjgq=#{sjgq}
       </if>
-      <if test="rectifyResult!=null and rectifyResult!=''">
-        and rectify_result=#{rectifyResult}
-      </if>
-      <if test="rectifyWay!=null and rectifyWay!=''">
-        and rectify_way=#{rectifyWay}
-      </if>
-      <if test="rectifyDate!=null and rectifyDate!=''">
-        and rectify_date=#{rectifyDate}
-      </if>
-      <if test="counted!=null and counted!=''">
-        and counted=#{counted}
-      </if>
-      <if test="planDate!=null and planDate!=''">
-        and plan_date=#{planDate}
-      </if>
     </where>
   </select>