2024/12/13 增加筛选条件

0205cmt
zhaohongyu 2024-12-13 17:56:17 +08:00
parent 1f0083d851
commit a9e8d3b090
2 changed files with 15 additions and 0 deletions

View File

@ -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<PageData> varList = GFelectricityService.list(page); //列出Electricity列表
map.put("varList", varList);

View File

@ -744,6 +744,15 @@
<if test="pd.ANALYZE_USER_ID != null and pd.ANALYZE_USER_ID != ''">
and f.ANALYZE_USER_ID = #{pd.ANALYZE_USER_ID}
</if>
<if test="pd.UNIT_LEADER_DEPARTMENT_ID != null and pd.UNIT_LEADER_DEPARTMENT_ID != ''">
and f.APPLY_DEPARTMENT_ID = #{pd.UNIT_LEADER_DEPARTMENT_ID}
</if>
<if test="pd.STARTTIME != null and pd.STARTTIME != ''"><!-- 关键词检索 -->
and f.CREATTIME >= #{pd.STARTTIME}
</if>
<if test="pd.ENDTIME != null and pd.ENDTIME != ''">
and f.CREATTIME &lt;= #{pd.ENDTIME}
</if>
<choose>
<when test='pd.ISMAIN != null and pd.ISMAIN != "" and pd.ISMAIN == "1"'>
<if test="pd.DEPT_IDS != null and pd.DEPT_IDS != ''">