|
@@ -487,20 +487,14 @@ public class TStaffmgrController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
} else if (j == 11) {
|
|
|
- if (cellValue != "") {
|
|
|
- entity.setAccidentNum(Long.parseLong(cellValue));//隐患查找数量
|
|
|
- }
|
|
|
- } else if (j == 12) {
|
|
|
entity.setMail(cellValue);//邮箱
|
|
|
- } else if (j == 13) {
|
|
|
- entity.setSkillScore(cellValue);//技能评估得分
|
|
|
- } else if (j == 14) {
|
|
|
+ } else if (j == 12) {
|
|
|
for (SysDept d : dept) {
|
|
|
if (d.getDeptName().equals(cellValue)) {
|
|
|
entity.setDeptId(d.getDeptId());//部门编号
|
|
|
}
|
|
|
}
|
|
|
- } else if (j == 15) {
|
|
|
+ } else if (j == 13) {
|
|
|
entity.setRemarks(cellValue);//备注
|
|
|
}
|
|
|
}
|
|
@@ -520,6 +514,26 @@ public class TStaffmgrController extends BaseController
|
|
|
failNum++;
|
|
|
try {
|
|
|
tStaffmgrService.insertTStaffmgr(t);
|
|
|
+ if (t.getUnit().equals("10") || t.getUnit().equals("18")) {
|
|
|
+ TTrainingrecords tTrainingrecords = new TTrainingrecords();
|
|
|
+ tTrainingrecords.setStaffId(t.getId());
|
|
|
+ tTrainingrecords.setPlantCode(t.getPlantCode());
|
|
|
+ tTrainingrecords.setName(t.getName());
|
|
|
+ tTrainingrecords.setEmployeeid(t.getStaffid());
|
|
|
+ tTrainingrecords.setClasses(t.getTeam());
|
|
|
+ tTrainingrecords.setDeptId(t.getDeptId());
|
|
|
+ tTrainingrecordsService.insertTTrainingrecords(tTrainingrecords);
|
|
|
+ }
|
|
|
+ if (!t.getTeam().equals("18")) {
|
|
|
+ TWorklicense tWorklicense = new TWorklicense();
|
|
|
+ tWorklicense.setPlantCode(t.getPlantCode());
|
|
|
+ tWorklicense.setClasses(t.getTeam());
|
|
|
+ tWorklicense.setName(t.getName());
|
|
|
+ tWorklicense.setEmployeeid(t.getStaffid());
|
|
|
+ tWorklicense.setPost(t.getActualpost());
|
|
|
+ tWorklicense.setDeptId(t.getDeptId());
|
|
|
+ tWorklicenseService.insertTWorklicense(tWorklicense);
|
|
|
+ }
|
|
|
successNumber++;
|
|
|
}catch (Exception e){
|
|
|
failNumber++;
|