提意见增加公司名

This commit is contained in:
517612449@qq.com
2022-07-08 16:12:45 +08:00
parent ad82983e67
commit cadd2785ac
2 changed files with 10 additions and 0 deletions

View File

@ -88,6 +88,12 @@ public class EventContactSuggestion implements Serializable {
@ApiModelProperty(value = "意见提出人组织机构")
private String suggestionSponsorUnit;
/**
* 意见提出人公司
*/
@ApiModelProperty(value = "意见提出人公司")
private String company;
/**
* 备注
*/

View File

@ -1,6 +1,7 @@
package com.chinaunicom.mall.ebtp.extend.partyMemberEvent.service.impl;
import cn.hutool.core.util.StrUtil;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser;
import com.chinaunicom.mall.ebtp.common.base.service.IBaseCacheUserService;
import com.chinaunicom.mall.ebtp.common.util.PropertyUtils;
@ -32,6 +33,9 @@ public class EventContactSuggestionServiceImpl extends ServiceImpl<EventContactS
suggestion.setSuggestionSponsorId(cacheUser.getUserId());
suggestion.setSuggestionSponsorUnit(cacheUser.getOrganizationId());
suggestion.setCreateTime(LocalDateTime.now());
if (StrUtil.isBlank(suggestion.getCompany())) {
suggestion.setCompany(cacheUser.getOrganizationName());
}
return this.save(suggestion);
}
}