自己测试代码如下:
dao.update("user_points",
Chain.make("balance_points",-points),
Cnd.where("id","=",userPointId).and("balance_points",">=","balance_points+" + points));
解析后执行的语句:
UPDATE user_points SET balance_points=-500 WHERE id=13311 AND balance_points >= 'balance_points+500'
需求是将s原样输出,看了接口文档后没有发现相关的信息,特来请教下作者。