Showing
3 changed files
with
16 additions
and
1 deletions
xingyun-sc/src/main/java/com/lframework/xingyun/sc/impl/shipments/ShipmentsOrderInfoServiceImpl.java
| @@ -33,6 +33,7 @@ import com.lframework.xingyun.sc.vo.shipments.car.CreateCarRequestPlanVo; | @@ -33,6 +33,7 @@ import com.lframework.xingyun.sc.vo.shipments.car.CreateCarRequestPlanVo; | ||
| 33 | import com.lframework.xingyun.sc.vo.shipments.car.CreateDraftRequestCarTicketVo; | 33 | import com.lframework.xingyun.sc.vo.shipments.car.CreateDraftRequestCarTicketVo; |
| 34 | import com.lframework.xingyun.sc.vo.shipments.car.CreateRequestCarTicketVo; | 34 | import com.lframework.xingyun.sc.vo.shipments.car.CreateRequestCarTicketVo; |
| 35 | import com.lframework.xingyun.sc.vo.shipments.order.*; | 35 | import com.lframework.xingyun.sc.vo.shipments.order.*; |
| 36 | +import com.lframework.xingyun.sc.vo.shipments.plan.QueryShipmentsPlanDetailVo; | ||
| 36 | import lombok.extern.slf4j.Slf4j; | 37 | import lombok.extern.slf4j.Slf4j; |
| 37 | import org.apache.commons.collections4.CollectionUtils; | 38 | import org.apache.commons.collections4.CollectionUtils; |
| 38 | import org.apache.commons.lang3.StringUtils; | 39 | import org.apache.commons.lang3.StringUtils; |
| @@ -260,7 +261,9 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | @@ -260,7 +261,9 @@ public class ShipmentsOrderInfoServiceImpl extends BaseMpServiceImpl<ShipmentsOr | ||
| 260 | if (CollectionUtils.isEmpty(planDetailIds)) { | 261 | if (CollectionUtils.isEmpty(planDetailIds)) { |
| 261 | throw new DefaultClientException("发货明细id不能为空!"); | 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 | if (CollectionUtils.isEmpty(detailList)) { | 267 | if (CollectionUtils.isEmpty(detailList)) { |
| 265 | throw new DefaultClientException("发货明细数据不存在!"); | 268 | throw new DefaultClientException("发货明细数据不存在!"); |
| 266 | } | 269 | } |
xingyun-sc/src/main/java/com/lframework/xingyun/sc/vo/shipments/plan/QueryShipmentsPlanDetailVo.java
| @@ -15,6 +15,12 @@ public class QueryShipmentsPlanDetailVo extends PageVo implements BaseVo, Serial | @@ -15,6 +15,12 @@ public class QueryShipmentsPlanDetailVo extends PageVo implements BaseVo, Serial | ||
| 15 | private static final long serialVersionUID = 1L; | 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 | * 发货计划ID | 24 | * 发货计划ID |
| 19 | */ | 25 | */ |
| 20 | @ApiModelProperty("发货计划ID") | 26 | @ApiModelProperty("发货计划ID") |
| @@ -86,6 +86,12 @@ | @@ -86,6 +86,12 @@ | ||
| 86 | <if test="vo.shipmentsDate != null"> | 86 | <if test="vo.shipmentsDate != null"> |
| 87 | AND tb.shipments_date = #{vo.shipmentsDate} | 87 | AND tb.shipments_date = #{vo.shipmentsDate} |
| 88 | </if> | 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 | <if test="vo.completed != null"> | 95 | <if test="vo.completed != null"> |
| 90 | <choose> | 96 | <choose> |
| 91 | <when test="vo.completed == true"> | 97 | <when test="vo.completed == true"> |