|
@@ -164,7 +164,12 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
throw new BusinessException("转换异常");
|
|
throw new BusinessException("转换异常");
|
|
|
}
|
|
}
|
|
|
- if(in.getStatus()!=3)in.setStatus(1);
|
|
|
|
|
|
|
+ if(in.getStatus()==null||in.getStatus()!=3) {
|
|
|
|
|
+ in.setStatus(1);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ PublicReleaseLog log=new PublicReleaseLog(in.getId(),TokenManager.getAdminId(),4,in.getReason(),new Date());
|
|
|
|
|
+ publicReleaseLogMapper.insertSelective(log);
|
|
|
|
|
+ }
|
|
|
publicReleaseMapper.updateByPrimaryKeySelective(in);
|
|
publicReleaseMapper.updateByPrimaryKeySelective(in);
|
|
|
return 1;
|
|
return 1;
|
|
|
}
|
|
}
|