|
|
|
|
@ -103,24 +103,8 @@ public class YieldOrderDailyAssignImpl extends BaseServiceImpl<YieldOrderDailyAs |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public YieldOrderAssignDaily findMinNum(Long abilityId, List<Long> workCenterIdList) { |
|
|
|
|
// LocalDate today = LocalDate.now();
|
|
|
|
|
// LocalDateTime startOfDay = today.atStartOfDay();
|
|
|
|
|
// LocalDateTime endOfDay = today.atTime(LocalTime.MAX);
|
|
|
|
|
// LambdaQueryWrapper<YieldOrderAssignDaily> wrapper = Wrappers.<YieldOrderAssignDaily>query().lambda()
|
|
|
|
|
// .eq(YieldOrderAssignDaily::getIsDeleted, CommonConstant.BOOLEAN_FALSE)
|
|
|
|
|
// .eq(YieldOrderAssignDaily::getCraftAbilityId, abilityId)
|
|
|
|
|
// .between(YieldOrderAssignDaily::getCreateTime,
|
|
|
|
|
// DateUtil.toDate(startOfDay),
|
|
|
|
|
// DateUtil.toDate(endOfDay));
|
|
|
|
|
// if (Func.isNotEmpty(workCenterIdList)) {
|
|
|
|
|
// wrapper.in(YieldOrderAssignDaily::getWorkCenterId, workCenterIdList);
|
|
|
|
|
// }
|
|
|
|
|
// List<YieldOrderAssignDaily> list = baseMapper.selectList(wrapper);
|
|
|
|
|
// if(CollectionUtils.isEmpty(list)){
|
|
|
|
|
// return null;
|
|
|
|
|
// }
|
|
|
|
|
// return list.get(0);
|
|
|
|
|
List<YieldOrderAssignDaily> list = baseMapper.findMinNum(abilityId, workCenterIdList); |
|
|
|
|
String format = LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm")); |
|
|
|
|
List<YieldOrderAssignDaily> list = baseMapper.findMinNum(abilityId, workCenterIdList, format); |
|
|
|
|
return CollectionUtils.isNotEmpty(list) ? list.get(0) : null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|