修改客户状态
This commit is contained in:
@ -112,6 +112,11 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public void updateCustomer(Customer resources) throws Exception {
|
public void updateCustomer(Customer resources) throws Exception {
|
||||||
|
if (resources.getEnabled()) {
|
||||||
|
resources.setStatus("0");
|
||||||
|
} else {
|
||||||
|
resources.setStatus("1");
|
||||||
|
}
|
||||||
saveOrUpdate(resources);
|
saveOrUpdate(resources);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user