Commit d8799fed authored by KeYong's avatar KeYong

政平站新增点击更新后端

parent 64eb625b
...@@ -121,6 +121,16 @@ public class CommonPageInfoParam extends CommonPageable { ...@@ -121,6 +121,16 @@ public class CommonPageInfoParam extends CommonPageable {
private String indexTypeCode; private String indexTypeCode;
private String fireEquipmentSpecificIndexKey;
public void setFireEquipmentSpecificIndexKey(String fireEquipmentSpecificIndexKey) {
this.fireEquipmentSpecificIndexKey = fireEquipmentSpecificIndexKey;
}
public String getFireEquipmentSpecificIndexKey() {
return fireEquipmentSpecificIndexKey;
}
public String getIndexTypeCode() { public String getIndexTypeCode() {
return indexTypeCode; return indexTypeCode;
} }
......
...@@ -65,6 +65,8 @@ public class CommonPageParamUtil { ...@@ -65,6 +65,8 @@ public class CommonPageParamUtil {
param.setIsRemovedFire(toString(queryRequests.get(i).getValue())); param.setIsRemovedFire(toString(queryRequests.get(i).getValue()));
} else if("equipmentCode".equals(name)){ } else if("equipmentCode".equals(name)){
param.setEquipmentCode(toString(queryRequests.get(i).getValue())); param.setEquipmentCode(toString(queryRequests.get(i).getValue()));
} else if("specificIndexKey".equals(name)){
param.setFireEquipmentSpecificIndexKey(toString(queryRequests.get(i).getValue()));
} }
} }
if(commonPageable !=null){ if(commonPageable !=null){
......
...@@ -221,6 +221,7 @@ public class EquipmentAlarmController extends AbstractBaseController { ...@@ -221,6 +221,7 @@ public class EquipmentAlarmController extends AbstractBaseController {
@RequestParam(value = "isRemovedFire", required = false) String isRemovedFire, @RequestParam(value = "isRemovedFire", required = false) String isRemovedFire,
@RequestParam(value = "equipmentCode", required = false) String equipmentCode, @RequestParam(value = "equipmentCode", required = false) String equipmentCode,
@RequestParam(value = "indexTypeCode", required = false) String indexTypeCode, @RequestParam(value = "indexTypeCode", required = false) String indexTypeCode,
@RequestParam(value = "specificIndexKey", required = false) String specificIndexKey,
CommonPageable commonPageable) { CommonPageable commonPageable) {
List<CommonRequest> queryRequests = new ArrayList<>(); List<CommonRequest> queryRequests = new ArrayList<>();
CommonRequest request = new CommonRequest(); CommonRequest request = new CommonRequest();
...@@ -280,6 +281,10 @@ public class EquipmentAlarmController extends AbstractBaseController { ...@@ -280,6 +281,10 @@ public class EquipmentAlarmController extends AbstractBaseController {
request15.setName("indexTypeCode"); request15.setName("indexTypeCode");
request15.setValue(StringUtil.isNotEmpty(indexTypeCode) ? StringUtils.trimToNull(indexTypeCode) : null); request15.setValue(StringUtil.isNotEmpty(indexTypeCode) ? StringUtils.trimToNull(indexTypeCode) : null);
queryRequests.add(request15); queryRequests.add(request15);
CommonRequest request16 = new CommonRequest();
request16.setName("specificIndexKey");
request16.setValue(StringUtil.isNotEmpty(specificIndexKey) ? StringUtils.trimToNull(specificIndexKey) : null);
queryRequests.add(request16);
CommonPageInfoParam param = CommonPageParamUtil.fillCommonPageInfoParam(queryRequests, commonPageable); CommonPageInfoParam param = CommonPageParamUtil.fillCommonPageInfoParam(queryRequests, commonPageable);
org.springframework.data.domain.Page<AlarmListDataVO> list = iEquipmentSpecificAlarmService.listAlarmsPage(param); org.springframework.data.domain.Page<AlarmListDataVO> list = iEquipmentSpecificAlarmService.listAlarmsPage(param);
return CommonResponseUtil.success(list); return CommonResponseUtil.success(list);
......
...@@ -373,6 +373,9 @@ ...@@ -373,6 +373,9 @@
<if test="param.indexTypeCode != null and param.indexTypeCode != ''">AND <if test="param.indexTypeCode != null and param.indexTypeCode != ''">AND
AND d.type == #{param.indexTypeCode} AND d.type == #{param.indexTypeCode}
</if> </if>
<if test="param.fireEquipmentSpecificIndexKey != null and param.fireEquipmentSpecificIndexKey != ''">
AND d.fireEquipmentSpecificIndexKey like concat(concat("%",#{param.fireEquipmentSpecificIndexKey}),"%")
</if>
</where> </where>
ORDER BY d.createDate DESC ORDER BY d.createDate DESC
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment