|
@@ -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,startDate,endDate)
|
|
|
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},#{startDate},#{endDate})
|
|
|
</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},
|
|
|
+ startDate=#{startDate},endDate=#{endDate}
|
|
|
where userId=#{userId}
|
|
|
</update>
|
|
|
|
|
@@ -103,7 +104,7 @@
|
|
|
<if test="level == 4">
|
|
|
and fourthOrgId = #{departId}
|
|
|
</if>
|
|
|
- order by sortNumber ASC
|
|
|
+ order by startDate desc, createDate desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectToBeConfirmedPrimaryList" resultType="SapUser">
|
|
@@ -115,7 +116,7 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
and name like CONCAT(CONCAT('%', #{name}),'%')
|
|
|
</if>
|
|
|
- order by sortNumber ASC
|
|
|
+ order by startDate desc, createDate desc
|
|
|
<if test="pageCurrent != null and pageCurrent != ''">
|
|
|
limit ${pageCurrent},${pageSize}
|
|
|
</if>
|
|
@@ -130,7 +131,6 @@
|
|
|
<if test="name != null and name != ''">
|
|
|
and name like CONCAT(CONCAT('%', #{name}),'%')
|
|
|
</if>
|
|
|
- order by sortNumber ASC
|
|
|
</select>
|
|
|
|
|
|
<select id="selectIngorePrimaryList" resultType="SapUser">
|