修复bug,添加用户是密码不能未空格,查询人员输入房间号的bug
This commit is contained in:
parent
8b4490d21d
commit
db7ffe29da
|
@ -95,6 +95,9 @@ public class SysTenUserController extends AbstractController {
|
||||||
@ApiOperation("保存用户")
|
@ApiOperation("保存用户")
|
||||||
public R save(@RequestBody SysUserEntity user){
|
public R save(@RequestBody SysUserEntity user){
|
||||||
ValidatorUtils.validateEntity(user, AddGroup.class);
|
ValidatorUtils.validateEntity(user, AddGroup.class);
|
||||||
|
if(user.getPassword().trim().length() == 0){
|
||||||
|
return R.error("密码不能为空");
|
||||||
|
}
|
||||||
long id = new SnowflakeIdWorker().nextId();
|
long id = new SnowflakeIdWorker().nextId();
|
||||||
user.setUserId(Long.valueOf(id));
|
user.setUserId(Long.valueOf(id));
|
||||||
user.setCreateBy(getUser().getNickName());
|
user.setCreateBy(getUser().getNickName());
|
||||||
|
|
|
@ -615,6 +615,9 @@
|
||||||
<if test="params.roomName != null and params.roomName!=''">
|
<if test="params.roomName != null and params.roomName!=''">
|
||||||
and r.room_name like CONCAT('%', '${params.roomName}', '%')
|
and r.room_name like CONCAT('%', '${params.roomName}', '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.roomId != null and params.roomId!=''">
|
||||||
|
and r.room_id = #{params.roomId}
|
||||||
|
</if>
|
||||||
<if test="params.name != null and params.name!=''">
|
<if test="params.name != null and params.name!=''">
|
||||||
and p.name like CONCAT('%', '${params.name}', '%')
|
and p.name like CONCAT('%', '${params.name}', '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
Loading…
Reference in New Issue