Compare commits
No commits in common. "5094bf136888cbac7456db0987284c667cfdf001" and "2d4595fd958762f49b1b736769c4887736a8d1b2" have entirely different histories.
5094bf1368
...
2d4595fd95
|
@ -813,7 +813,6 @@ public class CensusController {
|
||||||
add(new LinkedHashMap<String, Object>() {{
|
add(new LinkedHashMap<String, Object>() {{
|
||||||
put("tip", "区市部门");
|
put("tip", "区市部门");
|
||||||
put("level", "county");
|
put("level", "county");
|
||||||
put("dept_count", sysDeptService.countByType(3));
|
|
||||||
put("apply_sum", county_apply_sum);
|
put("apply_sum", county_apply_sum);
|
||||||
put("resource_sum", county_resource_sum);
|
put("resource_sum", county_resource_sum);
|
||||||
put("resource_weekly_change", finalCounty_resource_weekly_change);
|
put("resource_weekly_change", finalCounty_resource_weekly_change);
|
||||||
|
@ -824,7 +823,6 @@ public class CensusController {
|
||||||
add(new LinkedHashMap<String, Object>() {{
|
add(new LinkedHashMap<String, Object>() {{
|
||||||
put("tip", "市级部门");
|
put("tip", "市级部门");
|
||||||
put("level", "municipal");
|
put("level", "municipal");
|
||||||
put("dept_count", sysDeptService.countByType(2));
|
|
||||||
put("apply_sum", municipal_apply_sum);
|
put("apply_sum", municipal_apply_sum);
|
||||||
put("resource_sum", municipal_resource_sum);
|
put("resource_sum", municipal_resource_sum);
|
||||||
put("resource_weekly_change", finalMunicipal_resource_weekly_change);
|
put("resource_weekly_change", finalMunicipal_resource_weekly_change);
|
||||||
|
|
|
@ -46,13 +46,4 @@ public interface SysDeptDao extends BaseDao<SysDeptEntity> {
|
||||||
|
|
||||||
List<Long> getIdFromDistrict(@Param("district") Long district);
|
List<Long> getIdFromDistrict(@Param("district") Long district);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 统计部门类型数量
|
|
||||||
*
|
|
||||||
* @param type
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
Long countByType(@Param("type") Integer type);
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -42,6 +42,4 @@ public interface SysDeptService extends BaseService<SysDeptEntity> {
|
||||||
*/
|
*/
|
||||||
List<Long> getIdFromDistrict(Long district);
|
List<Long> getIdFromDistrict(Long district);
|
||||||
|
|
||||||
Long countByType(Integer type);
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -158,11 +158,6 @@ public class SysDeptServiceImpl extends BaseServiceImpl<SysDeptDao, SysDeptEntit
|
||||||
return baseDao.getIdFromDistrict(district);
|
return baseDao.getIdFromDistrict(district);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Long countByType(Integer type) {
|
|
||||||
return baseDao.countByType(type);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有上级部门ID
|
* 获取所有上级部门ID
|
||||||
|
|
|
@ -51,13 +51,5 @@
|
||||||
<select id="getIdFromDistrict" resultType="java.lang.Long">
|
<select id="getIdFromDistrict" resultType="java.lang.Long">
|
||||||
SELECT id from sys_dept WHERE district = #{district};
|
SELECT id from sys_dept WHERE district = #{district};
|
||||||
</select>
|
</select>
|
||||||
<select id="countByType" resultType="java.lang.Long">
|
|
||||||
SELECT
|
|
||||||
COUNT( id )
|
|
||||||
FROM
|
|
||||||
sys_dept
|
|
||||||
WHERE
|
|
||||||
type = #{type};
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
Loading…
Reference in New Issue