Commit 8acfe3f3 authored by zhangch's avatar zhangch

监管机构详情页面相关接口调试

parent 539bf154
...@@ -10,10 +10,7 @@ import com.hungraim.ltc.util.ResultCode; ...@@ -10,10 +10,7 @@ import com.hungraim.ltc.util.ResultCode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/** /**
* 监管机构及监管机构人员信息管理Controller * 监管机构及监管机构人员信息管理Controller
...@@ -140,7 +137,7 @@ public class SuperviseOrganEmpController { ...@@ -140,7 +137,7 @@ public class SuperviseOrganEmpController {
* bankAccName 银行开户行名称 * bankAccName 银行开户行名称
* bankNo 银行账号 * bankNo 银行账号
*/ */
@DeleteMapping("/insertOrUpdateSpvInfo") @PostMapping("/insertOrUpdateSpvInfo")
public Result insertOrUpdateSpvInfo(ChSuperviseOrgan spvOrgan) { public Result insertOrUpdateSpvInfo(ChSuperviseOrgan spvOrgan) {
//参数校验 //参数校验
if (StringUtils.isBlank(spvOrgan.getOrganId())) {//适用机构id if (StringUtils.isBlank(spvOrgan.getOrganId())) {//适用机构id
...@@ -161,4 +158,19 @@ public class SuperviseOrganEmpController { ...@@ -161,4 +158,19 @@ public class SuperviseOrganEmpController {
superviseOrganEmpService.insertOrUpdateSpvInfo(spvOrgan); superviseOrganEmpService.insertOrUpdateSpvInfo(spvOrgan);
return Result.success(); return Result.success();
} }
/**
* 获取监管机构相关信息
*
* @param spvOrganId 监管机构id
* @return 返回相关信息
*/
@GetMapping("/superviseOrgan")
public Result<ChSuperviseOrgan> getSuperviseOrgan(Long spvOrganId) {
if (null == spvOrganId) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
ChSuperviseOrgan superviseOrgan = superviseOrganEmpService.getSuperviseOrgan(spvOrganId);
return Result.success(superviseOrgan);
}
} }
...@@ -24,4 +24,12 @@ public interface SuperviseOrganEmpService { ...@@ -24,4 +24,12 @@ public interface SuperviseOrganEmpService {
void updateSpvStatus(String spvOrganId, Short isLock); void updateSpvStatus(String spvOrganId, Short isLock);
void insertOrUpdateSpvInfo(ChSuperviseOrgan spvOrgan); void insertOrUpdateSpvInfo(ChSuperviseOrgan spvOrgan);
/**
* 获取监管机构相关信息
*
* @param spvOrganId 监管机构id
* @return 返回相关信息
*/
ChSuperviseOrgan getSuperviseOrgan(Long spvOrganId);
} }
...@@ -114,4 +114,9 @@ public class SuperviseOrganServiceImpl implements SuperviseOrganEmpService { ...@@ -114,4 +114,9 @@ public class SuperviseOrganServiceImpl implements SuperviseOrganEmpService {
superviseOrganMapper.insert(spvOrgan); superviseOrganMapper.insert(spvOrgan);
} }
} }
@Override
public ChSuperviseOrgan getSuperviseOrgan(Long spvOrganId) {
return superviseOrganMapper.selectById(spvOrganId);
}
} }
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