Commit ae5ff8e6 by jx-art

填充发起人信息

parent dadc959e
......@@ -167,9 +167,6 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
return AjaxResult.success(typeService.queryConfigType());
}
@Autowired
AdminUserHolder userHolder;
/**
* 添加变更模板并参数拼接
* @param changeTypes
......
package com.netease.mail.yanxuan.change.biz.service.impl.change;
import com.netease.mail.yanxuan.change.biz.service.change.ChangeExecConfigService;
import com.netease.mail.yanxuan.change.common.bean.AdminUserHolder;
import com.netease.mail.yanxuan.change.dal.entity.ChangeExecConfig;
import com.netease.mail.yanxuan.change.dal.mapper.ChangeExecConfigMapper;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -27,6 +28,10 @@ public class ChangeExecConfigServiceImpl implements ChangeExecConfigService {
long currentTime = System.currentTimeMillis();
//循环添加
for (ChangeExecConfig changeExecConfig : changeExecConfigs){
//如果变更行动方案是变更发起人的话就填充登入人信息
if(changeExecConfig.getChangeExecUserType() == 1){
changeExecConfig.setChangeExecUser(AdminUserHolder.getUserName());
}
changeExecConfig.setChangeTemplateId(id);
changeExecConfig.setCreateTime(currentTime);
changeExecConfig.setUpdateTime(currentTime);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment