|
@@ -12,6 +12,9 @@ import com.zjugis.framework.workflow.model.ProcessDto;
|
|
|
import com.zjugis.framework.workflow.model.SerialNumberDto;
|
|
|
import com.zjugis.framework.workflow.rpc.remote.WorkflowClient;
|
|
|
import com.zjugis.framework.workflow.utils.zTree;
|
|
|
+import com.zjugis.module.adm.api.workday.WorkdayApi;
|
|
|
+import com.zjugis.module.adm.api.workday.dto.WorkdayListReqDTO;
|
|
|
+import com.zjugis.module.adm.api.workday.dto.WorkdayRespDTO;
|
|
|
import com.zjugis.module.system.api.area.dto.AreaNodeRespVO;
|
|
|
import com.zjugis.module.system.api.company.CompanyApi;
|
|
|
import com.zjugis.module.system.api.company.dto.CompanyRespDTO;
|
|
@@ -20,6 +23,7 @@ import com.zjugis.module.system.api.dept.dto.DeptRespDTO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
@@ -45,6 +49,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
@Autowired
|
|
|
DeptApi deptApi;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private WorkdayApi workdayApi;
|
|
|
+
|
|
|
@Override
|
|
|
public List<zTree> getProjectTypeZTree() {
|
|
|
List<ProjectTypeNode> tree = projectTypeService.tree();
|
|
@@ -139,6 +146,11 @@ public class CommonServiceImpl implements CommonService {
|
|
|
return workflowClient.createProcess(processDto);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<WorkdayRespDTO> getWorkDayList(WorkdayListReqDTO reqDTO) {
|
|
|
+ return workdayApi.getWorkdayList(reqDTO).getCheckedData();
|
|
|
+ }
|
|
|
+
|
|
|
private void convertProjectType2Ztree(List<ProjectTypeNode> tree, String pid,List<zTree> zTrees){
|
|
|
for (ProjectTypeNode projectTypeNode : tree) {
|
|
|
zTree node = new zTree();
|