本来是修改订单,结果转换json时,id值却被改掉了。
对象代码片段:
@Table("ps_saleorder")
public class PsSaleorder extends BaseModel implements Serializable {
private static final long serialVersionUID = 1L;
@Name
@Prev(els = {@EL("uuid()")})
@Comment("ID")
private String id;
@Column("shopid")
@Comment("门店id")
private String shopid;
。。。。。
入口函数:
@At
@Ok("json")
public Object wxUnifiedorder(@Param("appid") String appid, @Param("openid") String openid,
@Param("money") String money, @Param("::order") PsSaleorder order) {
Date now = new Date();
String orderno = StringUtil.newId32();
order.setorderno(orderno);
order.setorderTime((int) now.getTime());
order.setpayFlag(false);
order.setpayWay(PaywayEnum.WEPAY.getCode());
wxShoppingService.saveOrder(order);
请教一下,该怎么处理?