Merge branch 'dev-cq-bug' of http://192.168.0.56:3000/bonus/devicesmgt into dev-cq-bug
This commit is contained in:
commit
8ab553727b
|
|
@ -865,8 +865,8 @@
|
|||
slt_agreement_info
|
||||
WHERE
|
||||
agreement_id = #{agreementId}
|
||||
AND
|
||||
type_id = #{typeId}
|
||||
AND type_id = #{typeId}
|
||||
AND status = 0
|
||||
<if test="maId != null">
|
||||
AND ma_id = #{maId}
|
||||
</if>
|
||||
|
|
@ -903,10 +903,13 @@
|
|||
ma_type mt
|
||||
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
|
||||
LEFT JOIN ma_machine mm ON mt.type_id = mm.type_id
|
||||
LEFT JOIN slt_agreement_info sai ON sai.ma_id = mm.ma_id
|
||||
LEFT JOIN sys_dic sd ON sd.id = mm.ma_status
|
||||
WHERE
|
||||
mm.ma_status = '16'
|
||||
AND mt.type_id = #{typeId}
|
||||
AND sai.`status` = 0
|
||||
AND sai.agreement_id = #{agreementId}
|
||||
<if test="maCode != null and maCode !=''">
|
||||
AND mm.ma_code like concat('%', #{maCode}, '%')
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue