Commit 7531fe84 by 张富康

feat(order): 添加订单预录入功能并完善客户建档接口

- 在GoodsOrderController中添加@RestController注解和POST映射
- 修改batchPreliminaryOrder方法支持园区店信息和销售人员信息传递
- 新增客户建档相关接口包括详情、提交、分页查询等功能
- 更新PreliminaryOrderBatchRequest请求参数支持更多字段
- 在LifeCustomerCoupon中添加预录员信息字段
- 完善优惠券服务中的预录员信息处理逻辑
1 parent fb5a4b87
...@@ -6,7 +6,12 @@ import lombok.Data; ...@@ -6,7 +6,12 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder; import lombok.experimental.SuperBuilder;
import javax.persistence.*; import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
...@@ -175,4 +180,12 @@ public class LifeCustomerCoupon implements Serializable { ...@@ -175,4 +180,12 @@ public class LifeCustomerCoupon implements Serializable {
@Column(name = "remark") @Column(name = "remark")
private String remark; private String remark;
@ApiModelProperty(name="advanceUserId", notes = "预录员id", dataType = "int", example = "10034")
@Transient
private String advanceUserId;
@ApiModelProperty(name="advanceUserName", notes = "预录员用户名", dataType = "string", example = "小王")
@Transient
private String advanceUserName;
} }
\ No newline at end of file \ No newline at end of file
...@@ -3829,6 +3829,9 @@ public class GoodsOrderService { ...@@ -3829,6 +3829,9 @@ public class GoodsOrderService {
addCoupon.setCustomerName(record.getCustomer().getCustomerName()); addCoupon.setCustomerName(record.getCustomer().getCustomerName());
addCoupon.setUserId(SmartCarLifeConstants.DEFAULT_USER_ID); addCoupon.setUserId(SmartCarLifeConstants.DEFAULT_USER_ID);
addCoupon.setEmployeeName(SmartCarLifeConstants.DEFAULT_EMPLOYEE_NAME); addCoupon.setEmployeeName(SmartCarLifeConstants.DEFAULT_EMPLOYEE_NAME);
addCoupon.setAdvanceUserName(record.getAdvanceUserName());
addCoupon.setAdvanceUserId(record.getAdvanceUserId());
addCoupon.setEmployeeName(SmartCarLifeConstants.DEFAULT_EMPLOYEE_NAME);
addCoupon.setSource(CustomerCouponSource.ORDER_SEND.getValue()); addCoupon.setSource(CustomerCouponSource.ORDER_SEND.getValue());
addCoupon.setCreatedBy(record.getUpdatedBy()); addCoupon.setCreatedBy(record.getUpdatedBy());
addCoupon.setStandNo(record.getCustomer().getStandNo()); addCoupon.setStandNo(record.getCustomer().getStandNo());
......
...@@ -325,6 +325,8 @@ public class LifeCustomerCouponService { ...@@ -325,6 +325,8 @@ public class LifeCustomerCouponService {
customerInfo.setMerchantName(lifeMerchantCouponDTO.getMerchantName()); customerInfo.setMerchantName(lifeMerchantCouponDTO.getMerchantName());
customerInfo.setYqMerchantId(lifeMerchantCouponDTO.getYqMerchantId()); customerInfo.setYqMerchantId(lifeMerchantCouponDTO.getYqMerchantId());
customerInfo.setYqMerchantName(lifeMerchantCouponDTO.getYqMerchantName()); customerInfo.setYqMerchantName(lifeMerchantCouponDTO.getYqMerchantName());
customerInfo.setAdvanceUserId(lifeMerchantCouponDTO.getAdvanceUserId());
customerInfo.setAdvanceUserName(lifeMerchantCouponDTO.getAdvanceUserName());
customerInfo.setEmployeeName(record.getEmployeeName()); customerInfo.setEmployeeName(record.getEmployeeName());
customerInfo.setUserId(record.getUserId()); customerInfo.setUserId(record.getUserId());
customerInfo.setCustomerPhone(record.getCustomerPhone()); customerInfo.setCustomerPhone(record.getCustomerPhone());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!