|
|
@ -42,9 +42,18 @@ |
|
|
|
where ltcl.is_deleted = 0 |
|
|
|
where ltcl.is_deleted = 0 |
|
|
|
and ltcl.load_type != '4' |
|
|
|
and ltcl.load_type != '4' |
|
|
|
and ltcl.load_status != '100' |
|
|
|
and ltcl.load_status != '100' |
|
|
|
|
|
|
|
<if test="param.warehouseIds != null and param.warehouseIds.size() > 0" > |
|
|
|
|
|
|
|
and ltcl.start_warehouse_id in |
|
|
|
|
|
|
|
<foreach collection="param.warehouseIds" item="item" open="(" separator="," close=")"> |
|
|
|
|
|
|
|
#{item} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="param.warehouseId != null" > |
|
|
|
<if test="param.warehouseId != null" > |
|
|
|
and ltcl.start_warehouse_id = #{param.warehouseId} |
|
|
|
and ltcl.start_warehouse_id = #{param.warehouseId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.endWarehouseId != null" > |
|
|
|
|
|
|
|
and Locate(#{param.endWarehouseId},ltcl.end_warehouse_ids) > 0 |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="param.loadCarsNo != null and param.loadCarsNo != ''"> |
|
|
|
<if test="param.loadCarsNo != null and param.loadCarsNo != ''"> |
|
|
|
and ltcl.cars_no = #{param.loadCarsNo} |
|
|
|
and ltcl.cars_no = #{param.loadCarsNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -132,9 +141,18 @@ |
|
|
|
where ltcl.is_deleted = 0 |
|
|
|
where ltcl.is_deleted = 0 |
|
|
|
and ltcl.load_status != '100' |
|
|
|
and ltcl.load_status != '100' |
|
|
|
and ltcl.load_type != '4' |
|
|
|
and ltcl.load_type != '4' |
|
|
|
|
|
|
|
<if test="param.warehouseIds != null and param.warehouseIds.size() > 0" > |
|
|
|
|
|
|
|
and ltcl.start_warehouse_id in |
|
|
|
|
|
|
|
<foreach collection="param.warehouseIds" item="item" open="(" separator="," close=")"> |
|
|
|
|
|
|
|
#{item} |
|
|
|
|
|
|
|
</foreach> |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="param.warehouseId != null" > |
|
|
|
<if test="param.warehouseId != null" > |
|
|
|
and ltcl.end_warehouse_ids like concat('%',#{param.warehouseId},'%') |
|
|
|
and ltcl.end_warehouse_ids like concat('%',#{param.warehouseId},'%') |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.endWarehouseId != null" > |
|
|
|
|
|
|
|
and Locate(#{param.endWarehouseId},ltcl.end_warehouse_ids) > 0 |
|
|
|
|
|
|
|
</if> |
|
|
|
<if test="param.warehouseName != null and param.warehouseName != ''"> |
|
|
|
<if test="param.warehouseName != null and param.warehouseName != ''"> |
|
|
|
and (Locate(#{param.warehouseName},ltcl.start_warehouse_name) > 0 or Locate(#{param.warehouseName},ltcl.end_warehouse_names) > 0) |
|
|
|
and (Locate(#{param.warehouseName},ltcl.start_warehouse_name) > 0 or Locate(#{param.warehouseName},ltcl.end_warehouse_names) > 0) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|