|
@ -35,6 +35,7 @@ import com.epmet.dao.ResiEventDao; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.entity.ResiEventEntity; |
|
|
import com.epmet.entity.ResiEventEntity; |
|
|
|
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
import com.epmet.service.ResiEventService; |
|
|
import com.epmet.service.ResiEventService; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@ -66,6 +67,8 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
private String imgSyncScanMethod; |
|
|
private String imgSyncScanMethod; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
private GovOrgOpenFeignClient govOrgOpenFeignClient; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -136,7 +139,11 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven |
|
|
resiEventEntity.setPids(gridInfoRes.getData().getPids()); |
|
|
resiEventEntity.setPids(gridInfoRes.getData().getPids()); |
|
|
resiEventEntity.setReportUserId(formDTO.getUserId()); |
|
|
resiEventEntity.setReportUserId(formDTO.getUserId()); |
|
|
//todo
|
|
|
//todo
|
|
|
resiEventEntity.setIsParty("?????"); |
|
|
Result<Boolean> partyRes=epmetUserOpenFeignClient.selectIsPartyMemberByUserId(formDTO.getUserId()); |
|
|
|
|
|
if(!partyRes.success()||null==partyRes.getData()){ |
|
|
|
|
|
throw new RenException("查询用户是否是党员异常"); |
|
|
|
|
|
} |
|
|
|
|
|
resiEventEntity.setIsParty(partyRes.getData()); |
|
|
resiEventEntity.setStatus(EventConstant.EVENT_STATUS_PROCESSING); |
|
|
resiEventEntity.setStatus(EventConstant.EVENT_STATUS_PROCESSING); |
|
|
resiEventEntity.setShiftProject(false); |
|
|
resiEventEntity.setShiftProject(false); |
|
|
resiEventEntity.setProjectId(StrConstant.EPMETY_STR); |
|
|
resiEventEntity.setProjectId(StrConstant.EPMETY_STR); |
|
|