|
|
|
@ -82,6 +82,42 @@
|
|
|
|
|
<if test="param.arriveTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.arriveTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverName != null and param.driverName != ''"> |
|
|
|
|
and ltcl.driver_name like CONCAT('%',#{param.driverName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverMobile != null and param.driverMobile != ''"> |
|
|
|
|
and ltcl.driver_mobile like CONCAT('%',#{param.driverMobile},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverMobile != null and param.driverMobile != ''"> |
|
|
|
|
and ltcl.driver_mobile like CONCAT('%',#{param.driverMobile},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverMobile != null and param.driverMobile != ''"> |
|
|
|
|
and ltcl.driver_mobile like CONCAT('%',#{param.driverMobile},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverMobile != null and param.driverMobile != ''"> |
|
|
|
|
and ltcl.driver_mobile like CONCAT('%',#{param.driverMobile},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.carNumber != null and param.carNumber != ''"> |
|
|
|
|
and ltcl.car_number like CONCAT('%',#{param.carNumber},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startWarehouseName != null and param.startWarehouseName != ''"> |
|
|
|
|
and ltcl.start_warehouse_name like CONCAT('%',#{param.startWarehouseName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.endWarehouseNames != null and param.endWarehouseNames != ''"> |
|
|
|
|
and ltcl.end_warehouse_names like CONCAT('%',#{param.endWarehouseNames},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createUserName != null and param.createUserName != ''"> |
|
|
|
|
and ltcl.create_user_name like CONCAT('%',#{param.createUserName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTime != null "> |
|
|
|
|
and DATE_FORMAT(ltcl.arrive_time,'%y%d%m') = DATE_FORMAT(#{param.arriveTime},'%y%d%m') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startTime != null "> |
|
|
|
|
and DATE_FORMAT(ltcl.start_time,'%y%d%m') = DATE_FORMAT(#{param.startTime},'%y%d%m') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTime != null "> |
|
|
|
|
and DATE_FORMAT(ltcl.create_time,'%y%d%m') = DATE_FORMAT(#{param.createTime},'%y%d%m') |
|
|
|
|
</if> |
|
|
|
|
group by ltcl.id,ltcl.cars_no, |
|
|
|
|
ltcl.plan_loading_number, |
|
|
|
|
ltcl.real_loading_number, |
|
|
|
@ -170,6 +206,36 @@
|
|
|
|
|
<if test="param.arriveTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.arriveTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverName != null and param.driverName != ''"> |
|
|
|
|
and ltcl.driver_name like CONCAT('%',#{param.driverName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.driverMobile != null and param.driverMobile != ''"> |
|
|
|
|
and ltcl.driver_mobile like CONCAT('%',#{param.driverMobile},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.carNumber != null and param.carNumber != ''"> |
|
|
|
|
and ltcl.driver_mobile like CONCAT('%',#{param.carNumber},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startWarehouseName != null and param.startWarehouseName != ''"> |
|
|
|
|
and ltcl.start_warehouse_name like CONCAT('%',#{param.startWarehouseName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.endWarehouseNames != null and param.endWarehouseNames != ''"> |
|
|
|
|
and ltcl.end_warehouse_names like CONCAT('%',#{param.endWarehouseNames},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createUserName != null and param.createUserName != ''"> |
|
|
|
|
and ltcl.create_user_name like CONCAT('%',#{param.createUserName},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.operator != null and param.operator != ''"> |
|
|
|
|
and ltcl.operator like CONCAT('%',#{param.operator},'%') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTime != null "> |
|
|
|
|
AND DATE_FORMAT(ltcl.arrive_time,'%y%d%m') = DATE_FORMAT(#{param.arriveTime},'%y%d%m') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startTime != null "> |
|
|
|
|
AND DATE_FORMAT(ltcl.start_time,'%y%d%m') = DATE_FORMAT(#{param.startTime},'%y%d%m') |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTime != null "> |
|
|
|
|
AND DATE_FORMAT(ltcl.create_time,'%y%d%m') = DATE_FORMAT(#{param.createTime},'%y%d%m') |
|
|
|
|
</if> |
|
|
|
|
group by ltcl.id,ltcl.cars_no, |
|
|
|
|
ltcl.plan_loading_number, |
|
|
|
|
ltcl.real_loading_number, |
|
|
|
|