|
@@ -6,12 +6,12 @@
|
|
|
firstOrgId,secondOrgId,thirdOrgId,fourthOrgId,
|
|
|
firstOrgName,secondOrgName,thirdOrgName,fourthOrgName,
|
|
|
position,formatPosition,mobile,formatMobile,businessPhone,formatBusinessPhone,gender,
|
|
|
- email,formatEmail,isPrimary,delFlag,createDate,result,sortNumber)
|
|
|
+ email,formatEmail,isPrimary,delFlag,createDate,result,sortNumber,startData,endData)
|
|
|
values (#{userId},#{personId},#{username},#{name},
|
|
|
#{firstOrgId},#{secondOrgId},#{thirdOrgId},#{fourthOrgId},
|
|
|
#{firstOrgName},#{secondOrgName},#{thirdOrgName},#{fourthOrgName},
|
|
|
#{position},#{formatPosition},#{mobile},#{formatMobile},#{businessPhone},#{formatBusinessPhone},#{gender},
|
|
|
- #{email},#{formatEmail},#{isPrimary},#{delFlag},#{createDate},#{result},#{sortNumber})
|
|
|
+ #{email},#{formatEmail},#{isPrimary},#{delFlag},#{createDate},#{result},#{sortNumber},#{startData},#{endData})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateOne">
|
|
@@ -25,7 +25,8 @@
|
|
|
mobile=#{mobile},formatMobile=#{formatMobile},
|
|
|
businessPhone=#{businessPhone},formatBusinessPhone=#{formatBusinessPhone},
|
|
|
gender=#{gender},email=#{email},formatEmail=#{formatEmail},
|
|
|
- isPrimary=#{isPrimary},result=#{result},delFlag=#{delFlag}
|
|
|
+ isPrimary=#{isPrimary},result=#{result},delFlag=#{delFlag},
|
|
|
+ startData=#{startData},endData=#{endData}
|
|
|
where userId=#{userId}
|
|
|
</update>
|
|
|
|
|
@@ -130,7 +131,13 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
and name like CONCAT(CONCAT('%', #{name}),'%')
|
|
|
</if>
|
|
|
- order by sortNumber ASC
|
|
|
+ <!-- 排序 -->
|
|
|
+ <if test="result == 'LEAVE'">
|
|
|
+ order by endDate desc
|
|
|
+ </if>
|
|
|
+ <if test="result != 'LEAVE'">
|
|
|
+ order by startDate desc
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectIngorePrimaryList" resultType="SapUser">
|