| | |
| | | */ |
| | | private String deptId; |
| | | |
| | | /** |
| | | * 省编号 |
| | | */ |
| | | private String province; |
| | | |
| | | /** |
| | | * 市编号 |
| | | */ |
| | | private String city; |
| | | |
| | | /** |
| | | * 区编号 |
| | | */ |
| | | private String district; |
| | | |
| | | /** |
| | | * 360全景url |
| | | */ |
| | | private String panoramic; |
| | | } |
| | |
| | | slogan = #{farm.slogan}, |
| | | introduce = #{farm.introduce}, |
| | | picture = #{farm.picture}, |
| | | province = #{farm.province}, |
| | | city = #{farm.city}, |
| | | district = #{farm.district}, |
| | | <if test="farm.position!=null and farm.position!=''"> |
| | | position = ST_GeomFromText(${farm.position}), |
| | | </if> |
| | |
| | | slogan, |
| | | introduce, |
| | | picture, |
| | | province, |
| | | city, |
| | | district, |
| | | ST_ASTEXT(position) as position,dept_id |
| | | from |
| | | sys_farm |
| | |
| | | public R getUserList(UserVO user){ |
| | | return R.data(userService.getUserList(user)); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户id查询用户信息 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | @PostMapping("/updateUserPersonal") |
| | | @ApiOperation(value = "修改用户信息", notes = "传入user,id必须") |
| | | public R updateUserPersonal( User user){ |
| | | return R.data(userService.updateUserPersonal(user)); |
| | | } |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | List<User> getUserList(UserVO user); |
| | | |
| | | /** |
| | | * 根据用户id查询用户信息 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | int updateUserPersonal(User user); |
| | | } |
| | |
| | | //查询用户信息并返回 |
| | | return baseMapper.getUserList(user); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户id修改用户信息 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int updateUserPersonal(User user) { |
| | | return baseMapper.updateById(user); |
| | | } |
| | | } |