sql
#sql("modiflyPoints") update points as p set p.point_value = #(newValue) where p.member_id = #(memberId) and p.point_type = #(pointType) and p.index_time = #(indexTime) and point_value = #(oldValue) #end
java
Kv cond = Kv.by("newValue", newValue) .set("memberId", member.getId()) .set("pointType", pointType.getCode()) .set("indexTime", indexTime) .set("oldValue", 1); SqlPara sqlPara = Db.getSqlPara("points.modiflyPoints", cond);
我想最后去做update好像Db.update不支持 sqlPara
项目:JFinal