| | |
| | | import com.dsh.guns.modular.system.model.dto.SelectDto; |
| | | import com.dsh.guns.modular.system.service.ICityService; |
| | | import com.dsh.guns.modular.system.service.IStoreService; |
| | | import com.dsh.guns.modular.system.service.IUserService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | |
| | | |
| | | @Resource |
| | | private UserMapper userMapper; |
| | | @Autowired |
| | | private IUserService userService; |
| | | |
| | | |
| | | /** |
| | |
| | | @ResponseBody |
| | | public Object pwd(Integer id) { |
| | | try { |
| | | userMapper.selectOne(new LambdaQueryWrapper<User>().eq(User::getObjectId,id).eq(User::getObjectType,2)); |
| | | // 查询门店 获取门店店长id |
| | | TStore store = storeService.getById(id); |
| | | User user = userService.getById(store.getStoreStaffId()); |
| | | user.setPassword(SecureUtil.md5("a123456")); |
| | | userService.updateById(user); |
| | | userMapper.selectOne(new LambdaQueryWrapper<User>() |
| | | .eq(User::getObjectId,id) |
| | | .eq(User::getObjectType,2)); |
| | | return SUCCESS_TIP; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |