|
@@ -25,6 +25,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
</trim>
|
|
|
</select>
|
|
|
+ <select id="getNotMoreCarrier" resultMap="BizCarrierResult">
|
|
|
+ select t1.* from biz_carrier t1 left join biz_carrier_category t2 on t1.category_id = t2.id where t1.deleted = 0 and t2.deleted = 0 and t2.is_allow_more = 0
|
|
|
+ and t1.id IN
|
|
|
+ <foreach item="id" index="index" collection="hasAddCarrierIds" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
|
|
|
<select id="getListNotInspectionList" resultMap="BizCarrierResult" parameterType="cn.ezhizao.project.business.domain.BizCarrier">
|
|
|
select t1.id,t1.category_id,t1.code,t1.qc_code,t1.remark,t1.tenant_id,t1.is_allow_more,t1.is_inspection,COALESCE((SELECT t2.is_abandoned FROM biz_carrier_reject t2 WHERE t1.id = t2.carrier_id ORDER BY t2.create_time DESC LIMIT 1), 0) AS is_abandoned
|
|
@@ -81,7 +88,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="notInUse == 1">
|
|
|
AND not exists (select 1 from biz_daywork_carrier t where t.is_changed = 0 and t.carrier_id = t1.id and t.daywork_id != #{dayworkId})
|
|
|
</if>
|
|
|
-
|
|
|
+ <if test="hasAddCarrierIds != null and hasAddCarrierIds.size()>0">
|
|
|
+ and t1.id NOT IN
|
|
|
+ <foreach item="id" index="index" collection="hasAddCarrierIds" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</select>
|
|
|
|