Commit a1432b753936f806df68afb5f071610a0728b073

Authored by 杨鸣坤
1 parent 339b73ab

楚江ERP:补货单增加厚度、长、宽的误差值

@@ -280,9 +280,15 @@ create table `tbl_replenishment_order_line` @@ -280,9 +280,15 @@ create table `tbl_replenishment_order_line`
280 `replenishment_order_id` varchar(32) NOT NULL COMMENT '补货单', 280 `replenishment_order_id` varchar(32) NOT NULL COMMENT '补货单',
281 `purchase_order_line_id` varchar(32) NOT NULL COMMENT '订货单表物料行ID', 281 `purchase_order_line_id` varchar(32) NOT NULL COMMENT '订货单表物料行ID',
282 `brand` varchar(100) COMMENT '牌号', 282 `brand` varchar(100) COMMENT '牌号',
283 - `thickness` decimal(10, 4) COMMENT '厚度',  
284 - `width` decimal(10, 4) COMMENT '宽度',  
285 - `length` decimal(10, 4) COMMENT '长度', 283 + `thickness` DECIMAL(10, 4) COMMENT '厚度',
  284 + `thickness_tol_pos` DECIMAL(10, 4) COMMENT '厚度公差正',
  285 + `thickness_tol_neg` DECIMAL(10, 4) COMMENT '厚度公差负',
  286 + `width` DECIMAL(10, 4) COMMENT '宽度',
  287 + `width_tol_pos` DECIMAL(10, 4) COMMENT '宽度公差正',
  288 + `width_tol_neg` DECIMAL(10, 4) COMMENT '宽度公差负',
  289 + `length` DECIMAL(10, 4) COMMENT '长度',
  290 + `length_tol_pos` DECIMAL(10, 4) COMMENT '长度公差正',
  291 + `length_tol_neg` DECIMAL(10, 4) COMMENT '长度公差负',
