Пример #1
0
  @Override
  public void updateSchoolExam(User me, SchoolExam schoolExam) {

    schoolExam.setMdfusr(Constant.USER_SYS);
    schoolExam.setLstmdf(Utils.now());
    schoolExam.setMdfpgm(Constant.PGM_REST);

    if (me != null) {
      schoolExam.setMdfusr(me.getSso_id());
      ApiKey apiKey = me.getApi_key();
      String device = null;
      if (apiKey != null && apiKey.getApi_key() != null) {
        device = apiKey.getApi_key();
      }
      if (device != null) {
        schoolExam.setMdfwks(device);
      }
    }
    update(schoolExam);
  }
Пример #2
0
  @Override
  public void saveSchoolExam(User me, SchoolExam schoolExam) {

    schoolExam.setActflg("A");
    schoolExam.setCtdusr(Constant.USER_SYS);
    schoolExam.setCtddtm(Utils.now());
    schoolExam.setCtdpgm(Constant.PGM_REST);

    if (me != null) {
      schoolExam.setCtdusr(me.getSso_id());
      ApiKey apiKey = me.getApi_key();
      String device = null;
      if (apiKey != null && apiKey.getApi_key() != null) {
        device = apiKey.getApi_key();
      }
      if (device != null) {
        schoolExam.setCtdwks(device);
      }
    }

    save(schoolExam);
  }