Commit d64f7567c90175f1331bfa40a8026a097a2da98a

Authored by 房远帅
1 parent fc73e923

发货计划:后日预发是的时候默认填写发货时点(10:00)

... ... @@ -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)
... ...