diff --git a/src/main/java/com/zcloud/controller/gf/GFElectricityController.java b/src/main/java/com/zcloud/controller/gf/GFElectricityController.java index f72adb57..ecd5f58b 100644 --- a/src/main/java/com/zcloud/controller/gf/GFElectricityController.java +++ b/src/main/java/com/zcloud/controller/gf/GFElectricityController.java @@ -112,6 +112,12 @@ public class GFElectricityController extends BaseController { String DEPT_IDS[] = DEPTIDS.split(","); pd.put("DEPT_IDS", DEPT_IDS); } + String STARTTIME = pd.getString("STARTTIME"); // 关键词检索条件 + if (Tools.notEmpty(STARTTIME)) + pd.put("STARTTIME", STARTTIME.trim()); + String ENDTIME = pd.getString("ENDTIME"); // 关键词检索条件 + if (Tools.notEmpty(ENDTIME)) + pd.put("ENDTIME", ENDTIME + " 23:59:59"); page.setPd(pd); List varList = GFelectricityService.list(page); //列出Electricity列表 map.put("varList", varList); diff --git a/src/main/resources/mybatis/datasource/gf/ElectricityMapper.xml b/src/main/resources/mybatis/datasource/gf/ElectricityMapper.xml index ab53bbf7..02033e98 100644 --- a/src/main/resources/mybatis/datasource/gf/ElectricityMapper.xml +++ b/src/main/resources/mybatis/datasource/gf/ElectricityMapper.xml @@ -744,6 +744,15 @@ and f.ANALYZE_USER_ID = #{pd.ANALYZE_USER_ID} + + and f.APPLY_DEPARTMENT_ID = #{pd.UNIT_LEADER_DEPARTMENT_ID} + + + and f.CREATTIME >= #{pd.STARTTIME} + + + and f.CREATTIME <= #{pd.ENDTIME} +