wangming 1 рік тому
батько
коміт
52ef781bdd

+ 1 - 1
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpServiceImpl.java

@@ -77,7 +77,7 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
                 sysSerialVo.setResetrule("date:yyyyMMdd");
                 sysSerialVo.setInitValue(0L);
                 String code = serialNumberService.getCodeByTemplate(sysSerialVo);
-                if(count > 0) {
+                if(count == 0) { //第一个做修改
                     itpDo.setStructurename(structurName);
                     itpDo.setInspectioncontent(inspectionContent);
                     itpDo.setInspectioncode(code);