Showing
1 changed file
with
10 additions
and
2 deletions
| ... | ... | @@ -144,8 +144,16 @@ public class ShipmentsPlanDetailServiceImpl extends BaseMpServiceImpl<ShipmentsP |
| 144 | 144 | if (ObjectUtil.isNull(data)) { |
| 145 | 145 | throw new DefaultClientException("发货计划明细不存在!"); |
| 146 | 146 | } |
| 147 | - if (vo.getShipmentsTime() != null) { | |
| 148 | - vo.setCanShipments(Boolean.TRUE); | |
| 147 | + | |
| 148 | + // 后日预发是否可发货为true时,发货时点默认为10:00;为false时,发货时点置为空 | |
| 149 | + if (vo.getCanShipments() != null) { | |
| 150 | + if (Boolean.TRUE.equals(vo.getCanShipments())) { | |
| 151 | + if (vo.getShipmentsTime() == null) { | |
| 152 | + vo.setShipmentsTime("10:00"); | |
| 153 | + } | |
| 154 | + } else { | |
| 155 | + vo.setShipmentsTime(null); | |
| 156 | + } | |
| 149 | 157 | } |
| 150 | 158 | |
| 151 | 159 | LambdaUpdateWrapper<ShipmentsPlanDetail> updateWrapper = Wrappers.lambdaUpdate(ShipmentsPlanDetail.class) | ... | ... |