From 52070c05f4761aa9bd4c60c5ec5087ba892b7d92 Mon Sep 17 00:00:00 2001 From: Burce Date: Fri, 11 Oct 2019 11:50:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=9B=E5=95=86]adjust?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/invest/InvestFollowRecordController.java | 6 +++--- .../iformall/service/invest/impl/InvestBizServiceImpl.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mallinkAdmin/src/main/java/com/iformall/controller/invest/InvestFollowRecordController.java b/mallinkAdmin/src/main/java/com/iformall/controller/invest/InvestFollowRecordController.java index 398fd72d3..739c03d55 100755 --- a/mallinkAdmin/src/main/java/com/iformall/controller/invest/InvestFollowRecordController.java +++ b/mallinkAdmin/src/main/java/com/iformall/controller/invest/InvestFollowRecordController.java @@ -47,9 +47,9 @@ public class InvestFollowRecordController extends InvestBaseController { /** * 信息 */ - //@GetMapping("/info/{id}") - public InvestResultData info(@PathVariable("id") Long id){ - return execute(id, p -> investFollowRecordService.getById(p)); + @GetMapping("/info/{id}") + public InvestResultData info(@PathVariable("id") Long id){ + return execute(id, p -> bizService.findFollowRecordById(p)); } /** diff --git a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java index cbfc01a0b..c9cb05805 100644 --- a/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/invest/impl/InvestBizServiceImpl.java @@ -170,8 +170,8 @@ public class InvestBizServiceImpl implements InvestBizService { InvestHelper.notNull(customerDto, customerDto.getDemandId()); InvestDemandEntity demandEntity = demandService.getByIdNotNull(customerDto.getDemandId()); InvestCustomerEntity customerEntity = new InvestCustomerEntity(); + customerDto.setId(demandEntity.getCustomerId()); BeanUtils.copyProperties(customerDto, customerEntity); - customerEntity.setId(customerDto.getId()); customerService.updateById(customerEntity); setValDmand(customerDto, demandEntity); return demandService.updateById(demandEntity);