修改风险管控接口返回错误通知

This commit is contained in:
dxc
2021-08-26 12:25:00 +08:00
parent 2b5457676d
commit f2b1a58954
3 changed files with 4 additions and 3 deletions

View File

@ -59,6 +59,6 @@ public class RiskManageController {
*/ */
@PostMapping({"/findApplyRegulation"}) @PostMapping({"/findApplyRegulation"})
public BaseResponse<Object> findApplyRegulation(@RequestBody RiskManageRegulationVO riskManageRegulation){ public BaseResponse<Object> findApplyRegulation(@RequestBody RiskManageRegulationVO riskManageRegulation){
return BaseResponse.success(riskManageService.findApplyRegulation(riskManageRegulation)); return riskManageService.findApplyRegulation(riskManageRegulation);
} }
} }

View File

@ -1,5 +1,6 @@
package com.chinaunicom.mall.ebtp.extend.riskmanage.service; package com.chinaunicom.mall.ebtp.extend.riskmanage.service;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
import com.chinaunicom.mall.ebtp.extend.riskmanage.entity.RiskManageRegulationVO; import com.chinaunicom.mall.ebtp.extend.riskmanage.entity.RiskManageRegulationVO;
/** /**
@ -14,5 +15,5 @@ public interface IRiskManageService {
* @param riskManageRegulation 访问实体 * @param riskManageRegulation 访问实体
* @return 返回结果 * @return 返回结果
*/ */
Object findApplyRegulation(RiskManageRegulationVO riskManageRegulation); BaseResponse<Object> findApplyRegulation(RiskManageRegulationVO riskManageRegulation);
} }

View File

@ -33,7 +33,7 @@ public class RiskManageServiceImpl implements IRiskManageService {
@SneakyThrows @SneakyThrows
@Override @Override
public Object findApplyRegulation(RiskManageRegulationVO riskManageRegulation) { public BaseResponse<Object> findApplyRegulation(RiskManageRegulationVO riskManageRegulation) {
Map<String,Object> params = riskManageRegulation.getParams(); Map<String,Object> params = riskManageRegulation.getParams();
RiskManageRegulation regulation = riskManageRegulation.getRiskManageRegulation(); RiskManageRegulation regulation = riskManageRegulation.getRiskManageRegulation();