|
|
@@ -17,53 +17,51 @@ import java.util.List;
|
|
|
public interface NewBulkOrderMapstruct {
|
|
|
|
|
|
// BulkOrderList映射
|
|
|
- @Mapping(target = "sysNo", ignore = true)
|
|
|
- @Mapping(target = "scNo", ignore = true)
|
|
|
- @Mapping(target = "goodsId", ignore = true)
|
|
|
+ @Mapping(target = "scNo", source = "purchaseCode")
|
|
|
@Mapping(target = "goodsCode", constant = "SP001")
|
|
|
@Mapping(target = "goodsName", constant = "图片下单")
|
|
|
@Mapping(target = "unitId", constant = "5")
|
|
|
@Mapping(target = "defaultUnit", constant = "5")
|
|
|
- @Mapping(target = "goodsTypeExtend1Id", source = "daHuoNumberName")
|
|
|
- BulkOrderList toBulkOrderList(OrderListBo source);
|
|
|
+ @Mapping(target = "goodsTypeExtend1Id", source = "orderList.daHuoNumberName")
|
|
|
+ @Mapping(target = "goodsTypeExtend4Id", source = "orderList.oemId")
|
|
|
+ @Mapping(target = "gongyiPrice", source = "orderList.craftPrice")
|
|
|
+ @Mapping(target = "duizhangStatus", constant = "0")
|
|
|
+ BulkOrderList toBulkOrderList(NewBulkOrderBo newBulkOrderBo,
|
|
|
+ OrderListBo orderList,
|
|
|
+ String sysNo,
|
|
|
+ String purchaseCode,
|
|
|
+ Long userOrderId,
|
|
|
+ Long planId);
|
|
|
|
|
|
// ProductionPlan映射
|
|
|
- @Mapping(target = "sysNo", source = "sysNo")
|
|
|
- @Mapping(target = "purchaseCode", source = "purchaseCode")
|
|
|
@Mapping(target = "orderNum", source = "orderNumber")
|
|
|
- @Mapping(target = "userId", source = "newBulkOrderBo.userId")
|
|
|
- @Mapping(target = "isBurnFlowers", source = "orderList.isBurnFlowers")
|
|
|
- @Mapping(target = "isQuickReturn", source = "orderList.isQuickReturn")
|
|
|
- @Mapping(target = "isToVoid", source = "orderList.isToVoid")
|
|
|
- @Mapping(target = "isMulticolor", source = "orderList.isMulticolor")
|
|
|
- @Mapping(target = "isFirstOrder", source = "orderList.isFirstOrder")
|
|
|
- @Mapping(target = "isUrgent", source = "orderList.isUrgent")
|
|
|
- @Mapping(target = "isBuhuo", source = "orderList.isBuhuo")
|
|
|
- @Mapping(target = "isSys", source = "orderList.isSys")
|
|
|
- ProductionPlan toProductionPlan(NewBulkOrderBo newBulkOrderBo,
|
|
|
+ @Mapping(target = "goodsCode", constant = "SP001")
|
|
|
+ @Mapping(target = "goodsName", constant = "图片下单")
|
|
|
+ @Mapping(target = "price", constant = "5")
|
|
|
+ @Mapping(target = "defaultUnit", constant = "5")
|
|
|
+ @Mapping(target = "examineStatus", constant = "0")
|
|
|
+ @Mapping(target = "status", constant = "0")
|
|
|
+ @Mapping(target = "mrpStatus", constant = "0")
|
|
|
+ ProductionPlan toProductionPlan(NewBulkOrderBo newBulkOrder,
|
|
|
OrderListBo orderList,
|
|
|
String sysNo,
|
|
|
String purchaseCode,
|
|
|
String orderNumber);
|
|
|
|
|
|
// UserOrder映射
|
|
|
- @Mapping(target = "userId", source = "newBulkOrderBo.userId")
|
|
|
- @Mapping(target = "name", source = "newBulkOrderBo.userName")
|
|
|
- @Mapping(target = "phone", source = "newBulkOrderBo.userPhone")
|
|
|
+ @Mapping(target = "name", source = "newBulkOrder.userName")
|
|
|
+ @Mapping(target = "phone", source = "newBulkOrder.userPhone")
|
|
|
@Mapping(target = "address", source = "orderList.receivingAddress")
|
|
|
- @Mapping(target = "orderNumber", source = "orderNumber")
|
|
|
- @Mapping(target = "remark", source = "remark")
|
|
|
- UserOrder toUserOrder(NewBulkOrderBo newBulkOrderBo,
|
|
|
+ UserOrder toUserOrder(NewBulkOrderBo newBulkOrder,
|
|
|
OrderListBo orderList,
|
|
|
String orderNumber,
|
|
|
String remark);
|
|
|
|
|
|
// UserOrderTemplate列表映射
|
|
|
- @Mapping(target = "userId", source = "newBulkOrderBo.userId")
|
|
|
@Mapping(target = "orderId", source = "orderId")
|
|
|
@Mapping(target = "planId", source = "planId")
|
|
|
@Mapping(target = "itemId", source = "orderList.daHuoNumberId")
|
|
|
- UserOrderTemplate toUserOrderTemplate(NewBulkOrderBo newBulkOrderBo,
|
|
|
+ UserOrderTemplate toUserOrderTemplate(NewBulkOrderBo newBulkOrder,
|
|
|
OrderListBo orderList,
|
|
|
Long orderId,
|
|
|
Long planId,
|