liupeng 4 년 전
부모
커밋
3391d67f1f
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 8
      code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapUserMapper.xml

+ 1 - 8
code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapUserMapper.xml

@@ -104,7 +104,7 @@
 		<if test="level == 4">
 			and fourthOrgId = #{departId}
 		</if>
-		order by sortNumber ASC
+		order by startDate desc, sortNumber ASC
 	</select>
 	
 	<select id="selectToBeConfirmedPrimaryList" resultType="SapUser">
@@ -131,13 +131,6 @@
 		<if test="name != null and name != ''">
 			and name like CONCAT(CONCAT('%', #{name}),'%')
 		</if>
-		<!-- 排序 -->
-		<if test="result == 'LEAVE'">
-			order by endDate desc
-		</if>
-		<if test="result != 'LEAVE'">
-			order by startDate desc
-		</if>
 	</select>
 	
 	<select id="selectIngorePrimaryList" resultType="SapUser">