Compare commits
2 Commits
faef79e56d
...
0fa0e4ab1b
Author | SHA1 | Date | |
---|---|---|---|
0fa0e4ab1b | |||
e321dcd652 |
@ -58,6 +58,12 @@ public class ConsumerVo extends TenantEntity {
|
|||||||
@Schema(name = "是否启用")
|
@Schema(name = "是否启用")
|
||||||
private Boolean enabled;
|
private Boolean enabled;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 帐号状态(0正常 1停用)
|
||||||
|
*/
|
||||||
|
@Schema(name = "帐号状态(0正常 1停用)")
|
||||||
|
private String status;
|
||||||
|
|
||||||
@Schema(name = "是否为admin账号", hidden = true)
|
@Schema(name = "是否为admin账号", hidden = true)
|
||||||
private Boolean isAdmin = false;
|
private Boolean isAdmin = false;
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
<!-- 分页查询客户 -->
|
<!-- 分页查询客户 -->
|
||||||
<select id="findCustomers" resultType="com.fuyuanshen.customer.domain.Customer">
|
<select id="findCustomers" resultType="com.fuyuanshen.customer.domain.Customer">
|
||||||
select
|
select
|
||||||
u.user_id as customerId, u.nick_name , u.user_name, u.enabled, u.create_time
|
u.user_id as customerId, u.nick_name , u.user_name, u.enabled, u.create_time,u.status
|
||||||
from sys_user u
|
from sys_user u
|
||||||
<where>
|
<where>
|
||||||
<if test="criteria.ids != null and !criteria.ids.isEmpty()">
|
<if test="criteria.ids != null and !criteria.ids.isEmpty()">
|
||||||
|
Reference in New Issue
Block a user