|
|
@@ -101,6 +101,13 @@ public class UserArchivesServiceImpl extends BaseMybatisDao< UserArchivesMapper>
|
|
|
*/
|
|
|
@Override
|
|
|
public UserArchives update(UserArchives userArchives) {
|
|
|
+ int count = 0;
|
|
|
+ count+=userArchives.getAppearancePatentCount();
|
|
|
+ count+=userArchives.getInventionPatentCount();
|
|
|
+ count+=userArchives.getUtilityModelCount();
|
|
|
+ count+=userArchives.getSoftwareWorksCount();
|
|
|
+ count+=userArchives.getOtherCount();
|
|
|
+ userArchives.setPatentCount(count);
|
|
|
this.userArchivesMapper.update(userArchives);
|
|
|
return this.queryById(userArchives.getId());
|
|
|
}
|