Browse Source

中心中台融合 设备接口bug

lvxianyun 3 years ago
parent
commit
815cb0283c

+ 1 - 1
dmp-business/dmp-rwd/src/main/java/com/persagy/dmp/rwd/simple/controller/EquipmentReportController.java

@@ -123,7 +123,7 @@ public class EquipmentReportController {
     public CommonResult<List<Map<String,Object>>> queryDefineInfoByObjType(@RequestBody RequestData requestData) {
         //基础参数校验
         ParamCheckUtil.checkParam(CommonConstant.QUERY_GROUPCODE);
-        if (StrUtil.isAllEmpty(AppContext.getContext().getProjectId(),requestData.getObjType())){
+        if (StrUtil.isEmpty(AppContext.getContext().getProjectId()) || CollUtil.isEmpty(requestData.getObjTypes())){
             throw new BusinessException(ResponseCode.A0402.getCode(),ResponseCode.A0402.getDesc());
         }
         // 统计