|
|
@@ -76,6 +76,9 @@ public class TPsInspectionWardrobeController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping(value = "/info")
|
|
|
public AjaxResult getInfoByPpeType(TPsInspectionWardrobe tPsInspectionWardrobe) {
|
|
|
+ if (tPsInspectionWardrobe.getId()!=null){
|
|
|
+ return AjaxResult.success(tPsInspectionWardrobeService.selectTPsInspectionWardrobeById(tPsInspectionWardrobe.getId()));
|
|
|
+ }
|
|
|
if (!"PS".equals(tPsInspectionWardrobe.getPlant())) {
|
|
|
return AjaxResult.error("请使用PS装置账号进行扫码巡检!");
|
|
|
}
|
|
|
@@ -85,6 +88,11 @@ public class TPsInspectionWardrobeController extends BaseController {
|
|
|
TPsInspectionWardrobe item = new TPsInspectionWardrobe();
|
|
|
item.setPlanId(tPsInspectionWardrobe.getPlanId());
|
|
|
item.setPpeType(tPsInspectionWardrobe.getPpeType());
|
|
|
+ if (StringUtils.isNotEquals(tPsInspectionWardrobe.getWardrobeType())&&tPsInspectionWardrobe.getWardrobeType().contains("应急物资柜")){
|
|
|
+ item.setWardrobeType(tPsInspectionWardrobe.getPpeType().replace("应急物资柜", "").trim());
|
|
|
+ }else{
|
|
|
+ return AjaxResult.error("未知的应急物资柜类型!请联系管理员!");
|
|
|
+ }
|
|
|
item.setIssuesFlag(0L);
|
|
|
List<TPsInspectionWardrobe> list = tPsInspectionWardrobeService.selectTPsInspectionWardrobeList(item);
|
|
|
if (CollectionUtils.isNotEmpty(list))
|