|
|
|
|
@ -30,10 +30,15 @@ public class YieldOrderDailyAssignImpl extends BaseServiceImpl<YieldOrderDailyAs |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void saveOrEdit(Long workCenterId, Long oemId, Long abilityId, Double area, Double quantity) { |
|
|
|
|
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) |
|
|
|
|
.eq(YieldOrderAssignDaily::getCreateTime, DateUtil.toDate(LocalDate.now())); |
|
|
|
|
.between(YieldOrderAssignDaily::getCreateTime, |
|
|
|
|
DateUtil.toDate(startOfDay), |
|
|
|
|
DateUtil.toDate(endOfDay)); |
|
|
|
|
if (Func.isNotEmpty(workCenterId)) { |
|
|
|
|
wrapper.eq(YieldOrderAssignDaily::getWorkCenterId, workCenterId); |
|
|
|
|
} |
|
|
|
|
|