|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package cn.chjyj.szwh.controller; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
import org.apache.commons.logging.LogFactory; |
|
|
|
import org.springframework.web.context.request.RequestAttributes; |
|
|
|
@ -8,6 +9,8 @@ import org.springframework.web.context.request.RequestContextHolder; |
|
|
|
import org.springframework.web.context.request.ServletRequestAttributes; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -30,7 +33,62 @@ public abstract class BaseController { |
|
|
|
// 查询头部中的模块
|
|
|
|
final String url=request.getHeader("url"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected Map orderMap(HttpServletRequest request){ |
|
|
|
Map rqmap = new HashMap(); |
|
|
|
// 订单编号
|
|
|
|
String batchcode= request.getParameter("batchcode"); |
|
|
|
if(StringUtils.isNotBlank(batchcode)){ |
|
|
|
rqmap.put("batchcode",batchcode); |
|
|
|
} |
|
|
|
//
|
|
|
|
String entrustName=request.getParameter("entrust_name"); |
|
|
|
if(StringUtils.isNotBlank(entrustName)){ |
|
|
|
rqmap.put("entrust_name",entrustName); |
|
|
|
} |
|
|
|
|
|
|
|
//
|
|
|
|
String buyName=request.getParameter("buy_name"); |
|
|
|
if(StringUtils.isNotBlank(buyName)){ |
|
|
|
rqmap.put("buy_name",buyName); |
|
|
|
} |
|
|
|
|
|
|
|
//商品名称
|
|
|
|
String goodsName=request.getParameter("goods_ame"); |
|
|
|
if(StringUtils.isNotBlank(goodsName)){ |
|
|
|
rqmap.put("goods_ame",goodsName); |
|
|
|
} |
|
|
|
// 订单类型
|
|
|
|
String orderType= request.getParameter("order_type"); |
|
|
|
if(StringUtils.isNotBlank(orderType)){ |
|
|
|
rqmap.put("order_type",orderType); |
|
|
|
} |
|
|
|
|
|
|
|
String transactionStatus =request.getParameter("transaction_status"); |
|
|
|
if(StringUtils.isNotBlank(transactionStatus)){ |
|
|
|
rqmap.put("transaction_status",transactionStatus); |
|
|
|
} |
|
|
|
|
|
|
|
//创建时间,拆分
|
|
|
|
String createtime=request.getParameter("createtime"); |
|
|
|
if(StringUtils.isNotBlank(createtime)){ |
|
|
|
rqmap.put("createtime",createtime); |
|
|
|
} |
|
|
|
|
|
|
|
//
|
|
|
|
String goodsIsli = request.getParameter("goods_isli"); |
|
|
|
if(StringUtils.isNotBlank(goodsIsli)){ |
|
|
|
rqmap.put("goods_isli",goodsIsli); |
|
|
|
} |
|
|
|
|
|
|
|
//充值类型
|
|
|
|
String chargesType= request.getParameter("charges_type"); |
|
|
|
if(StringUtils.isNotBlank(chargesType)){ |
|
|
|
rqmap.put("charges_type",chargesType); |
|
|
|
} |
|
|
|
|
|
|
|
return rqmap; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|