|
@ -130,12 +130,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
<select id="selectSysCustomerList" parameterType="SysCustomerVo" resultMap="SysCustomerResult"> |
|
|
<select id="selectSysCustomerList" parameterType="SysCustomerVo" resultMap="SysCustomerResult"> |
|
|
select s.id,s.enterprise_code,s.enterprise_name,s.english_name,s.customer_abbreviation ,s.customer_purser ,s. |
|
|
select s.id,s.enterprise_code,s.enterprise_name,s.english_name,s.customer_abbreviation ,s.customer_purser ,s.export_sales, |
|
|
export_sales,s.customer_country,s.postal_code,s.customer_address,s.legal_representative,s. |
|
|
s.customer_country,s.postal_code,s.customer_address,s.legal_representative, |
|
|
established_time,s.invoicing_customer_name,s.invoicing_company_name,s.invoice_code,s.deposit_bank,s.bank_account,s. |
|
|
s.established_time,s.invoicing_customer_name,s.invoicing_company_name,s.invoice_code,s.deposit_bank,s.bank_account, |
|
|
common_currency,s.confirm_tax,s.tax_rate,s.integrity_rating,s.registered_capital,s.payment_terms,s.customs_code,s. |
|
|
s.common_currency,s.confirm_tax,s.tax_rate,s.integrity_rating,s.registered_capital,s.payment_terms,s.customs_code, |
|
|
customer_contact_id,s.customer_contact,s.customer_office,s.contact_number,s.customer_email,s.customer_fax,s. |
|
|
s.customer_contact_id,s.customer_contact,s.customer_office,s.contact_number,s.customer_email,s.customer_fax, |
|
|
delivery_address_id,s.delivery_customer_person,s.delivery_customer_phone,s.delivery_address, |
|
|
s.delivery_address_id,s.delivery_customer_person,s.delivery_customer_phone,s.delivery_address, |
|
|
s.delivery_customer_postal,s.delivery_customer_fax,s.business_members,s.identifying_people,s.first_add_time, |
|
|
s.delivery_customer_postal,s.delivery_customer_fax,s.business_members,s.identifying_people,s.first_add_time, |
|
|
s.update_info_time,s.audit_status,s.use_status,s.update_by,s.instance_id, s.instance_type,p.dict_value as instance_type_name, |
|
|
s.update_info_time,s.audit_status,s.use_status,s.update_by,s.instance_id, s.instance_type,p.dict_value as instance_type_name, |
|
|
s.submit_instance_id, s.cancel_instance_id, s.restore_instance_id, s.apply_title, s.apply_user, s.apply_time |
|
|
s.submit_instance_id, s.cancel_instance_id, s.restore_instance_id, s.apply_title, s.apply_user, s.apply_time |
|
@ -172,7 +172,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<include refid="selectSysCustomerVo"/> |
|
|
<include refid="selectSysCustomerVo"/> |
|
|
where enterprise_code = #{enterpriseCode} |
|
|
where enterprise_code = #{enterpriseCode} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
<select id="selectSysCustomerByCustomer" parameterType="SysCustomerVo" resultMap="SysCustomerResult"> |
|
|
|
|
|
<include refid="selectSysCustomerVo"/> |
|
|
|
|
|
where enterprise_name = #{enterpriseName} and customer_purser = #{customerPurser} |
|
|
|
|
|
</select> |
|
|
<insert id="insertSysCustomer" parameterType="SysCustomer" useGeneratedKeys="true" keyProperty="id"> |
|
|
<insert id="insertSysCustomer" parameterType="SysCustomer" useGeneratedKeys="true" keyProperty="id"> |
|
|
insert into sys_customer |
|
|
insert into sys_customer |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
@ -342,11 +345,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|
<delete id="deleteSysCustomerById" parameterType="Long"> |
|
|
<delete id="deleteSysCustomerById" parameterType="Long"> |
|
|
update set sys_customer set use_status = 1 where id = #{id} |
|
|
delete from sys_customer where id = #{id} |
|
|
</delete> |
|
|
</delete> |
|
|
|
|
|
|
|
|
<delete id="deleteSysCustomerByIds" parameterType="String"> |
|
|
<delete id="deleteSysCustomerByIds" parameterType="String"> |
|
|
update set sys_customer set use_status = 1 where id in |
|
|
delete from sys_customer where id in |
|
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
|
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
|
#{id} |
|
|
#{id} |
|
|
</foreach> |
|
|
</foreach> |
|
|