用户查询增加模糊查询;修复当编辑用户时账号解封的问题;全景管理查询未删除的数据;当性别,生日未填时数据库同时也录入数据
| | |
| | | secureRegistry.excludePathPatterns("/farmPlant/**"); |
| | | secureRegistry.excludePathPatterns("/task/task/**"); |
| | | secureRegistry.excludePathPatterns("/recovery/**"); |
| | | // secureRegistry.excludePathPatterns("/farm/**"); |
| | | secureRegistry.excludePathPatterns("/farm/**"); |
| | | secureRegistry.excludePathPatterns("/sale/sale/**"); |
| | | secureRegistry.excludePathPatterns("/farmingRecord/**"); |
| | | // secureRegistry.excludePathPatterns("/blade-user/**"); |
| | |
| | | </select> |
| | | |
| | | <select id="getFarmList" resultType="org.springblade.modules.panorama.entity.Panorama"> |
| | | select * from sys_panorama where farm_id = #{farmId} |
| | | select * from sys_panorama where farm_id = #{farmId} AND is_deleted = 0 |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入User") |
| | | public R update(@Valid @RequestBody User user) { |
| | | CacheUtil.clear(USER_CACHE); |
| | | // CacheUtil.clear(USER_CACHE); |
| | | return R.status(userService.updateUser(user)); |
| | | } |
| | | |
| | |
| | | */ |
| | | package org.springblade.modules.system.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.FieldStrategy; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | |
| | | /** |
| | | * 生日 |
| | | */ |
| | | @TableField(value = "birthday",updateStrategy = FieldStrategy.IGNORED) |
| | | private Date birthday; |
| | | /** |
| | | * 性别 |
| | | */ |
| | | @TableField(value = "sex",updateStrategy = FieldStrategy.IGNORED) |
| | | private Integer sex; |
| | | /** |
| | | * 角色id |
| | |
| | | and tenant_id = #{user.tenantId} |
| | | </if> |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and account = #{user.account} |
| | | and account LIKE CONCAT('%',#{user.account},'%') |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name = #{user.realName} |
| | | and real_name LIKE CONCAT('%',#{user.realName},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |