| | |
| | | return customerMapper.selectCount(wrapper); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public void saveRenovationCalculator(RenovationCalculatorDTO renovationCalculatorDTO){ |
| | | public CustomerLog saveRenovationCalculator(RenovationCalculatorDTO renovationCalculatorDTO){ |
| | | if(Objects.isNull(renovationCalculatorDTO) |
| | | || Objects.isNull(renovationCalculatorDTO.getMemberId()) |
| | | || Objects.isNull(renovationCalculatorDTO.getHouseStatus()) |
| | |
| | | customerLog.setIsdeleted(Constants.ZERO); |
| | | customerLog.setType(Constants.TWO); |
| | | customerLog.setCrmStatus(Constants.ZERO); |
| | | customerLog.setName(StringUtils.isEmpty(member.getName())?member.getNickname():member.getName()); |
| | | customerLog.setPhone(customer.getPhone()); |
| | | customerLog.setBudget(renovationCalculatorDTO.getBudget().multiply(new BigDecimal(10000)).toString()); |
| | | customerLog.setHouseStatus(renovationCalculatorDTO.getHouseStatus()); |
| | |
| | | customerLog.setHouseType(renovationCalculatorDTO.getHouseType()); |
| | | customerLog.setCostomerId(customer.getId().toString()); |
| | | customerLogMapper.insert(customerLog); |
| | | customerLog.setOpenid(member.getOpenid()); |
| | | return customerLog; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public void saveFreeCustomizationApply(FreeCustomizationDTO freeCustomizationDTO){ |
| | | public CustomerLog saveFreeCustomizationApply(FreeCustomizationDTO freeCustomizationDTO){ |
| | | if(Objects.isNull(freeCustomizationDTO) |
| | | || Objects.isNull(freeCustomizationDTO.getMemberId()) |
| | | || StringUtils.isEmpty(freeCustomizationDTO.getName()) |
| | |
| | | customerLog.setName(freeCustomizationDTO.getName()); |
| | | customerLog.setPhone(freeCustomizationDTO.getPhone()); |
| | | customerLogMapper.insert(customerLog); |
| | | customerLog.setOpenid(member.getOpenid()); |
| | | return customerLog; |
| | | } |
| | | |
| | | @Override |
| | | public void saveTestTrimStyle(TestTrimStyleDTO testTrimStyleDTO){ |
| | | public CustomerLog saveTestTrimStyle(TestTrimStyleDTO testTrimStyleDTO){ |
| | | if(Objects.isNull(testTrimStyleDTO) |
| | | || Objects.isNull(testTrimStyleDTO.getMemberId()) |
| | | |
| | |
| | | customerLog.setAgeInfo(testTrimStyleDTO.getAgeInfo()); |
| | | customerLog.setPhone(testTrimStyleDTO.getPhone()); |
| | | customerLogMapper.insert(customerLog); |
| | | customerLog.setOpenid(member.getOpenid()); |
| | | return customerLog; |
| | | } |
| | | |
| | | |