|
|
|
@ -23,7 +23,6 @@ import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.OrganizationTypeConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
import com.elink.esua.epdc.commons.tools.redis.RedisKeys; |
|
|
|
import com.elink.esua.epdc.commons.tools.redis.RedisUtils; |
|
|
|
@ -172,7 +171,7 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public EpdcEventsEntity saveEvent(EpdcEventSubmitFormDTO dto) { |
|
|
|
public Result saveEvent(EpdcEventSubmitFormDTO dto) { |
|
|
|
//内容审核
|
|
|
|
Boolean isConReview = dto.getIsConReview(); |
|
|
|
List<String> textList = new ArrayList<>(); |
|
|
|
@ -188,7 +187,8 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
dto.getNickName(), CheckDataUtils.cate_two, CheckDataUtils.decision_one, ModuleName.ISSUE_SUBMIT.getCode(), textList, |
|
|
|
dto.getImages(), null,contentResult, imgResult,null,dto.getMobile(),"0",deptDto); |
|
|
|
contentSecurityFeign.insertViolationsRecord(record); |
|
|
|
throw new RenException(CheckDataUtils.violations_code,CheckDataUtils.violations_message); |
|
|
|
// throw new RenException(CheckDataUtils.violations_code,CheckDataUtils.violations_message);
|
|
|
|
return new Result().error(CheckDataUtils.violations_code,CheckDataUtils.violations_message); |
|
|
|
} |
|
|
|
|
|
|
|
EpdcEventsEntity entity = ConvertUtils.sourceToTarget(dto, EpdcEventsEntity.class); |
|
|
|
@ -227,8 +227,8 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
contentSecurityFeign.insertRecords(record); |
|
|
|
} |
|
|
|
} |
|
|
|
return entity; |
|
|
|
// return new Result<EpdcEventsEntity>().ok(entity);
|
|
|
|
// return entity;
|
|
|
|
return new Result<EpdcEventsEntity>().ok(entity); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ -552,7 +552,8 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl<EpdcEventsDao, EpdcEv |
|
|
|
dto.setCategoryFullName(categoryInfo.getCategoryFullName()); |
|
|
|
|
|
|
|
// 保存事件
|
|
|
|
EpdcEventsEntity eventsEntity = this.saveEvent(dto); |
|
|
|
Result<EpdcEventsEntity> eventsEntityResult = this.saveEvent(dto); |
|
|
|
EpdcEventsEntity eventsEntity = eventsEntityResult.getData(); |
|
|
|
// 保存议题
|
|
|
|
IssueEntity issueEntity = this.initIssueEntity(eventsEntity); |
|
|
|
issueService.insert(issueEntity); |
|
|
|
|