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