|
@@ -408,19 +408,18 @@ public class UserApiController {
|
|
return new ResponseEntity<>(dmSystemService.queryAll(params.getQuery(),pageable),HttpStatus.OK);
|
|
return new ResponseEntity<>(dmSystemService.queryAll(params.getQuery(),pageable),HttpStatus.OK);
|
|
}
|
|
}
|
|
|
|
|
|
-// @Log("根据用户id查询app菜单权限")
|
|
|
|
-// @ApiOperation("根据用户id查询app菜单权限")
|
|
|
|
-// @AnonymousPostMapping(value = "/queryUserAppMenu")
|
|
|
|
-// public ResponseEntity<Object> queryUserAppMenu(@RequestBody QueryPageParams<String> params){
|
|
|
|
-// SecurityUtils.CheckApiAuth(params);
|
|
|
|
-// List<Map<String, Object>> map = dmUserService.queryUserAppMenu(params.getQuery());
|
|
|
|
-// return new ResponseEntity<>(map,HttpStatus.OK);
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
-// @Log("查询app菜单权限")
|
|
|
|
-// @ApiOperation("查询app菜单权限")
|
|
|
|
-// @AnonymousGetMapping(value = "/queryAppMenu")
|
|
|
|
-// public ResponseEntity<Object> queryAppMenu(DmAppMenuQueryCriteria criteria, Pageable pageable){
|
|
|
|
-// return new ResponseEntity<>(dmAppMenuService.queryAll(criteria,pageable),HttpStatus.OK);
|
|
|
|
-// }
|
|
|
|
|
|
+ @Log("修改密码")
|
|
|
|
+ @ApiOperation("修改密码")
|
|
|
|
+ @AnonymousGetMapping(value = "/updateUser")
|
|
|
|
+ public ResponseEntity<Object> updateUser(){
|
|
|
|
+ List<Map<String,Object>> list = userRepository.findNullPasswordType("01");
|
|
|
|
+ list.forEach(item->{
|
|
|
|
+ try {
|
|
|
|
+ userRepository.updatePassById(item.get("id").toString(),RsaUtils.encryptByPublicKey(RsaProperties.publicKey, "12345678"),new Date());
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ return new ResponseEntity<>("Ok",HttpStatus.OK);
|
|
|
|
+ }
|
|
}
|
|
}
|