|
@@ -36,30 +36,30 @@ public class FaFinancingApplicationController extends BaseController{
|
|
|
|
|
|
|
|
@GetMapping("/getById/{borrowId}")
|
|
@GetMapping("/getById/{borrowId}")
|
|
|
@ApiOperation(value = "融资申请搜索getById")
|
|
@ApiOperation(value = "融资申请搜索getById")
|
|
|
- public FaFinancingApplication getById(@PathVariable String borrowId) {
|
|
|
|
|
- return service.getById(borrowId);
|
|
|
|
|
|
|
+ public AjaxResult getById(@PathVariable String borrowId) {
|
|
|
|
|
+ return AjaxResult.success(service.getById(borrowId));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping("/findByPage")
|
|
@GetMapping("/findByPage")
|
|
|
@ApiOperation(value = "融资申请分页")
|
|
@ApiOperation(value = "融资申请分页")
|
|
|
- public Page findByPage(long pageNum, long pageSize, String conditionJson) throws Exception {
|
|
|
|
|
- return service.page(new Page<>(pageNum, pageSize), SearchUtil.parseWhereSql(conditionJson));
|
|
|
|
|
|
|
+ public AjaxResult findByPage(long pageNum, long pageSize, String conditionJson) throws Exception {
|
|
|
|
|
+ return AjaxResult.success(service.page(new Page<>(pageNum, pageSize), SearchUtil.parseWhereSql(conditionJson)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping("/getList")
|
|
@GetMapping("/getList")
|
|
|
@ApiOperation(value = "融资申请查询所有")
|
|
@ApiOperation(value = "融资申请查询所有")
|
|
|
- public List<FaFinancingApplication> getList(String conditionJson) throws Exception {
|
|
|
|
|
- return service.list(SearchUtil.parseWhereSql(conditionJson));
|
|
|
|
|
|
|
+ public AjaxResult getList(String conditionJson) throws Exception {
|
|
|
|
|
+ return AjaxResult.success(service.list(SearchUtil.parseWhereSql(conditionJson)));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 新增融资申请
|
|
* 新增融资申请
|
|
|
*/
|
|
*/
|
|
|
- @PostMapping("/save")
|
|
|
|
|
|
|
+ @PostMapping("/saveOrUpdate")
|
|
|
@ApiOperation(value = "融资申请新增")
|
|
@ApiOperation(value = "融资申请新增")
|
|
|
@Log(title = "新增融资申请", businessType = BusinessType.INSERT)
|
|
@Log(title = "新增融资申请", businessType = BusinessType.INSERT)
|
|
|
- public boolean save(@RequestBody FaFinancingApplication faFinancingApplication) {
|
|
|
|
|
- return service.save(faFinancingApplication);
|
|
|
|
|
|
|
+ public AjaxResult saveOrUpdate(@RequestBody FaFinancingApplication faFinancingApplication) {
|
|
|
|
|
+ return service.saveOrUpdateLoanInfo(faFinancingApplication);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -71,6 +71,12 @@ public class FaFinancingApplicationController extends BaseController{
|
|
|
public boolean updateById(@RequestBody FaFinancingApplication faFinancingApplication) {
|
|
public boolean updateById(@RequestBody FaFinancingApplication faFinancingApplication) {
|
|
|
return service.updateById(faFinancingApplication);
|
|
return service.updateById(faFinancingApplication);
|
|
|
}
|
|
}
|
|
|
|
|
+ @GetMapping("/releaseApplicationById")
|
|
|
|
|
+ @ApiOperation(value = "发布融资申请")
|
|
|
|
|
+ @Log(title = "发布融资申请", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ public AjaxResult releaseApplication(Long id){
|
|
|
|
|
+ return service.releaseApplication(id);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
@Log(title = "融资申请", businessType = BusinessType.DELETE)
|
|
@Log(title = "融资申请", businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/delete")
|
|
@PostMapping("/delete")
|