|
@@ -166,12 +166,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
- <select id="selectAreaList" resultType="com.ruoyi.system.domain.vo.BmDeptPlanVo">
|
|
|
|
- select a.project_million_num, a.project_city_money, a.project_pro_num, d.dept_name
|
|
|
|
|
|
+ <select id="selectAreaList" resultMap="BmDeptPlanAreaResult">
|
|
|
|
+ select ifnull(a.project_million_num,0) as project_million_num, ifnull(a.project_city_money,0) as project_city_money, ifnull(a.project_pro_num,0) as project_pro_num, d.dept_name
|
|
from bm_dept_plan_area a
|
|
from bm_dept_plan_area a
|
|
- left join sys_dept d on a.sys_dept_id = d.dept_id
|
|
|
|
- where
|
|
|
|
- a.is_del = '0'
|
|
|
|
- and a.year = #{year}
|
|
|
|
|
|
+ right join sys_dept d on a.sys_dept_id = d.dept_id and a.is_del = '0' and a.year = #{year}
|
|
</select>
|
|
</select>
|
|
-</mapper>
|
|
|
|
|
|
+ </mapper>
|