Browse Source

修复缺陷

lyq 9 months ago
parent
commit
23a6c9d742

+ 5 - 4
src/main/java/com/sooka/sponest/data/housingconstruction/service/impl/CenterdataTHousingconstructionSteelcylinderServiceImpl.java

@@ -11,6 +11,7 @@ import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconst
 import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconstructionSteelcylinderLog;
 import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionSteelcylinderLogMapper;
 import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionSteelcylinderMapper;
+import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionSteelcylinderLogService;
 import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionSteelcylinderService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -30,7 +31,7 @@ public class CenterdataTHousingconstructionSteelcylinderServiceImpl extends Base
     private CenterdataTHousingconstructionSteelcylinderMapper centerdataTHousingconstructionSteelcylinderMapper;
 
     @Autowired
-    private CenterdataTHousingconstructionSteelcylinderLogMapper centerdataTHousingconstructionSteelcylinderLogMapper;
+    private ICenterdataTHousingconstructionSteelcylinderLogService centerdataTHousingconstructionSteelcylinderLogService;
 
     /**
      * 查询钢瓶基础数据
@@ -78,14 +79,14 @@ public class CenterdataTHousingconstructionSteelcylinderServiceImpl extends Base
         if (centerdataTHousingconstructionSteelcylinder.getState().equals("state_1")){
             CenterdataTHousingconstructionSteelcylinderLog centerdataTHousingconstructionSteelcylinderLog = new CenterdataTHousingconstructionSteelcylinderLog();
             centerdataTHousingconstructionSteelcylinderLog.setSteelcylinderId(centerdataTHousingconstructionSteelcylinder.getId());
-            List<CenterdataTHousingconstructionSteelcylinderLog> list = centerdataTHousingconstructionSteelcylinderLogMapper.selectCenterdataTHousingconstructionSteelcylinderLogList(centerdataTHousingconstructionSteelcylinderLog);
+            List<CenterdataTHousingconstructionSteelcylinderLog> list = centerdataTHousingconstructionSteelcylinderLogService.selectCenterdataTHousingconstructionSteelcylinderLogList(centerdataTHousingconstructionSteelcylinderLog);
             if (list.isEmpty()){
                 centerdataTHousingconstructionSteelcylinderLog.setId(IdUtils.fastSimpleUUID());
                 centerdataTHousingconstructionSteelcylinderLog.setSteelcylinderId(centerdataTHousingconstructionSteelcylinder.getId());
                 centerdataTHousingconstructionSteelcylinderLog.setSteelcylinderName(centerdataTHousingconstructionSteelcylinder.getName());
                 centerdataTHousingconstructionSteelcylinderLog.setJoinWarehouseTime(DateUtils.getNowDate());
                 centerdataTHousingconstructionSteelcylinderLog.setUpdateTime(DateUtils.getNowDate());
-                centerdataTHousingconstructionSteelcylinderLogMapper.insertCenterdataTHousingconstructionSteelcylinderLog(centerdataTHousingconstructionSteelcylinderLog);
+                centerdataTHousingconstructionSteelcylinderLogService.insertCenterdataTHousingconstructionSteelcylinderLog(centerdataTHousingconstructionSteelcylinderLog);
             }
         }
     }
@@ -118,7 +119,7 @@ public class CenterdataTHousingconstructionSteelcylinderServiceImpl extends Base
         for (String id : ids) {
             CenterdataTHousingconstructionSteelcylinderLog steelcylinderLog = new CenterdataTHousingconstructionSteelcylinderLog();
             steelcylinderLog.setSteelcylinderId(id);
-            List<CenterdataTHousingconstructionSteelcylinderLog> list = centerdataTHousingconstructionSteelcylinderLogMapper.selectCenterdataTHousingconstructionSteelcylinderLogList(steelcylinderLog);
+            List<CenterdataTHousingconstructionSteelcylinderLog> list = centerdataTHousingconstructionSteelcylinderLogService.selectCenterdataTHousingconstructionSteelcylinderLogList(steelcylinderLog);
             if (!list.isEmpty()) {
                 return -1;
             }