|
@@ -16,10 +16,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isCustomerManager" column="is_customer_manager" />
|
|
|
<result property="postCode" column="post_code" />
|
|
|
<result property="postName" column="post_name" />
|
|
|
+ <result property="duty" column="duty" />
|
|
|
+ <result property="dutyName" column="duty_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSysUserExtVo">
|
|
|
- select user_id, org_code, sales_level, org_name, sap_employee_id, boss_employee_id, boss_name,customer_code,is_customer_manager,post_code,post_name,identity from sys_user_ext
|
|
|
+ select user_id, org_code, sales_level, org_name, sap_employee_id, boss_employee_id, boss_name,customer_code,is_customer_manager,post_code,post_name,identity,duty,duty_name from sys_user_ext
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSysUserExtList" parameterType="SysUserExt" resultMap="SysUserExtResult">
|
|
@@ -133,7 +135,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postCode != null and postCode != ''"> post_code ,</if>
|
|
|
<if test="postName != null and postName != ''"> post_name ,</if>
|
|
|
<if test="identity != null and identity != ''"> identity ,</if>
|
|
|
-
|
|
|
+ <if test="duty != null and duty != ''"> duty ,</if>
|
|
|
+ <if test="dutyName != null and dutyName != ''"> duty_name ,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
#{userId},
|
|
@@ -148,7 +151,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postCode != null and postCode != ''"> #{postCode},</if>
|
|
|
<if test="postName != null and postName != ''">#{postName}, </if>
|
|
|
<if test="identity != null and identity != ''">#{identity}, </if>
|
|
|
-
|
|
|
+ <if test="duty != null and duty != ''">#{duty}, </if>
|
|
|
+ <if test="dutyName != null and dutyName != ''">#{dutyName}, </if>
|
|
|
</trim>
|
|
|
ON DUPLICATE KEY UPDATE
|
|
|
<trim suffixOverrides=",">
|
|
@@ -163,7 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="postCode != null and postCode != ''"> post_code = #{postCode}, </if>
|
|
|
<if test="postName != null and postName != ''"> post_name = #{postName}, </if>
|
|
|
<if test="identity != null and identity != ''"> identity = #{identity}, </if>
|
|
|
-
|
|
|
+ <if test="duty != null and duty != ''"> duty = #{duty}, </if>
|
|
|
+ <if test="dutyName != null and dutyName != ''"> duty_name = #{dutyName}, </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|