|
@@ -138,7 +138,7 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
|
|
|
private void disposeAchievementPublish(Achievement a,List<String> webPages,List<String> appPages,boolean delete){
|
|
private void disposeAchievementPublish(Achievement a,List<String> webPages,List<String> appPages,boolean delete){
|
|
|
if(delete){
|
|
if(delete){
|
|
|
if(null != webPages && webPages.size()>0){
|
|
if(null != webPages && webPages.size()>0){
|
|
|
- achievementPublishMapper.batchDeleteByAchievementId(a.getId());
|
|
|
|
|
|
|
+ achievementPublishMapper.deleteByAchievementId(a.getId());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
AchievementPublish ap = null;
|
|
AchievementPublish ap = null;
|
|
@@ -200,6 +200,7 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
|
|
|
public int deleteByPrimaryKey(List<String> id) {
|
|
public int deleteByPrimaryKey(List<String> id) {
|
|
|
achievementKeywordMapper.batchDeleteByAchievementIds(id);
|
|
achievementKeywordMapper.batchDeleteByAchievementIds(id);
|
|
|
achievementDemandMapper.batchDeleteByAchievementIds(id);
|
|
achievementDemandMapper.batchDeleteByAchievementIds(id);
|
|
|
|
|
+ achievementPublishMapper.batchDeleteByAchievementIds(id);
|
|
|
for (String s : id) {
|
|
for (String s : id) {
|
|
|
Achievement a = achievementMapper.selectByPrimaryKey(s);
|
|
Achievement a = achievementMapper.selectByPrimaryKey(s);
|
|
|
if (null != a && AchievementAuditStatus.AUDITED.getCode().equals(a.getAuditStatus())
|
|
if (null != a && AchievementAuditStatus.AUDITED.getCode().equals(a.getAuditStatus())
|
|
@@ -408,7 +409,7 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
|
|
|
// }
|
|
// }
|
|
|
achievementDemandMapper.deleteByAchievementId(a.getId());
|
|
achievementDemandMapper.deleteByAchievementId(a.getId());
|
|
|
achievementKeywordMapper.batchDeleteByAchievementId(a.getId());
|
|
achievementKeywordMapper.batchDeleteByAchievementId(a.getId());
|
|
|
- achievementPublishMapper.batchDeleteByAchievementId(a.getId());
|
|
|
|
|
|
|
+ achievementPublishMapper.deleteByAchievementId(a.getId());
|
|
|
int i=0;
|
|
int i=0;
|
|
|
i=achievementMapper.updateByPrimaryKeySelective(a);
|
|
i=achievementMapper.updateByPrimaryKeySelective(a);
|
|
|
if (StringUtils.isNotBlank(a.getOwnerId())) {
|
|
if (StringUtils.isNotBlank(a.getOwnerId())) {
|