Browse Source

[fix] 销售管理

修改客户信息新增接口:新增客户信息的时候默认给客户标识设置一个值
修改客户信息的修改接口:修改客户标识错误的字段问题
dev
liuxiaoxu 3 months ago
parent
commit
9a4eed6384
  1. 4
      ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerServiceImpl.java
  2. 4
      ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml

4
ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysCustomerServiceImpl.java

@ -181,6 +181,10 @@ public class SysCustomerServiceImpl implements ISysCustomerService
if(currency.contains("2")){
sysCustomer.setUsdFlag("1");
}
//默认为仅报价
sysCustomer.setCustomerSign("1");
//添加联系人
// sysContacts.setCustomerName(sysCustomer.getCustomerContact());
// sysContacts.setCellPhone(sysCustomer.getContactNumber());

4
ruoyi-admin/src/main/resources/mapper/system/SysCustomerMapper.xml

@ -223,6 +223,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="rmbFlag != null">rmb_flag,</if>
<if test="usdFlag != null">usd_flag</if>
<if test="cancelRemark != null">cancel_remark,</if>
<if test="customerSign != null">customer_sign,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseCode!=null and enterpriseCode != ''">#{enterpriseCode},</if>
@ -278,6 +279,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="rmbFlag != null"> #{rmbFlag},</if>
<if test="usdFlag != null"> #{usdFlag} </if>
<if test="cancelRemark != null">#{cancelRemark},</if>
<if test="customerSign != null">#{customerSign}</if>
</trim>
</insert>
@ -325,7 +327,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="useStatus!=null" >use_status = #{useStatus},</if>
<if test="identifyingPeople!=null">identifying_people = #{identifyingPeople},</if>
<if test="customerRemarks!=null">customer_remarks = #{customerRemarks},</if>
<if test="customerSign!=null">customer_sign = #{customer_sign},</if>
<if test="customerSign!=null">customer_sign = #{customerSign},</if>
<if test="updateBy!=null">update_by = #{updateBy},</if>
<if test="updateTime!=null">update_time = #{updateTime},</if>
<if test="instanceId != null">instance_id = #{instanceId},</if>

Loading…
Cancel
Save