|
@@ -412,7 +412,7 @@ public class TStaffmgrController extends BaseController
|
|
|
{
|
|
|
int insertResult = tStaffmgrService.insertTStaffmgr(tStaffmgr);
|
|
|
tStaffmgr.setCreaterCode(getUserId().toString());
|
|
|
- if (tStaffmgr.getUnit().equals("10") || tStaffmgr.getUnit().equals("18")) {
|
|
|
+ if (tStaffmgr.getUnit().equals("10") || tStaffmgr.getUnit().equals("18")|| tStaffmgr.getUnit().equals("20")) {
|
|
|
TTrainingrecords tTrainingrecords = new TTrainingrecords();
|
|
|
tTrainingrecords.setStaffId(tStaffmgr.getId());
|
|
|
tTrainingrecords.setPlantCode(tStaffmgr.getPlantCode());
|
|
@@ -513,7 +513,6 @@ public class TStaffmgrController extends BaseController
|
|
|
tWorklicense.setDeptId(tStaffmgr.getDeptId());
|
|
|
tWorklicenseService.updateTWorklicense(tWorklicense);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
return toAjax(tStaffmgrService.updateTStaffmgr(tStaffmgr));
|
|
|
}
|
|
@@ -716,7 +715,7 @@ public class TStaffmgrController extends BaseController
|
|
|
failNum++;
|
|
|
try {
|
|
|
tStaffmgrService.insertTStaffmgr(t);
|
|
|
- if (t.getUnit().equals("10") || t.getUnit().equals("18")) {
|
|
|
+ if (t.getUnit().equals("10") || t.getUnit().equals("18")|| t.getUnit().equals("20")) {
|
|
|
TTrainingrecords tTrainingrecords = new TTrainingrecords();
|
|
|
tTrainingrecords.setStaffId(t.getId());
|
|
|
tTrainingrecords.setPlantCode(t.getPlantCode());
|