xubh 5 лет назад
Родитель
Сommit
e7fe87ba96

+ 14 - 0
src/main/java/com/huilian/api/open/huilianjavademo/XmlUtil.java

@@ -255,7 +255,21 @@ public class XmlUtil {
         returnMap.putAll(bodyMap);
         return returnMap;
     }
+    //解析报文
+    public Map<String, Object> parseb(String response, String function) throws DocumentException {
+        Map<String, Object> returnMap = new HashMap<String, Object>();
+        Document docStyle = DocumentHelper.parseText(response);
+        List<Element> headList = docStyle.getRootElement().element("request").element("head").elements();
+        Map<String, Object> headMap = parseHead(headList);
 
+        List<Element> bodyList = docStyle.getRootElement().element("request").element("body").elements();
+        Map<String, Object> bodyMap = parseBody(bodyList);
+
+
+        returnMap.putAll(headMap);
+        returnMap.putAll(bodyMap);
+        return returnMap;
+    }
     //解析报文
     public Map<String, Object> parseReceive(String request, String function) throws DocumentException {
         Map<String, Object> returnMap = new HashMap<String, Object>();

+ 2 - 0
src/main/java/com/minpay/common/constant/PayOSConstant.java

@@ -29,6 +29,8 @@ public class PayOSConstant implements IMINBusinessConstant{
 	static final public String PREPAY = "ant.mybank.bkmerchanttrade.prePay";
 	/**商户入驻*/
 	static final public String REGISTER = "ant.mybank.merchantprod.merchant.register";
+	/**通知*/
+	static final public String PREPAYNOTICE = "ant.mybank.bkmerchanttrade.prePayNotice";
 
 
 

+ 41 - 55
src/main/java/com/minpay/common/pay/ShouhuoPay.java

@@ -1,8 +1,10 @@
 package com.minpay.common.pay;
 
+import com.huilian.api.open.huilianjavademo.XmlUtil;
 import com.min.base64.Base64;
 import com.min.des.DesUtils;
 import com.minpay.common.bean.User;
+import com.minpay.common.constant.PayOSConstant;
 import com.minpay.common.exception.BusinessCodeException;
 import com.minpay.common.pay.bean.Huilianpay;
 import com.minpay.common.service.IAccountService;
@@ -33,6 +35,12 @@ import com.startup.minpay.frame.target.MINParam;
 import net.sf.json.JSONObject;
 import org.apache.commons.lang.StringUtils;
 
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.PrintWriter;
 import java.util.*;
 
 /**
@@ -192,6 +200,8 @@ public class ShouhuoPay implements IMINAction{
 
 				//支付后台回调地址
 				String notify_url = Service.lookup(IPublicService.class).getSysParValue(user.getChannel() + "_SHOUHUO_NOTIFY_URL");
+				notify_url = "http://xubing2.minpay.cc/services";
+
 				notify_url = notify_url + "/ShouhuoPay/personalPayCallBack";
 				if("05".equals(pay_channel)){
 					pay_channel = "09";
@@ -205,6 +215,8 @@ public class ShouhuoPay implements IMINAction{
 				prePay.setProviderType(pay_channel);
 				prePay.setTotalAmount(payAmt);
 				prePay.setHlMerchantId(accNo);
+				prePay.setGoodName(orderId);
+				prePay.setSucUrl("http://shjservices.personalpay.cn/services/");
 				resMap = huilianPayService.prePay(prePay);
 
 			}
@@ -312,60 +324,43 @@ public class ShouhuoPay implements IMINAction{
 	
 	/**
 	 * personalPay支付回调
-	 * @param mchid			商户号 必填。示例:M1000002
-	 * @param appid			应用编号 必填。示例:A10001
-	 * @param orderno		订单编号 必填
-	 * @param sysorderno	支付平台订单编号 必填
-	 * @param amt			交易金额 必填。交易金额,以元为单位 示例:10.23
-	 * @param stt			支付状态 10:创建订单 80:已重新支付 90:已取消 91:未支付 92:支付中 00 :已支付 01:手动推送
-	 * @param nonce_str		小于32位随机数
-	 * @param signtype      加密类型  必填。示例:MD5
-	 * @param sign			签名验证值 必填。务必要验证签名!
-	 * @param payOrderno	支付平台微信、支付宝订单号或推送的机器型号 非必填
 	 * @return
 	 * @throws Exception 
 	 */
 	@MINAction(value = PERSONALPAY_CALL_BACK, session = false)
 	public MINActionResult personalPayCallBack(
-			@MINParam(key = "mchid") String mchid,
-			@MINParam(key = "appid") String appid,
-			@MINParam(key = "orderno") String orderno,
-			@MINParam(key = "sysorderno") String sysorderno,
-			@MINParam(key = "amt") String amt,
-			@MINParam(key = "stt") String stt,
-			@MINParam(key = "nonce_str") String nonce_str,
-			@MINParam(key = "signtype") String signtype,
-			@MINParam(key = "sign") String sign,
-			@MINParam(key = "payOrderno") String payOrderno
+			HttpServletRequest request,
+			HttpServletResponse response
 			) throws Exception {
+		PrintWriter printWriter = response.getWriter();
+		printWriter.write("SUCCESS");
+		printWriter.flush();//没有该句也是报一样错.
+		printWriter.close();
 		MINActionResult res = new MINActionResult();
-		//准备验证交易信息
-		String appSecret = Service.lookup(IPublicService.class).getSysParValue("V01_PERSONALPAY_APP_SECRET");
-		SortedMap<Object, Object> perPay = new TreeMap<Object, Object>();
-		perPay.put("appid", appid);//appId
-		perPay.put("mchid",mchid);//商户号
-		perPay.put("orderno",orderno);//交易订单号
-		perPay.put("sysorderno",sysorderno);//支付平台订单编号
-		perPay.put("amt",amt);//交易金额 
-		perPay.put("stt",stt);//支付状态
-		perPay.put("nonce_str",nonce_str);//小于32位随机数
-		perPay.put("signtype",signtype);//加密类型
-		perPay.put("sign",sign);//加密后字符串
-		perPay.put("payOrderno",payOrderno);//支付平台微信、支付宝订单号或推送的机器型号
-
+		StringBuffer sb = new StringBuffer() ;
+		InputStream is = request.getInputStream();
+		InputStreamReader isr = new InputStreamReader(is);
+		BufferedReader br = new BufferedReader(isr);
+		String s = "" ;
+		while((s=br.readLine())!=null){
+			sb.append(s) ;
+		}
+		String result = sb.toString();
+		XmlUtil xmlUtil = new XmlUtil();
+		Map<String, Object> resMap = xmlUtil.parseb(result, "ant.mybank.bkmerchanttrade.prePayNotice");
+		System.out.println("通知报文:" + resMap.toString());
+		//支付宝或微信订单号 PayChannelOrderNo
+		String payOrderno = resMap.get("PayChannelOrderNo").toString();
+		//我方订单号 OutTradeNo
+		String orderno = resMap.get("OutTradeNo").toString();
+		//实付金额  BuyerPayAmount   TotalAmount
+		String amt = resMap.get("TotalAmount").toString();
+		amt = CommonUtil.divide(amt,"100");
+		//第三方订单号 OrderNo
+		String sysorderno = resMap.get("OrderNo").toString();
+		//查询订单如果已支付状态表示已经回调过
         //调用真实回调
-        backEx(orderno, sysorderno, stt, amt,payOrderno, "", "");
-		/*// 签名验证
-		boolean isSign = PayCommonUtil.isTenpaySign("UTF-8", perPay, appSecret);
-		if(isSign){
-			// 00:交易成功
-			if("00".equals(stt)) {
-				stt = "TRADE_SUCCESS";
-			}
-			//调用真实回调
-			backEx(orderno, sysorderno, stt, amt,payOrderno, "", "");
-		}*/
-		
+        backEx(orderno, sysorderno, "TRADE_SUCCESS", amt,payOrderno, "", "");
 		return res;
 	}
 	
@@ -438,15 +433,6 @@ public class ShouhuoPay implements IMINAction{
 		Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmPaymentInfMapper.class).updateByExampleSelective(payMentInf, paymentExp);
 		// 变更待结算账户
 		IAccountService service = Service.lookup(IAccountService.class);
-	/*	for(VmPaymentInf mentDto : payMentList) {
-			// 支付成功 并且不是充值交易
-			if("TRADE_SUCCESS".equals(status) && !"02".equals(orderInf.getProType())) {
-				// 01:基本账户 02:提现账户 03:待结算账户
-				// 10支付(ZF)
-				service.modfiyBaseAccount(mentDto.getChannel(), mentDto.getRcvcstno(), "01", mentDto.getTrxamout(), "10", mentDto.getFlowno(), "团员下单");
-				service.modfiyAccount(mentDto.getChannel(), mentDto.getRcvcstno(), "03", mentDto.getTrxamout(), "10", mentDto.getFlowno(), "团员下单");
-			}
-		}*/
 		orderInf.setId(orderno);
 		Service.lookup(IMINDataBaseService.class).getMybatisMapper(VmOrderInfMapper.class).updateByPrimaryKeySelective(orderInf);
 		if("00".equals(orderInf.getState())){

+ 20 - 0
src/main/java/com/minpay/common/pay/bean/Huilianpay.java

@@ -15,6 +15,26 @@ public class Huilianpay {
     /** 渠道类型。01:网商 02:随行付 08:汇付天下 09:合利宝*/
     private String				providerType;
     private String				hlMerchantId;
+    /**商品名称*/
+    private String				goodName;
+    /**回调前端地址*/
+    private String				SucUrl;
+
+    public String getSucUrl() {
+        return SucUrl;
+    }
+
+    public void setSucUrl(String sucUrl) {
+        SucUrl = sucUrl;
+    }
+
+    public String getGoodName() {
+        return goodName;
+    }
+
+    public void setGoodName(String goodName) {
+        this.goodName = goodName;
+    }
 
     public String getHlMerchantId() {
         return hlMerchantId;

+ 2 - 2
src/main/java/com/minpay/common/service/impl/HuilianPayServiceImpl.java

@@ -70,7 +70,7 @@ public class HuilianPayServiceImpl implements IHuilianPayService {
         Map<String, String> form = new HashMap<>();
 //        form.put("OutTradeNo", UUID.randomUUID().toString().replaceAll("-", ""));
         form.put("OutTradeNo",huilianpay.getOutTradeNo());
-        form.put("Body", "反扫测试");
+        form.put("Body", huilianpay.getGoodName());
         form.put("TotalAmount",  CommonUtil.multiply(huilianpay.getTotalAmount(),"100"));//换算成分
         form.put("Currency", "CNY");
         form.put("HlMerchantId", MyConfig.hlMerchantId);
@@ -81,7 +81,7 @@ public class HuilianPayServiceImpl implements IHuilianPayService {
         form.put("DeviceCreateIp", "127.0.0.1");
         form.put("SettleType", "T1");
         form.put("SubAppId", MyConfig.oldAppid);
-
+        form.put("SucUrl",huilianpay.getSucUrl());
         //可选参数
         form.put("GoodsTag", "test");
         form.put("GoodsDetail", "test");

+ 97 - 0
src/main/java/com/minpay/db/table/mapper/VmGameRuleMapper.java

@@ -0,0 +1,97 @@
+package com.minpay.db.table.mapper;
+
+import com.minpay.db.table.model.VmGameRule;
+import com.minpay.db.table.model.VmGameRuleExample;
+import com.startup.minpay.frame.jdbc.IMINMybatisEntityMapper;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface VmGameRuleMapper extends IMINMybatisEntityMapper<VmGameRule, String, VmGameRuleExample> {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int countByExample(VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int deleteByExample(VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int deleteByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int insert(VmGameRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int insertSelective(VmGameRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    List<VmGameRule> selectByExample(VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    VmGameRule selectByPrimaryKey(String id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByExampleSelective(@Param("record") VmGameRule record, @Param("example") VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByExample(@Param("record") VmGameRule record, @Param("example") VmGameRuleExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKeySelective(VmGameRule record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table vm_game_rule
+     *
+     * @mbggenerated
+     */
+    int updateByPrimaryKey(VmGameRule record);
+}

+ 453 - 0
src/main/java/com/minpay/db/table/model/VmGameRule.java

@@ -0,0 +1,453 @@
+package com.minpay.db.table.model;
+
+import com.startup.minpay.frame.data.AbstractMINBean;
+
+public class VmGameRule extends AbstractMINBean {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_ID
+     *
+     * @mbggenerated
+     */
+    private String id;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_NAME
+     *
+     * @mbggenerated
+     */
+    private String name;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_DESC
+     *
+     * @mbggenerated
+     */
+    private String desc;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_STATE
+     *
+     * @mbggenerated
+     */
+    private String state;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_ALIPAYID
+     *
+     * @mbggenerated
+     */
+    private String alipayid;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    private String createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    private String createUser;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_REWARD_GRADE
+     *
+     * @mbggenerated
+     */
+    private String rewardGrade;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_REWARD_AMT_RATIO
+     *
+     * @mbggenerated
+     */
+    private String rewardAmtRatio;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_REWARD_TYPE
+     *
+     * @mbggenerated
+     */
+    private String rewardType;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_JACKPOT_AMT
+     *
+     * @mbggenerated
+     */
+    private String jackpotAmt;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_EXTRACT_RATIO
+     *
+     * @mbggenerated
+     */
+    private String extractRatio;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_TYPE
+     *
+     * @mbggenerated
+     */
+    private String type;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column vm_game_rule.VGL_MECHANISM
+     *
+     * @mbggenerated
+     */
+    private String mechanism;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_ID
+     *
+     * @return the value of vm_game_rule.VGL_ID
+     *
+     * @mbggenerated
+     */
+    public String getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_ID
+     *
+     * @param id the value for vm_game_rule.VGL_ID
+     *
+     * @mbggenerated
+     */
+    public void setId(String id) {
+        this.id = id == null ? null : id.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_NAME
+     *
+     * @return the value of vm_game_rule.VGL_NAME
+     *
+     * @mbggenerated
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_NAME
+     *
+     * @param name the value for vm_game_rule.VGL_NAME
+     *
+     * @mbggenerated
+     */
+    public void setName(String name) {
+        this.name = name == null ? null : name.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_DESC
+     *
+     * @return the value of vm_game_rule.VGL_DESC
+     *
+     * @mbggenerated
+     */
+    public String getDesc() {
+        return desc;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_DESC
+     *
+     * @param desc the value for vm_game_rule.VGL_DESC
+     *
+     * @mbggenerated
+     */
+    public void setDesc(String desc) {
+        this.desc = desc == null ? null : desc.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_STATE
+     *
+     * @return the value of vm_game_rule.VGL_STATE
+     *
+     * @mbggenerated
+     */
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_STATE
+     *
+     * @param state the value for vm_game_rule.VGL_STATE
+     *
+     * @mbggenerated
+     */
+    public void setState(String state) {
+        this.state = state == null ? null : state.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_ALIPAYID
+     *
+     * @return the value of vm_game_rule.VGL_ALIPAYID
+     *
+     * @mbggenerated
+     */
+    public String getAlipayid() {
+        return alipayid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_ALIPAYID
+     *
+     * @param alipayid the value for vm_game_rule.VGL_ALIPAYID
+     *
+     * @mbggenerated
+     */
+    public void setAlipayid(String alipayid) {
+        this.alipayid = alipayid == null ? null : alipayid.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_CREATE_TIME
+     *
+     * @return the value of vm_game_rule.VGL_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public String getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_CREATE_TIME
+     *
+     * @param createTime the value for vm_game_rule.VGL_CREATE_TIME
+     *
+     * @mbggenerated
+     */
+    public void setCreateTime(String createTime) {
+        this.createTime = createTime == null ? null : createTime.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_CREATE_USER
+     *
+     * @return the value of vm_game_rule.VGL_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public String getCreateUser() {
+        return createUser;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_CREATE_USER
+     *
+     * @param createUser the value for vm_game_rule.VGL_CREATE_USER
+     *
+     * @mbggenerated
+     */
+    public void setCreateUser(String createUser) {
+        this.createUser = createUser == null ? null : createUser.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_REWARD_GRADE
+     *
+     * @return the value of vm_game_rule.VGL_REWARD_GRADE
+     *
+     * @mbggenerated
+     */
+    public String getRewardGrade() {
+        return rewardGrade;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_REWARD_GRADE
+     *
+     * @param rewardGrade the value for vm_game_rule.VGL_REWARD_GRADE
+     *
+     * @mbggenerated
+     */
+    public void setRewardGrade(String rewardGrade) {
+        this.rewardGrade = rewardGrade == null ? null : rewardGrade.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_REWARD_AMT_RATIO
+     *
+     * @return the value of vm_game_rule.VGL_REWARD_AMT_RATIO
+     *
+     * @mbggenerated
+     */
+    public String getRewardAmtRatio() {
+        return rewardAmtRatio;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_REWARD_AMT_RATIO
+     *
+     * @param rewardAmtRatio the value for vm_game_rule.VGL_REWARD_AMT_RATIO
+     *
+     * @mbggenerated
+     */
+    public void setRewardAmtRatio(String rewardAmtRatio) {
+        this.rewardAmtRatio = rewardAmtRatio == null ? null : rewardAmtRatio.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_REWARD_TYPE
+     *
+     * @return the value of vm_game_rule.VGL_REWARD_TYPE
+     *
+     * @mbggenerated
+     */
+    public String getRewardType() {
+        return rewardType;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_REWARD_TYPE
+     *
+     * @param rewardType the value for vm_game_rule.VGL_REWARD_TYPE
+     *
+     * @mbggenerated
+     */
+    public void setRewardType(String rewardType) {
+        this.rewardType = rewardType == null ? null : rewardType.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_JACKPOT_AMT
+     *
+     * @return the value of vm_game_rule.VGL_JACKPOT_AMT
+     *
+     * @mbggenerated
+     */
+    public String getJackpotAmt() {
+        return jackpotAmt;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_JACKPOT_AMT
+     *
+     * @param jackpotAmt the value for vm_game_rule.VGL_JACKPOT_AMT
+     *
+     * @mbggenerated
+     */
+    public void setJackpotAmt(String jackpotAmt) {
+        this.jackpotAmt = jackpotAmt == null ? null : jackpotAmt.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_EXTRACT_RATIO
+     *
+     * @return the value of vm_game_rule.VGL_EXTRACT_RATIO
+     *
+     * @mbggenerated
+     */
+    public String getExtractRatio() {
+        return extractRatio;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_EXTRACT_RATIO
+     *
+     * @param extractRatio the value for vm_game_rule.VGL_EXTRACT_RATIO
+     *
+     * @mbggenerated
+     */
+    public void setExtractRatio(String extractRatio) {
+        this.extractRatio = extractRatio == null ? null : extractRatio.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_TYPE
+     *
+     * @return the value of vm_game_rule.VGL_TYPE
+     *
+     * @mbggenerated
+     */
+    public String getType() {
+        return type;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_TYPE
+     *
+     * @param type the value for vm_game_rule.VGL_TYPE
+     *
+     * @mbggenerated
+     */
+    public void setType(String type) {
+        this.type = type == null ? null : type.trim();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column vm_game_rule.VGL_MECHANISM
+     *
+     * @return the value of vm_game_rule.VGL_MECHANISM
+     *
+     * @mbggenerated
+     */
+    public String getMechanism() {
+        return mechanism;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column vm_game_rule.VGL_MECHANISM
+     *
+     * @param mechanism the value for vm_game_rule.VGL_MECHANISM
+     *
+     * @mbggenerated
+     */
+    public void setMechanism(String mechanism) {
+        this.mechanism = mechanism == null ? null : mechanism.trim();
+    }
+}

Разница между файлами не показана из-за своего большого размера
+ 1373 - 0
src/main/java/com/minpay/db/table/model/VmGameRuleExample.java


+ 414 - 0
src/main/resources/com/minpay/db/table/mapper/VmGameRuleMapper.xml

@@ -0,0 +1,414 @@
+<?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.minpay.db.table.mapper.VmGameRuleMapper" >
+  <resultMap id="BaseResultMap" type="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <id column="VGL_ID" property="id" jdbcType="VARCHAR" />
+    <result column="VGL_NAME" property="name" jdbcType="VARCHAR" />
+    <result column="VGL_DESC" property="desc" jdbcType="VARCHAR" />
+    <result column="VGL_STATE" property="state" jdbcType="VARCHAR" />
+    <result column="VGL_ALIPAYID" property="alipayid" jdbcType="VARCHAR" />
+    <result column="VGL_CREATE_TIME" property="createTime" jdbcType="VARCHAR" />
+    <result column="VGL_CREATE_USER" property="createUser" jdbcType="VARCHAR" />
+    <result column="VGL_REWARD_GRADE" property="rewardGrade" jdbcType="VARCHAR" />
+    <result column="VGL_REWARD_AMT_RATIO" property="rewardAmtRatio" jdbcType="VARCHAR" />
+    <result column="VGL_REWARD_TYPE" property="rewardType" jdbcType="VARCHAR" />
+    <result column="VGL_JACKPOT_AMT" property="jackpotAmt" jdbcType="VARCHAR" />
+    <result column="VGL_EXTRACT_RATIO" property="extractRatio" jdbcType="VARCHAR" />
+    <result column="VGL_TYPE" property="type" jdbcType="VARCHAR" />
+    <result column="VGL_MECHANISM" property="mechanism" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Example_Where_Clause" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where >
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
+        <if test="criteria.valid" >
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
+            <foreach collection="criteria.criteria" item="criterion" >
+              <choose >
+                <when test="criterion.noValue" >
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue" >
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue" >
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue" >
+                  and ${criterion.condition}
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    <where >
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
+        <if test="criteria.valid" >
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
+            <foreach collection="criteria.criteria" item="criterion" >
+              <choose >
+                <when test="criterion.noValue" >
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue" >
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue" >
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue" >
+                  and ${criterion.condition}
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    VGL_ID, VGL_NAME, VGL_DESC, VGL_STATE, VGL_ALIPAYID, VGL_CREATE_TIME, VGL_CREATE_USER, 
+    VGL_REWARD_GRADE, VGL_REWARD_AMT_RATIO, VGL_REWARD_TYPE, VGL_JACKPOT_AMT, VGL_EXTRACT_RATIO, 
+    VGL_TYPE, VGL_MECHANISM
+  </sql>
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.VmGameRuleExample" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select
+    <if test="distinct" >
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from vm_game_rule
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null" >
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from vm_game_rule
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from vm_game_rule
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.minpay.db.table.model.VmGameRuleExample" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    delete from vm_game_rule
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into vm_game_rule (VGL_ID, VGL_NAME, VGL_DESC, 
+      VGL_STATE, VGL_ALIPAYID, VGL_CREATE_TIME, 
+      VGL_CREATE_USER, VGL_REWARD_GRADE, VGL_REWARD_AMT_RATIO, 
+      VGL_REWARD_TYPE, VGL_JACKPOT_AMT, VGL_EXTRACT_RATIO, 
+      VGL_TYPE, VGL_MECHANISM)
+    values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{desc,jdbcType=VARCHAR}, 
+      #{state,jdbcType=VARCHAR}, #{alipayid,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, 
+      #{createUser,jdbcType=VARCHAR}, #{rewardGrade,jdbcType=VARCHAR}, #{rewardAmtRatio,jdbcType=VARCHAR}, 
+      #{rewardType,jdbcType=VARCHAR}, #{jackpotAmt,jdbcType=VARCHAR}, #{extractRatio,jdbcType=VARCHAR}, 
+      #{type,jdbcType=VARCHAR}, #{mechanism,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    insert into vm_game_rule
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        VGL_ID,
+      </if>
+      <if test="name != null" >
+        VGL_NAME,
+      </if>
+      <if test="desc != null" >
+        VGL_DESC,
+      </if>
+      <if test="state != null" >
+        VGL_STATE,
+      </if>
+      <if test="alipayid != null" >
+        VGL_ALIPAYID,
+      </if>
+      <if test="createTime != null" >
+        VGL_CREATE_TIME,
+      </if>
+      <if test="createUser != null" >
+        VGL_CREATE_USER,
+      </if>
+      <if test="rewardGrade != null" >
+        VGL_REWARD_GRADE,
+      </if>
+      <if test="rewardAmtRatio != null" >
+        VGL_REWARD_AMT_RATIO,
+      </if>
+      <if test="rewardType != null" >
+        VGL_REWARD_TYPE,
+      </if>
+      <if test="jackpotAmt != null" >
+        VGL_JACKPOT_AMT,
+      </if>
+      <if test="extractRatio != null" >
+        VGL_EXTRACT_RATIO,
+      </if>
+      <if test="type != null" >
+        VGL_TYPE,
+      </if>
+      <if test="mechanism != null" >
+        VGL_MECHANISM,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="id != null" >
+        #{id,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null" >
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="desc != null" >
+        #{desc,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null" >
+        #{state,jdbcType=VARCHAR},
+      </if>
+      <if test="alipayid != null" >
+        #{alipayid,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null" >
+        #{createTime,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null" >
+        #{createUser,jdbcType=VARCHAR},
+      </if>
+      <if test="rewardGrade != null" >
+        #{rewardGrade,jdbcType=VARCHAR},
+      </if>
+      <if test="rewardAmtRatio != null" >
+        #{rewardAmtRatio,jdbcType=VARCHAR},
+      </if>
+      <if test="rewardType != null" >
+        #{rewardType,jdbcType=VARCHAR},
+      </if>
+      <if test="jackpotAmt != null" >
+        #{jackpotAmt,jdbcType=VARCHAR},
+      </if>
+      <if test="extractRatio != null" >
+        #{extractRatio,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null" >
+        #{type,jdbcType=VARCHAR},
+      </if>
+      <if test="mechanism != null" >
+        #{mechanism,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.minpay.db.table.model.VmGameRuleExample" resultType="java.lang.Integer" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    select count(*) from vm_game_rule
+    <if test="_parameter != null" >
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update vm_game_rule
+    <set >
+      <if test="record.id != null" >
+        VGL_ID = #{record.id,jdbcType=VARCHAR},
+      </if>
+      <if test="record.name != null" >
+        VGL_NAME = #{record.name,jdbcType=VARCHAR},
+      </if>
+      <if test="record.desc != null" >
+        VGL_DESC = #{record.desc,jdbcType=VARCHAR},
+      </if>
+      <if test="record.state != null" >
+        VGL_STATE = #{record.state,jdbcType=VARCHAR},
+      </if>
+      <if test="record.alipayid != null" >
+        VGL_ALIPAYID = #{record.alipayid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null" >
+        VGL_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createUser != null" >
+        VGL_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
+      </if>
+      <if test="record.rewardGrade != null" >
+        VGL_REWARD_GRADE = #{record.rewardGrade,jdbcType=VARCHAR},
+      </if>
+      <if test="record.rewardAmtRatio != null" >
+        VGL_REWARD_AMT_RATIO = #{record.rewardAmtRatio,jdbcType=VARCHAR},
+      </if>
+      <if test="record.rewardType != null" >
+        VGL_REWARD_TYPE = #{record.rewardType,jdbcType=VARCHAR},
+      </if>
+      <if test="record.jackpotAmt != null" >
+        VGL_JACKPOT_AMT = #{record.jackpotAmt,jdbcType=VARCHAR},
+      </if>
+      <if test="record.extractRatio != null" >
+        VGL_EXTRACT_RATIO = #{record.extractRatio,jdbcType=VARCHAR},
+      </if>
+      <if test="record.type != null" >
+        VGL_TYPE = #{record.type,jdbcType=VARCHAR},
+      </if>
+      <if test="record.mechanism != null" >
+        VGL_MECHANISM = #{record.mechanism,jdbcType=VARCHAR},
+      </if>
+    </set>
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update vm_game_rule
+    set VGL_ID = #{record.id,jdbcType=VARCHAR},
+      VGL_NAME = #{record.name,jdbcType=VARCHAR},
+      VGL_DESC = #{record.desc,jdbcType=VARCHAR},
+      VGL_STATE = #{record.state,jdbcType=VARCHAR},
+      VGL_ALIPAYID = #{record.alipayid,jdbcType=VARCHAR},
+      VGL_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
+      VGL_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
+      VGL_REWARD_GRADE = #{record.rewardGrade,jdbcType=VARCHAR},
+      VGL_REWARD_AMT_RATIO = #{record.rewardAmtRatio,jdbcType=VARCHAR},
+      VGL_REWARD_TYPE = #{record.rewardType,jdbcType=VARCHAR},
+      VGL_JACKPOT_AMT = #{record.jackpotAmt,jdbcType=VARCHAR},
+      VGL_EXTRACT_RATIO = #{record.extractRatio,jdbcType=VARCHAR},
+      VGL_TYPE = #{record.type,jdbcType=VARCHAR},
+      VGL_MECHANISM = #{record.mechanism,jdbcType=VARCHAR}
+    <if test="_parameter != null" >
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update vm_game_rule
+    <set >
+      <if test="name != null" >
+        VGL_NAME = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="desc != null" >
+        VGL_DESC = #{desc,jdbcType=VARCHAR},
+      </if>
+      <if test="state != null" >
+        VGL_STATE = #{state,jdbcType=VARCHAR},
+      </if>
+      <if test="alipayid != null" >
+        VGL_ALIPAYID = #{alipayid,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null" >
+        VGL_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
+      </if>
+      <if test="createUser != null" >
+        VGL_CREATE_USER = #{createUser,jdbcType=VARCHAR},
+      </if>
+      <if test="rewardGrade != null" >
+        VGL_REWARD_GRADE = #{rewardGrade,jdbcType=VARCHAR},
+      </if>
+      <if test="rewardAmtRatio != null" >
+        VGL_REWARD_AMT_RATIO = #{rewardAmtRatio,jdbcType=VARCHAR},
+      </if>
+      <if test="rewardType != null" >
+        VGL_REWARD_TYPE = #{rewardType,jdbcType=VARCHAR},
+      </if>
+      <if test="jackpotAmt != null" >
+        VGL_JACKPOT_AMT = #{jackpotAmt,jdbcType=VARCHAR},
+      </if>
+      <if test="extractRatio != null" >
+        VGL_EXTRACT_RATIO = #{extractRatio,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null" >
+        VGL_TYPE = #{type,jdbcType=VARCHAR},
+      </if>
+      <if test="mechanism != null" >
+        VGL_MECHANISM = #{mechanism,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.VmGameRule" >
+    <!--
+      WARNING - @mbggenerated
+      This element is automatically generated by MyBatis Generator, do not modify.
+    -->
+    update vm_game_rule
+    set VGL_NAME = #{name,jdbcType=VARCHAR},
+      VGL_DESC = #{desc,jdbcType=VARCHAR},
+      VGL_STATE = #{state,jdbcType=VARCHAR},
+      VGL_ALIPAYID = #{alipayid,jdbcType=VARCHAR},
+      VGL_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
+      VGL_CREATE_USER = #{createUser,jdbcType=VARCHAR},
+      VGL_REWARD_GRADE = #{rewardGrade,jdbcType=VARCHAR},
+      VGL_REWARD_AMT_RATIO = #{rewardAmtRatio,jdbcType=VARCHAR},
+      VGL_REWARD_TYPE = #{rewardType,jdbcType=VARCHAR},
+      VGL_JACKPOT_AMT = #{jackpotAmt,jdbcType=VARCHAR},
+      VGL_EXTRACT_RATIO = #{extractRatio,jdbcType=VARCHAR},
+      VGL_TYPE = #{type,jdbcType=VARCHAR},
+      VGL_MECHANISM = #{mechanism,jdbcType=VARCHAR}
+    where VGL_ID = #{id,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 2 - 0
src/main/resources/xml/ant.mybank.bkmerchanttrade.prePay.xml

@@ -24,10 +24,12 @@
     <xmlTag tagName="NotifyUrl"></xmlTag>
     <xmlTag tagName="SubAppId"></xmlTag>
     <xmlTag tagName="PayLimit"></xmlTag>
+    <xmlTag tagName="SucUrl"></xmlTag>
     <xmlTag tagName="RespInfo">
         <xmlTag tagName="ResultStatus"></xmlTag>
         <xmlTag tagName="ResultCode"></xmlTag>
         <xmlTag tagName="ResultMsg"></xmlTag>
+        <xmlTag tagName="SucUrl"></xmlTag>
     </xmlTag>
     <xmlTag tagName="SplitBunch"></xmlTag>
 </body>