|
|
@@ -71,7 +71,7 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
|
|
71
|
71
|
List<BasicKeeperEducation> zyjsList = new ArrayList<BasicKeeperEducation>(); //专业技术职称2
|
|
72
|
72
|
List<BasicKeeperEducation> zyzgList = new ArrayList<BasicKeeperEducation>(); //职业资格及等级3
|
|
73
|
73
|
List<BasicKeeperEducation> sgzList = new ArrayList<BasicKeeperEducation>(); //上岗证4
|
|
74
|
|
- List<BasicKeeperEducation> zswjList = new ArrayList<BasicKeeperEducation>(); //证书附件5
|
|
|
74
|
+ List<BasicKeeperEducation> jllgList = new ArrayList<BasicKeeperEducation>(); //交流轮岗5
|
|
75
|
75
|
BasicKeeperEducation ekeObje = null;
|
|
76
|
76
|
|
|
77
|
77
|
if (id != null) {
|
|
|
@@ -133,6 +133,9 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
|
|
133
|
133
|
} else if (4 == bke.getDatatype()) {
|
|
134
|
134
|
bke.setDatatype(4);
|
|
135
|
135
|
sgzList.add(bke);
|
|
|
136
|
+ } else if (5 == bke.getDatatype()) {
|
|
|
137
|
+ bke.setDatatype(4);
|
|
|
138
|
+ jllgList.add(bke);
|
|
136
|
139
|
}
|
|
137
|
140
|
}
|
|
138
|
141
|
}
|
|
|
@@ -170,18 +173,18 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
|
|
170
|
173
|
ekeObje.setDatatype(4);
|
|
171
|
174
|
sgzList.add(ekeObje);
|
|
172
|
175
|
}
|
|
173
|
|
- if (null == zswjList || zswjList.size() == 0) {
|
|
|
176
|
+ if (null == jllgList || jllgList.size() == 0) {
|
|
174
|
177
|
ekeObje = new BasicKeeperEducation();
|
|
175
|
178
|
ekeObje.setKeeperId(keeper.getId());
|
|
176
|
179
|
ekeObje.setDatatype(5);
|
|
177
|
|
- zswjList.add(ekeObje);
|
|
|
180
|
+ jllgList.add(ekeObje);
|
|
178
|
181
|
}
|
|
179
|
182
|
|
|
180
|
183
|
map.put("xlxwList", xlxwList);
|
|
181
|
184
|
map.put("zyjsList", zyjsList);
|
|
182
|
185
|
map.put("zyzgList", zyzgList);
|
|
183
|
186
|
map.put("sgzList", sgzList);
|
|
184
|
|
- map.put("zswjList", zswjList);
|
|
|
187
|
+ map.put("jllgList", jllgList);
|
|
185
|
188
|
|
|
186
|
189
|
return map;
|
|
187
|
190
|
}
|
|
|
@@ -270,7 +273,7 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
|
|
270
|
273
|
@Override
|
|
271
|
274
|
@Transactional(rollbackFor = Exception.class)
|
|
272
|
275
|
public void editKeeper(String userInfo, String keeper,
|
|
273
|
|
- String xwxlJson, String zyjsJson, String zyzgJson, String sgzJson) throws Exception {
|
|
|
276
|
+ String xwxlJson, String zyjsJson, String zyzgJson, String sgzJson, String jllgJson) throws Exception {
|
|
274
|
277
|
Date date = new Date();
|
|
275
|
278
|
JSONObject user = null;
|
|
276
|
279
|
Integer orgId = null;
|
|
|
@@ -314,16 +317,19 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
|
|
314
|
317
|
//更新子表数据
|
|
315
|
318
|
//学历学位信息1
|
|
316
|
319
|
List<BasicKeeperEducation> xlxwList = mappers.readValue(xwxlJson, new TypeReference<List<BasicKeeperEducation>>(){});
|
|
317
|
|
- editEducation(xlxwList, id);
|
|
318
|
|
- //专业技术职称2
|
|
|
320
|
+ editEducation(xlxwList, id, basicKeeper.getOrgId());
|
|
|
321
|
+ //技能等级2
|
|
319
|
322
|
List<BasicKeeperEducation> zyjsList = mappers.readValue(zyjsJson, new TypeReference<List<BasicKeeperEducation>>(){});
|
|
320
|
|
- editEducation(zyjsList, id);
|
|
321
|
|
- //职业资格及等级3
|
|
|
323
|
+ editEducation(zyjsList, id, basicKeeper.getOrgId());
|
|
|
324
|
+ //职称和荣誉称号3
|
|
322
|
325
|
List<BasicKeeperEducation> zyzgList = mappers.readValue(zyzgJson, new TypeReference<List<BasicKeeperEducation>>(){});
|
|
323
|
|
- editEducation(zyzgList, id);
|
|
|
326
|
+ editEducation(zyzgList, id, basicKeeper.getOrgId());
|
|
324
|
327
|
//上岗证4
|
|
325
|
328
|
List<BasicKeeperEducation> sgzList = mappers.readValue(sgzJson, new TypeReference<List<BasicKeeperEducation>>(){});
|
|
326
|
|
- editEducation(sgzList, id);
|
|
|
329
|
+ editEducation(sgzList, id, basicKeeper.getOrgId());
|
|
|
330
|
+ //交流轮岗5
|
|
|
331
|
+ List<BasicKeeperEducation> jllgList = mappers.readValue(jllgJson, new TypeReference<List<BasicKeeperEducation>>(){});
|
|
|
332
|
+ editEducation(jllgList, id, basicKeeper.getOrgId());
|
|
327
|
333
|
|
|
328
|
334
|
}
|
|
329
|
335
|
|
|
|
@@ -334,33 +340,39 @@ public class BasicKeeperServiceImpl implements BasicKeeperService {
|
|
334
|
340
|
* @param id
|
|
335
|
341
|
*/
|
|
336
|
342
|
@Transactional(rollbackFor = Exception.class)
|
|
337
|
|
- public void editEducation(List<BasicKeeperEducation> edcationList, Integer id) {
|
|
|
343
|
+ public void editEducation(List<BasicKeeperEducation> edcationList, Integer id, Integer orgId) {
|
|
338
|
344
|
Integer dataType = 0; //数据类型
|
|
339
|
345
|
for (BasicKeeperEducation bke : edcationList) {
|
|
340
|
346
|
if (null == bke.getId() || "".equals(bke.getId())) {
|
|
341
|
347
|
bke.setKeeperId(id);
|
|
342
|
348
|
dataType = bke.getDatatype();
|
|
343
|
|
- if ("1".equals(dataType) || dataType == 1) {
|
|
344
|
|
- Integer type = bke.getType();
|
|
345
|
|
- if (type == null) {
|
|
|
349
|
+ if ("1".equals(dataType) || dataType == 1) {//学历
|
|
|
350
|
+// Integer education = bke.getEducation();
|
|
|
351
|
+// if (education == null) {
|
|
|
352
|
+// continue;
|
|
|
353
|
+// }
|
|
|
354
|
+ } else if ("2".equals(dataType) || dataType == 2) {//技能等级
|
|
|
355
|
+ String departMent = bke.getDepartment();
|
|
|
356
|
+ if (departMent == null || "".equals(departMent)) {
|
|
346
|
357
|
continue;
|
|
347
|
358
|
}
|
|
348
|
|
- } else if ("2".equals(dataType) || dataType == 2) {
|
|
|
359
|
+ } else if ("3".equals(dataType) || dataType == 3) {//职称和荣誉称号
|
|
349
|
360
|
String departMent = bke.getDepartment();
|
|
350
|
361
|
if (departMent == null || "".equals(departMent)) {
|
|
351
|
362
|
continue;
|
|
352
|
363
|
}
|
|
353
|
|
- } else if ("3".equals(dataType) || dataType == 3) {
|
|
354
|
|
- Integer occupation = bke.getOccupation();
|
|
355
|
|
- if (occupation == null) {
|
|
|
364
|
+ } if ("4".equals(dataType) || dataType == 3) {//上岗证
|
|
|
365
|
+ String departMent = bke.getDepartment();
|
|
|
366
|
+ if (departMent == null || "".equals(departMent)) {
|
|
356
|
367
|
continue;
|
|
357
|
368
|
}
|
|
358
|
|
- } else if ("5".equals(dataType) || dataType == 5) {
|
|
359
|
|
- String department = bke.getDepartment();
|
|
360
|
|
- if (department == null) {
|
|
|
369
|
+ } else if ("5".equals(dataType) || dataType == 5) {//交流轮岗
|
|
|
370
|
+ String fzywlx = bke.getFzywlx();
|
|
|
371
|
+ if (fzywlx == null) {
|
|
361
|
372
|
continue;
|
|
362
|
373
|
}
|
|
363
|
374
|
}
|
|
|
375
|
+ bke.setOrgId(orgId);
|
|
364
|
376
|
eduMapper.insertSelective(bke);
|
|
365
|
377
|
} else {
|
|
366
|
378
|
eduMapper.updateByPrimaryKeySelective(bke);
|