public void do_verify() { this._trDrvModel.setVerifyerFk("admin"); this._trDrvModel.setVerifyDate(new Date()); this._trDrvModel.setVerifyInd("Y"); // System.out.println(this._trDrvModel.toJson()); int re = 0; this.selfBiz.loadCrudMapper(TransactDriverModel.class); re += this.selfBiz.modifyModel(_trDrvModel).getRe(); ResultModel resultModel = new ResultModel(); String msg = ""; if (re == 1) { resultModel.setTitle("操作成功"); if ("Y".equalsIgnoreCase(_trDrvModel.getPassInd())) { resultModel.setAction(ResultModel.ACTION_CONFIRM); msg = MessageFormat.format("记录{0}:审核通过\n 是否马上打印表格?", _trDrvModel.getFlowNo()); } else { resultModel.setAction(ResultModel.ACTION_ALERT); msg = MessageFormat.format( "记录{0}:审核不通过\n 备注原因:{1}", _trDrvModel.getFlowNo(), _trDrvModel.getRemark()); } } else { resultModel.setTitle("操作失败"); msg = "记录没有被更新,请检查数据库"; } resultModel.setMsg(msg); this.writePlainText(resultModel.toJson().toString()); }
public void stream_DriverIdBackImg() { try { this.selfBiz.loadCrudMapper(TransactResourceModel.class); TransactResourceModel trm = (TransactResourceModel) this.selfBiz.getModelEqPk(_trDrvModel.getFlowNo()); byte[] bytes = trm.getDriverIdBackImg(); this.writeStream(bytes); } catch (Exception ex) { ex.printStackTrace(); } }
public String to_verify() throws Exception { DrivingLicenseModel query = new DrivingLicenseModel(); this.selfBiz.loadCrudMapper(DrivingLicenseModel.class); query.setSfzmhm(_trDrvModel.getDriverIdNo()); List listDrvLince = selfBiz.getModel(query); DrivingLicenseModel drvLinModel = new DrivingLicenseModel(); if (listDrvLince.size() == 1) { drvLinModel = (DrivingLicenseModel) listDrvLince.get(0); } this.setRequestAttribute("drivingLicense", drvLinModel.toJson().toString()); return EResult.jsp.name(); }