forked from integrated_whb/integrated_whb
如果是多个安全措施确认人,某个人打回,则其他确认人不显示打回作业
parent
563a0cbd3a
commit
56d43e7ebd
|
@ -42,7 +42,9 @@
|
|||
</insert>
|
||||
|
||||
<select id="checkWorkCount" parameterType="pd" resultType="pd" >
|
||||
select (select count(1) COUNT from bus_hotwork_sign sign where sign.SIGN_TIME is null and sign.SIGN_USER_ID = #{USER_ID}) HOTWORK_COUNT
|
||||
select (select count(1) COUNT from bus_hotwork_sign sign
|
||||
left join bus_hotwork a on a.HOTWORK_ID = sign.HOTWORK_ID
|
||||
where sign.SIGN_TIME is null and sign.SIGN_USER_ID = #{USER_ID} and a.STEP_ID != '-1') HOTWORK_COUNT
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
|
@ -476,6 +476,9 @@
|
|||
and sign.SIGN_TIME is null
|
||||
and sign.SIGN_USER_ID = #{pd.USER_ID}
|
||||
and step.STEP_NAME = #{pd.STEP_NAME}
|
||||
<if test="pd.measures != null and pd.measures != ''"><!-- 如果是多个安全措施确认人,某个人打回,则其他确认人不显示打回作业 -->
|
||||
and f.STEP_ID != -1
|
||||
</if>
|
||||
)
|
||||
</if>
|
||||
<if test="pd.STEP_ID != null and pd.STEP_ID != ''"><!-- 关键词检索 -->
|
||||
|
@ -511,8 +514,10 @@
|
|||
from
|
||||
bus_hotwork_sign sign
|
||||
left join bus_eightwork_step step on step.STEP_ID = sign.STEP_ID
|
||||
left join bus_hotwork a on a.HOTWORK_ID = sign.HOTWORK_ID
|
||||
where
|
||||
sign.SIGN_TIME is null
|
||||
and a.STEP_ID != '-1'
|
||||
and
|
||||
sign.SIGN_USER_ID = #{USER_ID}
|
||||
group by step.CODE
|
||||
|
|
|
@ -102,7 +102,14 @@
|
|||
|
||||
<select id="listAll" parameterType="pd" resultType="pd">
|
||||
select
|
||||
<include refid="Field"></include>,
|
||||
f.HOTWORK_SIGN_ID,
|
||||
f.HOTWORK_ID,
|
||||
f.CORPINFO_ID,
|
||||
f.SIGN_USER_ID,
|
||||
f.SIGN_PATH,
|
||||
f.SIGN_TIME,
|
||||
f.STEP_ID,
|
||||
IFNULL(f.DESCR,'无') as DESCR,
|
||||
step.CODE
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
|
|
Loading…
Reference in New Issue