|
@@ -90,6 +90,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
throw new BusinessException("转换异常");
|
|
throw new BusinessException("转换异常");
|
|
|
}
|
|
}
|
|
|
|
|
+ in.setStatus(1);
|
|
|
publicReleaseMapper.updateByPrimaryKeySelective(in);
|
|
publicReleaseMapper.updateByPrimaryKeySelective(in);
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|
|
@@ -110,6 +111,9 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
p.setId(id);
|
|
p.setId(id);
|
|
|
p.setStatus(status);
|
|
p.setStatus(status);
|
|
|
PublicRelease use=publicReleaseMapper.selectByPrimaryKey(id);
|
|
PublicRelease use=publicReleaseMapper.selectByPrimaryKey(id);
|
|
|
|
|
+ if (use.getStatus()!=1) {
|
|
|
|
|
+ throw new BusinessException("只能修改已发起的状态");
|
|
|
|
|
+ }
|
|
|
publicReleaseMapper.updateByPrimaryKeySelective(p);
|
|
publicReleaseMapper.updateByPrimaryKeySelective(p);
|
|
|
PublicReleaseLog log=new PublicReleaseLog(id,TokenManager.getAdminId(),status,remarks,new Date());
|
|
PublicReleaseLog log=new PublicReleaseLog(id,TokenManager.getAdminId(),status,remarks,new Date());
|
|
|
publicReleaseLogMapper.insertSelective(log);
|
|
publicReleaseLogMapper.insertSelective(log);
|