|
|
@ -45,6 +45,7 @@ |
|
|
|
l_equipment_ledger aa |
|
|
|
l_equipment_ledger aa |
|
|
|
left join smt_work_order b |
|
|
|
left join smt_work_order b |
|
|
|
on aa.id = b.equipment_ledger_id |
|
|
|
on aa.id = b.equipment_ledger_id |
|
|
|
|
|
|
|
and b.approval_status = '2' |
|
|
|
and b.is_deleted = '0' |
|
|
|
and b.is_deleted = '0' |
|
|
|
<if test="entity.station!= null and entity.station!= ''"> |
|
|
|
<if test="entity.station!= null and entity.station!= ''"> |
|
|
|
and aa.station = #{entity.station} |
|
|
|
and aa.station = #{entity.station} |
|
|
@ -168,7 +169,7 @@ |
|
|
|
a.id = b.equipment_ledger_id |
|
|
|
a.id = b.equipment_ledger_id |
|
|
|
and a.is_deleted = '0' |
|
|
|
and a.is_deleted = '0' |
|
|
|
and b.is_deleted = '0' |
|
|
|
and b.is_deleted = '0' |
|
|
|
|
|
|
|
and b.approval_status = '2' |
|
|
|
and a.kks_encoding = #{entity.kksEncoding} |
|
|
|
and a.kks_encoding = #{entity.kksEncoding} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<!-- 通用查询映射结果 --> |
|
|
|
<!-- 通用查询映射结果 --> |
|
|
|