|
|
@@ -789,23 +789,27 @@ public class AchievementServiceImpl extends BaseMybatisDao<AchievementMapper> im
|
|
|
int auditStatus=AchievementAuditStatus.AUDITED.getCode().intValue();
|
|
|
if(auditResult.intValue() == 0) {
|
|
|
auditStatus=AchievementAuditStatus.UNAUDITED.getCode().intValue();
|
|
|
+ if(collectFlag)jtCollectSearchMapper.deleteByrowId(id);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ auditStatus=AchievementAuditStatus.AUDITED.getCode().intValue();
|
|
|
+ if(collectFlag){
|
|
|
+ Achievement a=achievementMapper.selectByPrimaryKey(id);
|
|
|
+ JtCollectSearch r=new JtCollectSearch();
|
|
|
+ r.setFromTable(collectType.ACHIEVEMENT.getDesc());
|
|
|
+ r.setKeyword(a.getKeyword());
|
|
|
+ r.setTitle(a.getName());
|
|
|
+ r.setRowId(a.getId());
|
|
|
+ jtCollectSearchMapper.insertSelective(r);
|
|
|
+ }
|
|
|
}
|
|
|
- else auditStatus=AchievementAuditStatus.AUDITED.getCode().intValue();
|
|
|
Achievement achievement=new Achievement();
|
|
|
achievement.setId(id);
|
|
|
achievement.setAuditStatus(auditStatus);
|
|
|
achievement.setAuditInfo(auditInfo);
|
|
|
achievement.setReleaseDate(new Date());
|
|
|
achievementMapper.updateByPrimaryKeySelective(achievement);
|
|
|
- if(collectFlag){
|
|
|
- Achievement a=achievementMapper.selectByPrimaryKey(id);
|
|
|
- JtCollectSearch r=new JtCollectSearch();
|
|
|
- r.setFromTable(collectType.ACHIEVEMENT.getDesc());
|
|
|
- r.setKeyword(a.getKeyword());
|
|
|
- r.setTitle(a.getName());
|
|
|
- r.setRowId(a.getId());
|
|
|
- jtCollectSearchMapper.insertSelective(r);
|
|
|
- }
|
|
|
+
|
|
|
return auditStatus;
|
|
|
}
|
|
|
|