|
@@ -236,15 +236,17 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryContract" resultType="com.sckw.contract.model.vo.res.LogisticsEntDto">
|
|
<select id="queryContract" resultType="com.sckw.contract.model.vo.res.LogisticsEntDto">
|
|
|
- SELECT a.id contractId,
|
|
|
|
|
- a.contract_no
|
|
|
|
|
|
|
+ SELECT a.id contractId,
|
|
|
|
|
+ a.contract_no,
|
|
|
|
|
+ a.ent_id,
|
|
|
|
|
+ a.name contractName
|
|
|
FROM kwc_contract_logistics a
|
|
FROM kwc_contract_logistics a
|
|
|
LEFT JOIN kwc_contract_logistics_unit b ON a.id = b.contract_id and b.del_flag = 0 and b.unit_type = 3
|
|
LEFT JOIN kwc_contract_logistics_unit b ON a.id = b.contract_id and b.del_flag = 0 and b.unit_type = 3
|
|
|
<where>
|
|
<where>
|
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
|
and a.status = 0
|
|
and a.status = 0
|
|
|
- and a.transport_biz_type = 2
|
|
|
|
|
- and b.ent_id = #{entId}
|
|
|
|
|
|
|
+ and a.transport_biz_type = 2
|
|
|
|
|
+ and b.ent_id = #{entId}
|
|
|
<if test="keyword != null and keyword != ''">
|
|
<if test="keyword != null and keyword != ''">
|
|
|
and (a.contract_no like concat('%', #{keyword}, '%')
|
|
and (a.contract_no like concat('%', #{keyword}, '%')
|
|
|
or a.name like concat('%', #{keyword}, '%'))
|
|
or a.name like concat('%', #{keyword}, '%'))
|