Commit 48696d3c3944b03e35f4292c89d5b4124619913f

Authored by 房远帅
1 parent 2dc0022c

楚江ERP:规格变更-新增变更说明字段

@@ -231,6 +231,12 @@ public class OrderChangeRecordBo extends BaseBo<OrderInfoChangeRecord> { @@ -231,6 +231,12 @@ public class OrderChangeRecordBo extends BaseBo<OrderInfoChangeRecord> {
231 private Boolean output; 231 private Boolean output;
232 232
233 /** 233 /**
  234 + * 变更说明
  235 + */
  236 + @ApiModelProperty("变更说明")
  237 + private String changeDescription;
  238 +
  239 + /**
234 * 变更前规格数据 240 * 变更前规格数据
235 */ 241 */
236 @ApiModelProperty("变更前规格数据") 242 @ApiModelProperty("变更前规格数据")
@@ -211,6 +211,11 @@ public class OrderInfoChangeRecord extends BaseEntity implements BaseDto { @@ -211,6 +211,11 @@ public class OrderInfoChangeRecord extends BaseEntity implements BaseDto {
211 private Boolean output; 211 private Boolean output;
212 212
213 /** 213 /**
  214 + * 变更说明
  215 + */
  216 + private String changeDescription;
  217 +
  218 + /**
214 * 变更前规格数据 219 * 变更前规格数据
215 * 非持久化字段 220 * 非持久化字段
216 */ 221 */
@@ -244,6 +244,9 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR @@ -244,6 +244,9 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR
244 if (vo.getPackagingFee() != null) { 244 if (vo.getPackagingFee() != null) {
245 data.setPackagingFee(vo.getPackagingFee()); 245 data.setPackagingFee(vo.getPackagingFee());
246 } 246 }
  247 + if (vo.getChangeDescription() != null) {
  248 + data.setChangeDescription(vo.getChangeDescription());
  249 + }
247 getBaseMapper().insert(data); 250 getBaseMapper().insert(data);
248 // 处理订货单订货单物料行 251 // 处理订货单订货单物料行
249 List<CreatePurchaseOrderLineVo> orderLineVoList = vo.getOrderSpecList(); 252 List<CreatePurchaseOrderLineVo> orderLineVoList = vo.getOrderSpecList();
@@ -299,6 +302,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR @@ -299,6 +302,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR
299 .set(OrderInfoChangeRecord::getCustomerCreditId, StringUtil.isBlank(vo.getCustomerCreditId()) ? null : vo.getCustomerCreditId()) 302 .set(OrderInfoChangeRecord::getCustomerCreditId, StringUtil.isBlank(vo.getCustomerCreditId()) ? null : vo.getCustomerCreditId())
300 .set(OrderInfoChangeRecord::getTotalQuantity, vo.getTotalQuantity() == null ? null : vo.getTotalQuantity()) 303 .set(OrderInfoChangeRecord::getTotalQuantity, vo.getTotalQuantity() == null ? null : vo.getTotalQuantity())
301 .set(OrderInfoChangeRecord::getPackagingFee, vo.getPackagingFee() == null ? null : vo.getPackagingFee()) 304 .set(OrderInfoChangeRecord::getPackagingFee, vo.getPackagingFee() == null ? null : vo.getPackagingFee())
  305 + .set(OrderInfoChangeRecord::getChangeDescription, vo.getChangeDescription() == null ? null : vo.getChangeDescription())
302 .eq(OrderInfoChangeRecord::getId, vo.getId()); 306 .eq(OrderInfoChangeRecord::getId, vo.getId());
303 getBaseMapper().update(updateWrapper); 307 getBaseMapper().update(updateWrapper);
304 // 获取厂房数据 308 // 获取厂房数据
@@ -195,4 +195,10 @@ public class CreateOrderChangeRecordVo implements BaseVo, Serializable { @@ -195,4 +195,10 @@ public class CreateOrderChangeRecordVo implements BaseVo, Serializable {
195 @ApiModelProperty(value = "规格变更记录", required = true) 195 @ApiModelProperty(value = "规格变更记录", required = true)
196 @NotEmpty(message = "请输入规格变更记录!") 196 @NotEmpty(message = "请输入规格变更记录!")
197 List<CreatePurchaseOrderLineVo> orderSpecList; 197 List<CreatePurchaseOrderLineVo> orderSpecList;
  198 +
  199 + /**
  200 + * 变更说明
  201 + */
  202 + @ApiModelProperty("变更说明")
  203 + private String changeDescription;
198 } 204 }
@@ -202,4 +202,10 @@ public class UpdateOrderChangeRecordVo implements BaseVo, Serializable { @@ -202,4 +202,10 @@ public class UpdateOrderChangeRecordVo implements BaseVo, Serializable {
202 @ApiModelProperty(value = "规格变更记录", required = true) 202 @ApiModelProperty(value = "规格变更记录", required = true)
203 @NotEmpty(message = "请输入规格变更记录!") 203 @NotEmpty(message = "请输入规格变更记录!")
204 List<CreatePurchaseOrderLineVo> orderSpecList; 204 List<CreatePurchaseOrderLineVo> orderSpecList;
  205 +
  206 + /**
  207 + * 变更说明
  208 + */
  209 + @ApiModelProperty("变更说明")
  210 + private String changeDescription;
205 } 211 }
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 <result column="customer_credit_id" property="customerCreditId"/> 34 <result column="customer_credit_id" property="customerCreditId"/>
35 <result column="customer_tier" property="customerTier"/> 35 <result column="customer_tier" property="customerTier"/>
36 <result column="total_quantity" property="totalQuantity"/> 36 <result column="total_quantity" property="totalQuantity"/>
  37 + <result column="change_description" property="changeDescription"/>
37 <result column="create_by_id" property="createById"/> 38 <result column="create_by_id" property="createById"/>
38 <result column="create_by" property="createBy"/> 39 <result column="create_by" property="createBy"/>
39 <result column="update_by_id" property="updateById"/> 40 <result column="update_by_id" property="updateById"/>
@@ -76,6 +77,7 @@ @@ -76,6 +77,7 @@
76 cc.company_suggested_category AS customer_tier, 77 cc.company_suggested_category AS customer_tier,
77 tb.total_quantity, 78 tb.total_quantity,
78 tb.output, 79 tb.output,
  80 + tb.change_description,
79 tb.create_by_id, 81 tb.create_by_id,
80 tb.create_by, 82 tb.create_by,
81 tb.update_by_id, 83 tb.update_by_id,