|
@@ -2,10 +2,13 @@ package com.ruoyi.daily.member.service.impl;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
+import com.ruoyi.base.staff.mapper.StaffMapper;
|
|
|
import com.ruoyi.common.annotation.DataScope;
|
|
|
+import com.ruoyi.common.core.domain.entity.SysDept;
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
+import com.ruoyi.system.mapper.SysDeptMapper;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.daily.member.mapper.MemberMapper;
|
|
@@ -25,6 +28,11 @@ public class MemberServiceImpl implements IMemberService
|
|
|
@Autowired
|
|
|
private MemberMapper memberMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private StaffMapper staffMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private SysDeptMapper deptMapper;
|
|
|
/**
|
|
|
* 查询党员风采管理
|
|
|
*
|
|
@@ -62,9 +70,9 @@ public class MemberServiceImpl implements IMemberService
|
|
|
member.setCreateBy(ShiroUtils.getLoginName());
|
|
|
member.setPublishBy(ShiroUtils.getLoginName());
|
|
|
member.setCreateTime(DateUtils.getNowDate());
|
|
|
-
|
|
|
- member.setPubOrganize(ShiroUtils.getSysUser().getDept().getDeptName());
|
|
|
- member.setPubOrganizeId(ShiroUtils.getSysUser().getDeptId().toString());
|
|
|
+ SysDept dept = deptMapper.selectDeptById(staffMapper.selectStaffById(member.getStaffId()).getOrganizeCode());
|
|
|
+ member.setPubOrganize(dept.getDeptName());
|
|
|
+ member.setPubOrganizeId(dept.getDeptId().toString());
|
|
|
|
|
|
member.setStatus("1");//新增初审给未审核终审不给用于前端控制审核按钮
|
|
|
|