|
@@ -14,10 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="bossName" column="boss_name" />
|
|
<result property="bossName" column="boss_name" />
|
|
|
<result property="customerCode" column="customer_code" />
|
|
<result property="customerCode" column="customer_code" />
|
|
|
<result property="isCustomerManager" column="is_customer_manager" />
|
|
<result property="isCustomerManager" column="is_customer_manager" />
|
|
|
|
|
+ <result property="postCode" column="post_code" />
|
|
|
|
|
+ <result property="postName" column="post_name" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectSysUserExtVo">
|
|
<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 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 from sys_user_ext
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectSysUserExtList" parameterType="SysUserExt" resultMap="SysUserExtResult">
|
|
<select id="selectSysUserExtList" parameterType="SysUserExt" resultMap="SysUserExtResult">
|
|
@@ -31,6 +33,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''"> and boss_name like concat('%', #{bossName}, '%')</if>
|
|
<if test="bossName != null and bossName != ''"> and boss_name like concat('%', #{bossName}, '%')</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
|
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> and is_customer_manager = #{isCustomerManager}</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> and is_customer_manager = #{isCustomerManager}</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> and post_code like concat('%', #{postCode}, '%')</if>
|
|
|
|
|
+ <if test="postName != null and postName != ''"> and post_name like concat('%', #{postName}, '%')</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -51,6 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''">boss_name,</if>
|
|
<if test="bossName != null and bossName != ''">boss_name,</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> customer_code,</if>
|
|
<if test="customerCode != null and customerCode != ''"> customer_code,</if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> is_customer_manager,</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> is_customer_manager,</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> post_code ,</if>
|
|
|
|
|
+ <if test="postName != null and postName != ''"> post_name ,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userId != null ">#{userId},</if>
|
|
<if test="userId != null ">#{userId},</if>
|
|
@@ -62,6 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''">#{bossName},</if>
|
|
<if test="bossName != null and bossName != ''">#{bossName},</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> #{customerCode},</if>
|
|
<if test="customerCode != null and customerCode != ''"> #{customerCode},</if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> #{isCustomerManager},</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> #{isCustomerManager},</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> #{postCode}, </if>
|
|
|
|
|
+ <if test="postName != null and postName != ''"> #{postName},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -76,6 +84,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''">boss_name = #{bossName},</if>
|
|
<if test="bossName != null and bossName != ''">boss_name = #{bossName},</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> customer_code =#{customerCode}, </if>
|
|
<if test="customerCode != null and customerCode != ''"> customer_code =#{customerCode}, </if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> is_customer_manager = #{isCustomerManager},</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> is_customer_manager = #{isCustomerManager},</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> post_code = #{postCode},</if>
|
|
|
|
|
+ <if test="postName != null and postName != ''"> post_name = #{postName}, </if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where user_id = #{userId}
|
|
where user_id = #{userId}
|
|
|
</update>
|
|
</update>
|
|
@@ -105,6 +115,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''">boss_name,</if>
|
|
<if test="bossName != null and bossName != ''">boss_name,</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> customer_code,</if>
|
|
<if test="customerCode != null and customerCode != ''"> customer_code,</if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> is_customer_manager,</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> is_customer_manager,</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> post_code ,</if>
|
|
|
|
|
+ <if test="postName != null and postName != ''"> post_name ,</if>
|
|
|
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -117,6 +129,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''">#{bossName},</if>
|
|
<if test="bossName != null and bossName != ''">#{bossName},</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> #{customerCode},</if>
|
|
<if test="customerCode != null and customerCode != ''"> #{customerCode},</if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> #{isCustomerManager},</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''"> #{isCustomerManager},</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> #{postCode},</if>
|
|
|
|
|
+ <if test="postName != null and postName != ''">#{postName}, </if>
|
|
|
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
ON DUPLICATE KEY UPDATE
|
|
ON DUPLICATE KEY UPDATE
|
|
@@ -129,6 +143,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="bossName != null and bossName != ''">boss_name = #{bossName},</if>
|
|
<if test="bossName != null and bossName != ''">boss_name = #{bossName},</if>
|
|
|
<if test="customerCode != null and customerCode != ''"> customer_code=#{customerCode},</if>
|
|
<if test="customerCode != null and customerCode != ''"> customer_code=#{customerCode},</if>
|
|
|
<if test="isCustomerManager != null and isCustomerManager != ''">is_customer_manager= #{isCustomerManager},</if>
|
|
<if test="isCustomerManager != null and isCustomerManager != ''">is_customer_manager= #{isCustomerManager},</if>
|
|
|
|
|
+ <if test="postCode != null and postCode != ''"> post_code = #{postCode}, </if>
|
|
|
|
|
+ <if test="postName != null and postName != ''"> post_name = #{postName}, </if>
|
|
|
|
|
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|