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