Commit b3301cf1 authored by knight's avatar knight

客户集运服务设置

parent 1b833c35
...@@ -534,6 +534,14 @@ public class CustomerDO extends BaseDO { ...@@ -534,6 +534,14 @@ public class CustomerDO extends BaseDO {
@TableField(exist = false) @TableField(exist = false)
private CustomerFollowupBackVO followupBackVO; private CustomerFollowupBackVO followupBackVO;
/**
* 是否开启集运服务
*/
private Integer isConsService;
/**
* 集运服务运输方式偏好
*/
private Integer preferenceTransportType;
} }
...@@ -3720,6 +3720,10 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, ...@@ -3720,6 +3720,10 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
BigDecimal lightUnit = customerSetupUpdateReqVO.getLightUnit(); BigDecimal lightUnit = customerSetupUpdateReqVO.getLightUnit();
BigDecimal weightUnit = customerSetupUpdateReqVO.getWeightUnit(); BigDecimal weightUnit = customerSetupUpdateReqVO.getWeightUnit();
// 修改集运服务配置
Integer isConsService = customerSetupUpdateReqVO.getIsConsService();
Integer preferenceTransportType = customerSetupUpdateReqVO.getPreferenceTransportType();
if (arrivalConfirm != null) { if (arrivalConfirm != null) {
customerDO.setArrivalConfirm(arrivalConfirm); customerDO.setArrivalConfirm(arrivalConfirm);
} }
...@@ -3743,6 +3747,15 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper, ...@@ -3743,6 +3747,15 @@ public class CustomerServiceImpl extends AbstractService<CustomerMapper,
customerDO.setWeightUnit(weightUnit); customerDO.setWeightUnit(weightUnit);
} }
// 修改是否开启集运服务
if (isConsService != null) {
customerDO.setIsConsService(isConsService);
}
// 修改集运服务输运方式偏好
if (preferenceTransportType != null) {
customerDO.setPreferenceTransportType(preferenceTransportType);
}
customerMapper.updateById(customerDO); customerMapper.updateById(customerDO);
if (lightUnit == null) { if (lightUnit == null) {
......
...@@ -318,4 +318,8 @@ public class CustomerDetailRespVO extends CustomerBaseVO { ...@@ -318,4 +318,8 @@ public class CustomerDetailRespVO extends CustomerBaseVO {
//联系人信息 //联系人信息
private String contactstr; private String contactstr;
private Integer isConsService;
private Integer preferenceTransportType;
} }
...@@ -72,4 +72,17 @@ public class CustomerSetupUpdateReqVO { ...@@ -72,4 +72,17 @@ public class CustomerSetupUpdateReqVO {
@Valid @Valid
private List<CustomerLineUpdateReqVO> customerLines; private List<CustomerLineUpdateReqVO> customerLines;
/**
* 泡货标准(kg)
*/
@ApiModelProperty(value = "是否开启集运服务")
private Integer isConsService;
/**
* 泡货标准(kg)
*/
@ApiModelProperty(value = "集运服务运输方式偏好")
private Integer preferenceTransportType;
} }
...@@ -86,6 +86,8 @@ ...@@ -86,6 +86,8 @@
<result column="creator_name" jdbcType="VARCHAR" property="creatorName"/> <result column="creator_name" jdbcType="VARCHAR" property="creatorName"/>
<result column="updater_name" jdbcType="VARCHAR" property="updaterName"/> <result column="updater_name" jdbcType="VARCHAR" property="updaterName"/>
<result column="customer_service_name" jdbcType="VARCHAR" property="customerServiceName"/> <result column="customer_service_name" jdbcType="VARCHAR" property="customerServiceName"/>
<result column="is_cons_service" jdbcType="INTEGER" property="isConsService"/>
<result column="preference_transport_type" jdbcType="INTEGER" property="preferenceTransportType"/>
<collection property="productList" ofType="cn.iocoder.yudao.module.product.vo.product.ProductRespVO"> <collection property="productList" ofType="cn.iocoder.yudao.module.product.vo.product.ProductRespVO">
<id column="prod_id" jdbcType="BIGINT" property="id"/> <id column="prod_id" jdbcType="BIGINT" property="id"/>
<result column="prod_type_id" jdbcType="BIGINT" property="typeId"/> <result column="prod_type_id" jdbcType="BIGINT" property="typeId"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment