Пример #1
0
  public long insert(SellInItemDTO _sell) {
    final Calendar dd = Calendar.getInstance();
    SimpleDateFormat da = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    _sell.setDate(String.valueOf(da.format(dd.getTime())));

    this.insertStmt.bindString(1, _sell.toJSON());
    this.insertStmt.bindString(2, "0");
    this.insertStmt.bindString(3, Contents.getLogInfo().getUserId());
    this.insertStmt.bindString(4, String.valueOf(da.format(dd.getTime())));
    this.insertStmt.bindString(5, _sell.getSellInDateTime());
    return this.insertStmt.executeInsert();
  }