|
|
@@ -18,6 +18,7 @@ import com.ruoyi.project.mapper.ProjectStaffRecordMapper;
|
|
|
import com.ruoyi.project.mapper.ProjectTaskMapper;
|
|
|
import com.ruoyi.project.service.ProjectStaffRecordService;
|
|
|
import com.ruoyi.system.mapper.SysUserMapper;
|
|
|
+import com.ruoyi.system.service.ISysDeptService;
|
|
|
import com.ruoyi.weChat.service.WeChatService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
@@ -44,6 +45,8 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
protected Validator validator;
|
|
|
@Autowired
|
|
|
private WeChatService weChatService;
|
|
|
+ @Autowired
|
|
|
+ private ISysDeptService deptService;
|
|
|
|
|
|
@Override
|
|
|
public AjaxResult add(ProjectStaffRecord in) {
|
|
|
@@ -136,6 +139,8 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
}else if (in.getRoleType()==3){
|
|
|
|
|
|
}
|
|
|
+ Long companyId = deptService.selectCompanyByDeptId();
|
|
|
+ if (companyId!=null)in.setCompanyId(companyId);
|
|
|
return projectStaffRecordMapper.selectList(in);
|
|
|
}
|
|
|
|