diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java index a5552e5..70fc27f 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java @@ -79,7 +79,7 @@ public class DefectCheckServiceImpl extends BaseServiceImpl ticketList = this.list( - Wrappers.lambdaQuery().eq(OperPhenomenonEntity::getCreateDept, entity.getCreateDept()) + Wrappers.lambdaQuery().eq(OperPhenomenonEntity::getCreateDept, deptId) .ge(OperPhenomenonEntity::getCreateTime, firstDay).le(OperPhenomenonEntity::getCreateTime, lastDay) ); String suffix = String.format(String.format("%03d", ticketList.size() + 1)); String result = stationR.getData().getSignage() + yearMonth + suffix; // 缺陷编码 : 按项目+年+月+序号 - if (Func.isEmpty(result)) { + if (Func.isNotEmpty(result)) { entity.setDefectCode(result); } // 现象发起人 : 当前用户Id