|
@@ -11,6 +11,8 @@
|
|
|
<result property="name" column="name"/>
|
|
|
<result property="certNo" column="cert_no"/>
|
|
|
<result property="registrationNumber" column="registration_number"/>
|
|
|
+ <result property="customsEnterpriseCode" column="customs_enterprise_code"/>
|
|
|
+ <result property="taxNo" column="tax_no"/>
|
|
|
<result property="establishDate" column="establish_date"/>
|
|
|
<result property="registerCapital" column="register_capital"/>
|
|
|
<result property="registerAddress" column="register_address"/>
|
|
@@ -31,7 +33,8 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
- `id`, `customer_id`, `enterprise_type`, `country_code`, `name`, `cert_no`, `registration_number`,`customer_identifier_no`,
|
|
|
+ `id`, `customer_id`, `enterprise_type`, `country_code`, `name`, `cert_no`, `registration_number`,
|
|
|
+ `customs_enterprise_code`,`tax_no`, `customer_identifier_no`,
|
|
|
`establish_date`, `register_capital`, `register_address`, `business_address`,`same_register_and_business_address`,
|
|
|
`certification_status`, `export_type`, `business_product`, `proxy_district_code`, `authorization_file`,
|
|
|
`change_record_id`, `remark`, `deleted`, `create_by`, `update_by`, `gmt_create`, `gmt_modified`
|
|
@@ -85,9 +88,10 @@
|
|
|
</if>
|
|
|
<if test="managerName != null and managerName != ''">
|
|
|
AND (
|
|
|
- assign.rc_user_name = CONCAT('%',#{managerName},'%') OR assign.bd_user_name = CONCAT('%',#{managerName},'%')
|
|
|
- OR to_pinyin(assign.rc_user_name) LIKE CONCAT( '%',#{managerName},'%') OR to_pinyin(assign.bd_user_name) LIKE CONCAT( '%',#{managerName},'%')
|
|
|
- )
|
|
|
+ assign.rc_user_name = CONCAT('%',#{managerName},'%') OR assign.bd_user_name = CONCAT('%',#{managerName},'%')
|
|
|
+ OR to_pinyin(assign.rc_user_name) LIKE CONCAT( '%',#{managerName},'%') OR to_pinyin(assign.bd_user_name)
|
|
|
+ LIKE CONCAT( '%',#{managerName},'%')
|
|
|
+ )
|
|
|
</if>
|
|
|
<if test="managerId != null">
|
|
|
AND (assign.rc_user_id = #{managerId} OR assign.bd_user_id = #{managerId} )
|
|
@@ -103,8 +107,8 @@
|
|
|
|
|
|
<select id="findByCustomerInfo" resultMap="enterpriseBaseInfoResultMap">
|
|
|
SELECT e.id AS enterprise_id, e.customer_id, e.customer_identifier_no,
|
|
|
- e.enterprise_type, e.name AS enterprise_name, e.cert_no,
|
|
|
- e.establish_date, e.certification_status, e.business_product
|
|
|
+ e.enterprise_type, e.name AS enterprise_name, e.cert_no,
|
|
|
+ e.establish_date, e.certification_status, e.business_product
|
|
|
FROM enterprise e
|
|
|
<if test="customerInfo != null and customerInfo != ''">
|
|
|
AND e.name LIKE CONCAT ('%',#{customerInfo},'%') OR e.customer_identifier_no = #{customerInfo}
|