|
@@ -8,7 +8,9 @@ import com.ruoyi.project.plant.service.ITStaffmgrService;
|
|
|
import com.ruoyi.project.system.service.ISysDeptService;
|
|
|
import com.ruoyi.project.system.service.ISysDictTypeService;
|
|
|
import com.ruoyi.project.training.domain.TTrainingCompanylevel;
|
|
|
+import com.ruoyi.project.training.domain.TTrainingMatrix;
|
|
|
import com.ruoyi.project.training.service.ITTrainingCompanylevelService;
|
|
|
+import com.ruoyi.project.training.service.ITTrainingMatrixService;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -41,6 +43,8 @@ public class TTrainingParticipantsController extends BaseController
|
|
|
private ISysDeptService iSysDeptService;
|
|
|
@Autowired
|
|
|
private ISysDictTypeService iSysDictTypeService;
|
|
|
+ @Autowired
|
|
|
+ private ITTrainingMatrixService tTrainingMatrixService;
|
|
|
|
|
|
/**
|
|
|
* 查询人员-公司级培训关系列表
|
|
@@ -101,8 +105,17 @@ public class TTrainingParticipantsController extends BaseController
|
|
|
company.add("每" + tTrainingCompanylevels.get(i).getFrequency() + "年一次");
|
|
|
companyDate.add("每" + tTrainingCompanylevels.get(i).getFrequency() + "年一次");
|
|
|
}else {
|
|
|
- company.add("一次");
|
|
|
- companyDate.add("一次");
|
|
|
+ TTrainingMatrix matrix = new TTrainingMatrix();
|
|
|
+ matrix.setCourseCode(tTrainingCompanylevels.get(i).getCourseCode());
|
|
|
+ matrix.setDeptId(tTrainingCompanylevels.get(i).getDeptId());
|
|
|
+ List<TTrainingMatrix> matrixList = tTrainingMatrixService.selectTTrainingMatrixList(matrix);
|
|
|
+ if (matrixList.size() > 0) {
|
|
|
+ company.add(matrixList.get(0).getFrequency());
|
|
|
+ companyDate.add(matrixList.get(0).getFrequency());
|
|
|
+ }else {
|
|
|
+ company.add("一次");
|
|
|
+ companyDate.add("一次");
|
|
|
+ }
|
|
|
}
|
|
|
for (TStaffmgr s : staffmgrs) {
|
|
|
//按人员筛
|