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);