Commit 55b2c02f authored by tangwei's avatar tangwei

修改bug

parent 5deddf69
......@@ -669,16 +669,12 @@ GROUP BY
</select>
<select id="amosIdExist" resultType="int">
select sum(num) from (
-- SELECT count(*) AS num FROM cb_firefighters WHERE amos_user_id = #{amosId} and is_delete = 0
--
-- union all
SELECT count(*) AS num FROM cb_org_usr WHERE amos_org_id = #{amosId} and is_delete = 0
-- union all SELECT count(*) AS num FROM cb_maintenance_company WHERE amos_org_id = #{amosId} and is_delete = 0
) AS total;
SELECT count(*) AS num FROM cb_org_usr WHERE amos_org_id = #{amosId} and is_delete = 0;
</select>
<select id="amosIdExistTeam" resultType="int">
......
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