Commit d50744be authored by litengwei's avatar litengwei

代码提交

parent 3da3c3df
......@@ -119,6 +119,7 @@
u.amos_org_id amosOrgId,
u.biz_org_code bizOrgCode,
u.parent_id parentId,
(select bizOrgName from cb_org_usr where sequence_nbr = u.parent_id) as companyName,
g.*
FROM
cb_org_usr u
......@@ -1314,7 +1315,7 @@ LEFT JOIN (
LIMIT #{map.pageNum}, #{map.pageSize}
</select>
<select id="selectStaticFire" resultType="java.util.Map">
SELECT ( count( postName )/( SELECT count(*) AS count FROM cb_org_usr a WHERE is_delete = 0 AND biz_org_type = 'PERSON'
SELECT count( postName ) as num,( count( postName )/( SELECT count(*) AS count FROM cb_org_usr a WHERE is_delete = 0 AND biz_org_type = 'PERSON'
AND biz_org_code like concat(#{bizOrgCode}, '%')
))* 100 AS percent, postName
FROM
......@@ -1365,7 +1366,7 @@ LEFT JOIN (
postName
</select>
<select id="selectStaticYw" resultType="java.util.Map">
SELECT ( count( postName )/( SELECT count(*) AS count FROM cb_org_usr a WHERE is_delete = 0 AND biz_org_type = 'PERSON'
SELECT count( postName ) as num, (count( postName )/( SELECT count(*) AS count FROM cb_org_usr a WHERE is_delete = 0 AND biz_org_type = 'PERSON'
AND biz_org_code like concat(#{bizOrgCode}, '%')
))* 100 AS percent, postName
FROM
......
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