6 天以前 f569e2257372a2f940aace9ad151fd758196eb9a
src/main/java/com/ruoyi/basic/service/impl/CustomerServiceImpl.java
@@ -431,6 +431,24 @@
    }
    @Override
    public void handoverCustomer(CustomerDto customerDto) {
        Customer customer = customerMapper.selectById(customerDto.getId());
        if (customer == null) {
            throw new ServiceException("客户不存在");
        }
        if (customer.getType() != 0) {
            throw new ServiceException("仅私海客户支持交接");
        }
        if (customerDto.getMaintainer() == null || customerDto.getMaintainer().trim().isEmpty()) {
            throw new ServiceException("新维护人不能为空");
        }
        customer.setMaintainer(customerDto.getMaintainer());
        customer.setMaintenanceTime(new Date());
        customer.setCreateUser(customerDto.getMaintainerId());
        customerMapper.updateById(customer);
    }
    @Override
    public IPage<CustomerTransactionsVo> customewTransactions(Page page, String customerName) {
        return customerMapper.customewTransactions(page, customerName);
    }