Commit 73520bf8 authored by 赵啸非's avatar 赵啸非

添加材料数量统计

parent 6e6227af
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
SELECT SELECT
count( 1 ) count( 1 )
FROM FROM
mortals_sys_sheet_matter AS a mortals_xhx_sheet_matter AS a
LEFT JOIN ( SELECT matterNo FROM mortals_xhx_matter WHERE siteId = #{condition.siteId} ) AS b ON a.matterNo = b.matterNo LEFT JOIN ( SELECT matterNo FROM mortals_xhx_matter WHERE siteId = #{condition.siteId} ) AS b ON a.matterNo = b.matterNo
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where b.matterNo IS NULL and where b.matterNo IS NULL and
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
select select
<include refid="_columns"/> <include refid="_columns"/>
FROM FROM
mortals_sys_sheet_matter AS a mortals_xhx_sheet_matter AS a
LEFT JOIN ( SELECT matterNo FROM mortals_xhx_matter WHERE siteId = #{condition.siteId} ) AS b ON a.matterNo = b.matterNo LEFT JOIN ( SELECT matterNo FROM mortals_xhx_matter WHERE siteId = #{condition.siteId} ) AS b ON a.matterNo = b.matterNo
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where b.matterNo IS NULL and where b.matterNo IS NULL and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment