修复bug,添加用户是密码不能未空格,查询人员输入房间号的bug

This commit is contained in:
gaoben 2021-04-06 17:51:36 +08:00
parent 8b4490d21d
commit db7ffe29da
2 changed files with 6 additions and 0 deletions

View File

@ -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());

View File

@ -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>