|
|
|
@ -26,7 +26,20 @@ |
|
|
|
|
t1.updater, |
|
|
|
|
t1.deleted |
|
|
|
|
FROM traceability_logistics t1 |
|
|
|
|
WHERE t1.deleted = 0 |
|
|
|
|
WHERE 1=1 |
|
|
|
|
and t1.deleted = 0 |
|
|
|
|
<if test="reqVO.logisticsName !=null and reqVO.logisticsName !=''"> |
|
|
|
|
and t1.logistics_name like concat('%', #{reqVO.logisticsName}, '%') |
|
|
|
|
</if> |
|
|
|
|
<if test="reqVO.logisticsLeader !=null and reqVO.logisticsLeader!=''"> |
|
|
|
|
and t1.logistics_leader like concat('%', #{reqVO.logisticsLeader}, '%') |
|
|
|
|
</if> |
|
|
|
|
<if test="reqVO.logisticsPhone !=null and reqVO.logisticsPhone!=''"> |
|
|
|
|
and t1.logistics_phone like concat('%', #{reqVO.logisticsPhone}, '%') |
|
|
|
|
</if> |
|
|
|
|
<if test="reqVO.logisticsStatus !=null and reqVO.logisticsStatus!=''"> |
|
|
|
|
and t1.logistics_status =#{reqVO.logisticsStatus} |
|
|
|
|
</if> |
|
|
|
|
order by t1.create_time desc |
|
|
|
|
</select> |
|
|
|
|
<select id="getAllDeliveryCompany" resultType="java.util.Map"> |
|
|
|
@ -35,6 +48,9 @@ |
|
|
|
|
<select id="getDataByLogisticsName" resultType="java.lang.Integer"> |
|
|
|
|
select count(*) found traceability_logistics |
|
|
|
|
where logistics_name=#{logisticsName} and deleted =0 |
|
|
|
|
<if test="id !=0"> |
|
|
|
|
and id !=#{id} |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
</mapper> |