|
@@ -393,7 +393,14 @@ public class StorageBillServiceImpl extends ServiceImpl<StorageBillMapper, Stora
|
|
|
.eq(BilletHotsendChangeShift::getShift, shift).between(BilletHotsendChangeShift::getCreateTime, DateUtils.getStartOfDay(), DateUtils.getEndOfDay());
|
|
|
BilletHotsendChangeShift billetHotsendChangeShift = billetHotsendChangeShiftService.getOne(queryWrapper3);
|
|
|
if (oConvertUtils.isNotEmpty(billetHotsendChangeShift)){
|
|
|
- billetHotsendChangeShift.setOutCarNum(billetHotsendChangeShift.getOutCarNum() + 1);
|
|
|
+ // 通过铸机号、班组、班别查询 当班装运单总数
|
|
|
+ LambdaQueryWrapper<StorageBill> queryWrapper4 = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper4.eq(StorageBill::getCcmNo, storageBill.getCcmNo())
|
|
|
+ .eq(StorageBill::getShiftGroup, shiftGroup)
|
|
|
+ .eq(StorageBill::getShift, shift)
|
|
|
+ .between(StorageBill::getCreateTime, DateUtils.getStartOfDay(), DateUtils.getEndOfDay());
|
|
|
+ long amountTotal = baseMapper.selectCount(queryWrapper4);
|
|
|
+ billetHotsendChangeShift.setOutCarNum(Math.toIntExact(amountTotal));
|
|
|
billetHotsendChangeShift.setUpdateTime(new Date());
|
|
|
billetHotsendChangeShiftService.updateById(billetHotsendChangeShift);
|
|
|
}
|