|
|
@ -47,7 +47,7 @@ |
|
|
|
WHERE ldl.package_id = #{id} and lddl.loading_time is null |
|
|
|
WHERE ldl.package_id = #{id} and lddl.loading_time is null |
|
|
|
</update> |
|
|
|
</update> |
|
|
|
<update id="updateloadingTimeById"> |
|
|
|
<update id="updateloadingTimeById"> |
|
|
|
UPDATE logpm_distribution_delivery_list lddl SET lddl.loading_time = now(),lddl.delivery_state =2 WHERE lddl.id = #{id} and lddl.loading_time is null |
|
|
|
UPDATE logpm_distribution_delivery_list lddl SET lddl.loading_time = now(),lddl.delivery_status =2 WHERE lddl.id = #{id} and lddl.loading_time is null |
|
|
|
</update> |
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -135,8 +135,8 @@ |
|
|
|
<if test="param.type != null and param.type!=''"> |
|
|
|
<if test="param.type != null and param.type!=''"> |
|
|
|
and lddl.type = #{param.type} |
|
|
|
and lddl.type = #{param.type} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.state != null and param.state!=''"> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
and lddl.state = #{param.state} |
|
|
|
and lddl.delivery_status = #{param.deliveryStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
and date_format(lddl.create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
|
and date_format(lddl.create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
@ -233,7 +233,7 @@ |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
and lddl.delivery_status = #{param.state} |
|
|
|
and lddl.delivery_status = #{param.deliveryStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
@ -269,8 +269,8 @@ |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="param.state != null and param.state!=''"> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
and lddl.state = #{param.state} |
|
|
|
and lddl.delivery_status = #{param.deliveryStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
@ -308,8 +308,8 @@ |
|
|
|
<if test="param.distributionCompany != null and param.distributionCompany!=''"> |
|
|
|
<if test="param.distributionCompany != null and param.distributionCompany!=''"> |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.state != null and param.state!=''"> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
and lddl.state = #{param.state} |
|
|
|
and lddl.delivery_status = #{param.deliveryStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
@ -557,7 +557,7 @@ |
|
|
|
lddl.driver_name driverName, |
|
|
|
lddl.driver_name driverName, |
|
|
|
lddl.vehicle_id vehicleId, |
|
|
|
lddl.vehicle_id vehicleId, |
|
|
|
lddl.driver_id driverId, |
|
|
|
lddl.driver_id driverId, |
|
|
|
lddl.state state, |
|
|
|
lddl.delivery_status deliveryStatus, |
|
|
|
lddl.preparation_time preparationTime, |
|
|
|
lddl.preparation_time preparationTime, |
|
|
|
-- lddl.distribution_company distributionCompany, |
|
|
|
-- lddl.distribution_company distributionCompany, |
|
|
|
-- lddl.state state, |
|
|
|
-- lddl.state state, |
|
|
@ -657,7 +657,7 @@ |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
and lddl.distribution_company = #{param.distributionCompany} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
<if test="param.deliveryStatus != null and param.deliveryStatus!=''"> |
|
|
|
and lddl.delivery_status = #{param.state} |
|
|
|
and lddl.delivery_status = #{param.deliveryStatus} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
<if test="param.createTime_query!=null and param.createTime_query!=''"> |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
|
and lddl.date_format(create_time,'%y%m%d%') = date_format(#{param.createTime_query},'%y%m%d%') |
|
|
|