|
|
|
@ -2008,12 +2008,20 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
entity.setId(form.getId()); |
|
|
|
entity.setRemark(form.getRemark()); |
|
|
|
entity.setExamineFlag(form.getExamineStatus()); |
|
|
|
if (partyStandardBearerApplyService.updateById(entity)) { |
|
|
|
|
|
|
|
if (entity.getExamineFlag().equals(PartyStandardBearerApplyEntity.ExamineFlagEnum.PASS.value())) { |
|
|
|
if (partyStandardBearerApplyService.updateById(entity)) { |
|
|
|
String TagId = baseDao.selectTagId(UserTagEnum.PARTY_STANDARD_BEARER.value()); |
|
|
|
UserTagRelationEntity TagRelEntity = new UserTagRelationEntity(); |
|
|
|
TagRelEntity.setUserId(form.getId()); |
|
|
|
TagRelEntity.setTagId(TagId); |
|
|
|
userTagRelationService.insert(TagRelEntity); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (entity.getExamineFlag().equals(PartyStandardBearerApplyEntity.ExamineFlagEnum.WAIT)) { |
|
|
|
String TagId = baseDao.selectTagId(UserTagEnum.PARTY_STANDARD_BEARER.value()); |
|
|
|
UserTagRelationEntity TagRelEntity = new UserTagRelationEntity(); |
|
|
|
TagRelEntity.setUserId(form.getId()); |
|
|
|
TagRelEntity.setTagId(TagId); |
|
|
|
userTagRelationService.insert(TagRelEntity); |
|
|
|
userTagRelationService.delUserTag(form.getId(), TagId); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
return new Result().error("党员亮旗审核处理失败"); |
|
|
|
|