Showing
4 changed files
with
32 additions
and
1 deletions
| ... | ... | @@ -33,6 +33,13 @@ public class ShipmentsPlanBo extends BaseBo<ShipmentsPlan> { |
| 33 | 33 | private String workshopId; |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | + * 生产厂名称 | |
| 37 | + */ | |
| 38 | + @ApiModelProperty("生产厂名称") | |
| 39 | + private String workshopName; | |
| 40 | + | |
| 41 | + | |
| 42 | + /** | |
| 36 | 43 | * 状态 |
| 37 | 44 | */ |
| 38 | 45 | @ApiModelProperty("状态") |
| ... | ... | @@ -53,6 +60,12 @@ public class ShipmentsPlanBo extends BaseBo<ShipmentsPlan> { |
| 53 | 60 | private LocalDate afTomoPreShipDate; |
| 54 | 61 | |
| 55 | 62 | /** |
| 63 | + * 制单日期 | |
| 64 | + */ | |
| 65 | + @ApiModelProperty("制单日期") | |
| 66 | + private LocalDate createDate; | |
| 67 | + | |
| 68 | + /** | |
| 56 | 69 | * 创建人ID |
| 57 | 70 | */ |
| 58 | 71 | @ApiModelProperty("创建人ID") |
| ... | ... | @@ -94,6 +107,9 @@ public class ShipmentsPlanBo extends BaseBo<ShipmentsPlan> { |
| 94 | 107 | |
| 95 | 108 | @Override |
| 96 | 109 | protected void afterInit(ShipmentsPlan dto) { |
| 97 | - | |
| 110 | + LocalDateTime time = dto.getCreateTime(); | |
| 111 | + if (time != null) { | |
| 112 | + this.createDate = time.toLocalDate(); | |
| 113 | + } | |
| 98 | 114 | } |
| 99 | 115 | } | ... | ... |
| 1 | 1 | package com.lframework.xingyun.sc.bo.shipments.plan; |
| 2 | 2 | |
| 3 | +import com.baomidou.mybatisplus.annotation.TableField; | |
| 3 | 4 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 4 | 5 | import com.lframework.xingyun.sc.entity.ShipmentsPlanDetail; |
| 5 | 6 | import com.lframework.starter.common.constants.StringPool; |
| ... | ... | @@ -48,6 +49,12 @@ public class ShipmentsPlanDetailBo extends BaseBo<ShipmentsPlanDetail> { |
| 48 | 49 | private String orderNo; |
| 49 | 50 | |
| 50 | 51 | /** |
| 52 | + * 客户ID | |
| 53 | + */ | |
| 54 | + @ApiModelProperty("客户ID") | |
| 55 | + private String customerId; | |
| 56 | + | |
| 57 | + /** | |
| 51 | 58 | * 客户名称 |
| 52 | 59 | */ |
| 53 | 60 | @ApiModelProperty("客户名称") | ... | ... |
| ... | ... | @@ -53,6 +53,12 @@ public class ShipmentsPlanDetail extends BaseEntity implements BaseDto { |
| 53 | 53 | private String orderNo; |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | + * 客户ID | |
| 57 | + */ | |
| 58 | + @TableField(exist = false) | |
| 59 | + private String customerId; | |
| 60 | + | |
| 61 | + /** | |
| 56 | 62 | * 客户名称 |
| 57 | 63 | */ |
| 58 | 64 | @TableField(exist = false) | ... | ... |
| ... | ... | @@ -7,6 +7,7 @@ |
| 7 | 7 | <result column="plan_id" property="planId"/> |
| 8 | 8 | <result column="order_id" property="orderId"/> |
| 9 | 9 | <result column="order_no" property="orderNo"/> |
| 10 | + <result column="customer_id" property="customerId"/> | |
| 10 | 11 | <result column="customer_name" property="customerName"/> |
| 11 | 12 | <result column="thickness" property="thickness"/> |
| 12 | 13 | <result column="thickness_tol_pos" property="thicknessTolPos"/> |
| ... | ... | @@ -35,6 +36,7 @@ |
| 35 | 36 | tb.plan_id, |
| 36 | 37 | tb.order_id, |
| 37 | 38 | o.order_no, |
| 39 | + o.ordering_unit AS customer_id, | |
| 38 | 40 | c.name AS customer_name, |
| 39 | 41 | tb.order_spec_id, |
| 40 | 42 | ol.thickness, | ... | ... |