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