|
|
@@ -88,7 +88,9 @@ public class PatentNewServiceImpl extends BaseMybatisDao<PatentNewMapper> imple
|
|
|
pl.setPid(p.getId());
|
|
|
Admin a = adminMapper.selectByPrimaryKey(TokenManager.getAdminId());
|
|
|
PatentNew pn=patentNewMapper.selectByPrimaryKey(p.getId());
|
|
|
- pl.setContent(a.getName() + "修改了专利内容。");
|
|
|
+ StringBuffer str=new StringBuffer(a.getName() + "修改了:");
|
|
|
+ getUpdateField(p,pn,str);
|
|
|
+ pl.setContent(str.toString());
|
|
|
if (!p.getApplyDate().equals(pn.getApplyDate())
|
|
|
|| p.getType() != pn.getType()
|
|
|
|| ! p.getTid().equals(pn.getTid())) {
|
|
|
@@ -104,6 +106,13 @@ public class PatentNewServiceImpl extends BaseMybatisDao<PatentNewMapper> imple
|
|
|
return patentNewMapper.updateByPrimaryKeySelective(p);
|
|
|
}
|
|
|
|
|
|
+ private void getUpdateField(PatentNewBo p, PatentNew pn,StringBuffer str) {
|
|
|
+ StringBuffer s=new StringBuffer();
|
|
|
+ if (!p.getPatentNo().equals(pn.getPatentNo())) {
|
|
|
+ s.append("[专利号:").append(pn.getPatentNo()).append(" => ").append(p.getPatentNo());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@SuppressWarnings("unchecked")
|
|
|
@Override
|
|
|
public Pagination<PatentNewBo> selectPatentNew(PatentNewBo p,Integer pageSize, Integer pageNo) {
|