|
|
@@ -30,6 +30,7 @@ import cn.iocoder.yudao.module.system.api.user.AdminUserApi;
|
|
|
import cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
+import liquibase.pro.packaged.L;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.flowable.engine.TaskService;
|
|
|
import org.flowable.task.api.Task;
|
|
|
@@ -88,7 +89,7 @@ public class OaEntryServiceImpl implements OaEntryService {
|
|
|
AdminUserRespDTO loginUser = adminUserApi.getUser(loginUserId);
|
|
|
Objects.requireNonNull(loginUser, "登录用户不能为空");
|
|
|
// TODO DP 根据登录人查询出对应的员工信息
|
|
|
-
|
|
|
+ AdminUserRespDTO applyEmployee = loginUser;
|
|
|
OaEntryDO oaEntry = BeanUtils.toBean(stagingReqVO, OaEntryDO.class);
|
|
|
if (StringUtils.isBlank(oaEntry.getEntryId())) {
|
|
|
// 创建单据uuid
|
|
|
@@ -97,6 +98,8 @@ public class OaEntryServiceImpl implements OaEntryService {
|
|
|
}
|
|
|
oaEntry.setAuditStatus(DictDataConstants.OA_AUDIT_STATUS_STAGING);
|
|
|
oaEntry.setInfoSource("0");
|
|
|
+ oaEntry.setApplyEmployeeId(applyEmployee.getId());
|
|
|
+ oaEntry.setApplyEmployeeName(applyEmployee.getNickname());
|
|
|
// 暂存不保存审批人信息
|
|
|
oaEntry.setStartUserSelectAssignees(null);
|
|
|
// 保存或更新表单信息
|
|
|
@@ -122,6 +125,7 @@ public class OaEntryServiceImpl implements OaEntryService {
|
|
|
AdminUserRespDTO loginUser = adminUserApi.getUser(loginUserId);
|
|
|
Objects.requireNonNull(loginUser, "登录用户不能为空");
|
|
|
// TODO DP 根据登录人查询出对应的员工信息
|
|
|
+ AdminUserRespDTO applyEmployee = loginUser;
|
|
|
|
|
|
OaEntryDO oaEntry = BeanUtils.toBean(commitReqVO, OaEntryDO.class);
|
|
|
if (StringUtils.isBlank(oaEntry.getEntryId())) {
|
|
|
@@ -130,6 +134,8 @@ public class OaEntryServiceImpl implements OaEntryService {
|
|
|
oaEntry.setEntryId(uuid);
|
|
|
}
|
|
|
oaEntry.setInfoSource("0");
|
|
|
+ oaEntry.setApplyEmployeeId(applyEmployee.getId());
|
|
|
+ oaEntry.setApplyEmployeeName(applyEmployee.getNickname());
|
|
|
// 保存或更新表单信息
|
|
|
if (oaEntry.getId() == null) {
|
|
|
oaEntryMapper.insert(oaEntry);
|