|
@@ -48,7 +48,7 @@ public class RollClubThreeDetailsServiceImpl extends ServiceImpl<RollClubThreeDe
|
|
|
private StorageBillMapper storageBillMapper;
|
|
|
|
|
|
@Override
|
|
|
- public RollOnDutyDataVo queryOnDutyRecord(String ccmNo) {
|
|
|
+ public RollOnDutyDataVo queryOnDutyRecord(String ccmNo,String currentDate) {
|
|
|
RollOnDutyDataVo rollOnDutyVo = new RollOnDutyDataVo();
|
|
|
|
|
|
// 1. 从 Redis 获取班次信息
|
|
@@ -71,10 +71,16 @@ public class RollClubThreeDetailsServiceImpl extends ServiceImpl<RollClubThreeDe
|
|
|
|
|
|
// 3. 查询当班装运单信息
|
|
|
LambdaQueryWrapper<StorageBill> billQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+
|
|
|
billQueryWrapper.eq(StorageBill::getCcmNo, ccmNo)
|
|
|
- .eq(StorageBill::getDestination,"棒三")
|
|
|
- .gt(StorageBill::getAmountTotal, 0)
|
|
|
- .between(StorageBill::getCreateTime, billetHotsendChangeShift.getCreateTime(), new Date());
|
|
|
+ .eq(StorageBill::getDestination, "棒三")
|
|
|
+ .gt(StorageBill::getAmountTotal, 0);
|
|
|
+
|
|
|
+ if (oConvertUtils.isEmpty(currentDate)) {
|
|
|
+ billQueryWrapper.between(StorageBill::getCreateTime, billetHotsendChangeShift.getCreateTime(), new Date());
|
|
|
+ } else {
|
|
|
+ billQueryWrapper.between(StorageBill::getCreateTime, DateUtils.getStartOfDay(currentDate), DateUtils.getEndOfDay(currentDate));
|
|
|
+ }
|
|
|
|
|
|
List<StorageBill> storageBillList = storageBillMapper.selectList(billQueryWrapper);
|
|
|
if (oConvertUtils.listIsEmpty(storageBillList)) {
|