|
@@ -62,7 +62,7 @@ public class UserInfoController {
|
|
|
@PostMapping("/getUserInfoPag")
|
|
|
@SysLogger("getUserInfoPag")
|
|
|
// @ApiIgnore
|
|
|
- public RespDTO<UserInfoDTO> getUserInfoPag(Page page, String orgName, String autStatus) {
|
|
|
+ public RespDTO<UserInfoDTO> getUserInfoPag(Page page, String orgName, Integer autStatus) {
|
|
|
UserInfoDTO userInfo = new UserInfoDTO();
|
|
|
userInfo.setOrgName(orgName);
|
|
|
userInfo.setAutStatus(autStatus);
|
|
@@ -76,8 +76,7 @@ public class UserInfoController {
|
|
|
public RespDTO<UserInfoOrganizationsVO> updateUserInfoAll(
|
|
|
@Valid @RequestBody UserInfoOrganizationsVO userInfoOrganizationsVO) {
|
|
|
Map<String, Object> userMap = new HashMap<String, Object>();
|
|
|
- // TODO wangfeng userMap.put("modifier",
|
|
|
- // UserUtils.getCurrentPrincipleID());
|
|
|
+ userMap.put("modifier",UserUtils.getCurrentPrincipleID());
|
|
|
userMap.put("gmtModified", DateUtil.now());
|
|
|
userMap.put("email", userInfoOrganizationsVO.getEmail());
|
|
|
userMap.put("principal", userInfoOrganizationsVO.getPrincipal());
|
|
@@ -99,8 +98,7 @@ public class UserInfoController {
|
|
|
public RespDTO<UserInfoAuditVO> auditUserInfoAll(@Valid @RequestBody UserInfoAuditVO userInfoAuditVO) {
|
|
|
Map<String, Object> auditMap = new HashMap<String, Object>();
|
|
|
auditMap.put("userId", userInfoAuditVO.getUserId());
|
|
|
- // TODO wangfeng auditMap.put("modifier",
|
|
|
- // UserUtils.getCurrentPrincipleID());
|
|
|
+ auditMap.put("modifier",UserUtils.getCurrentPrincipleID());
|
|
|
auditMap.put("gmtModified", DateUtil.now());
|
|
|
auditMap.put("isReject", userInfoAuditVO.getIsReject());
|
|
|
auditMap.put("rejectComment", userInfoAuditVO.getRejectComment());
|
|
@@ -120,7 +118,7 @@ public class UserInfoController {
|
|
|
public RespDTO updateDeleted(@RequestParam String userId) {
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
map.put("userId", userId);
|
|
|
- // TODO wangfeng map.put("modifier",UserUtils.getCurrentPrincipleID());
|
|
|
+ map.put("modifier",UserUtils.getCurrentPrincipleID());
|
|
|
map.put("gmtModified", DateUtil.now());
|
|
|
int res = userFacade.updateDeleted(map);
|
|
|
return RespDTO.onSuc("刪除成功" + res);
|
|
@@ -153,8 +151,7 @@ public class UserInfoController {
|
|
|
organization.setSubNum(organizationVO.getSubNum());
|
|
|
organization.setAddress(organizationVO.getAddress());
|
|
|
organization.setGmtCreate(DateUtil.now());
|
|
|
- // TODO wangfeng
|
|
|
- // organization.setModifier(UserUtils.getCurrentPrincipleID());
|
|
|
+ organization.setModifier(UserUtils.getCurrentPrincipleID());
|
|
|
// organization.setCreator("5");
|
|
|
|
|
|
boolean res = organizationFacade.save(organization);
|
|
@@ -189,7 +186,7 @@ public class UserInfoController {
|
|
|
}
|
|
|
|
|
|
User user = new User();
|
|
|
- // TODO wangfeng user.setCreator("5");
|
|
|
+ user.setCreator(UserUtils.getCurrentPrincipleID());
|
|
|
user.setUsername(userAndOrganizationVO.getUserName());
|
|
|
PasswordEncoder passwordEncoder = PasswordEncoderFactories.createDelegatingPasswordEncoder();
|
|
|
String entryPassword = passwordEncoder.encode(userAndOrganizationVO.getPassWord());
|
|
@@ -202,8 +199,7 @@ public class UserInfoController {
|
|
|
Long userId = user.getId();
|
|
|
// 用户信息的认证
|
|
|
UserAuthentication userAuthentication = new UserAuthentication();
|
|
|
- // TODO wangfeng
|
|
|
- // userAuthentication.setCreator(UserUtils.getCurrentPrincipleID());//
|
|
|
+ userAuthentication.setCreator(UserUtils.getCurrentPrincipleID());//
|
|
|
// 创建人Id
|
|
|
userAuthentication.setGmtCreate(DateUtil.now());// 记录创建时间
|
|
|
userAuthentication.setPosition(userAndOrganizationVO.getPosition());// 岗位信息
|
|
@@ -214,8 +210,7 @@ public class UserInfoController {
|
|
|
|
|
|
// 用户信息和机构信息的绑定
|
|
|
UserOrganization userOrganization = new UserOrganization();
|
|
|
- // TODO wangfeng
|
|
|
- // userOrganization.setCreator(UserUtils.getCurrentPrincipleID());//
|
|
|
+ userOrganization.setCreator(UserUtils.getCurrentPrincipleID());//
|
|
|
// 创建人Id
|
|
|
userOrganization.setGmtCreate(DateUtil.now());
|
|
|
userOrganization.setOrganizationId(userAndOrganizationVO.getOrganizationid());// 机构id
|