286 `status` varchar(50) COMMENT '状态', 292 `status` varchar(50) COMMENT '状态',
287 `quantity` decimal(15, 4) COMMENT '需发(t)', 293 `quantity` decimal(15, 4) COMMENT '需发(t)',
288 `shipped_quantity` decimal(15, 4) COMMENT '实发(t)', 294 `shipped_quantity` decimal(15, 4) COMMENT '实发(t)',
@@ -49,18 +49,54 @@ public class GetReplenishmentOrderLineBo extends BaseBo<ReplenishmentOrderLine> @@ -49,18 +49,54 @@ public class GetReplenishmentOrderLineBo extends BaseBo<ReplenishmentOrderLine>
49 private BigDecimal thickness; 49 private BigDecimal thickness;
50 50
51 /** 51 /**
  52 + * 厚度公差正
  53 + */
  54 + @ApiModelProperty("厚度公差正")
  55 + private BigDecimal thicknessTolPos;
  56 +
  57 + /**
  58 + * 厚度公差负
  59 + */
  60 + @ApiModelProperty("厚度公差负")
  61 + private BigDecimal thicknessTolNeg;
  62 +
  63 + /**
52 * 宽度 64 * 宽度
53 */ 65 */
54 @ApiModelProperty("宽度") 66 @ApiModelProperty("宽度")
55 private BigDecimal width; 67 private BigDecimal width;
56 68
57 /** 69 /**
  70 + * 宽度公差正
  71 + */
  72 + @ApiModelProperty("宽度公差正")
  73 + private BigDecimal widthTolPos;
  74 +
  75 + /**
  76 + * 宽度公差负
  77 + */
  78 + @ApiModelProperty("宽度公差负")
  79 + private BigDecimal widthTolNeg;
  80 +
  81 + /**
58 * 长度 82 * 长度
59 */ 83 */
60 @ApiModelProperty("长度") 84 @ApiModelProperty("长度")
61 private BigDecimal length; 85 private BigDecimal length;
62 86
63 /** 87 /**
  88 + * 长度公差正
  89 + */
  90 + @ApiModelProperty("长度公差正")
  91 + private BigDecimal lengthTolPos;
  92 +
  93 + /**
  94 + * 长度公差负
  95 + */
  96 + @ApiModelProperty("长度公差负")
  97 + private BigDecimal lengthTolNeg;
  98 +
  99 + /**
64 * 状态 100 * 状态
65 */ 101 */
66 @ApiModelProperty("状态") 102 @ApiModelProperty("状态")
@@ -50,16 +50,46 @@ public class ReplenishmentOrderLine extends BaseEntity implements BaseDto { @@ -50,16 +50,46 @@ public class ReplenishmentOrderLine extends BaseEntity implements BaseDto {
50 private BigDecimal thickness; 50 private BigDecimal thickness;
51 51
52 /** 52 /**
  53 + * 厚度公差正
  54 + */
  55 + private BigDecimal thicknessTolPos;
  56 +
  57 + /**
  58 + * 厚度公差负
  59 + */
  60 + private BigDecimal thicknessTolNeg;
  61 +
  62 + /**
53 * 宽度 63 * 宽度
54 */ 64 */
55 private BigDecimal width; 65 private BigDecimal width;
56 66
57 /** 67 /**
  68 + * 宽度公差正
  69 + */
  70 + private BigDecimal widthTolPos;
  71 +
  72 + /**
  73 + * 宽度公差负
  74 + */
  75 + private BigDecimal widthTolNeg;
  76 +
  77 + /**
58 * 长度 78 * 长度
59 */ 79 */
60 private BigDecimal length; 80 private BigDecimal length;
61 81
62 /** 82 /**
  83 + * 长度公差正
  84 + */
  85 + private BigDecimal lengthTolPos;
  86 +
  87 + /**
  88 + * 长度公差负
  89 + */
  90 + private BigDecimal lengthTolNeg;
  91 +
  92 + /**
63 * 状态 93 * 状态
64 */ 94 */
65 private String status; 95 private String status;
@@ -67,8 +67,14 @@ public class ReplenishmentOrderLineServiceImpl extends BaseMpServiceImpl<Repleni @@ -67,8 +67,14 @@ public class ReplenishmentOrderLineServiceImpl extends BaseMpServiceImpl<Repleni
67 data.setPurchaseOrderLineId(vo.getPurchaseOrderLineId()); 67 data.setPurchaseOrderLineId(vo.getPurchaseOrderLineId());
68 data.setBrand(vo.getBrand()); 68 data.setBrand(vo.getBrand());
69 data.setThickness(vo.getThickness()); 69 data.setThickness(vo.getThickness());
  70 + data.setThicknessTolPos(vo.getThicknessTolPos());
  71 + data.setThicknessTolNeg(vo.getThicknessTolNeg());
70 data.setWidth(vo.getWidth()); 72 data.setWidth(vo.getWidth());
  73 + data.setWidthTolPos(vo.getWidthTolPos());
  74 + data.setWidthTolNeg(vo.getWidthTolNeg());
71 data.setLength(vo.getLength()); 75 data.setLength(vo.getLength());
  76 + data.setLengthTolPos(vo.getLengthTolPos());
  77 + data.setLengthTolNeg(vo.getLengthTolNeg());
72 data.setStatus(vo.getStatus()); 78 data.setStatus(vo.getStatus());
73 data.setQuantity(vo.getQuantity()); 79 data.setQuantity(vo.getQuantity());
74 data.setShippedQuantity(vo.getShippedQuantity()); 80 data.setShippedQuantity(vo.getShippedQuantity());
@@ -101,8 +107,14 @@ public class ReplenishmentOrderLineServiceImpl extends BaseMpServiceImpl<Repleni @@ -101,8 +107,14 @@ public class ReplenishmentOrderLineServiceImpl extends BaseMpServiceImpl<Repleni
101 .set(ReplenishmentOrderLine::getPurchaseOrderLineId, vo.getPurchaseOrderLineId()) 107 .set(ReplenishmentOrderLine::getPurchaseOrderLineId, vo.getPurchaseOrderLineId())
102 .set(ReplenishmentOrderLine::getBrand, vo.getBrand()) 108 .set(ReplenishmentOrderLine::getBrand, vo.getBrand())
103 .set(ReplenishmentOrderLine::getThickness, vo.getThickness()) 109 .set(ReplenishmentOrderLine::getThickness, vo.getThickness())
  110 + .set(ReplenishmentOrderLine::getThicknessTolPos, vo.getThicknessTolPos())
  111 + .set(ReplenishmentOrderLine::getThicknessTolNeg, vo.getThicknessTolNeg())
104 .set(ReplenishmentOrderLine::getWidth, vo.getWidth()) 112 .set(ReplenishmentOrderLine::getWidth, vo.getWidth())
  113 + .set(ReplenishmentOrderLine::getWidthTolPos, vo.getWidthTolPos())
  114 + .set(ReplenishmentOrderLine::getWidthTolNeg, vo.getWidthTolNeg())
105 .set(ReplenishmentOrderLine::getLength, vo.getLength()) 115 .set(ReplenishmentOrderLine::getLength, vo.getLength())
  116 + .set(ReplenishmentOrderLine::getLengthTolPos, vo.getLengthTolPos())
  117 + .set(ReplenishmentOrderLine::getLengthTolNeg, vo.getLengthTolNeg())
106 .set(ReplenishmentOrderLine::getStatus, vo.getStatus()) 118 .set(ReplenishmentOrderLine::getStatus, vo.getStatus())
107 .set(ReplenishmentOrderLine::getQuantity, vo.getQuantity()) 119 .set(ReplenishmentOrderLine::getQuantity, vo.getQuantity())
108 .set(ReplenishmentOrderLine::getShippedQuantity, vo.getShippedQuantity()) 120 .set(ReplenishmentOrderLine::getShippedQuantity, vo.getShippedQuantity())
@@ -170,8 +170,14 @@ public class ReplenishmentOrderServiceImpl extends BaseMpServiceImpl<Replenishme @@ -170,8 +170,14 @@ public class ReplenishmentOrderServiceImpl extends BaseMpServiceImpl<Replenishme
170 createReplenishmentOrderLineVo.setPurchaseOrderLineId(updateReplenishmentOrderLineVo.getPurchaseOrderLineId()); 170 createReplenishmentOrderLineVo.setPurchaseOrderLineId(updateReplenishmentOrderLineVo.getPurchaseOrderLineId());
171 createReplenishmentOrderLineVo.setBrand(updateReplenishmentOrderLineVo.getBrand()); 171 createReplenishmentOrderLineVo.setBrand(updateReplenishmentOrderLineVo.getBrand());
172 createReplenishmentOrderLineVo.setThickness(updateReplenishmentOrderLineVo.getThickness()); 172 createReplenishmentOrderLineVo.setThickness(updateReplenishmentOrderLineVo.getThickness());
  173 + createReplenishmentOrderLineVo.setThicknessTolPos(updateReplenishmentOrderLineVo.getThicknessTolPos());
  174 + createReplenishmentOrderLineVo.setThicknessTolNeg(updateReplenishmentOrderLineVo.getThicknessTolNeg());
173 createReplenishmentOrderLineVo.setWidth(updateReplenishmentOrderLineVo.getWidth()); 175 createReplenishmentOrderLineVo.setWidth(updateReplenishmentOrderLineVo.getWidth());
  176 + createReplenishmentOrderLineVo.setWidthTolPos(updateReplenishmentOrderLineVo.getWidthTolPos());
  177 + createReplenishmentOrderLineVo.setWidthTolNeg(updateReplenishmentOrderLineVo.getWidthTolNeg());
174 createReplenishmentOrderLineVo.setLength(updateReplenishmentOrderLineVo.getLength()); 178 createReplenishmentOrderLineVo.setLength(updateReplenishmentOrderLineVo.getLength());
  179 + createReplenishmentOrderLineVo.setLengthTolPos(updateReplenishmentOrderLineVo.getLengthTolPos());
  180 + createReplenishmentOrderLineVo.setLengthTolNeg(updateReplenishmentOrderLineVo.getLengthTolNeg());
175 createReplenishmentOrderLineVo.setStatus(updateReplenishmentOrderLineVo.getStatus()); 181 createReplenishmentOrderLineVo.setStatus(updateReplenishmentOrderLineVo.getStatus());
176 createReplenishmentOrderLineVo.setQuantity(updateReplenishmentOrderLineVo.getQuantity()); 182 createReplenishmentOrderLineVo.setQuantity(updateReplenishmentOrderLineVo.getQuantity());
177 createReplenishmentOrderLineVo.setShippedQuantity(updateReplenishmentOrderLineVo.getShippedQuantity()); 183 createReplenishmentOrderLineVo.setShippedQuantity(updateReplenishmentOrderLineVo.getShippedQuantity());
1 package com.lframework.xingyun.sc.vo.purchase; 1 package com.lframework.xingyun.sc.vo.purchase;
2 2
3 -import com.lframework.starter.web.core.components.validation.IsNumberPrecision;  
4 import com.lframework.starter.web.core.components.validation.TypeMismatch; 3 import com.lframework.starter.web.core.components.validation.TypeMismatch;
5 import com.lframework.starter.web.core.vo.BaseVo; 4 import com.lframework.starter.web.core.vo.BaseVo;
6 import io.swagger.annotations.ApiModelProperty; 5 import io.swagger.annotations.ApiModelProperty;
7 import lombok.Data; 6 import lombok.Data;
8 -import org.hibernate.validator.constraints.Length;  
9 7
10 8
11 import java.io.Serializable; 9 import java.io.Serializable;
@@ -21,21 +19,18 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -21,21 +19,18 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable {
21 * 补货单 19 * 补货单
22 */ 20 */
23 @ApiModelProperty(value = "补货单") 21 @ApiModelProperty(value = "补货单")
24 - @Length(message = "补货单最多允许32个字符!")  
25 private String replenishmentOrderId; 22 private String replenishmentOrderId;
26 23
27 /** 24 /**
28 * 订货单表物料行ID 25 * 订货单表物料行ID
29 */ 26 */
30 @ApiModelProperty(value = "订货单表物料行ID") 27 @ApiModelProperty(value = "订货单表物料行ID")
31 - @Length(message = "订货单表物料行ID最多允许32个字符!")  
32 private String purchaseOrderLineId; 28 private String purchaseOrderLineId;
33 29
34 /** 30 /**
35 * 牌号 31 * 牌号
36 */ 32 */
37 @ApiModelProperty(value = "牌号") 33 @ApiModelProperty(value = "牌号")
38 - @Length(message = "牌号最多允许100个字符!")  
39 private String brand; 34 private String brand;
40 35
41 /** 36 /**
@@ -43,30 +38,62 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -43,30 +38,62 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable {
43 */ 38 */
44 @ApiModelProperty(value = "厚度") 39 @ApiModelProperty(value = "厚度")
45 @TypeMismatch(message = "厚度格式有误!") 40 @TypeMismatch(message = "厚度格式有误!")
46 - @IsNumberPrecision(message = "厚度最多允许4位小数!", value = 4)  
47 private BigDecimal thickness; 41 private BigDecimal thickness;
48 42
49 /** 43 /**
  44 + * 厚度公差正
  45 + */
  46 + @ApiModelProperty("厚度公差正")
  47 + private BigDecimal thicknessTolPos;
  48 +
  49 + /**
  50 + * 厚度公差负
  51 + */
  52 + @ApiModelProperty("厚度公差负")
  53 + private BigDecimal thicknessTolNeg;
  54 +
  55 + /**
50 * 宽度 56 * 宽度
51 */ 57 */
52 @ApiModelProperty(value = "宽度") 58 @ApiModelProperty(value = "宽度")
53 @TypeMismatch(message = "宽度格式有误!") 59 @TypeMismatch(message = "宽度格式有误!")
54 - @IsNumberPrecision(message = "宽度最多允许4位小数!", value = 4)  
55 private BigDecimal width; 60 private BigDecimal width;
56 61
57 /** 62 /**
  63 + * 宽度公差正
  64 + */
  65 + @ApiModelProperty("宽度公差正")
  66 + private BigDecimal widthTolPos;
  67 +
  68 + /**
  69 + * 宽度公差负
  70 + */
  71 + @ApiModelProperty("宽度公差负")
  72 + private BigDecimal widthTolNeg;
  73 +
  74 + /**
58 * 长度 75 * 长度
59 */ 76 */
60 @ApiModelProperty(value = "长度") 77 @ApiModelProperty(value = "长度")
61 @TypeMismatch(message = "长度格式有误!") 78 @TypeMismatch(message = "长度格式有误!")
62 - @IsNumberPrecision(message = "长度最多允许4位小数!", value = 4)  
63 private BigDecimal length; 79 private BigDecimal length;
64 80
65 /** 81 /**
  82 + * 长度公差正
  83 + */
  84 + @ApiModelProperty("长度公差正")
  85 + private BigDecimal lengthTolPos;
  86 +
  87 + /**
  88 + * 长度公差负
  89 + */
  90 + @ApiModelProperty("长度公差负")
  91 + private BigDecimal lengthTolNeg;
  92 +
  93 + /**
66 * 状态 94 * 状态
67 */ 95 */
68 @ApiModelProperty(value = "状态") 96 @ApiModelProperty(value = "状态")
69 - @Length(message = "状态最多允许50个字符!")  
70 private String status; 97 private String status;
71 98
72 /** 99 /**
@@ -74,7 +101,6 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -74,7 +101,6 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable {
74 */ 101 */
75 @ApiModelProperty(value = "需发(t)") 102 @ApiModelProperty(value = "需发(t)")
76 @TypeMismatch(message = "需发(t)格式有误!") 103 @TypeMismatch(message = "需发(t)格式有误!")
77 - @IsNumberPrecision(message = "需发(t)最多允许4位小数!", value = 4)  
78 private BigDecimal quantity; 104 private BigDecimal quantity;
79 105
80 /** 106 /**
@@ -82,7 +108,6 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -82,7 +108,6 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable {
82 */ 108 */
83 @ApiModelProperty(value = "实发(t)") 109 @ApiModelProperty(value = "实发(t)")
84 @TypeMismatch(message = "实发(t)格式有误!") 110 @TypeMismatch(message = "实发(t)格式有误!")
85 - @IsNumberPrecision(message = "实发(t)最多允许4位小数!", value = 4)  
86 private BigDecimal shippedQuantity; 111 private BigDecimal shippedQuantity;
87 112
88 /** 113 /**
@@ -90,7 +115,6 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -90,7 +115,6 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable {
90 */ 115 */
91 @ApiModelProperty(value = "需求补发(t/件)") 116 @ApiModelProperty(value = "需求补发(t/件)")
92 @TypeMismatch(message = "需求补发(t/件)格式有误!") 117 @TypeMismatch(message = "需求补发(t/件)格式有误!")
93 - @IsNumberPrecision(message = "需求补发(t/件)最多允许4位小数!", value = 4)  
94 private BigDecimal supplementaryQuantity; 118 private BigDecimal supplementaryQuantity;
95 119
96 /** 120 /**
@@ -104,14 +128,12 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -104,14 +128,12 @@ public class CreateReplenishmentOrderLineVo implements BaseVo, Serializable {
104 * 备注 128 * 备注
105 */ 129 */
106 @ApiModelProperty(value = "备注") 130 @ApiModelProperty(value = "备注")
107 - @Length(message = "备注最多允许65,535个字符!")  
108 private String remarks; 131 private String remarks;
109 132
110 /** 133 /**
111 * 排序 134 * 排序
112 */ 135 */
113 @ApiModelProperty(value = "排序") 136 @ApiModelProperty(value = "排序")
114 - @TypeMismatch(message = "排序格式有误!")  
115 private Integer showOrder; 137 private Integer showOrder;
116 138
117 /** 139 /**
@@ -44,18 +44,54 @@ public class UpdateReplenishmentOrderLineVo implements BaseVo, Serializable { @@ -44,18 +44,54 @@ public class UpdateReplenishmentOrderLineVo implements BaseVo, Serializable {
44 private BigDecimal thickness; 44 private BigDecimal thickness;
45 45
46 /** 46 /**
  47 + * 厚度公差正
  48 + */
  49 + @ApiModelProperty("厚度公差正")
  50 + private BigDecimal thicknessTolPos;
  51 +
  52 + /**
  53 + * 厚度公差负
  54 + */
  55 + @ApiModelProperty("厚度公差负")
  56 + private BigDecimal thicknessTolNeg;
  57 +
  58 + /**
47 * 宽度 59 * 宽度
48 */ 60 */
49 @ApiModelProperty(value = "宽度") 61 @ApiModelProperty(value = "宽度")
50 private BigDecimal width; 62 private BigDecimal width;
51 63
52 /** 64 /**
  65 + * 宽度公差正
  66 + */
  67 + @ApiModelProperty("宽度公差正")
  68 + private BigDecimal widthTolPos;
  69 +
  70 + /**
  71 + * 宽度公差负
  72 + */
  73 + @ApiModelProperty("宽度公差负")
  74 + private BigDecimal widthTolNeg;
  75 +
  76 + /**
53 * 长度 77 * 长度
54 */ 78 */
55 @ApiModelProperty(value = "长度") 79 @ApiModelProperty(value = "长度")
56 private BigDecimal length; 80 private BigDecimal length;
57 81
58 /** 82 /**
  83 + * 长度公差正
  84 + */
  85 + @ApiModelProperty("长度公差正")
  86 + private BigDecimal lengthTolPos;
  87 +
  88 + /**
  89 + * 长度公差负
  90 + */
  91 + @ApiModelProperty("长度公差负")
  92 + private BigDecimal lengthTolNeg;
  93 +
  94 + /**
59 * 状态 95 * 状态
60 */ 96 */
61 @ApiModelProperty(value = "状态") 97 @ApiModelProperty(value = "状态")
@@ -8,8 +8,14 @@ @@ -8,8 +8,14 @@
8 <result column="purchase_order_line_id" property="purchaseOrderLineId"/> 8 <result column="purchase_order_line_id" property="purchaseOrderLineId"/>
9 <result column="brand" property="brand"/> 9 <result column="brand" property="brand"/>
10 <result column="thickness" property="thickness"/> 10 <result column="thickness" property="thickness"/>
  11 + <result column="thickness_tol_pos" property="thicknessTolPos"/>
  12 + <result column="thickness_tol_neg" property="thicknessTolNeg"/>
11 <result column="width" property="width"/> 13 <result column="width" property="width"/>
  14 + <result column="width_tol_pos" property="widthTolPos"/>
  15 + <result column="width_tol_neg" property="widthTolNeg"/>
12 <result column="length" property="length"/> 16 <result column="length" property="length"/>
  17 + <result column="length_tol_pos" property="lengthTolPos"/>
  18 + <result column="length_tol_neg" property="lengthTolNeg"/>
13 <result column="status" property="status"/> 19 <result column="status" property="status"/>
14 <result column="quantity" property="quantity"/> 20 <result column="quantity" property="quantity"/>
15 <result column="shipped_quantity" property="shippedQuantity"/> 21 <result column="shipped_quantity" property="shippedQuantity"/>
@@ -31,8 +37,14 @@ @@ -31,8 +37,14 @@
31 tb.purchase_order_line_id, 37 tb.purchase_order_line_id,
32 tb.brand, 38 tb.brand,
33 tb.thickness, 39 tb.thickness,
  40 + tb.thickness_tol_pos,
  41 + tb.thickness_tol_neg,
34 tb.width, 42 tb.width,
  43 + tb.width_tol_pos,
  44 + tb.width_tol_neg,
35 tb.length, 45 tb.length,
  46 + tb.length_tol_pos,
  47 + tb.length_tol_neg,
36 tb.status, 48 tb.status,
37 tb.quantity, 49 tb.quantity,
38 tb.shipped_quantity, 50 tb.shipped_quantity,