|
|
|
@ -206,11 +206,14 @@ |
|
|
|
WHERE inspection_no = #{inspectionNo} and item_no = #{itemNo} and site = #{site} and bu_no = #{buNo} |
|
|
|
</delete> |
|
|
|
<delete id="deleteOperationForResource"> |
|
|
|
delete from operation_resource where id = #{id} |
|
|
|
delete from operation_resource where bu=#{bu} and operation = #{operation} |
|
|
|
</delete> |
|
|
|
<delete id="deleteUserDefaultOperation"> |
|
|
|
delete from user_default_operation where id = #{id} |
|
|
|
</delete> |
|
|
|
<delete id="deleteOperationForResource2"> |
|
|
|
delete from operation_resource where id = #{id} |
|
|
|
</delete> |
|
|
|
|
|
|
|
<insert id="savePQCSubDetailed"> |
|
|
|
INSERT INTO qc_pqc_sub_detail_record |
|
|
|
@ -385,12 +388,8 @@ |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
<select id="queryOperationForResourceList" resultType="com.xujie.sys.modules.pms.data.OperationForResource"> |
|
|
|
SELECT a.*, |
|
|
|
dbo.get_bu_desc(a.site, a.bu_no) as buDesc, |
|
|
|
b.resource_desc, |
|
|
|
qro.description as operationDesc |
|
|
|
SELECT a.bu,dbo.get_bu_desc(a.site, a.bu_no) as buDesc,a.operation,qro.description as operationDesc |
|
|
|
FROM operation_resource a |
|
|
|
left join resource b on a.resource = b.resource_id |
|
|
|
left join qc_pqc_record_operation qro on a.operation = qro.code |
|
|
|
<where> |
|
|
|
<if test="params.bu != null and params.bu != ''"> |
|
|
|
@ -403,6 +402,7 @@ |
|
|
|
and resource like '%'+ #{params.resource}+'%' |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
group by a.bu,a.operation,dbo.get_bu_desc(a.site, a.bu_no),qro.description |
|
|
|
</select> |
|
|
|
<select id="queryResourceList" resultType="com.xujie.sys.modules.pms.data.ResourceData"> |
|
|
|
select * from resource |
|
|
|
@ -449,6 +449,13 @@ |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
<select id="getResourceDataOperationForResource" |
|
|
|
resultType="com.xujie.sys.modules.pms.data.OperationForResource"> |
|
|
|
select a.*,b.resource_desc |
|
|
|
from operation_resource a |
|
|
|
left join resource b on a.resource = b.resource_id |
|
|
|
where bu = #{bu} and operation = #{operation} |
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
|
|
|
|
|
|
|
|
|