|
|
@ -11,11 +11,13 @@ import com.zdxt.auth.project.system.dict.service.IDictDataService; |
|
|
import com.zdxt.auth.project.system.user.service.IUserService; |
|
|
import com.zdxt.auth.project.system.user.service.IUserService; |
|
|
import com.zdxt.common.ZDResponse; |
|
|
import com.zdxt.common.ZDResponse; |
|
|
import com.zdxt.common.controller.BaseController; |
|
|
import com.zdxt.common.controller.BaseController; |
|
|
|
|
|
import com.zdxt.common.util.IdCardCryptoUtil; |
|
|
import com.zdxt.domain.auth.DictData; |
|
|
import com.zdxt.domain.auth.DictData; |
|
|
import com.zdxt.domain.auth.Post; |
|
|
import com.zdxt.domain.auth.Post; |
|
|
import com.zdxt.domain.auth.User; |
|
|
import com.zdxt.domain.auth.User; |
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.stereotype.Controller; |
|
|
import org.springframework.stereotype.Controller; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
@ -45,6 +47,9 @@ public class AppSystemController extends BaseController { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private PostApi postApi; |
|
|
private PostApi postApi; |
|
|
|
|
|
@Value("${srnwg.secretKey}") |
|
|
|
|
|
private String secretKey; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getUserInfo/{userId}") |
|
|
@GetMapping("/getUserInfo/{userId}") |
|
|
@ResponseBody |
|
|
@ResponseBody |
|
|
@ -69,6 +74,13 @@ public class AppSystemController extends BaseController { |
|
|
@ResponseBody |
|
|
@ResponseBody |
|
|
public ZDResponse listApp(User user) { |
|
|
public ZDResponse listApp(User user) { |
|
|
List<User> list = userService.selectUserList(user); |
|
|
List<User> list = userService.selectUserList(user); |
|
|
|
|
|
//解密
|
|
|
|
|
|
// if(list.size() > 0){
|
|
|
|
|
|
// for (int i = 0; i < list.size(); i++) {
|
|
|
|
|
|
// String s = IdCardCryptoUtil.symmetricDecryptIdCard(secretKey, list.get(i).getPhonenumber());
|
|
|
|
|
|
// list.get(i).setPhonenumber(s);
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
// 查询出职务
|
|
|
// 查询出职务
|
|
|
for (User userData : list) { |
|
|
for (User userData : list) { |
|
|
List<PostBean> postBeanList = postApi.selectPostsByUserId(userData.getUserId()); |
|
|
List<PostBean> postBeanList = postApi.selectPostsByUserId(userData.getUserId()); |
|
|
|