فهرست منبع

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

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>