xiongzhu 7 rokov pred
rodič
commit
6612e5ea95

+ 20 - 0
src/main/java/com/thmodel/dao/IntegralDao.java

@@ -0,0 +1,20 @@
+package com.thmodel.dao;
+
+import com.thmodel.entity.ExchangeInfo;
+import com.thmodel.entity.MerchandiseInfo;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
+import net.sf.json.JSONObject;
+
+import java.util.List;
+
+public interface IntegralDao {
+    List<JSONObject> queryMerchandisesByPage(MerchandiseInfo record, int page);
+
+    List<JSONObject> queryExchangeInfoByPage(ExchangeInfo record, int page);
+
+    List<JSONObject> queryAllMerchandises(MerchandiseInfo record);
+
+    List<JSONObject> queryAllExchangeInfo(ExchangeInfo record);
+
+    int saveExchangeInfo(ExchangeinfoRecord record);
+}

+ 84 - 0
src/main/java/com/thmodel/dao/impl/IntegralDaoImpl.java

@@ -0,0 +1,84 @@
+package com.thmodel.dao.impl;
+
+import com.thmodel.dao.IntegralDao;
+import com.thmodel.dbconnection.DbConnection;
+import com.thmodel.entity.ExchangeInfo;
+import com.thmodel.entity.MerchandiseInfo;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
+import com.thmodel.util.DBRecordsPack;
+import net.sf.json.JSONObject;
+import org.jooq.Condition;
+import org.jooq.DSLContext;
+import org.jooq.Record;
+import org.jooq.Result;
+import org.jooq.impl.DSL;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import static com.thmodel.jooq.Tables.EXCHANGEINFO;
+import static com.thmodel.jooq.Tables.MERCHANDISEINFO;
+
+public class IntegralDaoImpl implements IntegralDao {
+    @Override
+    public List<JSONObject> queryMerchandisesByPage(MerchandiseInfo record, int page) {
+        DSLContext ctx = DSL.using(DbConnection.getPara("MySQLURL"));
+        Result<Record> result = ctx.select().from(MERCHANDISEINFO).where(getConditions(record)).limit((page - 1) * 10, 10).fetch();
+        List<JSONObject> list = DBRecordsPack.Pack(result);
+        ctx.close();
+        return list;
+    }
+
+    @Override
+    public List<JSONObject> queryExchangeInfoByPage(ExchangeInfo record, int page) {
+        DSLContext ctx = DSL.using(DbConnection.getPara("MySQLURL"));
+        Result<Record> result = ctx.select().from(MERCHANDISEINFO).where(getConditions(record)).fetch();
+        List<JSONObject> list = DBRecordsPack.Pack(result);
+        ctx.close();
+        return list;
+    }
+
+    @Override
+    public List<JSONObject> queryAllMerchandises(MerchandiseInfo record) {
+        return null;
+    }
+
+    @Override
+    public List<JSONObject> queryAllExchangeInfo(ExchangeInfo record) {
+        return null;
+    }
+
+    @Override
+    public int saveExchangeInfo(ExchangeinfoRecord record) {
+        return 0;
+    }
+
+
+    private List<Condition> getConditions(MerchandiseInfo record) {
+        List<Condition> conditions = new ArrayList<>();
+        if (record.getId() != null) {
+            conditions.add(MERCHANDISEINFO.ID.equal(record.getId()));
+        }
+        if (record.getInStock() != null) {
+            conditions.add(MERCHANDISEINFO.INSTOCK.equal(record.getInStock()));
+        }
+        return conditions;
+    }
+
+    private List<Condition> getConditions(ExchangeInfo record) {
+        List<Condition> conditions = new ArrayList<>();
+        if (record.getId() != null) {
+            conditions.add(EXCHANGEINFO.ID.equal(record.getId()));
+        }
+        if (record.getMemberPK() != null) {
+            conditions.add(EXCHANGEINFO.MEMBERPK.equal(record.getMemberPK()));
+        }
+        if (record.getMerchandiseId() != null) {
+            conditions.add(EXCHANGEINFO.MERCHANDISEID.equal(record.getMerchandiseId()));
+        }
+        if (record.getShipped() != null) {
+            conditions.add(EXCHANGEINFO.SHIPPED.equal(record.getShipped()));
+        }
+        return conditions;
+    }
+}

+ 141 - 0
src/main/java/com/thmodel/entity/ExchangeInfo.java

@@ -0,0 +1,141 @@
+package com.thmodel.entity;
+
+import java.util.Date;
+
+public class ExchangeInfo {
+    private Integer id;
+    private Integer memberPK;
+    private Integer merchandiseId;
+    private Integer price;
+    private Integer integral;
+    private Integer amount;
+    private Integer totalIntegral;
+    private String  name;
+    private String  phone;
+    private String  address;
+    private String  msg;
+    private String  logistics;
+    private Date    time;
+    private Integer shipped;
+    private Date    shippedTime;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public Integer getMemberPK() {
+        return memberPK;
+    }
+
+    public void setMemberPK(Integer memberPK) {
+        this.memberPK = memberPK;
+    }
+
+    public Integer getMerchandiseId() {
+        return merchandiseId;
+    }
+
+    public void setMerchandiseId(Integer merchandiseId) {
+        this.merchandiseId = merchandiseId;
+    }
+
+    public Integer getPrice() {
+        return price;
+    }
+
+    public void setPrice(Integer price) {
+        this.price = price;
+    }
+
+    public Integer getIntegral() {
+        return integral;
+    }
+
+    public void setIntegral(Integer integral) {
+        this.integral = integral;
+    }
+
+    public Integer getAmount() {
+        return amount;
+    }
+
+    public void setAmount(Integer amount) {
+        this.amount = amount;
+    }
+
+    public Integer getTotalIntegral() {
+        return totalIntegral;
+    }
+
+    public void setTotalIntegral(Integer totalIntegral) {
+        this.totalIntegral = totalIntegral;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getPhone() {
+        return phone;
+    }
+
+    public void setPhone(String phone) {
+        this.phone = phone;
+    }
+
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    public String getMsg() {
+        return msg;
+    }
+
+    public void setMsg(String msg) {
+        this.msg = msg;
+    }
+
+    public String getLogistics() {
+        return logistics;
+    }
+
+    public void setLogistics(String logistics) {
+        this.logistics = logistics;
+    }
+
+    public Date getTime() {
+        return time;
+    }
+
+    public void setTime(Date time) {
+        this.time = time;
+    }
+
+    public Integer getShipped() {
+        return shipped;
+    }
+
+    public void setShipped(Integer shipped) {
+        this.shipped = shipped;
+    }
+
+    public Date getShippedTime() {
+        return shippedTime;
+    }
+
+    public void setShippedTime(Date shippedTime) {
+        this.shippedTime = shippedTime;
+    }
+}

+ 85 - 0
src/main/java/com/thmodel/entity/MerchandiseInfo.java

@@ -0,0 +1,85 @@
+package com.thmodel.entity;
+
+public class MerchandiseInfo {
+    private Integer id;
+    private String  name;
+    private Integer integral;
+    private Integer price;
+    private Integer stock;
+    private String  intro;
+    private String  cover;
+    private String  pics;
+    private Integer inStock;
+
+    public Integer getId() {
+        return id;
+    }
+
+    public void setId(Integer id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public Integer getIntegral() {
+        return integral;
+    }
+
+    public void setIntegral(Integer integral) {
+        this.integral = integral;
+    }
+
+    public Integer getPrice() {
+        return price;
+    }
+
+    public void setPrice(Integer price) {
+        this.price = price;
+    }
+
+    public Integer getStock() {
+        return stock;
+    }
+
+    public void setStock(Integer stock) {
+        this.stock = stock;
+    }
+
+    public String getIntro() {
+        return intro;
+    }
+
+    public void setIntro(String intro) {
+        this.intro = intro;
+    }
+
+    public String getCover() {
+        return cover;
+    }
+
+    public void setCover(String cover) {
+        this.cover = cover;
+    }
+
+    public String getPics() {
+        return pics;
+    }
+
+    public void setPics(String pics) {
+        this.pics = pics;
+    }
+
+    public Integer getInStock() {
+        return inStock;
+    }
+
+    public void setInStock(Integer inStock) {
+        this.inStock = inStock;
+    }
+}

+ 6 - 0
src/main/java/com/thmodel/jooq/Indexes.java

@@ -13,12 +13,14 @@ import com.thmodel.jooq.tables.Cashrecord;
 import com.thmodel.jooq.tables.Chatrecord;
 import com.thmodel.jooq.tables.CoinShareRecord;
 import com.thmodel.jooq.tables.Datatypeinfo;
+import com.thmodel.jooq.tables.Exchangeinfo;
 import com.thmodel.jooq.tables.GiftRecord;
 import com.thmodel.jooq.tables.Honorinfo;
 import com.thmodel.jooq.tables.Imlog;
 import com.thmodel.jooq.tables.Log;
 import com.thmodel.jooq.tables.Memberinfo;
 import com.thmodel.jooq.tables.Membersign;
+import com.thmodel.jooq.tables.Merchandiseinfo;
 import com.thmodel.jooq.tables.Modelact;
 import com.thmodel.jooq.tables.Modelactitem;
 import com.thmodel.jooq.tables.Modelcard;
@@ -87,6 +89,7 @@ public class Indexes {
     public static final Index COIN_SHARE_RECORD_PRIMARY = Indexes0.COIN_SHARE_RECORD_PRIMARY;
     public static final Index DATATYPEINFO_INDEX_1 = Indexes0.DATATYPEINFO_INDEX_1;
     public static final Index DATATYPEINFO_PRIMARY = Indexes0.DATATYPEINFO_PRIMARY;
+    public static final Index EXCHANGEINFO_PRIMARY = Indexes0.EXCHANGEINFO_PRIMARY;
     public static final Index GIFT_RECORD_PRIMARY = Indexes0.GIFT_RECORD_PRIMARY;
     public static final Index HONORINFO_INDEX_1 = Indexes0.HONORINFO_INDEX_1;
     public static final Index HONORINFO_PRIMARY = Indexes0.HONORINFO_PRIMARY;
@@ -100,6 +103,7 @@ public class Indexes {
     public static final Index MEMBERINFO_PRIMARY = Indexes0.MEMBERINFO_PRIMARY;
     public static final Index MEMBERSIGN_INDEX_1 = Indexes0.MEMBERSIGN_INDEX_1;
     public static final Index MEMBERSIGN_PRIMARY = Indexes0.MEMBERSIGN_PRIMARY;
+    public static final Index MERCHANDISEINFO_PRIMARY = Indexes0.MERCHANDISEINFO_PRIMARY;
     public static final Index MODELACT_INDEX_1 = Indexes0.MODELACT_INDEX_1;
     public static final Index MODELACT_PRIMARY = Indexes0.MODELACT_PRIMARY;
     public static final Index MODELACTITEM_INDEX_1 = Indexes0.MODELACTITEM_INDEX_1;
@@ -178,6 +182,7 @@ public class Indexes {
         public static Index COIN_SHARE_RECORD_PRIMARY = Internal.createIndex("PRIMARY", CoinShareRecord.COIN_SHARE_RECORD, new OrderField[] { CoinShareRecord.COIN_SHARE_RECORD.ID }, true);
         public static Index DATATYPEINFO_INDEX_1 = Internal.createIndex("Index_1", Datatypeinfo.DATATYPEINFO, new OrderField[] { Datatypeinfo.DATATYPEINFO.TYPENAME, Datatypeinfo.DATATYPEINFO.ORDID }, false);
         public static Index DATATYPEINFO_PRIMARY = Internal.createIndex("PRIMARY", Datatypeinfo.DATATYPEINFO, new OrderField[] { Datatypeinfo.DATATYPEINFO.PK }, true);
+        public static Index EXCHANGEINFO_PRIMARY = Internal.createIndex("PRIMARY", Exchangeinfo.EXCHANGEINFO, new OrderField[] { Exchangeinfo.EXCHANGEINFO.ID }, true);
         public static Index GIFT_RECORD_PRIMARY = Internal.createIndex("PRIMARY", GiftRecord.GIFT_RECORD, new OrderField[] { GiftRecord.GIFT_RECORD.ID }, true);
         public static Index HONORINFO_INDEX_1 = Internal.createIndex("Index_1", Honorinfo.HONORINFO, new OrderField[] { Honorinfo.HONORINFO.MODELPK }, false);
         public static Index HONORINFO_PRIMARY = Internal.createIndex("PRIMARY", Honorinfo.HONORINFO, new OrderField[] { Honorinfo.HONORINFO.PK }, true);
@@ -191,6 +196,7 @@ public class Indexes {
         public static Index MEMBERINFO_PRIMARY = Internal.createIndex("PRIMARY", Memberinfo.MEMBERINFO, new OrderField[] { Memberinfo.MEMBERINFO.PK }, true);
         public static Index MEMBERSIGN_INDEX_1 = Internal.createIndex("Index_1", Membersign.MEMBERSIGN, new OrderField[] { Membersign.MEMBERSIGN.SDATE, Membersign.MEMBERSIGN.MEMBERPK }, false);
         public static Index MEMBERSIGN_PRIMARY = Internal.createIndex("PRIMARY", Membersign.MEMBERSIGN, new OrderField[] { Membersign.MEMBERSIGN.PK }, true);
+        public static Index MERCHANDISEINFO_PRIMARY = Internal.createIndex("PRIMARY", Merchandiseinfo.MERCHANDISEINFO, new OrderField[] { Merchandiseinfo.MERCHANDISEINFO.ID }, true);
         public static Index MODELACT_INDEX_1 = Internal.createIndex("Index_1", Modelact.MODELACT, new OrderField[] { Modelact.MODELACT.ADATE, Modelact.MODELACT.MODELPK, Modelact.MODELACT.ORDERPK }, false);
         public static Index MODELACT_PRIMARY = Internal.createIndex("PRIMARY", Modelact.MODELACT, new OrderField[] { Modelact.MODELACT.PK }, true);
         public static Index MODELACTITEM_INDEX_1 = Internal.createIndex("Index_1", Modelactitem.MODELACTITEM, new OrderField[] { Modelactitem.MODELACTITEM.IDATE, Modelactitem.MODELACTITEM.ACTPK, Modelactitem.MODELACTITEM.MEMBERPK, Modelactitem.MODELACTITEM.ISGOOD }, false);

+ 12 - 0
src/main/java/com/thmodel/jooq/Keys.java

@@ -13,12 +13,14 @@ import com.thmodel.jooq.tables.Cashrecord;
 import com.thmodel.jooq.tables.Chatrecord;
 import com.thmodel.jooq.tables.CoinShareRecord;
 import com.thmodel.jooq.tables.Datatypeinfo;
+import com.thmodel.jooq.tables.Exchangeinfo;
 import com.thmodel.jooq.tables.GiftRecord;
 import com.thmodel.jooq.tables.Honorinfo;
 import com.thmodel.jooq.tables.Imlog;
 import com.thmodel.jooq.tables.Log;
 import com.thmodel.jooq.tables.Memberinfo;
 import com.thmodel.jooq.tables.Membersign;
+import com.thmodel.jooq.tables.Merchandiseinfo;
 import com.thmodel.jooq.tables.Modelact;
 import com.thmodel.jooq.tables.Modelactitem;
 import com.thmodel.jooq.tables.Modelcard;
@@ -52,12 +54,14 @@ import com.thmodel.jooq.tables.records.CashrecordRecord;
 import com.thmodel.jooq.tables.records.ChatrecordRecord;
 import com.thmodel.jooq.tables.records.CoinShareRecordRecord;
 import com.thmodel.jooq.tables.records.DatatypeinfoRecord;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
 import com.thmodel.jooq.tables.records.GiftRecordRecord;
 import com.thmodel.jooq.tables.records.HonorinfoRecord;
 import com.thmodel.jooq.tables.records.ImlogRecord;
 import com.thmodel.jooq.tables.records.LogRecord;
 import com.thmodel.jooq.tables.records.MemberinfoRecord;
 import com.thmodel.jooq.tables.records.MembersignRecord;
+import com.thmodel.jooq.tables.records.MerchandiseinfoRecord;
 import com.thmodel.jooq.tables.records.ModelactRecord;
 import com.thmodel.jooq.tables.records.ModelactitemRecord;
 import com.thmodel.jooq.tables.records.ModelcardRecord;
@@ -117,12 +121,14 @@ public class Keys {
     public static final Identity<ChatrecordRecord, Integer> IDENTITY_CHATRECORD = Identities0.IDENTITY_CHATRECORD;
     public static final Identity<CoinShareRecordRecord, Integer> IDENTITY_COIN_SHARE_RECORD = Identities0.IDENTITY_COIN_SHARE_RECORD;
     public static final Identity<DatatypeinfoRecord, Integer> IDENTITY_DATATYPEINFO = Identities0.IDENTITY_DATATYPEINFO;
+    public static final Identity<ExchangeinfoRecord, Integer> IDENTITY_EXCHANGEINFO = Identities0.IDENTITY_EXCHANGEINFO;
     public static final Identity<GiftRecordRecord, Integer> IDENTITY_GIFT_RECORD = Identities0.IDENTITY_GIFT_RECORD;
     public static final Identity<HonorinfoRecord, Integer> IDENTITY_HONORINFO = Identities0.IDENTITY_HONORINFO;
     public static final Identity<ImlogRecord, Integer> IDENTITY_IMLOG = Identities0.IDENTITY_IMLOG;
     public static final Identity<LogRecord, Integer> IDENTITY_LOG = Identities0.IDENTITY_LOG;
     public static final Identity<MemberinfoRecord, Integer> IDENTITY_MEMBERINFO = Identities0.IDENTITY_MEMBERINFO;
     public static final Identity<MembersignRecord, Integer> IDENTITY_MEMBERSIGN = Identities0.IDENTITY_MEMBERSIGN;
+    public static final Identity<MerchandiseinfoRecord, Integer> IDENTITY_MERCHANDISEINFO = Identities0.IDENTITY_MERCHANDISEINFO;
     public static final Identity<ModelactRecord, Integer> IDENTITY_MODELACT = Identities0.IDENTITY_MODELACT;
     public static final Identity<ModelactitemRecord, Integer> IDENTITY_MODELACTITEM = Identities0.IDENTITY_MODELACTITEM;
     public static final Identity<ModelcardRecord, Integer> IDENTITY_MODELCARD = Identities0.IDENTITY_MODELCARD;
@@ -161,12 +167,14 @@ public class Keys {
     public static final UniqueKey<ChatrecordRecord> KEY_CHATRECORD_PRIMARY = UniqueKeys0.KEY_CHATRECORD_PRIMARY;
     public static final UniqueKey<CoinShareRecordRecord> KEY_COIN_SHARE_RECORD_PRIMARY = UniqueKeys0.KEY_COIN_SHARE_RECORD_PRIMARY;
     public static final UniqueKey<DatatypeinfoRecord> KEY_DATATYPEINFO_PRIMARY = UniqueKeys0.KEY_DATATYPEINFO_PRIMARY;
+    public static final UniqueKey<ExchangeinfoRecord> KEY_EXCHANGEINFO_PRIMARY = UniqueKeys0.KEY_EXCHANGEINFO_PRIMARY;
     public static final UniqueKey<GiftRecordRecord> KEY_GIFT_RECORD_PRIMARY = UniqueKeys0.KEY_GIFT_RECORD_PRIMARY;
     public static final UniqueKey<HonorinfoRecord> KEY_HONORINFO_PRIMARY = UniqueKeys0.KEY_HONORINFO_PRIMARY;
     public static final UniqueKey<ImlogRecord> KEY_IMLOG_PRIMARY = UniqueKeys0.KEY_IMLOG_PRIMARY;
     public static final UniqueKey<LogRecord> KEY_LOG_PRIMARY = UniqueKeys0.KEY_LOG_PRIMARY;
     public static final UniqueKey<MemberinfoRecord> KEY_MEMBERINFO_PRIMARY = UniqueKeys0.KEY_MEMBERINFO_PRIMARY;
     public static final UniqueKey<MembersignRecord> KEY_MEMBERSIGN_PRIMARY = UniqueKeys0.KEY_MEMBERSIGN_PRIMARY;
+    public static final UniqueKey<MerchandiseinfoRecord> KEY_MERCHANDISEINFO_PRIMARY = UniqueKeys0.KEY_MERCHANDISEINFO_PRIMARY;
     public static final UniqueKey<ModelactRecord> KEY_MODELACT_PRIMARY = UniqueKeys0.KEY_MODELACT_PRIMARY;
     public static final UniqueKey<ModelactitemRecord> KEY_MODELACTITEM_PRIMARY = UniqueKeys0.KEY_MODELACTITEM_PRIMARY;
     public static final UniqueKey<ModelcardRecord> KEY_MODELCARD_PRIMARY = UniqueKeys0.KEY_MODELCARD_PRIMARY;
@@ -212,12 +220,14 @@ public class Keys {
         public static Identity<ChatrecordRecord, Integer> IDENTITY_CHATRECORD = Internal.createIdentity(Chatrecord.CHATRECORD, Chatrecord.CHATRECORD.PK);
         public static Identity<CoinShareRecordRecord, Integer> IDENTITY_COIN_SHARE_RECORD = Internal.createIdentity(CoinShareRecord.COIN_SHARE_RECORD, CoinShareRecord.COIN_SHARE_RECORD.ID);
         public static Identity<DatatypeinfoRecord, Integer> IDENTITY_DATATYPEINFO = Internal.createIdentity(Datatypeinfo.DATATYPEINFO, Datatypeinfo.DATATYPEINFO.PK);
+        public static Identity<ExchangeinfoRecord, Integer> IDENTITY_EXCHANGEINFO = Internal.createIdentity(Exchangeinfo.EXCHANGEINFO, Exchangeinfo.EXCHANGEINFO.ID);
         public static Identity<GiftRecordRecord, Integer> IDENTITY_GIFT_RECORD = Internal.createIdentity(GiftRecord.GIFT_RECORD, GiftRecord.GIFT_RECORD.ID);
         public static Identity<HonorinfoRecord, Integer> IDENTITY_HONORINFO = Internal.createIdentity(Honorinfo.HONORINFO, Honorinfo.HONORINFO.PK);
         public static Identity<ImlogRecord, Integer> IDENTITY_IMLOG = Internal.createIdentity(Imlog.IMLOG, Imlog.IMLOG.INT);
         public static Identity<LogRecord, Integer> IDENTITY_LOG = Internal.createIdentity(Log.LOG, Log.LOG.ID);
         public static Identity<MemberinfoRecord, Integer> IDENTITY_MEMBERINFO = Internal.createIdentity(Memberinfo.MEMBERINFO, Memberinfo.MEMBERINFO.PK);
         public static Identity<MembersignRecord, Integer> IDENTITY_MEMBERSIGN = Internal.createIdentity(Membersign.MEMBERSIGN, Membersign.MEMBERSIGN.PK);
+        public static Identity<MerchandiseinfoRecord, Integer> IDENTITY_MERCHANDISEINFO = Internal.createIdentity(Merchandiseinfo.MERCHANDISEINFO, Merchandiseinfo.MERCHANDISEINFO.ID);
         public static Identity<ModelactRecord, Integer> IDENTITY_MODELACT = Internal.createIdentity(Modelact.MODELACT, Modelact.MODELACT.PK);
         public static Identity<ModelactitemRecord, Integer> IDENTITY_MODELACTITEM = Internal.createIdentity(Modelactitem.MODELACTITEM, Modelactitem.MODELACTITEM.PK);
         public static Identity<ModelcardRecord, Integer> IDENTITY_MODELCARD = Internal.createIdentity(Modelcard.MODELCARD, Modelcard.MODELCARD.PK);
@@ -254,12 +264,14 @@ public class Keys {
         public static final UniqueKey<ChatrecordRecord> KEY_CHATRECORD_PRIMARY = Internal.createUniqueKey(Chatrecord.CHATRECORD, "KEY_chatrecord_PRIMARY", Chatrecord.CHATRECORD.PK);
         public static final UniqueKey<CoinShareRecordRecord> KEY_COIN_SHARE_RECORD_PRIMARY = Internal.createUniqueKey(CoinShareRecord.COIN_SHARE_RECORD, "KEY_coin_share_record_PRIMARY", CoinShareRecord.COIN_SHARE_RECORD.ID);
         public static final UniqueKey<DatatypeinfoRecord> KEY_DATATYPEINFO_PRIMARY = Internal.createUniqueKey(Datatypeinfo.DATATYPEINFO, "KEY_datatypeinfo_PRIMARY", Datatypeinfo.DATATYPEINFO.PK);
+        public static final UniqueKey<ExchangeinfoRecord> KEY_EXCHANGEINFO_PRIMARY = Internal.createUniqueKey(Exchangeinfo.EXCHANGEINFO, "KEY_exchangeinfo_PRIMARY", Exchangeinfo.EXCHANGEINFO.ID);
         public static final UniqueKey<GiftRecordRecord> KEY_GIFT_RECORD_PRIMARY = Internal.createUniqueKey(GiftRecord.GIFT_RECORD, "KEY_gift_record_PRIMARY", GiftRecord.GIFT_RECORD.ID);
         public static final UniqueKey<HonorinfoRecord> KEY_HONORINFO_PRIMARY = Internal.createUniqueKey(Honorinfo.HONORINFO, "KEY_honorinfo_PRIMARY", Honorinfo.HONORINFO.PK);
         public static final UniqueKey<ImlogRecord> KEY_IMLOG_PRIMARY = Internal.createUniqueKey(Imlog.IMLOG, "KEY_imlog_PRIMARY", Imlog.IMLOG.INT);
         public static final UniqueKey<LogRecord> KEY_LOG_PRIMARY = Internal.createUniqueKey(Log.LOG, "KEY_log_PRIMARY", Log.LOG.ID);
         public static final UniqueKey<MemberinfoRecord> KEY_MEMBERINFO_PRIMARY = Internal.createUniqueKey(Memberinfo.MEMBERINFO, "KEY_memberinfo_PRIMARY", Memberinfo.MEMBERINFO.PK);
         public static final UniqueKey<MembersignRecord> KEY_MEMBERSIGN_PRIMARY = Internal.createUniqueKey(Membersign.MEMBERSIGN, "KEY_membersign_PRIMARY", Membersign.MEMBERSIGN.PK);
+        public static final UniqueKey<MerchandiseinfoRecord> KEY_MERCHANDISEINFO_PRIMARY = Internal.createUniqueKey(Merchandiseinfo.MERCHANDISEINFO, "KEY_merchandiseinfo_PRIMARY", Merchandiseinfo.MERCHANDISEINFO.ID);
         public static final UniqueKey<ModelactRecord> KEY_MODELACT_PRIMARY = Internal.createUniqueKey(Modelact.MODELACT, "KEY_modelact_PRIMARY", Modelact.MODELACT.PK);
         public static final UniqueKey<ModelactitemRecord> KEY_MODELACTITEM_PRIMARY = Internal.createUniqueKey(Modelactitem.MODELACTITEM, "KEY_modelactitem_PRIMARY", Modelactitem.MODELACTITEM.PK);
         public static final UniqueKey<ModelcardRecord> KEY_MODELCARD_PRIMARY = Internal.createUniqueKey(Modelcard.MODELCARD, "KEY_modelcard_PRIMARY", Modelcard.MODELCARD.PK);

+ 12 - 0
src/main/java/com/thmodel/jooq/Tables.java

@@ -13,12 +13,14 @@ import com.thmodel.jooq.tables.Cashrecord;
 import com.thmodel.jooq.tables.Chatrecord;
 import com.thmodel.jooq.tables.CoinShareRecord;
 import com.thmodel.jooq.tables.Datatypeinfo;
+import com.thmodel.jooq.tables.Exchangeinfo;
 import com.thmodel.jooq.tables.GiftRecord;
 import com.thmodel.jooq.tables.Honorinfo;
 import com.thmodel.jooq.tables.Imlog;
 import com.thmodel.jooq.tables.Log;
 import com.thmodel.jooq.tables.Memberinfo;
 import com.thmodel.jooq.tables.Membersign;
+import com.thmodel.jooq.tables.Merchandiseinfo;
 import com.thmodel.jooq.tables.Modelact;
 import com.thmodel.jooq.tables.Modelactitem;
 import com.thmodel.jooq.tables.Modelcard;
@@ -105,6 +107,11 @@ public class Tables {
      */
     public static final Datatypeinfo DATATYPEINFO = com.thmodel.jooq.tables.Datatypeinfo.DATATYPEINFO;
 
+    /**
+     * The table <code>thmodel.exchangeinfo</code>.
+     */
+    public static final Exchangeinfo EXCHANGEINFO = com.thmodel.jooq.tables.Exchangeinfo.EXCHANGEINFO;
+
     /**
      * The table <code>thmodel.gift_record</code>.
      */
@@ -135,6 +142,11 @@ public class Tables {
      */
     public static final Membersign MEMBERSIGN = com.thmodel.jooq.tables.Membersign.MEMBERSIGN;
 
+    /**
+     * The table <code>thmodel.merchandiseinfo</code>.
+     */
+    public static final Merchandiseinfo MERCHANDISEINFO = com.thmodel.jooq.tables.Merchandiseinfo.MERCHANDISEINFO;
+
     /**
      * The table <code>thmodel.modelact</code>.
      */

+ 15 - 1
src/main/java/com/thmodel/jooq/Thmodel.java

@@ -13,12 +13,14 @@ import com.thmodel.jooq.tables.Cashrecord;
 import com.thmodel.jooq.tables.Chatrecord;
 import com.thmodel.jooq.tables.CoinShareRecord;
 import com.thmodel.jooq.tables.Datatypeinfo;
+import com.thmodel.jooq.tables.Exchangeinfo;
 import com.thmodel.jooq.tables.GiftRecord;
 import com.thmodel.jooq.tables.Honorinfo;
 import com.thmodel.jooq.tables.Imlog;
 import com.thmodel.jooq.tables.Log;
 import com.thmodel.jooq.tables.Memberinfo;
 import com.thmodel.jooq.tables.Membersign;
+import com.thmodel.jooq.tables.Merchandiseinfo;
 import com.thmodel.jooq.tables.Modelact;
 import com.thmodel.jooq.tables.Modelactitem;
 import com.thmodel.jooq.tables.Modelcard;
@@ -68,7 +70,7 @@ import org.jooq.impl.SchemaImpl;
 @SuppressWarnings({ "all", "unchecked", "rawtypes" })
 public class Thmodel extends SchemaImpl {
 
-    private static final long serialVersionUID = 667206565;
+    private static final long serialVersionUID = -653026835;
 
     /**
      * The reference instance of <code>thmodel</code>
@@ -120,6 +122,11 @@ public class Thmodel extends SchemaImpl {
      */
     public final Datatypeinfo DATATYPEINFO = com.thmodel.jooq.tables.Datatypeinfo.DATATYPEINFO;
 
+    /**
+     * The table <code>thmodel.exchangeinfo</code>.
+     */
+    public final Exchangeinfo EXCHANGEINFO = com.thmodel.jooq.tables.Exchangeinfo.EXCHANGEINFO;
+
     /**
      * The table <code>thmodel.gift_record</code>.
      */
@@ -150,6 +157,11 @@ public class Thmodel extends SchemaImpl {
      */
     public final Membersign MEMBERSIGN = com.thmodel.jooq.tables.Membersign.MEMBERSIGN;
 
+    /**
+     * The table <code>thmodel.merchandiseinfo</code>.
+     */
+    public final Merchandiseinfo MERCHANDISEINFO = com.thmodel.jooq.tables.Merchandiseinfo.MERCHANDISEINFO;
+
     /**
      * The table <code>thmodel.modelact</code>.
      */
@@ -304,12 +316,14 @@ public class Thmodel extends SchemaImpl {
             Chatrecord.CHATRECORD,
             CoinShareRecord.COIN_SHARE_RECORD,
             Datatypeinfo.DATATYPEINFO,
+            Exchangeinfo.EXCHANGEINFO,
             GiftRecord.GIFT_RECORD,
             Honorinfo.HONORINFO,
             Imlog.IMLOG,
             Log.LOG,
             Memberinfo.MEMBERINFO,
             Membersign.MEMBERSIGN,
+            Merchandiseinfo.MERCHANDISEINFO,
             Modelact.MODELACT,
             Modelactitem.MODELACTITEM,
             Modelcard.MODELCARD,

+ 239 - 0
src/main/java/com/thmodel/jooq/tables/Exchangeinfo.java

@@ -0,0 +1,239 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package com.thmodel.jooq.tables;
+
+
+import com.thmodel.jooq.Indexes;
+import com.thmodel.jooq.Keys;
+import com.thmodel.jooq.Thmodel;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
+
+import java.sql.Timestamp;
+import java.util.Arrays;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.ForeignKey;
+import org.jooq.Identity;
+import org.jooq.Index;
+import org.jooq.Name;
+import org.jooq.Record;
+import org.jooq.Schema;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.TableImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+    value = {
+        "http://www.jooq.org",
+        "jOOQ version:3.11.5"
+    },
+    comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Exchangeinfo extends TableImpl<ExchangeinfoRecord> {
+
+    private static final long serialVersionUID = -661109031;
+
+    /**
+     * The reference instance of <code>thmodel.exchangeinfo</code>
+     */
+    public static final Exchangeinfo EXCHANGEINFO = new Exchangeinfo();
+
+    /**
+     * The class holding records for this type
+     */
+    @Override
+    public Class<ExchangeinfoRecord> getRecordType() {
+        return ExchangeinfoRecord.class;
+    }
+
+    /**
+     * The column <code>thmodel.exchangeinfo.id</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> ID = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.memberPK</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> MEMBERPK = createField("memberPK", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.merchandiseId</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> MERCHANDISEID = createField("merchandiseId", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.price</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> PRICE = createField("price", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.integral</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> INTEGRAL = createField("integral", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.amount</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> AMOUNT = createField("amount", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.totalIntegral</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> TOTALINTEGRAL = createField("totalIntegral", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.name</code>.
+     */
+    public final TableField<ExchangeinfoRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.phone</code>.
+     */
+    public final TableField<ExchangeinfoRecord, String> PHONE = createField("phone", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.address</code>.
+     */
+    public final TableField<ExchangeinfoRecord, String> ADDRESS = createField("address", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.msg</code>.
+     */
+    public final TableField<ExchangeinfoRecord, String> MSG = createField("msg", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.logistics</code>.
+     */
+    public final TableField<ExchangeinfoRecord, String> LOGISTICS = createField("logistics", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.time</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Timestamp> TIME = createField("time", org.jooq.impl.SQLDataType.TIMESTAMP.defaultValue(org.jooq.impl.DSL.field("CURRENT_TIMESTAMP", org.jooq.impl.SQLDataType.TIMESTAMP)), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.shipped</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Integer> SHIPPED = createField("shipped", org.jooq.impl.SQLDataType.INTEGER.defaultValue(org.jooq.impl.DSL.inline("0", org.jooq.impl.SQLDataType.INTEGER)), this, "");
+
+    /**
+     * The column <code>thmodel.exchangeinfo.shippedTime</code>.
+     */
+    public final TableField<ExchangeinfoRecord, Timestamp> SHIPPEDTIME = createField("shippedTime", org.jooq.impl.SQLDataType.TIMESTAMP, this, "");
+
+    /**
+     * Create a <code>thmodel.exchangeinfo</code> table reference
+     */
+    public Exchangeinfo() {
+        this(DSL.name("exchangeinfo"), null);
+    }
+
+    /**
+     * Create an aliased <code>thmodel.exchangeinfo</code> table reference
+     */
+    public Exchangeinfo(String alias) {
+        this(DSL.name(alias), EXCHANGEINFO);
+    }
+
+    /**
+     * Create an aliased <code>thmodel.exchangeinfo</code> table reference
+     */
+    public Exchangeinfo(Name alias) {
+        this(alias, EXCHANGEINFO);
+    }
+
+    private Exchangeinfo(Name alias, Table<ExchangeinfoRecord> aliased) {
+        this(alias, aliased, null);
+    }
+
+    private Exchangeinfo(Name alias, Table<ExchangeinfoRecord> aliased, Field<?>[] parameters) {
+        super(alias, null, aliased, parameters, DSL.comment(""));
+    }
+
+    public <O extends Record> Exchangeinfo(Table<O> child, ForeignKey<O, ExchangeinfoRecord> key) {
+        super(child, key, EXCHANGEINFO);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Schema getSchema() {
+        return Thmodel.THMODEL;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public List<Index> getIndexes() {
+        return Arrays.<Index>asList(Indexes.EXCHANGEINFO_PRIMARY);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Identity<ExchangeinfoRecord, Integer> getIdentity() {
+        return Keys.IDENTITY_EXCHANGEINFO;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public UniqueKey<ExchangeinfoRecord> getPrimaryKey() {
+        return Keys.KEY_EXCHANGEINFO_PRIMARY;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public List<UniqueKey<ExchangeinfoRecord>> getKeys() {
+        return Arrays.<UniqueKey<ExchangeinfoRecord>>asList(Keys.KEY_EXCHANGEINFO_PRIMARY);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Exchangeinfo as(String alias) {
+        return new Exchangeinfo(DSL.name(alias), this);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Exchangeinfo as(Name alias) {
+        return new Exchangeinfo(alias, this);
+    }
+
+    /**
+     * Rename this table
+     */
+    @Override
+    public Exchangeinfo rename(String name) {
+        return new Exchangeinfo(DSL.name(name), null);
+    }
+
+    /**
+     * Rename this table
+     */
+    @Override
+    public Exchangeinfo rename(Name name) {
+        return new Exchangeinfo(name, null);
+    }
+}

+ 208 - 0
src/main/java/com/thmodel/jooq/tables/Merchandiseinfo.java

@@ -0,0 +1,208 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package com.thmodel.jooq.tables;
+
+
+import com.thmodel.jooq.Indexes;
+import com.thmodel.jooq.Keys;
+import com.thmodel.jooq.Thmodel;
+import com.thmodel.jooq.tables.records.MerchandiseinfoRecord;
+
+import java.util.Arrays;
+import java.util.List;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.ForeignKey;
+import org.jooq.Identity;
+import org.jooq.Index;
+import org.jooq.Name;
+import org.jooq.Record;
+import org.jooq.Schema;
+import org.jooq.Table;
+import org.jooq.TableField;
+import org.jooq.UniqueKey;
+import org.jooq.impl.DSL;
+import org.jooq.impl.TableImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+    value = {
+        "http://www.jooq.org",
+        "jOOQ version:3.11.5"
+    },
+    comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class Merchandiseinfo extends TableImpl<MerchandiseinfoRecord> {
+
+    private static final long serialVersionUID = -1971798420;
+
+    /**
+     * The reference instance of <code>thmodel.merchandiseinfo</code>
+     */
+    public static final Merchandiseinfo MERCHANDISEINFO = new Merchandiseinfo();
+
+    /**
+     * The class holding records for this type
+     */
+    @Override
+    public Class<MerchandiseinfoRecord> getRecordType() {
+        return MerchandiseinfoRecord.class;
+    }
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.id</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, Integer> ID = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).identity(true), this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.integral</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, Integer> INTEGRAL = createField("integral", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.name</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, String> NAME = createField("name", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.price</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, Integer> PRICE = createField("price", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.stock</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, Integer> STOCK = createField("stock", org.jooq.impl.SQLDataType.INTEGER, this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.intro</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, String> INTRO = createField("intro", org.jooq.impl.SQLDataType.CLOB, this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.cover</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, String> COVER = createField("cover", org.jooq.impl.SQLDataType.VARCHAR(255), this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.pics</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, String> PICS = createField("pics", org.jooq.impl.SQLDataType.CLOB, this, "");
+
+    /**
+     * The column <code>thmodel.merchandiseinfo.inStock</code>.
+     */
+    public final TableField<MerchandiseinfoRecord, Integer> INSTOCK = createField("inStock", org.jooq.impl.SQLDataType.INTEGER.defaultValue(org.jooq.impl.DSL.inline("1", org.jooq.impl.SQLDataType.INTEGER)), this, "");
+
+    /**
+     * Create a <code>thmodel.merchandiseinfo</code> table reference
+     */
+    public Merchandiseinfo() {
+        this(DSL.name("merchandiseinfo"), null);
+    }
+
+    /**
+     * Create an aliased <code>thmodel.merchandiseinfo</code> table reference
+     */
+    public Merchandiseinfo(String alias) {
+        this(DSL.name(alias), MERCHANDISEINFO);
+    }
+
+    /**
+     * Create an aliased <code>thmodel.merchandiseinfo</code> table reference
+     */
+    public Merchandiseinfo(Name alias) {
+        this(alias, MERCHANDISEINFO);
+    }
+
+    private Merchandiseinfo(Name alias, Table<MerchandiseinfoRecord> aliased) {
+        this(alias, aliased, null);
+    }
+
+    private Merchandiseinfo(Name alias, Table<MerchandiseinfoRecord> aliased, Field<?>[] parameters) {
+        super(alias, null, aliased, parameters, DSL.comment(""));
+    }
+
+    public <O extends Record> Merchandiseinfo(Table<O> child, ForeignKey<O, MerchandiseinfoRecord> key) {
+        super(child, key, MERCHANDISEINFO);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Schema getSchema() {
+        return Thmodel.THMODEL;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public List<Index> getIndexes() {
+        return Arrays.<Index>asList(Indexes.MERCHANDISEINFO_PRIMARY);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Identity<MerchandiseinfoRecord, Integer> getIdentity() {
+        return Keys.IDENTITY_MERCHANDISEINFO;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public UniqueKey<MerchandiseinfoRecord> getPrimaryKey() {
+        return Keys.KEY_MERCHANDISEINFO_PRIMARY;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public List<UniqueKey<MerchandiseinfoRecord>> getKeys() {
+        return Arrays.<UniqueKey<MerchandiseinfoRecord>>asList(Keys.KEY_MERCHANDISEINFO_PRIMARY);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Merchandiseinfo as(String alias) {
+        return new Merchandiseinfo(DSL.name(alias), this);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Merchandiseinfo as(Name alias) {
+        return new Merchandiseinfo(alias, this);
+    }
+
+    /**
+     * Rename this table
+     */
+    @Override
+    public Merchandiseinfo rename(String name) {
+        return new Merchandiseinfo(DSL.name(name), null);
+    }
+
+    /**
+     * Rename this table
+     */
+    @Override
+    public Merchandiseinfo rename(Name name) {
+        return new Merchandiseinfo(name, null);
+    }
+}

+ 828 - 0
src/main/java/com/thmodel/jooq/tables/records/ExchangeinfoRecord.java

@@ -0,0 +1,828 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package com.thmodel.jooq.tables.records;
+
+
+import com.thmodel.jooq.tables.Exchangeinfo;
+
+import java.sql.Timestamp;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Record1;
+import org.jooq.Record15;
+import org.jooq.Row15;
+import org.jooq.impl.UpdatableRecordImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+    value = {
+        "http://www.jooq.org",
+        "jOOQ version:3.11.5"
+    },
+    comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class ExchangeinfoRecord extends UpdatableRecordImpl<ExchangeinfoRecord> implements Record15<Integer, Integer, Integer, Integer, Integer, Integer, Integer, String, String, String, String, String, Timestamp, Integer, Timestamp> {
+
+    private static final long serialVersionUID = 230730442;
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.id</code>.
+     */
+    public void setId(Integer value) {
+        set(0, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.id</code>.
+     */
+    public Integer getId() {
+        return (Integer) get(0);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.memberPK</code>.
+     */
+    public void setMemberpk(Integer value) {
+        set(1, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.memberPK</code>.
+     */
+    public Integer getMemberpk() {
+        return (Integer) get(1);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.merchandiseId</code>.
+     */
+    public void setMerchandiseid(Integer value) {
+        set(2, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.merchandiseId</code>.
+     */
+    public Integer getMerchandiseid() {
+        return (Integer) get(2);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.price</code>.
+     */
+    public void setPrice(Integer value) {
+        set(3, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.price</code>.
+     */
+    public Integer getPrice() {
+        return (Integer) get(3);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.integral</code>.
+     */
+    public void setIntegral(Integer value) {
+        set(4, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.integral</code>.
+     */
+    public Integer getIntegral() {
+        return (Integer) get(4);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.amount</code>.
+     */
+    public void setAmount(Integer value) {
+        set(5, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.amount</code>.
+     */
+    public Integer getAmount() {
+        return (Integer) get(5);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.totalIntegral</code>.
+     */
+    public void setTotalintegral(Integer value) {
+        set(6, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.totalIntegral</code>.
+     */
+    public Integer getTotalintegral() {
+        return (Integer) get(6);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.name</code>.
+     */
+    public void setName(String value) {
+        set(7, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.name</code>.
+     */
+    public String getName() {
+        return (String) get(7);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.phone</code>.
+     */
+    public void setPhone(String value) {
+        set(8, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.phone</code>.
+     */
+    public String getPhone() {
+        return (String) get(8);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.address</code>.
+     */
+    public void setAddress(String value) {
+        set(9, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.address</code>.
+     */
+    public String getAddress() {
+        return (String) get(9);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.msg</code>.
+     */
+    public void setMsg(String value) {
+        set(10, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.msg</code>.
+     */
+    public String getMsg() {
+        return (String) get(10);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.logistics</code>.
+     */
+    public void setLogistics(String value) {
+        set(11, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.logistics</code>.
+     */
+    public String getLogistics() {
+        return (String) get(11);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.time</code>.
+     */
+    public void setTime(Timestamp value) {
+        set(12, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.time</code>.
+     */
+    public Timestamp getTime() {
+        return (Timestamp) get(12);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.shipped</code>.
+     */
+    public void setShipped(Integer value) {
+        set(13, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.shipped</code>.
+     */
+    public Integer getShipped() {
+        return (Integer) get(13);
+    }
+
+    /**
+     * Setter for <code>thmodel.exchangeinfo.shippedTime</code>.
+     */
+    public void setShippedtime(Timestamp value) {
+        set(14, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.exchangeinfo.shippedTime</code>.
+     */
+    public Timestamp getShippedtime() {
+        return (Timestamp) get(14);
+    }
+
+    // -------------------------------------------------------------------------
+    // Primary key information
+    // -------------------------------------------------------------------------
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Record1<Integer> key() {
+        return (Record1) super.key();
+    }
+
+    // -------------------------------------------------------------------------
+    // Record15 type implementation
+    // -------------------------------------------------------------------------
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Row15<Integer, Integer, Integer, Integer, Integer, Integer, Integer, String, String, String, String, String, Timestamp, Integer, Timestamp> fieldsRow() {
+        return (Row15) super.fieldsRow();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Row15<Integer, Integer, Integer, Integer, Integer, Integer, Integer, String, String, String, String, String, Timestamp, Integer, Timestamp> valuesRow() {
+        return (Row15) super.valuesRow();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field1() {
+        return Exchangeinfo.EXCHANGEINFO.ID;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field2() {
+        return Exchangeinfo.EXCHANGEINFO.MEMBERPK;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field3() {
+        return Exchangeinfo.EXCHANGEINFO.MERCHANDISEID;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field4() {
+        return Exchangeinfo.EXCHANGEINFO.PRICE;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field5() {
+        return Exchangeinfo.EXCHANGEINFO.INTEGRAL;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field6() {
+        return Exchangeinfo.EXCHANGEINFO.AMOUNT;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field7() {
+        return Exchangeinfo.EXCHANGEINFO.TOTALINTEGRAL;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field8() {
+        return Exchangeinfo.EXCHANGEINFO.NAME;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field9() {
+        return Exchangeinfo.EXCHANGEINFO.PHONE;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field10() {
+        return Exchangeinfo.EXCHANGEINFO.ADDRESS;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field11() {
+        return Exchangeinfo.EXCHANGEINFO.MSG;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field12() {
+        return Exchangeinfo.EXCHANGEINFO.LOGISTICS;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Timestamp> field13() {
+        return Exchangeinfo.EXCHANGEINFO.TIME;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field14() {
+        return Exchangeinfo.EXCHANGEINFO.SHIPPED;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Timestamp> field15() {
+        return Exchangeinfo.EXCHANGEINFO.SHIPPEDTIME;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component1() {
+        return getId();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component2() {
+        return getMemberpk();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component3() {
+        return getMerchandiseid();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component4() {
+        return getPrice();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component5() {
+        return getIntegral();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component6() {
+        return getAmount();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component7() {
+        return getTotalintegral();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component8() {
+        return getName();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component9() {
+        return getPhone();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component10() {
+        return getAddress();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component11() {
+        return getMsg();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component12() {
+        return getLogistics();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Timestamp component13() {
+        return getTime();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component14() {
+        return getShipped();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Timestamp component15() {
+        return getShippedtime();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value1() {
+        return getId();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value2() {
+        return getMemberpk();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value3() {
+        return getMerchandiseid();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value4() {
+        return getPrice();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value5() {
+        return getIntegral();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value6() {
+        return getAmount();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value7() {
+        return getTotalintegral();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value8() {
+        return getName();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value9() {
+        return getPhone();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value10() {
+        return getAddress();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value11() {
+        return getMsg();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value12() {
+        return getLogistics();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Timestamp value13() {
+        return getTime();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value14() {
+        return getShipped();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Timestamp value15() {
+        return getShippedtime();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value1(Integer value) {
+        setId(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value2(Integer value) {
+        setMemberpk(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value3(Integer value) {
+        setMerchandiseid(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value4(Integer value) {
+        setPrice(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value5(Integer value) {
+        setIntegral(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value6(Integer value) {
+        setAmount(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value7(Integer value) {
+        setTotalintegral(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value8(String value) {
+        setName(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value9(String value) {
+        setPhone(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value10(String value) {
+        setAddress(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value11(String value) {
+        setMsg(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value12(String value) {
+        setLogistics(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value13(Timestamp value) {
+        setTime(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value14(Integer value) {
+        setShipped(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord value15(Timestamp value) {
+        setShippedtime(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public ExchangeinfoRecord values(Integer value1, Integer value2, Integer value3, Integer value4, Integer value5, Integer value6, Integer value7, String value8, String value9, String value10, String value11, String value12, Timestamp value13, Integer value14, Timestamp value15) {
+        value1(value1);
+        value2(value2);
+        value3(value3);
+        value4(value4);
+        value5(value5);
+        value6(value6);
+        value7(value7);
+        value8(value8);
+        value9(value9);
+        value10(value10);
+        value11(value11);
+        value12(value12);
+        value13(value13);
+        value14(value14);
+        value15(value15);
+        return this;
+    }
+
+    // -------------------------------------------------------------------------
+    // Constructors
+    // -------------------------------------------------------------------------
+
+    /**
+     * Create a detached ExchangeinfoRecord
+     */
+    public ExchangeinfoRecord() {
+        super(Exchangeinfo.EXCHANGEINFO);
+    }
+
+    /**
+     * Create a detached, initialised ExchangeinfoRecord
+     */
+    public ExchangeinfoRecord(Integer id, Integer memberpk, Integer merchandiseid, Integer price, Integer integral, Integer amount, Integer totalintegral, String name, String phone, String address, String msg, String logistics, Timestamp time, Integer shipped, Timestamp shippedtime) {
+        super(Exchangeinfo.EXCHANGEINFO);
+
+        set(0, id);
+        set(1, memberpk);
+        set(2, merchandiseid);
+        set(3, price);
+        set(4, integral);
+        set(5, amount);
+        set(6, totalintegral);
+        set(7, name);
+        set(8, phone);
+        set(9, address);
+        set(10, msg);
+        set(11, logistics);
+        set(12, time);
+        set(13, shipped);
+        set(14, shippedtime);
+    }
+}

+ 532 - 0
src/main/java/com/thmodel/jooq/tables/records/MerchandiseinfoRecord.java

@@ -0,0 +1,532 @@
+/*
+ * This file is generated by jOOQ.
+ */
+package com.thmodel.jooq.tables.records;
+
+
+import com.thmodel.jooq.tables.Merchandiseinfo;
+
+import javax.annotation.Generated;
+
+import org.jooq.Field;
+import org.jooq.Record1;
+import org.jooq.Record9;
+import org.jooq.Row9;
+import org.jooq.impl.UpdatableRecordImpl;
+
+
+/**
+ * This class is generated by jOOQ.
+ */
+@Generated(
+    value = {
+        "http://www.jooq.org",
+        "jOOQ version:3.11.5"
+    },
+    comments = "This class is generated by jOOQ"
+)
+@SuppressWarnings({ "all", "unchecked", "rawtypes" })
+public class MerchandiseinfoRecord extends UpdatableRecordImpl<MerchandiseinfoRecord> implements Record9<Integer, Integer, String, Integer, Integer, String, String, String, Integer> {
+
+    private static final long serialVersionUID = -1883143483;
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.id</code>.
+     */
+    public void setId(Integer value) {
+        set(0, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.id</code>.
+     */
+    public Integer getId() {
+        return (Integer) get(0);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.integral</code>.
+     */
+    public void setIntegral(Integer value) {
+        set(1, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.integral</code>.
+     */
+    public Integer getIntegral() {
+        return (Integer) get(1);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.name</code>.
+     */
+    public void setName(String value) {
+        set(2, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.name</code>.
+     */
+    public String getName() {
+        return (String) get(2);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.price</code>.
+     */
+    public void setPrice(Integer value) {
+        set(3, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.price</code>.
+     */
+    public Integer getPrice() {
+        return (Integer) get(3);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.stock</code>.
+     */
+    public void setStock(Integer value) {
+        set(4, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.stock</code>.
+     */
+    public Integer getStock() {
+        return (Integer) get(4);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.intro</code>.
+     */
+    public void setIntro(String value) {
+        set(5, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.intro</code>.
+     */
+    public String getIntro() {
+        return (String) get(5);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.cover</code>.
+     */
+    public void setCover(String value) {
+        set(6, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.cover</code>.
+     */
+    public String getCover() {
+        return (String) get(6);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.pics</code>.
+     */
+    public void setPics(String value) {
+        set(7, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.pics</code>.
+     */
+    public String getPics() {
+        return (String) get(7);
+    }
+
+    /**
+     * Setter for <code>thmodel.merchandiseinfo.inStock</code>.
+     */
+    public void setInstock(Integer value) {
+        set(8, value);
+    }
+
+    /**
+     * Getter for <code>thmodel.merchandiseinfo.inStock</code>.
+     */
+    public Integer getInstock() {
+        return (Integer) get(8);
+    }
+
+    // -------------------------------------------------------------------------
+    // Primary key information
+    // -------------------------------------------------------------------------
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Record1<Integer> key() {
+        return (Record1) super.key();
+    }
+
+    // -------------------------------------------------------------------------
+    // Record9 type implementation
+    // -------------------------------------------------------------------------
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Row9<Integer, Integer, String, Integer, Integer, String, String, String, Integer> fieldsRow() {
+        return (Row9) super.fieldsRow();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Row9<Integer, Integer, String, Integer, Integer, String, String, String, Integer> valuesRow() {
+        return (Row9) super.valuesRow();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field1() {
+        return Merchandiseinfo.MERCHANDISEINFO.ID;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field2() {
+        return Merchandiseinfo.MERCHANDISEINFO.INTEGRAL;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field3() {
+        return Merchandiseinfo.MERCHANDISEINFO.NAME;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field4() {
+        return Merchandiseinfo.MERCHANDISEINFO.PRICE;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field5() {
+        return Merchandiseinfo.MERCHANDISEINFO.STOCK;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field6() {
+        return Merchandiseinfo.MERCHANDISEINFO.INTRO;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field7() {
+        return Merchandiseinfo.MERCHANDISEINFO.COVER;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<String> field8() {
+        return Merchandiseinfo.MERCHANDISEINFO.PICS;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Field<Integer> field9() {
+        return Merchandiseinfo.MERCHANDISEINFO.INSTOCK;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component1() {
+        return getId();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component2() {
+        return getIntegral();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component3() {
+        return getName();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component4() {
+        return getPrice();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component5() {
+        return getStock();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component6() {
+        return getIntro();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component7() {
+        return getCover();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String component8() {
+        return getPics();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer component9() {
+        return getInstock();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value1() {
+        return getId();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value2() {
+        return getIntegral();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value3() {
+        return getName();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value4() {
+        return getPrice();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value5() {
+        return getStock();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value6() {
+        return getIntro();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value7() {
+        return getCover();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public String value8() {
+        return getPics();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public Integer value9() {
+        return getInstock();
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value1(Integer value) {
+        setId(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value2(Integer value) {
+        setIntegral(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value3(String value) {
+        setName(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value4(Integer value) {
+        setPrice(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value5(Integer value) {
+        setStock(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value6(String value) {
+        setIntro(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value7(String value) {
+        setCover(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value8(String value) {
+        setPics(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord value9(Integer value) {
+        setInstock(value);
+        return this;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public MerchandiseinfoRecord values(Integer value1, Integer value2, String value3, Integer value4, Integer value5, String value6, String value7, String value8, Integer value9) {
+        value1(value1);
+        value2(value2);
+        value3(value3);
+        value4(value4);
+        value5(value5);
+        value6(value6);
+        value7(value7);
+        value8(value8);
+        value9(value9);
+        return this;
+    }
+
+    // -------------------------------------------------------------------------
+    // Constructors
+    // -------------------------------------------------------------------------
+
+    /**
+     * Create a detached MerchandiseinfoRecord
+     */
+    public MerchandiseinfoRecord() {
+        super(Merchandiseinfo.MERCHANDISEINFO);
+    }
+
+    /**
+     * Create a detached, initialised MerchandiseinfoRecord
+     */
+    public MerchandiseinfoRecord(Integer id, Integer integral, String name, Integer price, Integer stock, String intro, String cover, String pics, Integer instock) {
+        super(Merchandiseinfo.MERCHANDISEINFO);
+
+        set(0, id);
+        set(1, integral);
+        set(2, name);
+        set(3, price);
+        set(4, stock);
+        set(5, intro);
+        set(6, cover);
+        set(7, pics);
+        set(8, instock);
+    }
+}

+ 20 - 0
src/main/java/com/thmodel/service/IntegralService.java

@@ -0,0 +1,20 @@
+package com.thmodel.service;
+
+import com.thmodel.entity.ExchangeInfo;
+import com.thmodel.entity.MerchandiseInfo;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
+import net.sf.json.JSONObject;
+
+import java.util.List;
+
+public interface IntegralService {
+    List<JSONObject> getMerchandisesByPage(MerchandiseInfo record, int page);
+
+    List<JSONObject> getAllMerchandises(MerchandiseInfo record);
+
+    List<JSONObject> getExchangeInfoByPage(ExchangeInfo record, int page);
+
+    List<JSONObject> getAllExchangeInfo(ExchangeInfo record);
+
+    boolean saveExchange(ExchangeinfoRecord record);
+}

+ 7 - 0
src/main/java/com/thmodel/service/ServiceException.java

@@ -0,0 +1,7 @@
+package com.thmodel.service;
+
+public class ServiceException extends RuntimeException {
+    public ServiceException(String message) {
+        super(message);
+    }
+}

+ 40 - 0
src/main/java/com/thmodel/service/impl/IntegralServiceImpl.java

@@ -0,0 +1,40 @@
+package com.thmodel.service.impl;
+
+import com.thmodel.dao.IntegralDao;
+import com.thmodel.dao.impl.IntegralDaoImpl;
+import com.thmodel.entity.ExchangeInfo;
+import com.thmodel.entity.MerchandiseInfo;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
+import com.thmodel.service.IntegralService;
+import net.sf.json.JSONObject;
+
+import java.util.List;
+
+public class IntegralServiceImpl implements IntegralService {
+    private static IntegralDao integralDao = new IntegralDaoImpl();
+
+    @Override
+    public List<JSONObject> getMerchandisesByPage(MerchandiseInfo record, int page) {
+        return integralDao.queryMerchandisesByPage(record, page);
+    }
+
+    @Override
+    public List<JSONObject> getAllMerchandises(MerchandiseInfo record) {
+        return integralDao.queryAllMerchandises(record);
+    }
+
+    @Override
+    public List<JSONObject> getExchangeInfoByPage(ExchangeInfo record, int page) {
+        return integralDao.queryExchangeInfoByPage(record, page);
+    }
+
+    @Override
+    public List<JSONObject> getAllExchangeInfo(ExchangeInfo record) {
+        return integralDao.queryAllExchangeInfo(record);
+    }
+
+    @Override
+    public boolean saveExchange(ExchangeinfoRecord record) {
+        return integralDao.saveExchangeInfo(record) > 0;
+    }
+}

+ 80 - 0
src/main/java/com/thmodel/servlet/IntegralServlet.java

@@ -0,0 +1,80 @@
+package com.thmodel.servlet;
+
+import com.thmodel.entity.ExchangeInfo;
+import com.thmodel.entity.MerchandiseInfo;
+import com.thmodel.jooq.tables.records.ExchangeinfoRecord;
+import com.thmodel.service.IntegralService;
+import com.thmodel.service.ServiceException;
+import com.thmodel.service.impl.IntegralServiceImpl;
+import com.thmodel.util.JspUtils;
+import net.sf.json.JSONObject;
+import org.apache.commons.beanutils.BeanUtils;
+
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.util.List;
+
+@WebServlet(urlPatterns = "/integral")
+public class IntegralServlet extends HttpServlet {
+    private static IntegralService integralService = new IntegralServiceImpl();
+
+    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+        doPost(request, response);
+    }
+
+    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
+        response.setHeader("Access-Control-Allow-Origin", "*");
+        response.setContentType("application/json");
+        request.setCharacterEncoding("UTF-8");
+        String action = request.getParameter("action");
+        JSONObject resultJson = new JSONObject();
+        try {
+            if ("getMerchandisesByPage".equals(action)) {
+                MerchandiseInfo merchandiseInfo = new MerchandiseInfo();
+                BeanUtils.populate(merchandiseInfo, request.getParameterMap());
+                int page = JspUtils.getInt(request, "page");
+                List<JSONObject> data = integralService.getMerchandisesByPage(merchandiseInfo, page);
+                resultJson.put("data", data);
+                resultJson.put("success", true);
+            } else if ("getExchangeInfoByPage".equals(action)) {
+                ExchangeInfo exchangeInfo = new ExchangeInfo();
+                BeanUtils.populate(exchangeInfo, request.getParameterMap());
+                int page = JspUtils.getInt(request, "page");
+                List<JSONObject> data = integralService.getExchangeInfoByPage(exchangeInfo, page);
+                resultJson.put("data", data);
+                resultJson.put("success", true);
+            } else if ("getAllMerchandises".equals(action)) {
+                MerchandiseInfo merchandiseInfo = new MerchandiseInfo();
+                BeanUtils.populate(merchandiseInfo, request.getParameterMap());
+                List<JSONObject> data = integralService.getAllMerchandises(merchandiseInfo);
+                resultJson.put("data", data);
+                resultJson.put("success", true);
+            } else if ("getAllExchangeInfo".equals(action)) {
+                ExchangeInfo exchangeInfo = new ExchangeInfo();
+                BeanUtils.populate(exchangeInfo, request.getParameterMap());
+                List<JSONObject> data = integralService.getAllExchangeInfo(exchangeInfo);
+                resultJson.put("data", data);
+                resultJson.put("success", true);
+            } else if ("saveExchange".equals(action)) {
+                ExchangeinfoRecord exchangeInfo = new ExchangeinfoRecord();
+                BeanUtils.populate(exchangeInfo, request.getParameterMap());
+                boolean success = integralService.saveExchange(exchangeInfo);
+                resultJson.put("success", success);
+            }
+        } catch (Exception e) {
+            resultJson.put("success", false);
+            resultJson.put("error", e.getMessage());
+        }
+        response.setCharacterEncoding("utf-8");
+        PrintWriter out = response.getWriter();
+        System.out.println(resultJson.toString());
+        out.print(resultJson.toString());
+        out.flush();
+        out.close();
+    }
+}

+ 1 - 1
src/main/webapp/dancer/index.jsp

@@ -67,7 +67,7 @@
     String userAgent = request.getHeader("user-agent");
     int signState = -1;
     if (memberpk > 0) {
-        Record record = ctx.select().from(PARTTYSIGN).where(PARTTYSIGN.MEMBERPK.equal(memberpk)).fetchAny();
+        Record record = ctx.select().from(PARTTYSIGN).where(PARTTYSIGN.MEMBERPK.equal(memberpk)).and(PARTTYSIGN.PARTTYPK.equal(activitypk)).fetchAny();
         if (record != null) {
             signState = record.get(PARTTYSIGN.PASS);
         }

+ 5 - 5
src/main/webapp/modelCard.jsp

@@ -456,11 +456,11 @@
                     'https://ws1.sinaimg.cn/large/0065oQSqly1fw8wzdua6rj30sg0yc7gp.jpg'
                 ],
                 labelColors: ['#FF759E', '#FC7D77', '#D1AEFA'],
-                labels: JSON.parse('<%=labelJson%>'),
-                skills: JSON.parse('<%=skillsJson%>'),
-                modelInfo: JSON.parse('<%=modelInfoJson%>'),
-                photos: JSON.parse('<%=photoJson%>'),
-                honors: JSON.parse('<%=honorJson%>'),
+                labels: <%=labelJson%>,
+                skills: <%=skillsJson%>,
+                modelInfo: <%=modelInfoJson%>,
+                photos: <%=photoJson%>,
+                honors: <%=honorJson%>,
                 preview: '<%=preview%>'
             }
         },