Commit 549d411d authored by hezhen's avatar hezhen

Merge branch 'dev' of http://113.105.137.151:22280/youjj/cloud-platform into dev

parents 3c37a81d 765e1fa9
......@@ -51,6 +51,9 @@ public class VehicleBookRecordQueryVo extends PageParam {
*/
private Integer bookType;
//是否需要过滤数据,默认限制
private boolean flag = true;
private Integer companyId;
private List<Integer> companyIds;
......
......@@ -249,6 +249,7 @@ public class VehicleBookRecordBiz extends BaseBiz<VehicleBookRecordMapper, Vehic
Iterator<VehicleBookRecordVo> iterator = list.iterator();
while (iterator.hasNext()) {
VehicleBookRecordVo vehicleBookRecordVo = iterator.next();
//已出车记录
if (vehicleBookRecordVo.getVehicleDepartureLogVo() != null) {
iterator.remove();
}
......
......@@ -502,7 +502,16 @@
<if test="code != null">
and v3.code = #{code}
</if>
and v1.book_user != -2 and book_end_date &gt;= now()
<!--增加时间限制,未审核的小于当前时间的不显示-->
<if test="flag == true and status == 1">
and book_end_date &gt;= now()
</if>
<!--增加时间限制,已审核的未出车小于当前时间的不显示, 已出车的结束时间后两天的不显示-->
<if test="flag == true and (status == 2 || status == 3 || status == 5)">
and ((v4.id is not NULL and v1.book_end_date &gt;= DATE_ADD(NOW(),interval '2 00:00:00' DAY_SECOND)) or
(v4.id is NULL and v1.book_end_date &gt;= now()))
</if>
and v1.book_user != -2
</where>
group by v1.id
order by create_time DESC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment