public static QueryCouponResult promotionQuery_coupon(QueryCoupon queryCoupon,String key){
		Map<String,String> map = MapUtil.objectToMap( queryCoupon);
		String sign = SignatureUtil.generateSign(map,queryCoupon.getSign_type(),key);
		queryCoupon.setSign(sign);
		String secapiPayRefundXML = XMLConverUtil.convertToXML( queryCoupon);
		HttpUriRequest httpUriRequest = RequestBuilder.post()
				.setHeader(xmlHeader)
				.setUri(baseURI()+ "/mmpaymkttransfers/querycouponsinfo")
				.setEntity(new StringEntity(secapiPayRefundXML,Charset.forName("utf-8")))
				.build();
		return LocalHttpClient.executeXmlResult(httpUriRequest,QueryCouponResult.class,queryCoupon.getSign_type(),key);
	}
public static QueryCouponResult promotionQuery_coupon ( QueryCoupon queryCoupon , String key ) { Map < String , String > map = MapUtil . objectToMap ( queryCoupon ) ; String sign = SignatureUtil . generateSign ( map , queryCoupon . getSign_type ( ) , key ) ; queryCoupon . setSign ( sign ) ; String secapiPayRefundXML = XMLConverUtil . convertToXML ( queryCoupon ) ; HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setHeader ( xmlHeader ) . setUri ( baseURI ( ) + "/mmpaymkttransfers/querycouponsinfo" ) . setEntity ( new StringEntity ( secapiPayRefundXML , Charset . forName ( "utf-8" ) ) ) . build ( ) ; return LocalHttpClient . executeXmlResult ( httpUriRequest , QueryCouponResult . class , queryCoupon . getSign_type ( ) , key ) ; }
查询代金券信息
@param queryCoupon queryCoupon
@param key key
@return QueryCouponResult