Просмотр исходного кода

企业录入中项目经历、工作经历的至今问题

XMTT лет назад: 7
Родитель
Сommit
2c2a0c05f0
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      src/main/java/com/ekexiu/console/system/service/UserInfoService.java

+ 10 - 2
src/main/java/com/ekexiu/console/system/service/UserInfoService.java

@ -295,7 +295,11 @@ public class UserInfoService {
295 295
                        project1.setProfessorId(userInfo.getId());
296 296
                        project1.setDescp((String) project.get("projectDescp"));
297 297
                        project1.setStartMonth((String) project.get("projectStart"));
298
                        project1.setStopMonth((String) project.get("projectStop"));
298
                        if ("至今".equals(project.get("projectStop"))) {
299
                            project1.setStopMonth(null);
300
                        }else {
301
                            project1.setStopMonth((String) project.get("projectStop"));
302
                        }
299 303
                        this.projectDao.insert(con, project1);
300 304
                    }
301 305
                }
@ -325,7 +329,11 @@ public class UserInfoService {
325 329
                        partTimeJob.setDepartment((String) job.get("jobDepartment"));
326 330
                        partTimeJob.setTitle((String) job.get("jobTitle"));
327 331
                        partTimeJob.setStartMonth((String) job.get("jobStart"));
328
                        partTimeJob.setStopMonth((String) job.get("jobStop"));
332
                        if ("至今".equals(job.get("jobStop"))) {
333
                            partTimeJob.setStopMonth(null);
334
                        }else {
335
                            partTimeJob.setStopMonth((String) job.get("jobStop"));
336
                        }
329 337
                        this.partTimeJobDao.insert(con, partTimeJob);
330 338
                    }
331 339
                }