|
|
@ -20,14 +20,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="commonEmail" column="common_email" /> |
|
|
|
<result property="alternateEmail" column="alternate_email" /> |
|
|
|
<result property="customerRemarks" column="customer_remarks" /> |
|
|
|
<result property="customerRemarks" column="customer_remarks" /> |
|
|
|
<result property="customerRemarks" column="customer_remarks" /> |
|
|
|
<result property="firstAddTime" column="first_add_time" /> |
|
|
|
<result property="updateInfoTime" column="update_info_time" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSysContactsVo"> |
|
|
|
select contactid, enterprise_code, enterprise_name, customer_name, customer_position, customer_birthday, office_telephone, home_phone, cell_phone, customer_fax, standby_telephone_one, standby_telephone_two, common_email, alternate_email, customer_remarks, first_add_time, update_info_time from sys_contacts |
|
|
|
select contactid, enterprise_code, enterprise_name, customer_name, customer_position, customer_birthday, office_telephone, home_phone, cell_phone, customer_fax, standby_telephone_one, standby_telephone_two, common_email, alternate_email, customer_remarks, create_by, create_time, update_by, update_time from sys_contacts |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSysContactsList" parameterType="SysContacts" resultMap="SysContactsResult"> |
|
|
@ -68,7 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="commonEmail != null">common_email,</if> |
|
|
|
<if test="alternateEmail != null">alternate_email,</if> |
|
|
|
<if test="customerRemarks != null">customer_remarks,</if> |
|
|
|
first_add_time, |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="enterpriseCode != null">#{enterpriseCode},</if> |
|
|
@ -85,7 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="commonEmail != null">#{commonEmail},</if> |
|
|
|
<if test="alternateEmail != null">#{alternateEmail},</if> |
|
|
|
<if test="customerRemarks != null">#{customerRemarks},</if> |
|
|
|
NOW(), |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
@ -106,7 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="commonEmail != null">common_email = #{commonEmail},</if> |
|
|
|
<if test="alternateEmail != null">alternate_email = #{alternateEmail},</if> |
|
|
|
<if test="customerRemarks != null">customer_remarks = #{customerRemarks},</if> |
|
|
|
update_info_time = CONCAT_WS(',',NOW(),update_info_time), |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
</trim> |
|
|
|
where contactid = #{contactid} |
|
|
|
</update> |
|
|
|