提意见增加公司名
This commit is contained in:
@ -88,6 +88,12 @@ public class EventContactSuggestion implements Serializable {
|
||||
@ApiModelProperty(value = "意见提出人组织机构")
|
||||
private String suggestionSponsorUnit;
|
||||
|
||||
/**
|
||||
* 意见提出人公司
|
||||
*/
|
||||
@ApiModelProperty(value = "意见提出人公司")
|
||||
private String company;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user