问题如上
代码如下:
@Table("PlayerShoppingNum")
@PK(value = { "id,period,goodsId" })
public class PlayerShoppingNum {
/*** id**/
@Column("id")
@Comment("id")
private int id;
。。。。
PlayerShoppingNum playerShoppingNum = playerShoppingManager.getPlayerShoppingNum(1, goodsId, periodId);
playerShoppingNum.setPlayerId(playerId);
playerShoppingNum.setShoppingId(shoppingId);
dao.update(playerShoppingNum);