|
@@ -711,11 +711,11 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
queryWrapperCS.eq(BilletHotsendChangeShift::getCcmNo, ccmNo)
|
|
queryWrapperCS.eq(BilletHotsendChangeShift::getCcmNo, ccmNo)
|
|
.eq(BilletHotsendChangeShift::getShift, cacheShint)
|
|
.eq(BilletHotsendChangeShift::getShift, cacheShint)
|
|
.eq(BilletHotsendChangeShift::getShiftGroup, cacheShintGroup)
|
|
.eq(BilletHotsendChangeShift::getShiftGroup, cacheShintGroup)
|
|
- .between(BilletHotsendChangeShift::getCreateTime, DateUtils.getStartOfDay(), DateUtils.getEndOfDay());
|
|
|
|
- BilletHotsendChangeShift billetHotsendChangeShift = billetHotsendChangeShiftService.getOne(queryWrapperCS);
|
|
|
|
|
|
+ .orderByDesc(BilletHotsendChangeShift::getCreateTime).last("limit 1");
|
|
|
|
+ BilletHotsendChangeShift billetHotsendChangeShift = billetHotsendChangeShiftService.getOne(queryWrapperCS, false);
|
|
if (oConvertUtils.isNotEmpty(billetHotsendChangeShift)) {
|
|
if (oConvertUtils.isNotEmpty(billetHotsendChangeShift)) {
|
|
String operationName = type.equals("hotSend")? "热送" : "热装";
|
|
String operationName = type.equals("hotSend")? "热送" : "热装";
|
|
- log.info("{}{}", ">>>>>棒线统计当前班次" + operationName + "总支数:", sum + "班组:" + cacheShintGroup + "班次:" + cacheShint);
|
|
|
|
|
|
+ log.info("{}{}", ">>>>>B端当前班次信息:" + operationName + "总支数:", sum + "班组:" + cacheShintGroup + "班次:" + cacheShint);
|
|
billetHotsendChangeShift.setUpdateTime(new Date());
|
|
billetHotsendChangeShift.setUpdateTime(new Date());
|
|
if ("hotSend".equals(updateType)){
|
|
if ("hotSend".equals(updateType)){
|
|
billetHotsendChangeShift.setHotsendAmount(billetHotsendChangeShift.getHotsendAmount() + sum);
|
|
billetHotsendChangeShift.setHotsendAmount(billetHotsendChangeShift.getHotsendAmount() + sum);
|