浏览代码

app端 保养任务统计 查询条件修改

wanghaicheng 5 年之前
父节点
当前提交
75b0e476ea

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

@@ -206,6 +206,7 @@
 			</when>
 			<otherwise/>
 		</choose>
+			WHERE mp.plan_date &lt; date_format(now(),'%Y-%m-%d') AND mp.work_date IS NULL
 		<if test="request.beginTime!=null">
 			AND <![CDATA[ mp.plan_date >= #{request.beginTime}]]>
 		</if>