|
|
@ -71,6 +71,7 @@ |
|
|
|
l_equipment_ledger aa |
|
|
|
l_equipment_ledger aa |
|
|
|
left join smt_work_permit c |
|
|
|
left join smt_work_permit c |
|
|
|
on aa.kks_encoding = c.kks_encoding |
|
|
|
on aa.kks_encoding = c.kks_encoding |
|
|
|
|
|
|
|
and c.check_status = '2' |
|
|
|
and c.is_deleted = '0' |
|
|
|
and c.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} |
|
|
@ -98,6 +99,7 @@ |
|
|
|
left join smt_operation_ticket d |
|
|
|
left join smt_operation_ticket d |
|
|
|
on aa.kks_encoding = d.kks_encoding |
|
|
|
on aa.kks_encoding = d.kks_encoding |
|
|
|
and d.is_deleted = '0' |
|
|
|
and d.is_deleted = '0' |
|
|
|
|
|
|
|
and d.review_status = '2' |
|
|
|
<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} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -166,6 +168,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 a.kks_encoding = #{entity.kksEncoding} |
|
|
|
and a.kks_encoding = #{entity.kksEncoding} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<!-- 通用查询映射结果 --> |
|
|
|
<!-- 通用查询映射结果 --> |
|
|
@ -206,7 +209,7 @@ |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getWorkticketListbyKksCd" resultMap="WorkticketResultMap"> |
|
|
|
<select id="getWorkticketListbyKksCd" resultMap="WorkticketResultMap"> |
|
|
|
select * from smt_work_permit where is_deleted = '0' |
|
|
|
select * from smt_work_permit where is_deleted = '0' and check_status = '2' |
|
|
|
and kks_encoding = #{entity.kksEncoding} |
|
|
|
and kks_encoding = #{entity.kksEncoding} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
@ -248,7 +251,7 @@ |
|
|
|
<result column="review_status" property="reviewStatus"/> |
|
|
|
<result column="review_status" property="reviewStatus"/> |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
<select id="getOperationListbyKksCd" resultMap="OperationResultMap"> |
|
|
|
<select id="getOperationListbyKksCd" resultMap="OperationResultMap"> |
|
|
|
select * from smt_operation_ticket where is_deleted = '0' |
|
|
|
select * from smt_operation_ticket where is_deleted = '0' and review_status = '2' |
|
|
|
and kks_encoding = #{entity.kksEncoding} |
|
|
|
and kks_encoding = #{entity.kksEncoding} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|