|
@@ -13,10 +13,8 @@ import org.jeecg.modules.actualControl.billetActual.billetActual.service.IBillet
|
|
|
import org.jeecg.modules.billet.billetHotsend.entity.BilletHotsend;
|
|
|
import org.jeecg.modules.billet.billetHotsend.entity.BilletHotsendDetailsVo;
|
|
|
import org.jeecg.modules.billet.billetHotsend.entity.RollClubCommon;
|
|
|
-import org.jeecg.modules.billet.billetHotsend.entity.RulerDefaultConfig;
|
|
|
import org.jeecg.modules.billet.billetHotsend.mapper.BilletHotsendBaseMapper;
|
|
|
import org.jeecg.modules.billet.billetHotsend.service.IBilletHotsendBaseService;
|
|
|
-import org.jeecg.modules.billet.billetHotsend.service.IRulerDefaultConfigService;
|
|
|
import org.jeecg.modules.billet.billetHotsendChangeShift.entity.BilletHotsendChangeShift;
|
|
|
import org.jeecg.modules.billet.billetHotsendChangeShift.service.IBilletHotsendChangeShiftService;
|
|
|
import org.jeecg.modules.billet.billetHotsendConfig.entity.BilletHotsendTypeConfig;
|
|
@@ -45,8 +43,6 @@ import org.jeecg.modules.billet.rollOutShipp.service.IRollOutShippService;
|
|
|
import org.jeecg.modules.billet.storageBill.entity.ShiftEnum;
|
|
|
import org.jeecg.modules.billet.storageBill.entity.ShiftGroupEnum;
|
|
|
import org.jeecg.modules.billet.storageBill.entity.StorageBill;
|
|
|
-import org.jeecg.modules.billet.storageBill.entity.StorageBillModel;
|
|
|
-import org.jeecg.modules.billet.storageBill.service.IStorageBillModelService;
|
|
|
import org.jeecg.modules.billet.storageBill.service.IStorageBillService;
|
|
|
import org.jeecg.modules.billet.storageCarLog.entity.StorageCarLog;
|
|
|
import org.jeecg.modules.billet.storageCarLog.service.IStorageCarLogService;
|
|
@@ -76,12 +72,8 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
@Autowired
|
|
|
private IStorageCarLogService storageCarLogService;
|
|
|
@Autowired
|
|
|
- private IRulerDefaultConfigService rulerDefaultConfigService;
|
|
|
- @Autowired
|
|
|
private IStorageBillService storageBillService;
|
|
|
@Autowired
|
|
|
- private IStorageBillModelService storageBillModelService;
|
|
|
- @Autowired
|
|
|
private IRollClubOneService rollClubOneService;
|
|
|
@Autowired
|
|
|
private IRollClubOneDetailsService rollClubOneDetailsService;
|
|
@@ -803,204 +795,4 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
public List<BilletHotsend> queryByCastMachineAndFurnaceNum(String castMachine, String furnaceNum) {
|
|
|
return billetHotsendBaseMapper.selectList(new LambdaQueryWrapper<BilletHotsend>().eq(BilletHotsend::getCcmNo, castMachine).eq(BilletHotsend::getHeatNo, furnaceNum));
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
- public void updateDesc(BilletHotsend billetHotsend) {
|
|
|
- RulerDefaultConfig last = rulerDefaultConfigService.getLast(billetHotsend.getCcmNo());
|
|
|
- boolean isFirst = false;
|
|
|
- if(billetHotsend.getAmountTotal()==null||billetHotsend.getAmountTotal()==0){
|
|
|
- isFirst = true;
|
|
|
- }
|
|
|
-// billetHotsend.setAmountTotal(
|
|
|
-// (StringUtil.isNullOrEmpty(billetHotsend.getAmountOne())?0:Integer.valueOf(billetHotsend.getAmountOne()))
|
|
|
-// +(StringUtil.isNullOrEmpty(billetHotsend.getAmountTwo())?0:Integer.valueOf(billetHotsend.getAmountTwo()))
|
|
|
-// +(StringUtil.isNullOrEmpty(billetHotsend.getAmountThree())?0:Integer.valueOf(billetHotsend.getAmountThree()))
|
|
|
-// +(StringUtil.isNullOrEmpty(billetHotsend.getAmountOut())?0:Integer.valueOf(billetHotsend.getAmountOut()))
|
|
|
-// +(StringUtil.isNullOrEmpty(billetHotsend.getAmountHeight())?0:Integer.valueOf(billetHotsend.getAmountHeight()))
|
|
|
-// +(StringUtil.isNullOrEmpty(billetHotsend.getAmountWaste())?0:Integer.valueOf(billetHotsend.getAmountWaste()))
|
|
|
-// +(StringUtil.isNullOrEmpty(billetHotsend.getAmountStack())?0:Integer.valueOf(billetHotsend.getAmountStack()))
|
|
|
-// );
|
|
|
- billetHotsend.setAmountTotal(6666);// 总支数
|
|
|
- billetHotsendBaseMapper.updateById(billetHotsend);
|
|
|
- if(isFirst)last.setShiftProduct(last.getShiftProduct()+billetHotsend.getAmountTotal());
|
|
|
- rulerDefaultConfigService.updateById(last);
|
|
|
-// if (billetHotsend.getIsUpd()!=null&&billetHotsend.getIsUpd()==true){
|
|
|
-// for (int i = 0; i <= 6; i++) {
|
|
|
-// StorageCarLog storageCarLog = new StorageCarLog();
|
|
|
-// storageCarLog.setCastas(billetHotsend.getCastMachine());
|
|
|
-// storageCarLog.setDataTime(new Date());
|
|
|
-// storageCarLog.setFurnceNum(billetHotsend.getFurnaceNum());
|
|
|
-// storageCarLog.setShift(billetHotsend.getShift());
|
|
|
-// storageCarLog.setShiftGroup(billetHotsend.getShiftGroup());
|
|
|
-// storageCarLog.setSpec(billetHotsend.getSpec());
|
|
|
-// storageCarLog.setSteel(billetHotsend.getSteel());
|
|
|
-// switch (i){
|
|
|
-// case 0:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountOne())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumOne())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeOne()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountOne());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumOne());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeOne());
|
|
|
-// Long count = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumOne()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count.toString());
|
|
|
-// break;
|
|
|
-// case 1:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountTwo())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumTwo())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeTwo()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountTwo());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumTwo());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeTwo());
|
|
|
-// Long count1 = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumTwo()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count1.toString());
|
|
|
-// break;
|
|
|
-// case 2:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountThree())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumThree())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeThree()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountThree());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumThree());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeThree());
|
|
|
-// Long count2 = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumThree()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count2.toString());
|
|
|
-// break;
|
|
|
-// case 3:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountHeight())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumHeight())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeHeight()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountHeight());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumHeight());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeHeight());
|
|
|
-// Long count3 = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumHeight()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count3.toString());
|
|
|
-// break;
|
|
|
-// case 4:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountOut())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumOut())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeOut()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountOut());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumOut());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeOut());
|
|
|
-// Long count4 = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumOut()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count4.toString());
|
|
|
-// break;
|
|
|
-// case 5:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountWaste())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumWaste())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeWaste()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountWaste());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumWaste());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeWaste());
|
|
|
-// Long count5 = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumWaste()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count5.toString());
|
|
|
-// break;
|
|
|
-// case 6:
|
|
|
-// if(StringUtil.isNullOrEmpty(billetHotsend.getAmountStack())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getCarNumStack())
|
|
|
-// &&StringUtil.isNullOrEmpty(billetHotsend.getSizeStack()))break;
|
|
|
-// storageCarLog.setAmount(billetHotsend.getAmountStack());
|
|
|
-// storageCarLog.setCarNm(billetHotsend.getCarNumStack());
|
|
|
-// storageCarLog.setDestination(i+"");
|
|
|
-// storageCarLog.setSize(billetHotsend.getSizeStack());
|
|
|
-// Long count6 = storageCarLogService.count(new LambdaQueryWrapper<StorageCarLog>().eq(StorageCarLog::getCarNm, billetHotsend.getCarNumStack()))+1;
|
|
|
-// storageCarLog.setOutCarNum(count6.toString());
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// storageCarLogService.save(storageCarLog);
|
|
|
-// }
|
|
|
-// }
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void addOne(BilletHotsend billetHotsend) {
|
|
|
- RulerDefaultConfig last = rulerDefaultConfigService.getLast(billetHotsend.getCcmNo());
|
|
|
- StorageBillModel storageBillModel = storageBillModelService.getOne(new LambdaQueryWrapper<StorageBillModel>().eq(StorageBillModel::getCastMachine,billetHotsend.getCcmNo()));
|
|
|
-// billetHotsend.setAmountTotal(StringUtil.isNullOrEmpty(billetHotsend.getAmountOne())?(StringUtil.isNullOrEmpty(billetHotsend.getAmountHeight())?0:Integer.valueOf(billetHotsend.getAmountHeight())):Integer.valueOf(billetHotsend.getAmountOne()));
|
|
|
- billetHotsend.setAmountTotal(111); // 总支数
|
|
|
- StorageBill storageBill = new StorageBill();
|
|
|
- storageBill.setAmountTotal(billetHotsend.getAmountTotal());
|
|
|
- storageBill.setCcmNo(billetHotsend.getCcmNo());
|
|
|
-// storageBill.setAmountOne(billetHotsend.getAmountTotal());
|
|
|
-// storageBill.setCarNum("辊道");
|
|
|
-// storageBill.setLibrary("4");
|
|
|
- storageBill.setBtype("0");
|
|
|
-// storageBill.setSize(billetHotsend.getSizeOne());// 定尺
|
|
|
-// storageBill.setSpec(billetHotsend.getSpec());
|
|
|
- if(last!=null){
|
|
|
- billetHotsend.setHeatNo(last.getPourHeats());
|
|
|
-// billetHotsend.setBz("4");
|
|
|
- billetHotsend.setShift(last.getShift());
|
|
|
- billetHotsend.setShiftGroup(last.getShiftGroup());
|
|
|
- storageBill.setShift(last.getShift());
|
|
|
- storageBill.setShiftGroup(last.getShiftGroup());
|
|
|
-// storageBill.setHeatsOne(last.getPourHeats());
|
|
|
- }
|
|
|
- storageBillModel.setAmountTotal(storageBillModel.getAmountTotal()+storageBill.getAmountTotal());
|
|
|
- storageBillModel.setShiftProduct(storageBillModel.getShiftProduct()+storageBill.getAmountTotal());
|
|
|
- storageBillModelService.updateById(storageBillModel);
|
|
|
- storageBillService.save(storageBill);
|
|
|
- baseMapper.insert(billetHotsend);
|
|
|
- RollClubOne rollClubOne = new RollClubOne();
|
|
|
- rollClubOne.setHeatNo(billetHotsend.getHeatNo());
|
|
|
- rollClubOne.setCcmNo(billetHotsend.getCcmNo());
|
|
|
- rollClubOne.setShift(last.getShift());
|
|
|
- rollClubOne.setShiftGroup(last.getShiftGroup());
|
|
|
-// rollClubOne.setSize(billetHotsend.getSizeOne());
|
|
|
- rollClubOne.setSteel(billetHotsend.getSteel());
|
|
|
-// rollClubOne.setSpec(billetHotsend.getSpec());
|
|
|
- rollClubOne.setAmountTotal(billetHotsend.getAmountTotal());
|
|
|
- rollClubOne.setCreateDate(new Date());
|
|
|
- rollClubOneService.save(rollClubOne);
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void addHeight(BilletHotsend billetHotsend) {
|
|
|
- RulerDefaultConfig last = rulerDefaultConfigService.getLast(billetHotsend.getCcmNo());
|
|
|
- StorageBillModel storageBillModel = storageBillModelService.getOne(new LambdaQueryWrapper<StorageBillModel>().eq(StorageBillModel::getCastMachine,billetHotsend.getCcmNo()));
|
|
|
-// billetHotsend.setAmountTotal(StringUtil.isNullOrEmpty(billetHotsend.getAmountOne())?(StringUtil.isNullOrEmpty(billetHotsend.getAmountHeight())?0:Integer.valueOf(billetHotsend.getAmountHeight())):Integer.valueOf(billetHotsend.getAmountOne()));
|
|
|
- billetHotsend.setAmountTotal(8888);
|
|
|
- StorageBill storageBill = new StorageBill();
|
|
|
- storageBill.setAmountTotal(billetHotsend.getAmountTotal());
|
|
|
- storageBill.setCcmNo(billetHotsend.getCcmNo());
|
|
|
-// storageBill.setAmountOne(billetHotsend.getAmountTotal());
|
|
|
-// storageBill.setCarNum("辊道");
|
|
|
-// storageBill.setLibrary("2");
|
|
|
- storageBill.setBtype("0");
|
|
|
-// storageBill.setSize(billetHotsend.getSizeHeight());
|
|
|
- storageBill.setSize("");
|
|
|
-// storageBill.setSpec(billetHotsend.getSpec());
|
|
|
- if(last!=null){
|
|
|
- billetHotsend.setHeatNo(last.getPourHeats());
|
|
|
-// billetHotsend.setBz("5");
|
|
|
- billetHotsend.setShift(last.getShift());
|
|
|
- billetHotsend.setShiftGroup(last.getShiftGroup());
|
|
|
- storageBill.setShift(last.getShift());
|
|
|
- storageBill.setShiftGroup(last.getShiftGroup());
|
|
|
-// storageBill.setHeatsOne(last.getPourHeats());
|
|
|
- }
|
|
|
- storageBillModel.setAmountTotal(storageBillModel.getAmountTotal()+storageBill.getAmountTotal());
|
|
|
- storageBillModel.setShiftProduct(storageBillModel.getShiftProduct()+storageBill.getAmountTotal());
|
|
|
- storageBillModelService.updateById(storageBillModel);
|
|
|
- storageBillService.save(storageBill);
|
|
|
- baseMapper.insert(billetHotsend);
|
|
|
- RollHeight rollHeight = new RollHeight();
|
|
|
- rollHeight.setHeatNo(billetHotsend.getHeatNo());
|
|
|
- rollHeight.setCcmNo(billetHotsend.getCcmNo());
|
|
|
- rollHeight.setShift(last.getShift());
|
|
|
- rollHeight.setShiftGroup(last.getShiftGroup());
|
|
|
-// rollHeight.setSize(billetHotsend.getSizeHeight());
|
|
|
- storageBill.setSize("");
|
|
|
- rollHeight.setSteel(billetHotsend.getSteel());
|
|
|
-// rollHeight.setSpec(billetHotsend.getSpec());
|
|
|
- rollHeight.setAmountTotal(billetHotsend.getAmountTotal());
|
|
|
- rollHeight.setCreateDate(new Date());
|
|
|
- rollHeightService.save(rollHeight);
|
|
|
- }
|
|
|
}
|