瀏覽代碼

Merge branch 'master' of https://gitee.com/zouxuan/mec

zouxuan 5 年之前
父節點
當前提交
272b81f01b
共有 44 個文件被更改,包括 2460 次插入2 次删除
  1. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/PlatformCashAccountDao.java
  2. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/PlatformCashAccountDetailDao.java
  3. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/StudentApplyRefundsDao.java
  4. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/StudentPaymentOrderDao.java
  5. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/StudentPaymentOrderDetailDao.java
  6. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/SysUserCashAccountDao.java
  7. 9 0
      mec-web/src/main/java/com/ym/mec/web/dal/dao/SysUserCashAccountDetailDao.java
  8. 11 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/GoodsOrder.java
  9. 103 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/PlatformCashAccount.java
  10. 136 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/PlatformCashAccountDetail.java
  11. 114 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/StudentApplyRefunds.java
  12. 191 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/StudentPaymentOrder.java
  13. 92 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/StudentPaymentOrderDetail.java
  14. 103 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/SysUserCashAccount.java
  15. 136 0
      mec-web/src/main/java/com/ym/mec/web/dal/entity/SysUserCashAccountDetail.java
  16. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/PlatformCashAccountDetailService.java
  17. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/PlatformCashAccountService.java
  18. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/StudentApplyRefundsService.java
  19. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/StudentPaymentOrderDetailService.java
  20. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/StudentPaymentOrderService.java
  21. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/SysUserCashAccountDetailService.java
  22. 8 0
      mec-web/src/main/java/com/ym/mec/web/service/SysUserCashAccountService.java
  23. 96 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountDetailMapper.xml
  24. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountDetailServiceImpl.java
  25. 84 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountMapper.xml
  26. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountServiceImpl.java
  27. 88 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/StudentApplyRefundsMapper.xml
  28. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/StudentApplyRefundsServiceImpl.java
  29. 80 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderDetailMapper.xml
  30. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderDetailServiceImpl.java
  31. 116 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderMapper.xml
  32. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderServiceImpl.java
  33. 96 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountDetailMapper.xml
  34. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountDetailServiceImpl.java
  35. 84 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountMapper.xml
  36. 23 0
      mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountServiceImpl.java
  37. 6 2
      mec-web/src/main/resources/config/mybatis/GoodsOrderMapper.xml
  38. 96 0
      mec-web/src/main/resources/config/mybatis/PlatformCashAccountDetailMapper.xml
  39. 84 0
      mec-web/src/main/resources/config/mybatis/PlatformCashAccountMapper.xml
  40. 88 0
      mec-web/src/main/resources/config/mybatis/StudentApplyRefundsMapper.xml
  41. 80 0
      mec-web/src/main/resources/config/mybatis/StudentPaymentOrderDetailMapper.xml
  42. 116 0
      mec-web/src/main/resources/config/mybatis/StudentPaymentOrderMapper.xml
  43. 96 0
      mec-web/src/main/resources/config/mybatis/SysUserCashAccountDetailMapper.xml
  44. 84 0
      mec-web/src/main/resources/config/mybatis/SysUserCashAccountMapper.xml

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/PlatformCashAccountDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.PlatformCashAccount;
+
+public interface PlatformCashAccountDao extends BaseDAO<String, PlatformCashAccount> {
+
+	
+}

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/PlatformCashAccountDetailDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.PlatformCashAccountDetail;
+
+public interface PlatformCashAccountDetailDao extends BaseDAO<Long, PlatformCashAccountDetail> {
+
+	
+}

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/StudentApplyRefundsDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.StudentApplyRefunds;
+
+public interface StudentApplyRefundsDao extends BaseDAO<Long, StudentApplyRefunds> {
+
+	
+}

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/StudentPaymentOrderDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.StudentPaymentOrder;
+
+public interface StudentPaymentOrderDao extends BaseDAO<Long, StudentPaymentOrder> {
+
+	
+}

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/StudentPaymentOrderDetailDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.StudentPaymentOrderDetail;
+
+public interface StudentPaymentOrderDetailDao extends BaseDAO<Long, StudentPaymentOrderDetail> {
+
+	
+}

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/SysUserCashAccountDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.SysUserCashAccount;
+
+public interface SysUserCashAccountDao extends BaseDAO<Integer, SysUserCashAccount> {
+
+	
+}

+ 9 - 0
mec-web/src/main/java/com/ym/mec/web/dal/dao/SysUserCashAccountDetailDao.java

@@ -0,0 +1,9 @@
+package com.ym.mec.web.dal.dao;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.web.dal.entity.SysUserCashAccountDetail;
+
+public interface SysUserCashAccountDetailDao extends BaseDAO<Long, SysUserCashAccountDetail> {
+
+	
+}

+ 11 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/GoodsOrder.java

