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