|
|
@ -389,17 +389,17 @@ |
|
|
order by A.RequisitionNo desc |
|
|
order by A.RequisitionNo desc |
|
|
</select> |
|
|
</select> |
|
|
<select id="getReviewToolCount" resultType="java.lang.Integer"> |
|
|
<select id="getReviewToolCount" resultType="java.lang.Integer"> |
|
|
select count(1) |
|
|
|
|
|
from PRDetail A |
|
|
|
|
|
left join PRHeader B on A.RequisitionNo = B.RequisitionNo and A.Site = B.Site |
|
|
|
|
|
left join business_role_list brl on brl.role_item_no = B.OrderType |
|
|
|
|
|
left join view_authorization_hist_user C on A.RequisitionNo = C.order_ref1 and A.site = C.site |
|
|
|
|
|
and C.can_auth_flag = 'Y' |
|
|
|
|
|
left join PartFamily D on B.OrderRef1 = D.FamilyID and B.Site = D.Site |
|
|
|
|
|
left join Supplier s on s.SupplierID = A.SupplierID |
|
|
|
|
|
where C.auth_user_id = #{strUserId} |
|
|
|
|
|
and B.Status != '已关闭' |
|
|
|
|
|
and A.Site = #{site,jdbcType=VARCHAR} |
|
|
|
|
|
|
|
|
select 1 |
|
|
|
|
|
<!-- from PRDetail A--> |
|
|
|
|
|
<!-- left join PRHeader B on A.RequisitionNo = B.RequisitionNo and A.Site = B.Site--> |
|
|
|
|
|
<!-- left join business_role_list brl on brl.role_item_no = B.OrderType--> |
|
|
|
|
|
<!-- left join view_authorization_hist_user C on A.RequisitionNo = C.order_ref1 and A.site = C.site--> |
|
|
|
|
|
<!-- and C.can_auth_flag = 'Y'--> |
|
|
|
|
|
<!-- left join PartFamily D on B.OrderRef1 = D.FamilyID and B.Site = D.Site--> |
|
|
|
|
|
<!-- left join Supplier s on s.SupplierID = A.SupplierID--> |
|
|
|
|
|
<!-- where C.auth_user_id = #{strUserId}--> |
|
|
|
|
|
<!-- and B.Status != '已关闭'--> |
|
|
|
|
|
<!-- and A.Site = #{site,jdbcType=VARCHAR}--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
</select> |
|
|
|