k94314517
2024-07-18 f894a228fa018a6affd3d08b72b57142b937a4ff
server/service/src/main/java/com/doumee/service/business/impl/CustomerServiceImpl.java
@@ -245,6 +245,7 @@
        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());
@@ -277,7 +278,8 @@
            throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到用户信息");
        }
        if(StringUtils.isEmpty(member.getPhone())){
            throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未授权手机号");
            member.setPhone(freeCustomizationDTO.getPhone());
            memberMapper.updateById(member);
        }
        Customer customer = customerMapper.selectOne(new QueryWrapper<Customer>().lambda()
                .eq(Customer::getPhone,freeCustomizationDTO.getPhone()).eq(Customer::getIsdeleted, Constants.ZERO).last("limit 1"));