|
@ -62,6 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="rmbFlag" column="rmb_flag" /> |
|
|
<result property="rmbFlag" column="rmb_flag" /> |
|
|
<result property="usdFlag" column="usd_flag" /> |
|
|
<result property="usdFlag" column="usd_flag" /> |
|
|
|
|
|
<result property="cancelRemark" column="cancel_remark" /> |
|
|
|
|
|
|
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="selectSysCustomerVo"> |
|
|
<sql id="selectSysCustomerVo"> |
|
|
select id,enterprise_code,enterprise_name,english_name,customer_abbreviation ,customer_purser , |
|
|
select id,enterprise_code,enterprise_name,english_name,customer_abbreviation ,customer_purser , |
|
@ -71,7 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
customer_contact_id,customer_contact,customer_office,contact_number,customer_email,customer_fax, |
|
|
customer_contact_id,customer_contact,customer_office,contact_number,customer_email,customer_fax, |
|
|
delivery_address_id,delivery_customer_person,delivery_customer_phone, |
|
|
delivery_address_id,delivery_customer_person,delivery_customer_phone, |
|
|
delivery_address,delivery_customer_postal,delivery_customer_fax,business_members, |
|
|
delivery_address,delivery_customer_postal,delivery_customer_fax,business_members, |
|
|
identifying_people,first_add_time,update_info_time, create_time ,audit_status,use_status,update_by,rmb_flag,usd_flag, |
|
|
identifying_people,first_add_time,update_info_time, create_time ,audit_status,use_status,update_by,rmb_flag,usd_flag, cancel_remark, |
|
|
apply_user,apply_time , instance_id , instance_type from sys_customer |
|
|
apply_user,apply_time , instance_id , instance_type from sys_customer |
|
|
|
|
|
|
|
|
</sql> |
|
|
</sql> |
|
@ -220,6 +222,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="createTime != null">create_time,</if> |
|
|
<if test="rmbFlag != null">rmb_flag,</if> |
|
|
<if test="rmbFlag != null">rmb_flag,</if> |
|
|
<if test="usdFlag != null">usd_flag</if> |
|
|
<if test="usdFlag != null">usd_flag</if> |
|
|
|
|
|
<if test="cancelRemark != null">cancel_remark,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="enterpriseCode!=null and enterpriseCode != ''">#{enterpriseCode},</if> |
|
|
<if test="enterpriseCode!=null and enterpriseCode != ''">#{enterpriseCode},</if> |
|
@ -274,6 +277,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="createTime != null"> #{createTime},</if> |
|
|
<if test="createTime != null"> #{createTime},</if> |
|
|
<if test="rmbFlag != null"> #{rmbFlag},</if> |
|
|
<if test="rmbFlag != null"> #{rmbFlag},</if> |
|
|
<if test="usdFlag != null"> #{usdFlag} </if> |
|
|
<if test="usdFlag != null"> #{usdFlag} </if> |
|
|
|
|
|
<if test="cancelRemark != null">#{cancelRemark},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
@ -323,6 +327,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="customerRemarks!=null">customer_remarks = #{customerRemarks},</if> |
|
|
<if test="customerRemarks!=null">customer_remarks = #{customerRemarks},</if> |
|
|
<if test="customerSign!=null">customer_sign = #{customer_sign},</if> |
|
|
<if test="customerSign!=null">customer_sign = #{customer_sign},</if> |
|
|
<if test="updateBy!=null">update_by = #{updateBy},</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> |
|
|
<if test="instanceId != null">instance_id = #{instanceId},</if> |
|
|
<if test="instanceType != null">instance_type = #{instanceType},</if> |
|
|
<if test="instanceType != null">instance_type = #{instanceType},</if> |
|
|
<if test="submitInstanceId != null">submit_instance_id = #{submitInstanceId},</if> |
|
|
<if test="submitInstanceId != null">submit_instance_id = #{submitInstanceId},</if> |
|
@ -332,7 +337,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="applyUser != null">apply_user = #{applyUser},</if> |
|
|
<if test="applyUser != null">apply_user = #{applyUser},</if> |
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
<if test="applyTime != null">apply_time = #{applyTime},</if> |
|
|
<if test="rmbFlag != null">rmb_flag = #{rmbFlag},</if> |
|
|
<if test="rmbFlag != null">rmb_flag = #{rmbFlag},</if> |
|
|
<if test="usdFlag != null">usd_flag = #{usdFlag} </if> |
|
|
<if test="usdFlag != null">usd_flag = #{usdFlag},</if> |
|
|
|
|
|
<if test="cancelRemark != null">cancel_remark = #{cancelRemark},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
@ -346,6 +352,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
#{id} |
|
|
#{id} |
|
|
</foreach> |
|
|
</foreach> |
|
|
</delete> |
|
|
</delete> |
|
|
|
|
|
|
|
|
|
|
|
<update id="cancelSysCustomerByObject" parameterType="SysCustomer"> |
|
|
|
|
|
update sys_customer set del_flag = '1', use_status = '2',cancel_remark = #{cancelRemark} |
|
|
|
|
|
where enterprise_code = #{enterpriseCode} |
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<update id="cancelSysCustomerById" parameterType="Long"> |
|
|
<update id="cancelSysCustomerById" parameterType="Long"> |
|
|
update sys_customer set del_flag = '1' where id = #{id} |
|
|
update sys_customer set del_flag = '1' where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|