|
|
@ -97,7 +97,7 @@ public class PartyGroupGuideServiceImpl extends BaseServiceImpl<PartyGroupGuideD |
|
|
|
// 判断是否插入
|
|
|
|
StringBuffer partyGroupName = this.partyGroupOpertionLimit(dto); |
|
|
|
if (null != partyGroupName && partyGroupName.length() > 0){ |
|
|
|
return new Result().error("[" + partyGroupName + "]在" + DayOfWeekEnum.getEnumByKey(dto.getDayOfWeek()) + "已存在党群指南"); |
|
|
|
return new Result().error("[" + partyGroupName + "]已存在" + DayOfWeekEnum.getEnumByKey(dto.getDayOfWeek()) + "显示的党群指南"); |
|
|
|
} |
|
|
|
// 保存到党群指南表
|
|
|
|
PartyGroupGuideEntity entity = ConvertUtils.sourceToTarget(dto, PartyGroupGuideEntity.class); |
|
|
@ -118,7 +118,7 @@ public class PartyGroupGuideServiceImpl extends BaseServiceImpl<PartyGroupGuideD |
|
|
|
if (null != partyGroupName && partyGroupName.length() > 0){ |
|
|
|
// 如果存在,则恢复 党群指南关联关系
|
|
|
|
partyGroupGuideRelationService.deleteAllPartyGroupGuideRelation(dto.getId(), NumConstant.ZERO_STR); |
|
|
|
return new Result().error("[" + partyGroupName + "]在" + DayOfWeekEnum.getEnumByKey(dto.getDayOfWeek()) + "已存在党群指南"); |
|
|
|
return new Result().error("[" + partyGroupName + "]已存在" + DayOfWeekEnum.getEnumByKey(dto.getDayOfWeek()) + "显示的党群指南"); |
|
|
|
} |
|
|
|
// 修改党群指南表
|
|
|
|
PartyGroupGuideEntity entity = ConvertUtils.sourceToTarget(dto, PartyGroupGuideEntity.class); |
|
|
|