コード例 #1
0
 public void repeatAduit(Long osadId) throws Exception {
   User user = WebRalasafe.getCurrentUser(Struts2Utils.getRequest());
   OprShuntApplyDetail osad = oprShuntApplyDetailDao.get(osadId);
   osad.setStatus(0L);
   osad.setUpdateName(user.get("name").toString());
   osad.setUpdateTime(new Date());
   oprShuntApplyDetailDao.save(osad);
 }
コード例 #2
0
  public void shuntApplyAduit(OprShuntApplyDetail osad) throws Exception {
    List<BasCar> list = basCarService.findBy("carCode", osad.getDisCarNo());
    BasCar bc = list.get(0);
    bc.setCarStatus("хэ│хол");
    basCarService.save(bc);

    User user = WebRalasafe.getCurrentUser(Struts2Utils.getRequest());
    osad.setRouteNumber(oprOvermemoService.findRouteNumberSeq());
    osad.setStatus(1L);
    osad.setCreateName(user.get("name").toString());
    osad.setCreateTime(new Date());
    oprShuntApplyDetailDao.save(osad);
  }