2024/12/13 曹煤炭清单管理增加隐患级别搜索条件

0205cmt
zhaohongyu 2024-12-13 15:10:34 +08:00
parent 256ccee8f0
commit e4aaa14a6a
2 changed files with 10 additions and 1 deletions

View File

@ -937,14 +937,20 @@ public class ListManagerController extends BaseController {
pd = this.getPageData(); pd = this.getPageData();
String NAME = ""; String NAME = "";
String KEYWORDS = ""; String KEYWORDS = "";
String LEVELID = "";
if(Tools.notEmpty(pd.getString("USERNAME"))){ if(Tools.notEmpty(pd.getString("USERNAME"))){
NAME = pd.getString("USERNAME"); NAME = pd.getString("USERNAME");
}if(Tools.notEmpty(pd.getString("KEYWORDS"))){ }
if(Tools.notEmpty(pd.getString("KEYWORDS"))){
KEYWORDS = pd.getString("KEYWORDS"); KEYWORDS = pd.getString("KEYWORDS");
} }
if(Tools.notEmpty(pd.getString("LEVELID"))){
LEVELID = pd.getString("LEVELID");
}
pd = listmanagerService.findById(pd); //根据ID读取 pd = listmanagerService.findById(pd); //根据ID读取
pd.put("USERNAME",NAME); //用于清单编辑时查询功能 pd.put("USERNAME",NAME); //用于清单编辑时查询功能
pd.put("KEYWORDS",KEYWORDS); pd.put("KEYWORDS",KEYWORDS);
pd.put("LEVELID",LEVELID);
List<PageData> varList = listcheckitemService.listAll(pd); List<PageData> varList = listcheckitemService.listAll(pd);
for (PageData item : varList) { for (PageData item : varList) {
item.put("RECORDITEM_ID", this.get32UUID()); //主键 item.put("RECORDITEM_ID", this.get32UUID()); //主键

View File

@ -188,6 +188,9 @@
chi.CHECK_CONTENT LIKE CONCAT(CONCAT('%', #{KEYWORDS}),'%') chi.CHECK_CONTENT LIKE CONCAT(CONCAT('%', #{KEYWORDS}),'%')
) )
</if> </if>
<if test="LEVELID != null and LEVELID != ''"><!-- 风险级别 -->
and d5.BIANMA LIKE CONCAT(CONCAT('%', #{LEVELID}),'%')
</if>
ORDER by un.RISKUNITNAME ,id.PARTSNAME,f.CREATTIME desc ORDER by un.RISKUNITNAME ,id.PARTSNAME,f.CREATTIME desc
-- order by f.LISTMANAGER_ID desc -- order by f.LISTMANAGER_ID desc
</select> </select>