Commit 931595ee by wqc

修改app接口

parent 69ed1e24
...@@ -62,6 +62,9 @@ public interface PortalFeign { ...@@ -62,6 +62,9 @@ public interface PortalFeign {
@PostMapping("/stats/getCremationStatsList") @PostMapping("/stats/getCremationStatsList")
ResultVo getCremationStatsList(@RequestBody Map<String, Object> paramsMap); ResultVo getCremationStatsList(@RequestBody Map<String, Object> paramsMap);
@PostMapping("/stats/getCremationStatsById")
ResultVo getCremationStatsById(@RequestBody Map<String, Object> paramsMap);
@PostMapping("/stats/getAreaUnderNumStats") @PostMapping("/stats/getAreaUnderNumStats")
ResultVo getAreaUnderNumStats(@RequestBody Map<String, Object> paramsMap); ResultVo getAreaUnderNumStats(@RequestBody Map<String, Object> paramsMap);
} }
...@@ -211,6 +211,14 @@ public interface IApiLogic extends IApiCommon { ...@@ -211,6 +211,14 @@ public interface IApiLogic extends IApiCommon {
*/ */
ApiResp getCremationStatsList(ApiForm form); ApiResp getCremationStatsList(ApiForm form);
/**
* 殡仪馆火化量统计列表
*
* @param form
* @return
*/
ApiResp getCremationStatsById(ApiForm form);
/*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓SYS接口↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/ /*↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓SYS接口↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
/** /**
......
...@@ -151,6 +151,11 @@ public class ApiV100Logic extends BaseApiLogic implements IApiLogic { ...@@ -151,6 +151,11 @@ public class ApiV100Logic extends BaseApiLogic implements IApiLogic {
} }
@Override @Override
public ApiResp getCremationStatsById(ApiForm form) {
return ApiUtils.toApiResp(form, portalFeign.getCremationStatsById(form.getParamsMap()));
}
@Override
public ApiResp getSingleUserInfo(ApiForm form) { public ApiResp getSingleUserInfo(ApiForm form) {
return ApiUtils.toApiResp(form, sysFeign.getSingleUserInfo(form.getAppId())); return ApiUtils.toApiResp(form, sysFeign.getSingleUserInfo(form.getAppId()));
} }
......
...@@ -35,6 +35,12 @@ public class BzStatsAdminController { ...@@ -35,6 +35,12 @@ public class BzStatsAdminController {
return ResultVo.success(bzStatsService.getCacheCremationStatsList(vo)); return ResultVo.success(bzStatsService.getCacheCremationStatsList(vo));
} }
@ApiOperation("获取子级殡葬火化分析列表")
@PostMapping(value = "/getCremationStatsById")
public ResultVo<Object> getCremationStatsById(@RequestBody StatsReqVo vo) {
return ResultVo.success(bzStatsService.getCacheCremationStatsById(vo));
}
@ApiOperation("获取区域火化率占比") @ApiOperation("获取区域火化率占比")
@PostMapping(value = "/getCremationRateStats") @PostMapping(value = "/getCremationRateStats")
public ResultVo<Object> getCremationRateStats(@RequestBody StatsReqVo vo) { public ResultVo<Object> getCremationRateStats(@RequestBody StatsReqVo vo) {
......
...@@ -111,8 +111,10 @@ public class EtStatsService { ...@@ -111,8 +111,10 @@ public class EtStatsService {
vo.setAreaCode(systemArea.getCode()); vo.setAreaCode(systemArea.getCode());
VChildWelfareStats etAgencyWelfareStats = getAgencyChildStats(vo); VChildWelfareStats etAgencyWelfareStats = getAgencyChildStats(vo);
if (etAgencyWelfareStats != null) {
returnData.add(etAgencyWelfareStats); returnData.add(etAgencyWelfareStats);
} }
}
List<String> areaList = new ArrayList<>(); List<String> areaList = new ArrayList<>();
List<String> agencyNumList = new ArrayList<>(); List<String> agencyNumList = new ArrayList<>();
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
fis_cremation_info_sum a fis_cremation_info_sum a
LEFT JOIN fis_organ b ON b.organ_name = a.create_organ_name LEFT JOIN fis_organ b ON b.organ_name = a.create_organ_name
WHERE 1 = 1 WHERE 1 = 1
<IF test = "subAreaCode != null and subAreaCode != ''" > <if test = "subAreaCode != null and subAreaCode != ''" >
AND b.beloing_cant_code LIKE CONCAT (#{subAreaCode},'%') AND b.beloing_cant_code LIKE CONCAT (#{subAreaCode},'%')
</ IF > </if >
GROUP BY GROUP BY
LEFT (b.beloing_cant_code,#{size}) LEFT (b.beloing_cant_code,#{size})
</select> </select>
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
WHERE 1 = 1 WHERE 1 = 1
<if test = "subAreaCode != null and subAreaCode != ''" > <if test = "subAreaCode != null and subAreaCode != ''" >
AND b.beloing_cant_code LIKE CONCAT (#{subAreaCode},'%') AND b.beloing_cant_code LIKE CONCAT (#{subAreaCode},'%')
</ IF > </if >
GROUP BY GROUP BY
a.create_organ_name, a.create_organ_name,
LEFT (b.beloing_cant_code,#{size}) LEFT (b.beloing_cant_code,#{size})
......
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