|
@@ -258,13 +258,6 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|
|
@DSTransactional
|
|
|
@Override
|
|
|
public void edit(CustomerDto customerDto) {
|
|
|
-
|
|
|
- //修改业务员时 重新赋值分配时间
|
|
|
- Customer oldCustomer = this.getById(customerDto.getId());
|
|
|
- if (!Objects.equals(oldCustomer.getUserId(), customerDto.getUserId())) {
|
|
|
- customerDto.setAllocationTime(new Date());
|
|
|
- }
|
|
|
-
|
|
|
//客户名称 唯一检查
|
|
|
Customer repeatCustomer = this.getOne(q -> q.eq(Customer::getName, customerDto.getName()).ne(Customer::getId, customerDto.getId()));
|
|
|
if (ObjectUtil.isNotEmpty(repeatCustomer)) {
|