ソースを参照

修改待保养,超期保养查询的计划列表,按照维保负责人优先排列,待测试

wanghaicheng 5 年 前
コミット
6add8a98d4

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

@@ -177,6 +177,9 @@
 		<if test="request.endTime!=null">
 			AND <![CDATA[ mp.plan_date <= #{request.endTime}]]>
 		</if>
+		<if test="request.userId!=null">
+			order by IF(mp.worker_id = ${request.userId}, 0, 1)
+		</if>
 	</select>
 
 	<!--app端 保养任务统计 (0:待保养、-1:超期) -->