Record re = new Record();
re.put(".table","orders");
re.put("+*id", 0);
re.put("fUserId",fUserId);
re.put("fUserRole",fUserRole);
re.put("fTime",now());
大神最后一个now()怎么插入
Record re = new Record();
re.put(".table","orders");
re.put("+*id", 0);
re.put("fUserId",fUserId);
re.put("fUserRole",fUserRole);
re.put("fTime",now());
大神最后一个now()怎么插入
@wendal 老大,这样执行返回值不对啊 取不了自增字段啊。
Record re = new Record();
re.put(".table","orders");
re.put("+*id", 0);
re.put("fUserId",fUserId);
re.put("fUserRole",fUserRole);
re.put("fTime",now());
// Chain.from(re).addSpecial("fTime", "now()"))
re.put("fMoney",fMoney);
re.put("oType",1);
re.put("qType",qType);
// dao.insert(Chain.from(re).addSpecial("fTime", "now()"));
// re.put("fUserId","fUserId");
Record r = dao.insert(re);
//System.out.println("json is :" + Json.toJson(r));
System.out.println("key ====== "+r.getInt("id"));
@wendal 好吧