|
|
@ -8,6 +8,7 @@ import com.hfkj.common.exception.SysCode; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.entity.BsOrderCoupon; |
|
|
|
import com.hfkj.entity.BsOrderCoupon; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
|
|
|
|
import com.hfkj.model.order.OrderCouponModel; |
|
|
|
import com.hfkj.service.coupon.BsOrderCouponNoService; |
|
|
|
import com.hfkj.service.coupon.BsOrderCouponNoService; |
|
|
|
import com.hfkj.service.coupon.BsOrderCouponService; |
|
|
|
import com.hfkj.service.coupon.BsOrderCouponService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.Api; |
|
|
@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -116,6 +118,42 @@ public class OrderCouponController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/export",method = RequestMethod.GET) |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
|
|
|
@ApiOperation(value = "查询交易订单列表") |
|
|
|
|
|
|
|
public ResponseData export(@RequestParam(value = "orderNo" , required = false) String orderNo, |
|
|
|
|
|
|
|
@RequestParam(value = "userPhone" , required = false) String userPhone, |
|
|
|
|
|
|
|
@RequestParam(value = "tradeStatus" , required = false) Integer tradeStatus, |
|
|
|
|
|
|
|
@RequestParam(value = "goodsName" , required = false) String goodsName, |
|
|
|
|
|
|
|
@RequestParam(value = "payType" , required = false) Integer payType, |
|
|
|
|
|
|
|
@RequestParam(value = "channelOrderNo" , required = false) String channelOrderNo, |
|
|
|
|
|
|
|
@RequestParam(value = "couNo" , required = false) String couNo, |
|
|
|
|
|
|
|
@RequestParam(value = "couStatus" , required = false) Integer couStatus, |
|
|
|
|
|
|
|
@RequestParam(value = "createTimeS" , required = false) Long createTimeS, |
|
|
|
|
|
|
|
@RequestParam(value = "createTimeE" , required = false) Long createTimeE) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
Map<String,Object> param = new HashMap<>(); |
|
|
|
|
|
|
|
param.put("orderNo", orderNo); |
|
|
|
|
|
|
|
param.put("userPhone", userPhone); |
|
|
|
|
|
|
|
param.put("tradeStatus", tradeStatus); |
|
|
|
|
|
|
|
param.put("goodsName", goodsName); |
|
|
|
|
|
|
|
param.put("payType", payType); |
|
|
|
|
|
|
|
param.put("channelOrderNo", channelOrderNo); |
|
|
|
|
|
|
|
param.put("couNo", couNo); |
|
|
|
|
|
|
|
param.put("couStatus", couStatus); |
|
|
|
|
|
|
|
param.put("createTimeS", createTimeS); |
|
|
|
|
|
|
|
param.put("createTimeE", createTimeE); |
|
|
|
|
|
|
|
List<OrderCouponModel> orderList = orderCouponService.getOrderList(param); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseMsgUtil.success(orderList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
log.error("error!",e); |
|
|
|
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|