@@ -44,6 +44,9 @@ public class GoodsOrder {
 
 	/** 订单总额 */
 	private long totalAmount;
+	
+	/** 优惠金额 */
+	private long couponAmount;
 
 	/** 商品数量 */
 	private Integer goodsQuantity;
@@ -104,6 +107,14 @@ public class GoodsOrder {
 		return this.totalAmount;
 	}
 
+	public long getCouponAmount() {
+		return couponAmount;
+	}
+
+	public void setCouponAmount(long couponAmount) {
+		this.couponAmount = couponAmount;
+	}
+
 	public void setGoodsQuantity(Integer goodsQuantity) {
 		this.goodsQuantity = goodsQuantity;
 	}

+ 103 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/PlatformCashAccount.java

@@ -0,0 +1,103 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(platform_cash_account):
+ */
+public class PlatformCashAccount {
+
+	/** 账户号 */
+	private String id;
+	
+	/** 币种 */
+	private String currency;
+	
+	/** 账户可用余额 */
+	private long balance;
+	
+	/** 冻结金额 */
+	private long frozenAmount;
+	
+	/** 保证金余额 */
+	private long marginBalance;
+	
+	/** 账户状态(0,冻结,1,正常;-1,注销;) */
+	private Integer status;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	/** 修改时间 */
+	private java.util.Date updateTime;
+	
+	public void setId(String id){
+		this.id = id;
+	}
+	
+	public String getId(){
+		return this.id;
+	}
+			
+	public void setCurrency(String currency){
+		this.currency = currency;
+	}
+	
+	public String getCurrency(){
+		return this.currency;
+	}
+			
+	public void setBalance(long balance){
+		this.balance = balance;
+	}
+	
+	public long getBalance(){
+		return this.balance;
+	}
+			
+	public void setFrozenAmount(long frozenAmount){
+		this.frozenAmount = frozenAmount;
+	}
+	
+	public long getFrozenAmount(){
+		return this.frozenAmount;
+	}
+			
+	public void setMarginBalance(long marginBalance){
+		this.marginBalance = marginBalance;
+	}
+	
+	public long getMarginBalance(){
+		return this.marginBalance;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 136 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/PlatformCashAccountDetail.java

@@ -0,0 +1,136 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(platform_cash_account_detail):
+ */
+public class PlatformCashAccountDetail {
+
+	/** 序号 */
+	private Long id;
+	
+	/** 用户编号 */
+	private String platformCashAccountId;
+	
+	/** 交易流水号 */
+	private String transNo;
+	
+	/** 交易类型 (RECHARGE 充值,WITHDRAW 提现,PAY_FEE 缴费,REFUNDS 退费,FILL_ACCOUNT 人工补账) */
+	private String type;
+	
+	/** 交易状态(1,交易中;2,成功交易;-1,交易失败;) */
+	private Integer status;
+	
+	/** 交易金额 */
+	private long amount;
+	
+	/** 账户可用余额 */
+	private long balance;
+	
+	/** 描述 */
+	private String description;
+	
+	/** 后台备注 */
+	private String comment;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	/** 修改时间 */
+	private java.util.Date updateTime;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setPlatformCashAccountId(String platformCashAccountId){
+		this.platformCashAccountId = platformCashAccountId;
+	}
+	
+	public String getPlatformCashAccountId(){
+		return this.platformCashAccountId;
+	}
+			
+	public void setTransNo(String transNo){
+		this.transNo = transNo;
+	}
+	
+	public String getTransNo(){
+		return this.transNo;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setAmount(long amount){
+		this.amount = amount;
+	}
+	
+	public long getAmount(){
+		return this.amount;
+	}
+			
+	public void setBalance(long balance){
+		this.balance = balance;
+	}
+	
+	public long getBalance(){
+		return this.balance;
+	}
+			
+	public void setDescription(String description){
+		this.description = description;
+	}
+	
+	public String getDescription(){
+		return this.description;
+	}
+			
+	public void setComment(String comment){
+		this.comment = comment;
+	}
+	
+	public String getComment(){
+		return this.comment;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 114 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/StudentApplyRefunds.java

@@ -0,0 +1,114 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(student_apply_refunds):
+ */
+public class StudentApplyRefunds {
+
+	/**  */
+	private Long id;
+	
+	/**  */
+	private Integer userId;
+	
+	/** 订单号 */
+	private String orderNo;
+	
+	/** 状态(1,交易中;2,成功交易;-1,交易失败;) */
+	private String status;
+	
+	/** 预计退费金额 */
+	private long expectAmount;
+	
+	/** 实际退费金额 */
+	private long actualAmount;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	/** 原订单编号 */
+	private Long origPaymentOrderId;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setOrderNo(String orderNo){
+		this.orderNo = orderNo;
+	}
+	
+	public String getOrderNo(){
+		return this.orderNo;
+	}
+			
+	public void setStatus(String status){
+		this.status = status;
+	}
+	
+	public String getStatus(){
+		return this.status;
+	}
+			
+	public void setExpectAmount(long expectAmount){
+		this.expectAmount = expectAmount;
+	}
+	
+	public long getExpectAmount(){
+		return this.expectAmount;
+	}
+			
+	public void setActualAmount(long actualAmount){
+		this.actualAmount = actualAmount;
+	}
+	
+	public long getActualAmount(){
+		return this.actualAmount;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setOrigPaymentOrderId(Long origPaymentOrderId){
+		this.origPaymentOrderId = origPaymentOrderId;
+	}
+	
+	public Long getOrigPaymentOrderId(){
+		return this.origPaymentOrderId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 191 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/StudentPaymentOrder.java

@@ -0,0 +1,191 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(student_payment_order):
+ */
+public class StudentPaymentOrder {
+
+	/**  */
+	private Long id;
+	
+	/**  */
+	private Integer userId;
+	
+	/** 订单类型(报名、续费、小课购买、其他) */
+	private String type;
+	
+	/** 预计金额 */
+	private long expectAmount;
+	
+	/** 实际金额 */
+	private long actualAmount;
+	
+	/** 交易流水号 */
+	private String transNo;
+	
+	/** 交易状态 */
+	private String status;
+	
+	/** 备注 */
+	private String memo;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	/** 付款渠道 */
+	private String paymentChannel;
+	
+	/** 业务渠道 */
+	private String paymentBusinessChannel;
+	
+	/** 付款账户 */
+	private String paymentAccountNo;
+	
+	/** 订单号 */
+	private String orderNo;
+	
+	/**  */
+	private String musicGroupId;
+	
+	/**  */
+	private Integer classGroupId;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setExpectAmount(long expectAmount){
+		this.expectAmount = expectAmount;
+	}
+	
+	public long getExpectAmount(){
+		return this.expectAmount;
+	}
+			
+	public void setActualAmount(long actualAmount){
+		this.actualAmount = actualAmount;
+	}
+	
+	public long getActualAmount(){
+		return this.actualAmount;
+	}
+			
+	public void setTransNo(String transNo){
+		this.transNo = transNo;
+	}
+	
+	public String getTransNo(){
+		return this.transNo;
+	}
+			
+	public void setStatus(String status){
+		this.status = status;
+	}
+	
+	public String getStatus(){
+		return this.status;
+	}
+			
+	public void setMemo(String memo){
+		this.memo = memo;
+	}
+	
+	public String getMemo(){
+		return this.memo;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setPaymentChannel(String paymentChannel){
+		this.paymentChannel = paymentChannel;
+	}
+	
+	public String getPaymentChannel(){
+		return this.paymentChannel;
+	}
+			
+	public void setPaymentBusinessChannel(String paymentBusinessChannel){
+		this.paymentBusinessChannel = paymentBusinessChannel;
+	}
+	
+	public String getPaymentBusinessChannel(){
+		return this.paymentBusinessChannel;
+	}
+			
+	public void setPaymentAccountNo(String paymentAccountNo){
+		this.paymentAccountNo = paymentAccountNo;
+	}
+	
+	public String getPaymentAccountNo(){
+		return this.paymentAccountNo;
+	}
+			
+	public void setOrderNo(String orderNo){
+		this.orderNo = orderNo;
+	}
+	
+	public String getOrderNo(){
+		return this.orderNo;
+	}
+			
+	public void setMusicGroupId(String musicGroupId){
+		this.musicGroupId = musicGroupId;
+	}
+	
+	public String getMusicGroupId(){
+		return this.musicGroupId;
+	}
+			
+	public void setClassGroupId(Integer classGroupId){
+		this.classGroupId = classGroupId;
+	}
+	
+	public Integer getClassGroupId(){
+		return this.classGroupId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 92 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/StudentPaymentOrderDetail.java

@@ -0,0 +1,92 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(student_payment_order_detail):
+ */
+public class StudentPaymentOrderDetail {
+
+	/**  */
+	private Long id;
+	
+	/** 类型(乐器、辅件、教材、课程) */
+	private String type;
+	
+	/** 商品列表(用户|分开) */
+	private String goodsIdList;
+	
+	/** 打包价格 */
+	private long price;
+	
+	/**  */
+	private java.util.Date createTime;
+	
+	/**  */
+	private java.util.Date updateTime;
+	
+	/** 订单编号(对应student_payment_order) */
+	private Long paymentOrderId;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setGoodsIdList(String goodsIdList){
+		this.goodsIdList = goodsIdList;
+	}
+	
+	public String getGoodsIdList(){
+		return this.goodsIdList;
+	}
+			
+	public void setPrice(long price){
+		this.price = price;
+	}
+	
+	public long getPrice(){
+		return this.price;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	public void setPaymentOrderId(Long paymentOrderId){
+		this.paymentOrderId = paymentOrderId;
+	}
+	
+	public Long getPaymentOrderId(){
+		return this.paymentOrderId;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 103 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/SysUserCashAccount.java

@@ -0,0 +1,103 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user_cash_account):
+ */
+public class SysUserCashAccount {
+
+	/** 账户号码(用户编号) */
+	private Integer userId;
+	
+	/** 币种 */
+	private String currency;
+	
+	/** 账户可用余额 */
+	private long balance;
+	
+	/** 冻结金额 */
+	private long frozenAmount;
+	
+	/** 保证金余额 */
+	private long marginBalance;
+	
+	/** 账户状态(0,冻结,1,正常;-1,注销;) */
+	private Integer status;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	/** 修改时间 */
+	private java.util.Date updateTime;
+	
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setCurrency(String currency){
+		this.currency = currency;
+	}
+	
+	public String getCurrency(){
+		return this.currency;
+	}
+			
+	public void setBalance(long balance){
+		this.balance = balance;
+	}
+	
+	public long getBalance(){
+		return this.balance;
+	}
+			
+	public void setFrozenAmount(long frozenAmount){
+		this.frozenAmount = frozenAmount;
+	}
+	
+	public long getFrozenAmount(){
+		return this.frozenAmount;
+	}
+			
+	public void setMarginBalance(long marginBalance){
+		this.marginBalance = marginBalance;
+	}
+	
+	public long getMarginBalance(){
+		return this.marginBalance;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 136 - 0
mec-web/src/main/java/com/ym/mec/web/dal/entity/SysUserCashAccountDetail.java

@@ -0,0 +1,136 @@
+package com.ym.mec.web.dal.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
+/**
+ * 对应数据库表(sys_user_cash_account_detail):
+ */
+public class SysUserCashAccountDetail {
+
+	/** 序号 */
+	private Long id;
+	
+	/** 用户编号 */
+	private Integer userId;
+	
+	/** 交易流水号 */
+	private String transNo;
+	
+	/** 交易类型 (RECHARGE 充值,WITHDRAW 提现,PAY_FEE 缴费,REFUNDS 退费,FILL_ACCOUNT 人工补账) */
+	private String type;
+	
+	/** 交易状态(1,交易中;2,成功交易;-1,交易失败;) */
+	private Integer status;
+	
+	/** 交易金额 */
+	private long amount;
+	
+	/** 账户可用余额 */
+	private long balance;
+	
+	/** 描述 */
+	private String description;
+	
+	/** 后台备注 */
+	private String comment;
+	
+	/** 创建时间 */
+	private java.util.Date createTime;
+	
+	/** 修改时间 */
+	private java.util.Date updateTime;
+	
+	public void setId(Long id){
+		this.id = id;
+	}
+	
+	public Long getId(){
+		return this.id;
+	}
+			
+	public void setUserId(Integer userId){
+		this.userId = userId;
+	}
+	
+	public Integer getUserId(){
+		return this.userId;
+	}
+			
+	public void setTransNo(String transNo){
+		this.transNo = transNo;
+	}
+	
+	public String getTransNo(){
+		return this.transNo;
+	}
+			
+	public void setType(String type){
+		this.type = type;
+	}
+	
+	public String getType(){
+		return this.type;
+	}
+			
+	public void setStatus(Integer status){
+		this.status = status;
+	}
+	
+	public Integer getStatus(){
+		return this.status;
+	}
+			
+	public void setAmount(long amount){
+		this.amount = amount;
+	}
+	
+	public long getAmount(){
+		return this.amount;
+	}
+			
+	public void setBalance(long balance){
+		this.balance = balance;
+	}
+	
+	public long getBalance(){
+		return this.balance;
+	}
+			
+	public void setDescription(String description){
+		this.description = description;
+	}
+	
+	public String getDescription(){
+		return this.description;
+	}
+			
+	public void setComment(String comment){
+		this.comment = comment;
+	}
+	
+	public String getComment(){
+		return this.comment;
+	}
+			
+	public void setCreateTime(java.util.Date createTime){
+		this.createTime = createTime;
+	}
+	
+	public java.util.Date getCreateTime(){
+		return this.createTime;
+	}
+			
+	public void setUpdateTime(java.util.Date updateTime){
+		this.updateTime = updateTime;
+	}
+	
+	public java.util.Date getUpdateTime(){
+		return this.updateTime;
+	}
+			
+	@Override
+	public String toString() {
+		return ToStringBuilder.reflectionToString(this);
+	}
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/PlatformCashAccountDetailService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.PlatformCashAccountDetail;
+
+public interface PlatformCashAccountDetailService extends BaseService<Long, PlatformCashAccountDetail> {
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/PlatformCashAccountService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.PlatformCashAccount;
+
+public interface PlatformCashAccountService extends BaseService<String, PlatformCashAccount> {
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/StudentApplyRefundsService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.StudentApplyRefunds;
+
+public interface StudentApplyRefundsService extends BaseService<Long, StudentApplyRefunds> {
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/StudentPaymentOrderDetailService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.StudentPaymentOrderDetail;
+
+public interface StudentPaymentOrderDetailService extends BaseService<Long, StudentPaymentOrderDetail> {
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/StudentPaymentOrderService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.StudentPaymentOrder;
+
+public interface StudentPaymentOrderService extends BaseService<Long, StudentPaymentOrder> {
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/SysUserCashAccountDetailService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.SysUserCashAccountDetail;
+
+public interface SysUserCashAccountDetailService extends BaseService<Long, SysUserCashAccountDetail> {
+
+}

+ 8 - 0
mec-web/src/main/java/com/ym/mec/web/service/SysUserCashAccountService.java

@@ -0,0 +1,8 @@
+package com.ym.mec.web.service;
+
+import com.ym.mec.common.service.BaseService;
+import com.ym.mec.web.dal.entity.SysUserCashAccount;
+
+public interface SysUserCashAccountService extends BaseService<Integer, SysUserCashAccount> {
+
+}

+ 96 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountDetailMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.PlatformCashAccountDetailDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.PlatformCashAccountDetail" id="PlatformCashAccountDetail">
+		<result column="id_" property="id" />
+		<result column="platform_cash_account_id_" property="platformCashAccountId" />
+		<result column="trans_no_" property="transNo" />
+		<result column="type_" property="type" />
+		<result column="status_" property="status" />
+		<result column="amount_" property="amount" />
+		<result column="balance_" property="balance" />
+		<result column="description_" property="description" />
+		<result column="comment_" property="comment" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="PlatformCashAccountDetail" >
+		SELECT * FROM platform_cash_account_detail WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="PlatformCashAccountDetail">
+		SELECT * FROM platform_cash_account_detail ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccountDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO platform_cash_account_detail (id_,platform_cash_account_id_,trans_no_,type_,status_,amount_,balance_,description_,comment_,create_time_,update_time_) VALUES(#{id},#{platformCashAccountId},#{transNo},#{type},#{status},#{amount},#{balance},#{description},#{comment},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccountDetail">
+		UPDATE platform_cash_account_detail <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="comment != null">
+comment_ = #{comment},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="amount != null">
+amount_ = #{amount},
+</if>
+<if test="platformCashAccountId != null">
+platform_cash_account_id_ = #{platformCashAccountId},
+</if>
+<if test="description != null">
+description_ = #{description},
+</if>
+<if test="transNo != null">
+trans_no_ = #{transNo},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM platform_cash_account_detail WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="PlatformCashAccountDetail" parameterType="map">
+		SELECT * FROM platform_cash_account_detail ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM platform_cash_account_detail
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountDetailServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.PlatformCashAccountDetailDao;
+import com.ym.mec.web.dal.entity.PlatformCashAccountDetail;
+import com.ym.mec.web.service.PlatformCashAccountDetailService;
+
+@Service
+public class PlatformCashAccountDetailServiceImpl extends BaseServiceImpl<Long, PlatformCashAccountDetail>  implements PlatformCashAccountDetailService {
+	
+	@Autowired
+	private PlatformCashAccountDetailDao platformCashAccountDetailDao;
+
+	@Override
+	public BaseDAO<Long, PlatformCashAccountDetail> getDAO() {
+		return platformCashAccountDetailDao;
+	}
+	
+}

+ 84 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountMapper.xml

@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.PlatformCashAccountDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.PlatformCashAccount" id="PlatformCashAccount">
+		<result column="id_" property="id" />
+		<result column="currency_" property="currency" />
+		<result column="balance_" property="balance" />
+		<result column="frozen_amount_" property="frozenAmount" />
+		<result column="margin_balance_" property="marginBalance" />
+		<result column="status_" property="status" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="PlatformCashAccount" >
+		SELECT * FROM platform_cash_account WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="PlatformCashAccount">
+		SELECT * FROM platform_cash_account ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccount" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO platform_cash_account (id_,currency_,balance_,frozen_amount_,margin_balance_,status_,create_time_,update_time) VALUES(#{id},#{currency},#{balance},#{frozenAmount},#{marginBalance},#{status},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccount">
+		UPDATE platform_cash_account <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="updateTime != null">
+update_time = #{updateTime},
+</if>
+<if test="frozenAmount != null">
+frozen_amount_ = #{frozenAmount},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="marginBalance != null">
+margin_balance_ = #{marginBalance},
+</if>
+<if test="currency != null">
+currency_ = #{currency},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM platform_cash_account WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="PlatformCashAccount" parameterType="map">
+		SELECT * FROM platform_cash_account ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM platform_cash_account
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/PlatformCashAccountServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.PlatformCashAccountDao;
+import com.ym.mec.web.dal.entity.PlatformCashAccount;
+import com.ym.mec.web.service.PlatformCashAccountService;
+
+@Service
+public class PlatformCashAccountServiceImpl extends BaseServiceImpl<String, PlatformCashAccount>  implements PlatformCashAccountService {
+	
+	@Autowired
+	private PlatformCashAccountDao platformCashAccountDao;
+
+	@Override
+	public BaseDAO<String, PlatformCashAccount> getDAO() {
+		return platformCashAccountDao;
+	}
+	
+}

+ 88 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/StudentApplyRefundsMapper.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.StudentApplyRefundsDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.StudentApplyRefunds" id="StudentApplyRefunds">
+		<result column="id_" property="id" />
+		<result column="user_id_" property="userId" />
+		<result column="order_no_" property="orderNo" />
+		<result column="status_" property="status" />
+		<result column="expect_amount_" property="expectAmount" />
+		<result column="actual_amount_" property="actualAmount" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+		<result column="orig_payment_order_id_" property="origPaymentOrderId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="StudentApplyRefunds" >
+		SELECT * FROM student_apply_refunds WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="StudentApplyRefunds">
+		SELECT * FROM student_apply_refunds ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.StudentApplyRefunds" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student_apply_refunds (id_,user_id_,order_no_,status_,expect_amount_,actual_amount_,create_time_,update_time_,orig_payment_order_id_) VALUES(#{id},#{userId},#{orderNo},#{status},#{expectAmount},#{actualAmount},#{createTime},#{updateTime},#{origPaymentOrderId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentApplyRefunds">
+		UPDATE student_apply_refunds <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="orderNo != null">
+order_no_ = #{orderNo},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="expectAmount != null">
+expect_amount_ = #{expectAmount},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="origPaymentOrderId != null">
+orig_payment_order_id_ = #{origPaymentOrderId},
+</if>
+<if test="actualAmount != null">
+actual_amount_ = #{actualAmount},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM student_apply_refunds WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="StudentApplyRefunds" parameterType="map">
+		SELECT * FROM student_apply_refunds ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student_apply_refunds
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/StudentApplyRefundsServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.StudentApplyRefundsDao;
+import com.ym.mec.web.dal.entity.StudentApplyRefunds;
+import com.ym.mec.web.service.StudentApplyRefundsService;
+
+@Service
+public class StudentApplyRefundsServiceImpl extends BaseServiceImpl<Long, StudentApplyRefunds>  implements StudentApplyRefundsService {
+	
+	@Autowired
+	private StudentApplyRefundsDao studentApplyRefundsDao;
+
+	@Override
+	public BaseDAO<Long, StudentApplyRefunds> getDAO() {
+		return studentApplyRefundsDao;
+	}
+	
+}

+ 80 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderDetailMapper.xml

@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.StudentPaymentOrderDetailDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.StudentPaymentOrderDetail" id="StudentPaymentOrderDetail">
+		<result column="id_" property="id" />
+		<result column="type_" property="type" />
+		<result column="goods_id_list_" property="goodsIdList" />
+		<result column="price_" property="price" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+		<result column="payment_order_id_" property="paymentOrderId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="StudentPaymentOrderDetail" >
+		SELECT * FROM student_payment_order_detail WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="StudentPaymentOrderDetail">
+		SELECT * FROM student_payment_order_detail ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrderDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student_payment_order_detail (id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_) VALUES(#{id},#{type},#{goodsIdList},#{price},#{createTime},#{updateTime},#{paymentOrderId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrderDetail">
+		UPDATE student_payment_order_detail <set>
+<if test="price != null">
+price_ = #{price},
+</if>
+<if test="goodsIdList != null">
+goods_id_list_ = #{goodsIdList},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="paymentOrderId != null">
+payment_order_id_ = #{paymentOrderId},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM student_payment_order_detail WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="StudentPaymentOrderDetail" parameterType="map">
+		SELECT * FROM student_payment_order_detail ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student_payment_order_detail
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderDetailServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.StudentPaymentOrderDetailDao;
+import com.ym.mec.web.dal.entity.StudentPaymentOrderDetail;
+import com.ym.mec.web.service.StudentPaymentOrderDetailService;
+
+@Service
+public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long, StudentPaymentOrderDetail>  implements StudentPaymentOrderDetailService {
+	
+	@Autowired
+	private StudentPaymentOrderDetailDao studentPaymentOrderDetailDao;
+
+	@Override
+	public BaseDAO<Long, StudentPaymentOrderDetail> getDAO() {
+		return studentPaymentOrderDetailDao;
+	}
+	
+}

+ 116 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderMapper.xml

@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.StudentPaymentOrderDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.StudentPaymentOrder" id="StudentPaymentOrder">
+		<result column="id_" property="id" />
+		<result column="user_id_" property="userId" />
+		<result column="type_" property="type" />
+		<result column="expect_amount_" property="expectAmount" />
+		<result column="actual_amount_" property="actualAmount" />
+		<result column="trans_no_" property="transNo" />
+		<result column="status_" property="status" />
+		<result column="memo_" property="memo" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+		<result column="payment_channel_" property="paymentChannel" />
+		<result column="payment_business_channel_" property="paymentBusinessChannel" />
+		<result column="payment_account_no_" property="paymentAccountNo" />
+		<result column="order_no_" property="orderNo" />
+		<result column="music_group_id_" property="musicGroupId" />
+		<result column="class_group_id_" property="classGroupId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="StudentPaymentOrder" >
+		SELECT * FROM student_payment_order WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="StudentPaymentOrder">
+		SELECT * FROM student_payment_order ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrder" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student_payment_order (id_,user_id_,type_,expect_amount_,actual_amount_,trans_no_,status_,memo_,create_time_,update_time_,payment_channel_,payment_business_channel_,payment_account_no_,order_no_,music_group_id_,class_group_id_) VALUES(#{id},#{userId},#{type},#{expectAmount},#{actualAmount},#{transNo},#{status},#{memo},#{createTime},#{updateTime},#{paymentChannel},#{paymentBusinessChannel},#{paymentAccountNo},#{orderNo},#{musicGroupId},#{classGroupId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrder">
+		UPDATE student_payment_order <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="orderNo != null">
+order_no_ = #{orderNo},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="classGroupId != null">
+class_group_id_ = #{classGroupId},
+</if>
+<if test="expectAmount != null">
+expect_amount_ = #{expectAmount},
+</if>
+<if test="memo != null">
+memo_ = #{memo},
+</if>
+<if test="paymentChannel != null">
+payment_channel_ = #{paymentChannel},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="paymentAccountNo != null">
+payment_account_no_ = #{paymentAccountNo},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="paymentBusinessChannel != null">
+payment_business_channel_ = #{paymentBusinessChannel},
+</if>
+<if test="transNo != null">
+trans_no_ = #{transNo},
+</if>
+<if test="actualAmount != null">
+actual_amount_ = #{actualAmount},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="musicGroupId != null">
+music_group_id_ = #{musicGroupId},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM student_payment_order WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="StudentPaymentOrder" parameterType="map">
+		SELECT * FROM student_payment_order ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student_payment_order
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/StudentPaymentOrderServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.StudentPaymentOrderDao;
+import com.ym.mec.web.dal.entity.StudentPaymentOrder;
+import com.ym.mec.web.service.StudentPaymentOrderService;
+
+@Service
+public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, StudentPaymentOrder>  implements StudentPaymentOrderService {
+	
+	@Autowired
+	private StudentPaymentOrderDao studentPaymentOrderDao;
+
+	@Override
+	public BaseDAO<Long, StudentPaymentOrder> getDAO() {
+		return studentPaymentOrderDao;
+	}
+	
+}

+ 96 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountDetailMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.SysUserCashAccountDetailDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.SysUserCashAccountDetail" id="SysUserCashAccountDetail">
+		<result column="id_" property="id" />
+		<result column="user_id_" property="userId" />
+		<result column="trans_no_" property="transNo" />
+		<result column="type_" property="type" />
+		<result column="status_" property="status" />
+		<result column="amount_" property="amount" />
+		<result column="balance_" property="balance" />
+		<result column="description_" property="description" />
+		<result column="comment_" property="comment" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysUserCashAccountDetail" >
+		SELECT * FROM sys_user_cash_account_detail WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysUserCashAccountDetail">
+		SELECT * FROM sys_user_cash_account_detail ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccountDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_user_cash_account_detail (id_,user_id_,trans_no_,type_,status_,amount_,balance_,description_,comment_,create_time_,update_time_) VALUES(#{id},#{userId},#{transNo},#{type},#{status},#{amount},#{balance},#{description},#{comment},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccountDetail">
+		UPDATE sys_user_cash_account_detail <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="comment != null">
+comment_ = #{comment},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="amount != null">
+amount_ = #{amount},
+</if>
+<if test="description != null">
+description_ = #{description},
+</if>
+<if test="transNo != null">
+trans_no_ = #{transNo},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM sys_user_cash_account_detail WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysUserCashAccountDetail" parameterType="map">
+		SELECT * FROM sys_user_cash_account_detail ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_cash_account_detail
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountDetailServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.SysUserCashAccountDetailDao;
+import com.ym.mec.web.dal.entity.SysUserCashAccountDetail;
+import com.ym.mec.web.service.SysUserCashAccountDetailService;
+
+@Service
+public class SysUserCashAccountDetailServiceImpl extends BaseServiceImpl<Long, SysUserCashAccountDetail>  implements SysUserCashAccountDetailService {
+	
+	@Autowired
+	private SysUserCashAccountDetailDao sysUserCashAccountDetailDao;
+
+	@Override
+	public BaseDAO<Long, SysUserCashAccountDetail> getDAO() {
+		return sysUserCashAccountDetailDao;
+	}
+	
+}

+ 84 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountMapper.xml

@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.SysUserCashAccountDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.SysUserCashAccount" id="SysUserCashAccount">
+		<result column="user_id_" property="userId" />
+		<result column="currency_" property="currency" />
+		<result column="balance_" property="balance" />
+		<result column="frozen_amount_" property="frozenAmount" />
+		<result column="margin_balance_" property="marginBalance" />
+		<result column="status_" property="status" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysUserCashAccount" >
+		SELECT * FROM sys_user_cash_account WHERE user_id_ = #{userId} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysUserCashAccount">
+		SELECT * FROM sys_user_cash_account ORDER BY user_id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccount" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_user_cash_account (user_id_,currency_,balance_,frozen_amount_,margin_balance_,status_,create_time_,update_time) VALUES(#{userId},#{currency},#{balance},#{frozenAmount},#{marginBalance},#{status},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccount">
+		UPDATE sys_user_cash_account <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="updateTime != null">
+update_time = #{updateTime},
+</if>
+<if test="frozenAmount != null">
+frozen_amount_ = #{frozenAmount},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="marginBalance != null">
+margin_balance_ = #{marginBalance},
+</if>
+<if test="currency != null">
+currency_ = #{currency},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE user_id_ = #{userId} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM sys_user_cash_account WHERE user_id_ = #{userId} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysUserCashAccount" parameterType="map">
+		SELECT * FROM sys_user_cash_account ORDER BY user_id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_cash_account
+	</select>
+</mapper>

+ 23 - 0
mec-web/src/main/java/com/ym/mec/web/service/impl/SysUserCashAccountServiceImpl.java

@@ -0,0 +1,23 @@
+package com.ym.mec.web.service.impl;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.ym.mec.common.dal.BaseDAO;
+import com.ym.mec.common.service.impl.BaseServiceImpl;
+import com.ym.mec.web.dal.dao.SysUserCashAccountDao;
+import com.ym.mec.web.dal.entity.SysUserCashAccount;
+import com.ym.mec.web.service.SysUserCashAccountService;
+
+@Service
+public class SysUserCashAccountServiceImpl extends BaseServiceImpl<Integer, SysUserCashAccount>  implements SysUserCashAccountService {
+	
+	@Autowired
+	private SysUserCashAccountDao sysUserCashAccountDao;
+
+	@Override
+	public BaseDAO<Integer, SysUserCashAccount> getDAO() {
+		return sysUserCashAccountDao;
+	}
+	
+}

+ 6 - 2
mec-web/src/main/resources/config/mybatis/GoodsOrderMapper.xml

@@ -8,6 +8,7 @@
 		<result column="user_id_" property="userId" />
 		<result column="status_" property="status" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler" />
 		<result column="total_amount_" property="totalAmount" />
+		<result column="coupon_amount_" property="couponAmount" />
 		<result column="goods_quantity_" property="goodsQuantity" />
 		<result column="user_note_" property="userNote" />
 		<result column="order_no_" property="orderNo" />
@@ -37,8 +38,8 @@
 		<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval 
 			AS ID FROM DUAL </selectKey> -->
 		INSERT INTO goods_order
-		(id_,user_id_,status_,total_amount_,goods_quantity_,user_note_,order_no_,order_source_,receiver_id_,express_company_code_,express_num_,create_time_,update_time_)
-		VALUES(#{id},#{userId},#{status, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{totalAmount},#{goodsQuantity},#{userNote},#{orderNo},#{orderSource},#{receiverId},#{expressCompanyCode},#{expressNum},#{createTime},#{updateTime})
+		(id_,user_id_,status_,total_amount_,coupon_amount_,goods_quantity_,user_note_,order_no_,order_source_,receiver_id_,express_company_code_,express_num_,create_time_,update_time_)
+		VALUES(#{id},#{userId},#{status, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{totalAmount},#{couponAmount},#{goodsQuantity},#{userNote},#{orderNo},#{orderSource},#{receiverId},#{expressCompanyCode},#{expressNum},#{createTime},#{updateTime})
 	</insert>
 
 	<!-- 根据主键查询一条记录 -->
@@ -75,6 +76,9 @@
 			<if test="totalAmount != null">
 				total_amount_ = #{totalAmount},
 			</if>
+			<if test="couponAmount != null">
+				coupon_amount_ = #{couponAmount},
+			</if>
 			<if test="updateTime != null">
 				update_time_ = #{updateTime},
 			</if>

+ 96 - 0
mec-web/src/main/resources/config/mybatis/PlatformCashAccountDetailMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.PlatformCashAccountDetailDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.PlatformCashAccountDetail" id="PlatformCashAccountDetail">
+		<result column="id_" property="id" />
+		<result column="platform_cash_account_id_" property="platformCashAccountId" />
+		<result column="trans_no_" property="transNo" />
+		<result column="type_" property="type" />
+		<result column="status_" property="status" />
+		<result column="amount_" property="amount" />
+		<result column="balance_" property="balance" />
+		<result column="description_" property="description" />
+		<result column="comment_" property="comment" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="PlatformCashAccountDetail" >
+		SELECT * FROM platform_cash_account_detail WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="PlatformCashAccountDetail">
+		SELECT * FROM platform_cash_account_detail ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccountDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO platform_cash_account_detail (id_,platform_cash_account_id_,trans_no_,type_,status_,amount_,balance_,description_,comment_,create_time_,update_time_) VALUES(#{id},#{platformCashAccountId},#{transNo},#{type},#{status},#{amount},#{balance},#{description},#{comment},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccountDetail">
+		UPDATE platform_cash_account_detail <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="comment != null">
+comment_ = #{comment},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="amount != null">
+amount_ = #{amount},
+</if>
+<if test="platformCashAccountId != null">
+platform_cash_account_id_ = #{platformCashAccountId},
+</if>
+<if test="description != null">
+description_ = #{description},
+</if>
+<if test="transNo != null">
+trans_no_ = #{transNo},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM platform_cash_account_detail WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="PlatformCashAccountDetail" parameterType="map">
+		SELECT * FROM platform_cash_account_detail ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM platform_cash_account_detail
+	</select>
+</mapper>

+ 84 - 0
mec-web/src/main/resources/config/mybatis/PlatformCashAccountMapper.xml

@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.PlatformCashAccountDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.PlatformCashAccount" id="PlatformCashAccount">
+		<result column="id_" property="id" />
+		<result column="currency_" property="currency" />
+		<result column="balance_" property="balance" />
+		<result column="frozen_amount_" property="frozenAmount" />
+		<result column="margin_balance_" property="marginBalance" />
+		<result column="status_" property="status" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="PlatformCashAccount" >
+		SELECT * FROM platform_cash_account WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="PlatformCashAccount">
+		SELECT * FROM platform_cash_account ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccount" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO platform_cash_account (id_,currency_,balance_,frozen_amount_,margin_balance_,status_,create_time_,update_time) VALUES(#{id},#{currency},#{balance},#{frozenAmount},#{marginBalance},#{status},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.PlatformCashAccount">
+		UPDATE platform_cash_account <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="updateTime != null">
+update_time = #{updateTime},
+</if>
+<if test="frozenAmount != null">
+frozen_amount_ = #{frozenAmount},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="marginBalance != null">
+margin_balance_ = #{marginBalance},
+</if>
+<if test="currency != null">
+currency_ = #{currency},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM platform_cash_account WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="PlatformCashAccount" parameterType="map">
+		SELECT * FROM platform_cash_account ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM platform_cash_account
+	</select>
+</mapper>

+ 88 - 0
mec-web/src/main/resources/config/mybatis/StudentApplyRefundsMapper.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.StudentApplyRefundsDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.StudentApplyRefunds" id="StudentApplyRefunds">
+		<result column="id_" property="id" />
+		<result column="user_id_" property="userId" />
+		<result column="order_no_" property="orderNo" />
+		<result column="status_" property="status" />
+		<result column="expect_amount_" property="expectAmount" />
+		<result column="actual_amount_" property="actualAmount" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+		<result column="orig_payment_order_id_" property="origPaymentOrderId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="StudentApplyRefunds" >
+		SELECT * FROM student_apply_refunds WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="StudentApplyRefunds">
+		SELECT * FROM student_apply_refunds ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.StudentApplyRefunds" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student_apply_refunds (id_,user_id_,order_no_,status_,expect_amount_,actual_amount_,create_time_,update_time_,orig_payment_order_id_) VALUES(#{id},#{userId},#{orderNo},#{status},#{expectAmount},#{actualAmount},#{createTime},#{updateTime},#{origPaymentOrderId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentApplyRefunds">
+		UPDATE student_apply_refunds <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="orderNo != null">
+order_no_ = #{orderNo},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="expectAmount != null">
+expect_amount_ = #{expectAmount},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="origPaymentOrderId != null">
+orig_payment_order_id_ = #{origPaymentOrderId},
+</if>
+<if test="actualAmount != null">
+actual_amount_ = #{actualAmount},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM student_apply_refunds WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="StudentApplyRefunds" parameterType="map">
+		SELECT * FROM student_apply_refunds ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student_apply_refunds
+	</select>
+</mapper>

+ 80 - 0
mec-web/src/main/resources/config/mybatis/StudentPaymentOrderDetailMapper.xml

@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.StudentPaymentOrderDetailDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.StudentPaymentOrderDetail" id="StudentPaymentOrderDetail">
+		<result column="id_" property="id" />
+		<result column="type_" property="type" />
+		<result column="goods_id_list_" property="goodsIdList" />
+		<result column="price_" property="price" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+		<result column="payment_order_id_" property="paymentOrderId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="StudentPaymentOrderDetail" >
+		SELECT * FROM student_payment_order_detail WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="StudentPaymentOrderDetail">
+		SELECT * FROM student_payment_order_detail ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrderDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student_payment_order_detail (id_,type_,goods_id_list_,price_,create_time_,update_time_,payment_order_id_) VALUES(#{id},#{type},#{goodsIdList},#{price},#{createTime},#{updateTime},#{paymentOrderId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrderDetail">
+		UPDATE student_payment_order_detail <set>
+<if test="price != null">
+price_ = #{price},
+</if>
+<if test="goodsIdList != null">
+goods_id_list_ = #{goodsIdList},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="paymentOrderId != null">
+payment_order_id_ = #{paymentOrderId},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM student_payment_order_detail WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="StudentPaymentOrderDetail" parameterType="map">
+		SELECT * FROM student_payment_order_detail ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student_payment_order_detail
+	</select>
+</mapper>

+ 116 - 0
mec-web/src/main/resources/config/mybatis/StudentPaymentOrderMapper.xml

@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.StudentPaymentOrderDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.StudentPaymentOrder" id="StudentPaymentOrder">
+		<result column="id_" property="id" />
+		<result column="user_id_" property="userId" />
+		<result column="type_" property="type" />
+		<result column="expect_amount_" property="expectAmount" />
+		<result column="actual_amount_" property="actualAmount" />
+		<result column="trans_no_" property="transNo" />
+		<result column="status_" property="status" />
+		<result column="memo_" property="memo" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+		<result column="payment_channel_" property="paymentChannel" />
+		<result column="payment_business_channel_" property="paymentBusinessChannel" />
+		<result column="payment_account_no_" property="paymentAccountNo" />
+		<result column="order_no_" property="orderNo" />
+		<result column="music_group_id_" property="musicGroupId" />
+		<result column="class_group_id_" property="classGroupId" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="StudentPaymentOrder" >
+		SELECT * FROM student_payment_order WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="StudentPaymentOrder">
+		SELECT * FROM student_payment_order ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrder" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO student_payment_order (id_,user_id_,type_,expect_amount_,actual_amount_,trans_no_,status_,memo_,create_time_,update_time_,payment_channel_,payment_business_channel_,payment_account_no_,order_no_,music_group_id_,class_group_id_) VALUES(#{id},#{userId},#{type},#{expectAmount},#{actualAmount},#{transNo},#{status},#{memo},#{createTime},#{updateTime},#{paymentChannel},#{paymentBusinessChannel},#{paymentAccountNo},#{orderNo},#{musicGroupId},#{classGroupId})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.StudentPaymentOrder">
+		UPDATE student_payment_order <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="orderNo != null">
+order_no_ = #{orderNo},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="classGroupId != null">
+class_group_id_ = #{classGroupId},
+</if>
+<if test="expectAmount != null">
+expect_amount_ = #{expectAmount},
+</if>
+<if test="memo != null">
+memo_ = #{memo},
+</if>
+<if test="paymentChannel != null">
+payment_channel_ = #{paymentChannel},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="paymentAccountNo != null">
+payment_account_no_ = #{paymentAccountNo},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="paymentBusinessChannel != null">
+payment_business_channel_ = #{paymentBusinessChannel},
+</if>
+<if test="transNo != null">
+trans_no_ = #{transNo},
+</if>
+<if test="actualAmount != null">
+actual_amount_ = #{actualAmount},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="musicGroupId != null">
+music_group_id_ = #{musicGroupId},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM student_payment_order WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="StudentPaymentOrder" parameterType="map">
+		SELECT * FROM student_payment_order ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM student_payment_order
+	</select>
+</mapper>

+ 96 - 0
mec-web/src/main/resources/config/mybatis/SysUserCashAccountDetailMapper.xml

@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.SysUserCashAccountDetailDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.SysUserCashAccountDetail" id="SysUserCashAccountDetail">
+		<result column="id_" property="id" />
+		<result column="user_id_" property="userId" />
+		<result column="trans_no_" property="transNo" />
+		<result column="type_" property="type" />
+		<result column="status_" property="status" />
+		<result column="amount_" property="amount" />
+		<result column="balance_" property="balance" />
+		<result column="description_" property="description" />
+		<result column="comment_" property="comment" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time_" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysUserCashAccountDetail" >
+		SELECT * FROM sys_user_cash_account_detail WHERE id_ = #{id} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysUserCashAccountDetail">
+		SELECT * FROM sys_user_cash_account_detail ORDER BY id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccountDetail" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_user_cash_account_detail (id_,user_id_,trans_no_,type_,status_,amount_,balance_,description_,comment_,create_time_,update_time_) VALUES(#{id},#{userId},#{transNo},#{type},#{status},#{amount},#{balance},#{description},#{comment},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccountDetail">
+		UPDATE sys_user_cash_account_detail <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="id != null">
+id_ = #{id},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="comment != null">
+comment_ = #{comment},
+</if>
+<if test="updateTime != null">
+update_time_ = #{updateTime},
+</if>
+<if test="amount != null">
+amount_ = #{amount},
+</if>
+<if test="description != null">
+description_ = #{description},
+</if>
+<if test="transNo != null">
+trans_no_ = #{transNo},
+</if>
+<if test="type != null">
+type_ = #{type},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE id_ = #{id} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM sys_user_cash_account_detail WHERE id_ = #{id} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysUserCashAccountDetail" parameterType="map">
+		SELECT * FROM sys_user_cash_account_detail ORDER BY id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_cash_account_detail
+	</select>
+</mapper>

+ 84 - 0
mec-web/src/main/resources/config/mybatis/SysUserCashAccountMapper.xml

@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<!--
+这个文件是自动生成的。
+不要修改此文件。所有改动将在下次重新自动生成时丢失。
+-->
+<mapper namespace="com.ym.mec.web.dal.dao.SysUserCashAccountDao">
+	
+	<resultMap type="com.ym.mec.web.dal.entity.SysUserCashAccount" id="SysUserCashAccount">
+		<result column="user_id_" property="userId" />
+		<result column="currency_" property="currency" />
+		<result column="balance_" property="balance" />
+		<result column="frozen_amount_" property="frozenAmount" />
+		<result column="margin_balance_" property="marginBalance" />
+		<result column="status_" property="status" />
+		<result column="create_time_" property="createTime" />
+		<result column="update_time" property="updateTime" />
+	</resultMap>
+	
+	<!-- 根据主键查询一条记录 -->
+	<select id="get" resultMap="SysUserCashAccount" >
+		SELECT * FROM sys_user_cash_account WHERE user_id_ = #{userId} 
+	</select>
+	
+	<!-- 全查询 -->
+	<select id="findAll" resultMap="SysUserCashAccount">
+		SELECT * FROM sys_user_cash_account ORDER BY user_id_
+	</select>
+	
+	<!-- 向数据库增加一条记录 -->
+	<insert id="insert" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccount" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
+		<!--
+		<selectKey resultClass="int" keyProperty="id" > 
+		SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL 
+		</selectKey>
+		-->
+		INSERT INTO sys_user_cash_account (user_id_,currency_,balance_,frozen_amount_,margin_balance_,status_,create_time_,update_time) VALUES(#{userId},#{currency},#{balance},#{frozenAmount},#{marginBalance},#{status},#{createTime},#{updateTime})
+	</insert>
+	
+	<!-- 根据主键查询一条记录 -->
+	<update id="update" parameterType="com.ym.mec.web.dal.entity.SysUserCashAccount">
+		UPDATE sys_user_cash_account <set>
+<if test="status != null">
+status_ = #{status},
+</if>
+<if test="userId != null">
+user_id_ = #{userId},
+</if>
+<if test="updateTime != null">
+update_time = #{updateTime},
+</if>
+<if test="frozenAmount != null">
+frozen_amount_ = #{frozenAmount},
+</if>
+<if test="balance != null">
+balance_ = #{balance},
+</if>
+<if test="marginBalance != null">
+margin_balance_ = #{marginBalance},
+</if>
+<if test="currency != null">
+currency_ = #{currency},
+</if>
+<if test="createTime != null">
+create_time_ = #{createTime},
+</if>
+</set> WHERE user_id_ = #{userId} 
+	</update>
+	
+	<!-- 根据主键删除一条记录 -->
+	<delete id="delete" >
+		DELETE FROM sys_user_cash_account WHERE user_id_ = #{userId} 
+	</delete>
+	
+	<!-- 分页查询 -->
+	<select id="queryPage" resultMap="SysUserCashAccount" parameterType="map">
+		SELECT * FROM sys_user_cash_account ORDER BY user_id_ <include refid="global.limit"/>
+	</select>
+	
+	<!-- 查询当前表的总记录数 -->
+	<select id="queryCount" resultType="int">
+		SELECT COUNT(*) FROM sys_user_cash_account
+	</select>
+</mapper>