wangming преди 1 година
родител
ревизия
52ef781bdd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpServiceImpl.java

+ 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);