Commit 37af97e39092640745326a1f0bcc180622466677

Authored by yeqianyong
1 parent 75619a5a

楚江ERP-手动生成发货单bug修复

... ... @@ -33,6 +33,7 @@ import com.lframework.xingyun.sc.vo.shipments.car.CreateCarRequestPlanVo;
33 33 import com.lframework.xingyun.sc.vo.shipments.car.CreateDraftRequestCarTicketVo;
34 34 import com.lframework.xingyun.sc.vo.shipments.car.CreateRequestCarTicketVo;
35 35 import com.lframework.xingyun.sc.vo.shipments.order.*;
  36 +import com.lframework.xingyun.sc.vo.shipments.plan.QueryShipmentsPlanDetailVo;
36 37 import lombok.extern.slf4j.Slf4j;
37 38 import org.apache.commons.collections4.CollectionUtils;
38 39 import org.apache.commons.lang3.StringUtils;
... ... @@ -260,7 +261,9 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr
260 261 if (CollectionUtils.isEmpty(planDetailIds)) {
261 262 throw new DefaultClientException("发货明细id不能为空!");
262 263 }
263   - List<ShipmentsPlanDetail> detailList = shipmentsPlanDetailService.listByIds(planDetailIds);
  264 + QueryShipmentsPlanDetailVo planDetailVo = new QueryShipmentsPlanDetailVo();
  265 + planDetailVo.setIds(planDetailIds);
  266 + List<ShipmentsPlanDetail> detailList = shipmentsPlanDetailService.query(planDetailVo);
264 267 if (CollectionUtils.isEmpty(detailList)) {
265 268 throw new DefaultClientException("发货明细数据不存在!");
266 269 }
... ...
... ... @@ -15,6 +15,12 @@ public class QueryShipmentsPlanDetailVo extends PageVo implements BaseVo, Serial
15 15 private static final long serialVersionUID = 1L;
16 16
17 17 /**
  18 + * ID集合
  19 + */
  20 + @ApiModelProperty("ID集合")
  21 + private List<String> ids;
  22 +
  23 + /**
18 24 * 发货计划ID
19 25 */
20 26 @ApiModelProperty("发货计划ID")
... ...
... ... @@ -86,6 +86,12 @@
86 86 <if test="vo.shipmentsDate != null">
87 87 AND tb.shipments_date = #{vo.shipmentsDate}
88 88 </if>
  89 + <if test="vo.ids != null and vo.ids.size() > 0">
  90 + AND tb.id in
  91 + <foreach collection="vo.ids" open="(" separator="," close=")" item="item">
  92 + #{item}
  93 + </foreach>
  94 + </if>
89 95 <if test="vo.completed != null">
90 96 <choose>
91 97 <when test="vo.completed == true">
... ...