瀏覽代碼

代办工单对应的问题数量为空时加判空校验

tags/v1.0.0^2
chengwang 1 年之前
父節點
當前提交
7e324ae772
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java

+ 1
- 0
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java 查看文件

@@ -345,6 +345,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
InspectionFile inspectionFile = inspectionFileMapper.selectById(inspectionFiledId);
inspectionFileList.add(inspectionFile);
}
log.info("问题列表为:inspectionFileList={}",inspectionFileList.toString());
//待处理问题总数
long count = inspectionFileList.stream().filter(t -> t.getStatus() == 20).count();
log.info("待处理问题总数为:count={}",count);

Loading…
取消
儲存