@ -59,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property= "applyTitle" column= "apply_title" />
<result property= "applyTitle" column= "apply_title" />
<result property= "applyUser" column= "apply_user" />
<result property= "applyUser" column= "apply_user" />
<result property= "applyTime" column= "apply_time" />
<result property= "applyTime" column= "apply_time" />
<result property= "createTime" column= "create_time" />
</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 ,
@ -68,7 +69,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,audit_status,use_status,update_by,
identifying_people,first_add_time,update_info_time, create_time , audit_status,use_status,update_by,
apply_user,apply_time from sys_customer
apply_user,apply_time from sys_customer
</sql>
</sql>
@ -80,7 +81,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,audit_status,use_status from
identifying_people,first_add_time,update_info_time,audit_status,use_status, create_time from
sys_customer
sys_customer
<where >
<where >
and use_status = '1' and use_status = '1'
and use_status = '1' and use_status = '1'
@ -95,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
s.customer_fax,s.delivery_address_id,s.delivery_customer_person,s.delivery_customer_phone,s.delivery_address,
s.customer_fax,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 ,s.create_time
from sys_customer as s
from sys_customer as s
left join(
left join(
select dict_value,dict_label from sys_dict_data where dict_type = 'processType'
select dict_value,dict_label from sys_dict_data where dict_type = 'processType'
@ -114,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''" > and s.first_add_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<if test= "params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''" > and s.first_add_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<if test= "customerSign != null and customerSign != ''" > and s.customer_sign = #{customerSign}</if>
<if test= "customerSign != null and customerSign != ''" > and s.customer_sign = #{customerSign}</if>
</where>
</where>
order by s.first_add _time desc
order by s.create _time desc
</select>
</select>
<select id= "selectSysCustomerWithComplaintNotice" resultMap= "SysCustomerResult" >
<select id= "selectSysCustomerWithComplaintNotice" resultMap= "SysCustomerResult" >
@ -201,6 +202,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "applyTime != null" > apply_time,</if>
<if test= "applyTime != null" > apply_time,</if>
<if test= "useStatus != null" > use_status,</if>
<if test= "useStatus != null" > use_status,</if>
<if test= "auditStatus != null" > audit_status,</if>
<if test= "auditStatus != null" > audit_status,</if>
<if test= "createTime != null" > create_time</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>
@ -252,6 +254,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "applyTime != null" > #{applyTime},</if>
<if test= "applyTime != null" > #{applyTime},</if>
<if test= "useStatus != null" > #{useStatus},</if>
<if test= "useStatus != null" > #{useStatus},</if>
<if test= "auditStatus != null" > #{auditStatus},</if>
<if test= "auditStatus != null" > #{auditStatus},</if>
<if test= "createTime != null" > #{createTime} </if>
</trim>
</trim>
</insert>
</insert>