You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					35 lines
				
				1.2 KiB
			
		
		
			
		
	
	
					35 lines
				
				1.2 KiB
			| 
											3 years ago
										 | package com.ynxbd.wx.servlet.test;
 | ||
|  | 
 | ||
|  | import com.ynxbd.wx.wxfactory.WxPayHelper;
 | ||
|  | import com.ynxbd.common.result.Result;
 | ||
|  | import com.ynxbd.wx.servlet.base.BaseServlet;
 | ||
|  | 
 | ||
|  | import javax.servlet.annotation.WebServlet;
 | ||
|  | import javax.servlet.http.HttpServletRequest;
 | ||
|  | import javax.servlet.http.HttpServletResponse;
 | ||
|  | import java.math.BigDecimal;
 | ||
|  | 
 | ||
|  | /**
 | ||
|  |  * @Author wsq
 | ||
|  |  * @Date 2021/3/4 17:57
 | ||
|  |  * @Copyright @ 2020 云南新八达科技有限公司 All rights reserved.
 | ||
|  |  */
 | ||
|  | @WebServlet("/refundTest")
 | ||
|  | public class RefundTestServlet extends BaseServlet {
 | ||
|  | 
 | ||
|  |     // show status like 'Threads%';
 | ||
|  |     private int i = 0;
 | ||
|  | 
 | ||
|  |     @Override
 | ||
|  |     protected synchronized Result requestMapping(HttpServletRequest req, HttpServletResponse resp) throws Exception {
 | ||
|  |         if (i == 0) {
 | ||
|  |             i++;
 | ||
|  |             // 1
 | ||
|  |             WxPayHelper.refund("WXa2461a129809408f98855b233f78", "4200001568202210073105718801C001", new BigDecimal("0.24"), new BigDecimal("0.24"), "批次编号:20043945妇科材料库“一次性使用无菌阴道扩张器中号A型轴转式”的库存为2已不足执行2个过程失败!");
 | ||
|  |             // 2
 | ||
|  | 
 | ||
|  |         }
 | ||
|  |         return Result.success();
 | ||
|  |     }
 | ||
|  | }
 |