|
|
|
@ -54,6 +54,24 @@
|
|
|
|
|
<if test="param.warehouseName != null and param.warehouseName != ''"> |
|
|
|
|
and (Locate(#{param.warehouseName},ltcl.start_warehouse_name) > 0 or Locate(#{param.warehouseName},ltcl.end_warehouse_name) > 0) |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTimeStart != null "> |
|
|
|
|
and ltcl.create_time >= #{param.createTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTimeEnd != null "> |
|
|
|
|
and ltcl.create_time <= #{param.createTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startTime != null "> |
|
|
|
|
and ltcl.start_time >= #{param.startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.endTime != null "> |
|
|
|
|
and ltcl.start_time <= #{param.endTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTimeStart != null "> |
|
|
|
|
and ltcl.arrive_time >= #{param.arriveTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.arriveTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
group by ltcl.id,ltcl.cars_no, |
|
|
|
|
ltcl.plan_loading_number, |
|
|
|
|
ltcl.real_loading_number, |
|
|
|
@ -120,6 +138,24 @@
|
|
|
|
|
<if test="param.loadCarsNo != null and param.loadCarsNo != ''"> |
|
|
|
|
and Locate(#{param.loadCarsNo},ltcl.cars_no) > 0 |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTimeStart != null "> |
|
|
|
|
and ltcl.create_time >= #{param.createTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTimeEnd != null "> |
|
|
|
|
and ltcl.create_time <= #{param.createTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startTime != null "> |
|
|
|
|
and ltcl.start_time >= #{param.startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.endTime != null "> |
|
|
|
|
and ltcl.start_time <= #{param.endTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTimeStart != null "> |
|
|
|
|
and ltcl.arrive_time >= #{param.arriveTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.arriveTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
group by ltcl.id,ltcl.cars_no, |
|
|
|
|
ltcl.plan_loading_number, |
|
|
|
|
ltcl.real_loading_number, |
|
|
|
@ -397,12 +433,6 @@
|
|
|
|
|
<if test="param.type != null and param.type == 2"> |
|
|
|
|
and ltcl.load_status != '0' |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startTime != null"> |
|
|
|
|
and ltcl.create_time >= #{param.startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.endTime != null"> |
|
|
|
|
and ltcl.create_time <= #{param.endTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.loadCarsNo != null and param.loadCarsNo != ''"> |
|
|
|
|
and Locate(#{param.loadCarsNo},ltcl.cars_no) > 0 |
|
|
|
|
</if> |
|
|
|
@ -433,6 +463,37 @@
|
|
|
|
|
<if test="param.settlementPerson != null and param.settlementPerson != ''"> |
|
|
|
|
and Locate(#{param.settlementPerson},ltcl.settlement_person) > 0 |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<if test="param.createTimeStart != null "> |
|
|
|
|
and ltcl.create_time >= #{param.createTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.createTimeEnd != null "> |
|
|
|
|
and ltcl.create_time <= #{param.createTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.startTime != null "> |
|
|
|
|
and ltcl.start_time >= #{param.startTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.endTime != null "> |
|
|
|
|
and ltcl.start_time <= #{param.endTime} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTimeStart != null "> |
|
|
|
|
and ltcl.arrive_time >= #{param.arriveTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.arriveTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.arriveTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.carrierTimeStart != null "> |
|
|
|
|
and ltcl.arrive_time >= #{param.carrierTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.carrierTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.carrierTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.signTimeStart != null "> |
|
|
|
|
and ltcl.arrive_time >= #{param.signTimeStart} |
|
|
|
|
</if> |
|
|
|
|
<if test="param.signTimeEnd != null "> |
|
|
|
|
and ltcl.arrive_time <= #{param.signTimeEnd} |
|
|
|
|
</if> |
|
|
|
|
group by ltcl.id |
|
|
|
|
order by ltcl.create_time desc |
|
|
|
|
</select> |
|
|
|
|