소스 검색

待维保任务排序,新增一个排序条件。没有多条件,分页查询会查重复

wanghaicheng 4 년 전
부모
커밋
1b3fa62199
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lift-business-service/src/main/resources/mapper/maintenance/MaintenancePlanMapper.xml

+ 1 - 1
lift-business-service/src/main/resources/mapper/maintenance/MaintenancePlanMapper.xml

@@ -178,7 +178,7 @@
 			AND <![CDATA[ mp.plan_date <= #{request.endTime}]]>
 		</if>
 		<if test="request.userId!=null">
-			order by IF(mp.worker_id = ${request.userId}, 0, 1)
+			order by IF(mp.worker_id = ${request.userId}, 0, 1),mp.lift_id
 		</if>
 	</select>