|
// 构造借书申请数据
String ksql = "insert into DEMO_BorrowBook b (b, b.fBookName, b.fStartDate, b.fEndDate, b.fBorrower, b.version) "
+ " values (:id, :bookName, :startDate, :endDate, :borrower, 0) ";
String id = CommonUtils.createGUID();
Map<String, Object> params = new HashMap<String, Object>();
params.put("id", id);
params.put("bookName", bookName);
params.put("startDate", startDate);
params.put("endDate", endDate);
params.put("borrower", borrower);
KSQL.executeUpdate(ksql, params, "/demo/actions/data", null); |
|