Commit a6931b63 by zhangyuan

fix

parent a844b8a5
...@@ -389,7 +389,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -389,7 +389,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectLineChart" parameterType="java.util.List" resultType="java.util.Map"> <select id="selectLineChart" parameterType="java.util.List" resultType="java.util.Map">
SELECT SELECT
d.dict_label name, d.dict_label name,
count( off.id ) value IFNULL(count( off.id ),0) value
FROM FROM
sys_dict_data d sys_dict_data d
LEFT JOIN orhon_fgqy off ON off.dept_id = d.dict_value LEFT JOIN orhon_fgqy off ON off.dept_id = d.dict_value
...@@ -406,7 +406,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -406,7 +406,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBarChart" parameterType="java.util.List" resultType="java.util.Map"> <select id="selectBarChart" parameterType="java.util.List" resultType="java.util.Map">
SELECT SELECT
d.dict_label name, d.dict_label name,
count( oz.id ) value IFNULL(count( oz.id ),0) value
FROM FROM
sys_dict_data d sys_dict_data d
LEFT JOIN orhon_shzz oz ON oz.dept_id = d.dict_value LEFT JOIN orhon_shzz oz ON oz.dept_id = d.dict_value
...@@ -423,8 +423,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -423,8 +423,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectCurveChart" parameterType="java.util.List" resultType="java.util.Map"> <select id="selectCurveChart" parameterType="java.util.List" resultType="java.util.Map">
SELECT SELECT
d.dict_label name, d.dict_label name,
(select count(0) from orhon_shzz where dept_id = d.dict_value) shzzValue, IFNULL((select count(0) from orhon_shzz where dept_id = d.dict_value),0) shzzValue,
(select count(0) from orhon_fgqy where dept_id = d.dict_value) fgqyValue IFNULL((select count(0) from orhon_fgqy where dept_id = d.dict_value),0) fgqyValue
FROM FROM
sys_dict_data d sys_dict_data d
WHERE WHERE
...@@ -440,7 +440,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -440,7 +440,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectPieChart" parameterType="java.util.List" resultType="java.util.Map"> <select id="selectPieChart" parameterType="java.util.List" resultType="java.util.Map">
SELECT SELECT
dict_label NAME, dict_label NAME,
( SELECT count( 0 ) FROM `orhon_fgqy` WHERE dzzlx = dd.dict_value GROUP BY dzzlx ) IFNULL(( SELECT count( 0 ) FROM `orhon_fgqy` WHERE dzzlx = dd.dict_value GROUP BY dzzlx ),0)
VALUE VALUE
FROM FROM
sys_dict_data dd sys_dict_data dd
......
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