|
@ -26,8 +26,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
|
|
import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
|
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.elink.esua.epdc.user.dao.PartyStandardBearerApplyDao; |
|
|
import com.elink.esua.epdc.user.dao.*; |
|
|
import com.elink.esua.epdc.user.dao.UserDao; |
|
|
|
|
|
import com.elink.esua.epdc.user.datasources.DataSourceNames; |
|
|
import com.elink.esua.epdc.user.datasources.DataSourceNames; |
|
|
import com.elink.esua.epdc.user.dto.*; |
|
|
import com.elink.esua.epdc.user.dto.*; |
|
|
import com.elink.esua.epdc.user.dto.PointLogFormDTO; |
|
|
import com.elink.esua.epdc.user.dto.PointLogFormDTO; |
|
@ -53,9 +52,6 @@ import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|
|
import com.elink.esua.epdc.commons.tools.utils.*; |
|
|
import com.elink.esua.epdc.commons.tools.utils.*; |
|
|
import com.elink.esua.epdc.user.constant.AuthenticatedConsant; |
|
|
import com.elink.esua.epdc.user.constant.AuthenticatedConsant; |
|
|
import com.elink.esua.epdc.user.constant.UserFieldConsant; |
|
|
import com.elink.esua.epdc.user.constant.UserFieldConsant; |
|
|
import com.elink.esua.epdc.user.dao.PartyAuthenticationFailedDao; |
|
|
|
|
|
import com.elink.esua.epdc.user.dao.PartyMembersDao; |
|
|
|
|
|
import com.elink.esua.epdc.user.dao.UserAuthenticateHistoryDao; |
|
|
|
|
|
import com.elink.esua.epdc.dto.*; |
|
|
import com.elink.esua.epdc.dto.*; |
|
|
import com.elink.esua.epdc.user.dto.epdc.EpdcCompleteAppUserDTO; |
|
|
import com.elink.esua.epdc.user.dto.epdc.EpdcCompleteAppUserDTO; |
|
|
import com.elink.esua.epdc.user.dto.epdc.EpdcGridLeaderRegisterDTO; |
|
|
import com.elink.esua.epdc.user.dto.epdc.EpdcGridLeaderRegisterDTO; |
|
@ -71,10 +67,12 @@ import com.elink.esua.epdc.user.feign.PointFeignClient; |
|
|
import com.elink.esua.epdc.user.redis.UserRedis; |
|
|
import com.elink.esua.epdc.user.redis.UserRedis; |
|
|
import com.elink.esua.epdc.user.util.AppUserUtils; |
|
|
import com.elink.esua.epdc.user.util.AppUserUtils; |
|
|
import com.google.common.collect.Lists; |
|
|
import com.google.common.collect.Lists; |
|
|
|
|
|
import com.sun.xml.internal.ws.api.FeatureConstructor; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.jsoup.helper.StringUtil; |
|
|
import org.jsoup.helper.StringUtil; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureOrder; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.web.multipart.MultipartFile; |
|
|
import org.springframework.web.multipart.MultipartFile; |
|
@ -130,6 +128,12 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
@Autowired |
|
|
@Autowired |
|
|
private PartyStandardBearerApplyDao partyStandardBearerApplyDao; |
|
|
private PartyStandardBearerApplyDao partyStandardBearerApplyDao; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private PartyStandardBearerApplyService partyStandardBearerApplyService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private PartyTagRelationService partyTagRelationService; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@DataSource(value = DataSourceNames.FIRST) |
|
|
@DataSource(value = DataSourceNames.FIRST) |
|
|
public PageData<UserDTO> page(Map<String, Object> params) { |
|
|
public PageData<UserDTO> page(Map<String, Object> params) { |
|
@ -1813,7 +1817,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
dto.setStatus(NumConstant.ONE_STR); |
|
|
dto.setStatus(NumConstant.ONE_STR); |
|
|
return new Result<StandardBearerStatusResultDTO>().ok(dto); |
|
|
return new Result<StandardBearerStatusResultDTO>().ok(dto); |
|
|
} |
|
|
} |
|
|
if (dto.getStatus() == NumConstant.ZERO_STR) { |
|
|
if (dto.getStatus().equals(NumConstant.ZERO_STR)) { |
|
|
dto.setStatus(NumConstant.FOUR_STR); |
|
|
dto.setStatus(NumConstant.FOUR_STR); |
|
|
return new Result<StandardBearerStatusResultDTO>().ok(dto); |
|
|
return new Result<StandardBearerStatusResultDTO>().ok(dto); |
|
|
} |
|
|
} |
|
@ -1974,4 +1978,30 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
List<UserStandaeBearerPage> list = this.baseDao.BrightFlagPartyMem(params); |
|
|
List<UserStandaeBearerPage> list = this.baseDao.BrightFlagPartyMem(params); |
|
|
return new PageData<>(list, iPage.getTotal()); |
|
|
return new PageData<>(list, iPage.getTotal()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 党员亮旗审核处理 |
|
|
|
|
|
* |
|
|
|
|
|
* @param form |
|
|
|
|
|
* @return com.elink.esua.epdc.commons.tools.utils.Result |
|
|
|
|
|
* @author LZN |
|
|
|
|
|
* @date 2022/4/29 10:59 |
|
|
|
|
|
*/ |
|
|
|
|
|
@Override |
|
|
|
|
|
public Result standaedBearerExamine(StandardBearerExamineFormDTO form) { |
|
|
|
|
|
form.setId(SecurityUser.getUser().getId().toString()); |
|
|
|
|
|
PartyStandardBearerApplyEntity entity = new PartyStandardBearerApplyEntity(); |
|
|
|
|
|
entity.setId(form.getId()); |
|
|
|
|
|
entity.setRemark(form.getRemark()); |
|
|
|
|
|
entity.setExamineFlag(form.getExamineStatus()); |
|
|
|
|
|
if(partyStandardBearerApplyService.updateById(entity)){ |
|
|
|
|
|
String TagId = baseDao.selectTagId(UserTagEnum.PARTY_STANDARD_BEARER.value()); |
|
|
|
|
|
PartyTagRelationEntity TagRelEntity = new PartyTagRelationEntity(); |
|
|
|
|
|
TagRelEntity.setPartyId(form.getId()); |
|
|
|
|
|
TagRelEntity.setTagId(TagId); |
|
|
|
|
|
partyTagRelationService.insert(TagRelEntity); |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result().error("党员亮旗审核处理失败"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|