|
@@ -306,7 +306,7 @@ public class UserLogic {
|
|
* @Param examineRemark 审核备注
|
|
* @Param examineRemark 审核备注
|
|
*/
|
|
*/
|
|
@Transactional
|
|
@Transactional
|
|
- public void examine(String id, ExamineStatusEnum examineStatus, String examineRemark) {
|
|
|
|
|
|
+ public void examine(String id, String examineStatus, String examineRemark) {
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
WebsitUser websitUser = websitUserService.getById(id);
|
|
WebsitUser websitUser = websitUserService.getById(id);
|
|
if (!StringUtils.equals(websitUser.getExamineStatus(), ExamineStatusEnum.WAIT.getKey())) {
|
|
if (!StringUtils.equals(websitUser.getExamineStatus(), ExamineStatusEnum.WAIT.getKey())) {
|
|
@@ -315,14 +315,14 @@ public class UserLogic {
|
|
if (StringUtils.isBlank(websitUser.getWorkerNumber())) {
|
|
if (StringUtils.isBlank(websitUser.getWorkerNumber())) {
|
|
throw new RemoteServiceException("师傅编号不能为空");
|
|
throw new RemoteServiceException("师傅编号不能为空");
|
|
}
|
|
}
|
|
- websitUser.setExamineStatus(examineStatus.getKey());
|
|
|
|
|
|
+ websitUser.setExamineStatus(examineStatus);
|
|
websitUser.setExamineTime(new Date());
|
|
websitUser.setExamineTime(new Date());
|
|
websitUser.setExamineBy(adminUser.getNickName());
|
|
websitUser.setExamineBy(adminUser.getNickName());
|
|
websitUser.setExamineRemark(examineRemark);
|
|
websitUser.setExamineRemark(examineRemark);
|
|
websitUser.updateById();
|
|
websitUser.updateById();
|
|
|
|
|
|
User user = userService.getById(websitUser.getUserId());
|
|
User user = userService.getById(websitUser.getUserId());
|
|
- if (examineStatus.getKey().equals(ExamineStatusEnum.OK.getKey())) {
|
|
|
|
|
|
+ if (examineStatus.equals(ExamineStatusEnum.OK.getKey())) {
|
|
user.setType(UserTypeEnum.WORKER.getKey());
|
|
user.setType(UserTypeEnum.WORKER.getKey());
|
|
}
|
|
}
|
|
user.updateById();
|
|
user.updateById();
|