| @@ -6,6 +6,7 @@ import com.iformall.common.ErrorCode; | |||||
| import com.iformall.common.ResultData; | import com.iformall.common.ResultData; | ||||
| import com.iformall.controller.base.BaseController; | import com.iformall.controller.base.BaseController; | ||||
| import com.iformall.domain.po.AliBusinessCircleOrder; | import com.iformall.domain.po.AliBusinessCircleOrder; | ||||
| import com.iformall.domain.po.WxBusinessCircleOrder; | |||||
| import com.iformall.domain.po.base.BaseEntity; | import com.iformall.domain.po.base.BaseEntity; | ||||
| import com.iformall.service.AliBusinessCircleOrderService; | import com.iformall.service.AliBusinessCircleOrderService; | ||||
| import com.iformall.utils.Constant; | import com.iformall.utils.Constant; | ||||
| @@ -22,6 +23,9 @@ import org.springframework.web.bind.annotation.ModelAttribute; | |||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | import org.springframework.web.bind.annotation.RestController; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("aliCircle") | @RequestMapping("aliCircle") | ||||
| @Api(description = "订单相关接口") | @Api(description = "订单相关接口") | ||||
| @@ -39,7 +43,7 @@ public class AliBusinessCircleOrderController extends BaseController { | |||||
| }) | }) | ||||
| @SystemControllerLog(description = "-列表") | @SystemControllerLog(description = "-列表") | ||||
| public ResultData list(@ModelAttribute AliBusinessCircleOrder circleOrder, Integer pageNum, Integer pageSize) { | public ResultData list(@ModelAttribute AliBusinessCircleOrder circleOrder, Integer pageNum, Integer pageSize) { | ||||
| logger.debug("[" + getIpAddr() + "] WxOrderController::list"); | |||||
| logger.debug("[" + getIpAddr() + "] AliBusinessCircleOrderController::list"); | |||||
| if (null == circleOrder) { | if (null == circleOrder) { | ||||
| circleOrder = new AliBusinessCircleOrder(); | circleOrder = new AliBusinessCircleOrder(); | ||||
| } | } | ||||
| @@ -70,5 +74,17 @@ public class AliBusinessCircleOrderController extends BaseController { | |||||
| return new ResultData(order); | return new ResultData(order); | ||||
| } | } | ||||
| @GetMapping("exportData") | |||||
| @SystemControllerLog(description = "券订单数据-导出数据") | |||||
| public void exportData(@ModelAttribute AliBusinessCircleOrder circleOrder, HttpServletRequest request, HttpServletResponse response) { | |||||
| logger.debug("[" + getIpAddr() + "] AliBusinessCircleOrderController::exportData"); | |||||
| if (null == circleOrder) { | |||||
| circleOrder = new AliBusinessCircleOrder(); | |||||
| } | |||||
| circleOrder.updateTenantInfo(getTenantInfo()); | |||||
| circleOrder.setSortColumns(BaseEntity.SortField.CreateTime_DESC,BaseEntity.SortField.Id_DESC); | |||||
| aliBusinessCircleOrderService.exportData(circleOrder, request, response); | |||||
| } | |||||
| } | } | ||||
| @@ -7,7 +7,6 @@ import com.iformall.common.ResultData; | |||||
| import com.iformall.controller.base.BaseController; | import com.iformall.controller.base.BaseController; | ||||
| import com.iformall.domain.po.*; | import com.iformall.domain.po.*; | ||||
| import com.iformall.domain.po.base.BaseEntity; | import com.iformall.domain.po.base.BaseEntity; | ||||
| import com.iformall.domain.po.tt.TtOrder; | |||||
| import com.iformall.service.*; | import com.iformall.service.*; | ||||
| import com.iformall.utils.Constant; | import com.iformall.utils.Constant; | ||||
| import io.swagger.annotations.Api; | import io.swagger.annotations.Api; | ||||
| @@ -20,6 +19,9 @@ import org.slf4j.LoggerFactory; | |||||
| import org.springframework.beans.factory.annotation.Autowired; | import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.web.bind.annotation.*; | import org.springframework.web.bind.annotation.*; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("wxCircle") | @RequestMapping("wxCircle") | ||||
| @Api(description = "订单相关接口") | @Api(description = "订单相关接口") | ||||
| @@ -37,7 +39,7 @@ public class WxBusinessCircleOrderController extends BaseController { | |||||
| }) | }) | ||||
| @SystemControllerLog(description = "-列表") | @SystemControllerLog(description = "-列表") | ||||
| public ResultData list(@ModelAttribute WxBusinessCircleOrder circleOrder, Integer pageNum, Integer pageSize) { | public ResultData list(@ModelAttribute WxBusinessCircleOrder circleOrder, Integer pageNum, Integer pageSize) { | ||||
| logger.debug("[" + getIpAddr() + "] WxOrderController::list"); | |||||
| logger.debug("[" + getIpAddr() + "] WxBusinessCircleOrderController::list"); | |||||
| if (null == circleOrder) { | if (null == circleOrder) { | ||||
| circleOrder = new WxBusinessCircleOrder(); | circleOrder = new WxBusinessCircleOrder(); | ||||
| } | } | ||||
| @@ -68,5 +70,17 @@ public class WxBusinessCircleOrderController extends BaseController { | |||||
| return new ResultData(order); | return new ResultData(order); | ||||
| } | } | ||||
| @GetMapping("exportData") | |||||
| @SystemControllerLog(description = "券订单数据-导出数据") | |||||
| public void exportData(@ModelAttribute WxBusinessCircleOrder circleOrder, HttpServletRequest request, HttpServletResponse response) { | |||||
| logger.debug("[" + getIpAddr() + "] WxBusinessCircleOrderController::exportData"); | |||||
| if (null == circleOrder) { | |||||
| circleOrder = new WxBusinessCircleOrder(); | |||||
| } | |||||
| circleOrder.updateTenantInfo(getTenantInfo()); | |||||
| circleOrder.setSortColumns(BaseEntity.SortField.CreateTime_DESC,BaseEntity.SortField.Id_DESC); | |||||
| wxBusinessCircleOrderService.exportData(circleOrder, request, response); | |||||
| } | |||||
| } | } | ||||
| @@ -5,6 +5,7 @@ import com.iformall.annotation.SystemControllerLog; | |||||
| import com.iformall.common.ErrorCode; | import com.iformall.common.ErrorCode; | ||||
| import com.iformall.common.ResultData; | import com.iformall.common.ResultData; | ||||
| import com.iformall.controller.base.BaseController; | import com.iformall.controller.base.BaseController; | ||||
| import com.iformall.domain.po.AliBusinessCircleOrder; | |||||
| import com.iformall.domain.po.WxThirdPartyOrders; | import com.iformall.domain.po.WxThirdPartyOrders; | ||||
| import com.iformall.domain.po.base.BaseEntity; | import com.iformall.domain.po.base.BaseEntity; | ||||
| import com.iformall.service.WxThirdPartyOrdersService; | import com.iformall.service.WxThirdPartyOrdersService; | ||||
| @@ -22,6 +23,9 @@ import org.springframework.web.bind.annotation.ModelAttribute; | |||||
| import org.springframework.web.bind.annotation.RequestMapping; | import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RestController; | import org.springframework.web.bind.annotation.RestController; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| @RestController | @RestController | ||||
| @RequestMapping("thirdCircle") | @RequestMapping("thirdCircle") | ||||
| @Api(description = "订单相关接口") | @Api(description = "订单相关接口") | ||||
| @@ -39,7 +43,7 @@ public class WxThirdPartyOrdersController extends BaseController { | |||||
| }) | }) | ||||
| @SystemControllerLog(description = "-列表") | @SystemControllerLog(description = "-列表") | ||||
| public ResultData list(@ModelAttribute WxThirdPartyOrders circleOrder, Integer pageNum, Integer pageSize) { | public ResultData list(@ModelAttribute WxThirdPartyOrders circleOrder, Integer pageNum, Integer pageSize) { | ||||
| logger.debug("[" + getIpAddr() + "] WxOrderController::list"); | |||||
| logger.debug("[" + getIpAddr() + "] WxThirdPartyOrdersController::list"); | |||||
| if (null == circleOrder) { | if (null == circleOrder) { | ||||
| circleOrder = new WxThirdPartyOrders(); | circleOrder = new WxThirdPartyOrders(); | ||||
| } | } | ||||
| @@ -70,5 +74,16 @@ public class WxThirdPartyOrdersController extends BaseController { | |||||
| return new ResultData(order); | return new ResultData(order); | ||||
| } | } | ||||
| @GetMapping("exportData") | |||||
| @SystemControllerLog(description = "券订单数据-导出数据") | |||||
| public void exportData(@ModelAttribute WxThirdPartyOrders circleOrder, HttpServletRequest request, HttpServletResponse response) { | |||||
| logger.debug("[" + getIpAddr() + "] WxThirdPartyOrdersController::exportData"); | |||||
| if (null == circleOrder) { | |||||
| circleOrder = new WxThirdPartyOrders(); | |||||
| } | |||||
| circleOrder.updateTenantInfo(getTenantInfo()); | |||||
| circleOrder.setSortColumns(BaseEntity.SortField.CreateTime_DESC,BaseEntity.SortField.Id_DESC); | |||||
| wxThirdPartyOrdersOrderService.exportData(circleOrder, request, response); | |||||
| } | |||||
| } | } | ||||
| @@ -1,6 +1,6 @@ | |||||
| package com.iformall.domain.po; | package com.iformall.domain.po; | ||||
| import com.baomidou.mybatisplus.annotation.TableField; | |||||
| import cn.afterturn.easypoi.excel.annotation.Excel; | |||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||
| import lombok.Data; | import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | import lombok.EqualsAndHashCode; | ||||
| @@ -18,6 +18,7 @@ public class AliBusinessCircleOrder extends BusinessCircleBase { | |||||
| @io.swagger.annotations.ApiModelProperty(value="发生交易的商圈(非商圈组)的名称",name="mallName") | @io.swagger.annotations.ApiModelProperty(value="发生交易的商圈(非商圈组)的名称",name="mallName") | ||||
| private String mallName; | private String mallName; | ||||
| @Excel(name = "门店编码", width = 20, orderNum = "1") | |||||
| @io.swagger.annotations.ApiModelProperty(value="门店编号,商户侧系统内编号",name="mallStoreId") | @io.swagger.annotations.ApiModelProperty(value="门店编号,商户侧系统内编号",name="mallStoreId") | ||||
| private String mallStoreId; | private String mallStoreId; | ||||
| @@ -1,5 +1,6 @@ | |||||
| package com.iformall.domain.po; | package com.iformall.domain.po; | ||||
| import cn.afterturn.easypoi.excel.annotation.Excel; | |||||
| import com.baomidou.mybatisplus.annotation.TableField; | import com.baomidou.mybatisplus.annotation.TableField; | ||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||
| import com.iformall.domain.po.base.TenantEntity; | import com.iformall.domain.po.base.TenantEntity; | ||||
| @@ -29,6 +30,7 @@ public class BusinessCircleBase extends TenantEntity { | |||||
| @io.swagger.annotations.ApiModelProperty(value="商圈支付结果通知回调摘要",name="summary") | @io.swagger.annotations.ApiModelProperty(value="商圈支付结果通知回调摘要",name="summary") | ||||
| private String summary; | private String summary; | ||||
| @Excel(name = "交易时间", width = 20, orderNum = "4", format = "yyyy-MM-dd HH:mm:ss") | |||||
| @io.swagger.annotations.ApiModelProperty(value="交易完成时间",name="timeEnd") | @io.swagger.annotations.ApiModelProperty(value="交易完成时间",name="timeEnd") | ||||
| private Date timeEnd; | private Date timeEnd; | ||||
| @@ -46,6 +48,7 @@ public class BusinessCircleBase extends TenantEntity { | |||||
| @io.swagger.annotations.ApiModelProperty(value="用户实际付款金额,单位(分)",name="payAmount") | @io.swagger.annotations.ApiModelProperty(value="用户实际付款金额,单位(分)",name="payAmount") | ||||
| private Integer payAmount; | private Integer payAmount; | ||||
| @Excel(name = "付款金额(元)", width = 20, orderNum = "5") | |||||
| @TableField(exist = false) | @TableField(exist = false) | ||||
| @io.swagger.annotations.ApiModelProperty(value="用户实际付款金额,单位(元)",name="payAmountStr") | @io.swagger.annotations.ApiModelProperty(value="用户实际付款金额,单位(元)",name="payAmountStr") | ||||
| private String payAmountStr; | private String payAmountStr; | ||||
| @@ -54,9 +57,11 @@ public class BusinessCircleBase extends TenantEntity { | |||||
| return payAmount != null ? new BigDecimal(payAmount).divide(new BigDecimal(100)).toPlainString(): payAmountStr; | return payAmount != null ? new BigDecimal(payAmount).divide(new BigDecimal(100)).toPlainString(): payAmountStr; | ||||
| } | } | ||||
| @Excel(name = "支付订单号", width = 20, orderNum = "3") | |||||
| @io.swagger.annotations.ApiModelProperty(value="支付订单号",name="transactionId") | @io.swagger.annotations.ApiModelProperty(value="支付订单号",name="transactionId") | ||||
| private String transactionId; | private String transactionId; | ||||
| @Excel(name = "通知时间", width = 20, orderNum = "8", format = "yyyy-MM-dd HH:mm:ss") | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createTime") | @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createTime") | ||||
| private Date createTime; | private Date createTime; | ||||
| @@ -65,26 +70,33 @@ public class BusinessCircleBase extends TenantEntity { | |||||
| @io.swagger.annotations.ApiModelProperty(value="门店Id,与第三方对齐",name="merchantId") | @io.swagger.annotations.ApiModelProperty(value="门店Id,与第三方对齐",name="merchantId") | ||||
| private Long merchantId; | private Long merchantId; | ||||
| @Excel(name = "门店名称", width = 20, orderNum = "2") | |||||
| private String merchantName; | private String merchantName; | ||||
| @TableField(exist = false) | @TableField(exist = false) | ||||
| private WxMerchant merchant; | private WxMerchant merchant; | ||||
| @Excel(name = "会员ID", width = 20, orderNum = "6") | |||||
| @io.swagger.annotations.ApiModelProperty(value="c端会员id,与第三方对齐",name="cUserId") | @io.swagger.annotations.ApiModelProperty(value="c端会员id,与第三方对齐",name="cUserId") | ||||
| private Long cUserId; | private Long cUserId; | ||||
| private String cUserNickName; | private String cUserNickName; | ||||
| @Excel(name = "会员手机号", width = 20, orderNum = "7") | |||||
| private String cUserPhone; | private String cUserPhone; | ||||
| @TableField(exist = false) | @TableField(exist = false) | ||||
| private WxCUserBasicInfo basicInfo; | private WxCUserBasicInfo basicInfo; | ||||
| @Excel(name = "是否获得积分", width = 20, orderNum = "9", replace = {"是_1", "否_0"}) | |||||
| @io.swagger.annotations.ApiModelProperty(value="是否获得积分(1:是,0:否)",name="earnPoints") | @io.swagger.annotations.ApiModelProperty(value="是否获得积分(1:是,0:否)",name="earnPoints") | ||||
| private Integer earnPoints; | private Integer earnPoints; | ||||
| @Excel(name = "更新积分值", width = 20, orderNum = "10") | |||||
| @io.swagger.annotations.ApiModelProperty(value="订单更新积分值",name="increasedPoints") | @io.swagger.annotations.ApiModelProperty(value="订单更新积分值",name="increasedPoints") | ||||
| private Integer increasedPoints; | private Integer increasedPoints; | ||||
| @Excel(name = "积分更新时间", width = 20, orderNum = "11", format = "yyyy-MM-dd HH:mm:ss") | |||||
| @io.swagger.annotations.ApiModelProperty(value="积分更新时间(新增)",name="increasedPoints") | @io.swagger.annotations.ApiModelProperty(value="积分更新时间(新增)",name="increasedPoints") | ||||
| private Date pointsUpdateTime; | private Date pointsUpdateTime; | ||||
| @Excel(name = "是否退款", width = 20, orderNum = "12", replace = {"是_1", "_0"}) | |||||
| @io.swagger.annotations.ApiModelProperty(value="是否退款(1:是,0:否)",name="isRefund") | @io.swagger.annotations.ApiModelProperty(value="是否退款(1:是,0:否)",name="isRefund") | ||||
| private Integer isRefund; | private Integer isRefund; | ||||
| @@ -1,5 +1,6 @@ | |||||
| package com.iformall.domain.po; | package com.iformall.domain.po; | ||||
| import cn.afterturn.easypoi.excel.annotation.Excel; | |||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||
| import lombok.Data; | import lombok.Data; | ||||
| import lombok.EqualsAndHashCode; | import lombok.EqualsAndHashCode; | ||||
| @@ -20,6 +21,7 @@ public class WxBusinessCircleOrder extends BusinessCircleBase { | |||||
| @io.swagger.annotations.ApiModelProperty(value="门店名称,商圈在商圈小程序上圈店时填写的门店名称",name="wxShopName") | @io.swagger.annotations.ApiModelProperty(value="门店名称,商圈在商圈小程序上圈店时填写的门店名称",name="wxShopName") | ||||
| private String wxShopName; | private String wxShopName; | ||||
| @Excel(name = "门店编码", width = 20, orderNum = "1") | |||||
| @io.swagger.annotations.ApiModelProperty(value="门店编号,商圈在商圈小程序上圈店时填写的门店编号,用于跟商圈自身已有的商户识别码对齐",name="wxShopNumber") | @io.swagger.annotations.ApiModelProperty(value="门店编号,商圈在商圈小程序上圈店时填写的门店编号,用于跟商圈自身已有的商户识别码对齐",name="wxShopNumber") | ||||
| private String wxShopNumber; | private String wxShopNumber; | ||||
| @@ -1,5 +1,6 @@ | |||||
| package com.iformall.domain.po; | package com.iformall.domain.po; | ||||
| import cn.afterturn.easypoi.excel.annotation.Excel; | |||||
| import com.baomidou.mybatisplus.annotation.TableField; | import com.baomidou.mybatisplus.annotation.TableField; | ||||
| import com.baomidou.mybatisplus.annotation.TableName; | import com.baomidou.mybatisplus.annotation.TableName; | ||||
| import lombok.Data; | import lombok.Data; | ||||
| @@ -25,6 +26,7 @@ public class WxThirdPartyOrders extends BusinessCircleBase { | |||||
| @io.swagger.annotations.ApiModelProperty(value="门店名称",name="shopName") | @io.swagger.annotations.ApiModelProperty(value="门店名称",name="shopName") | ||||
| private String shopName; | private String shopName; | ||||
| @Excel(name = "门店编码", width = 20, orderNum = "1") | |||||
| @io.swagger.annotations.ApiModelProperty(value="门店编号",name="shopNumber") | @io.swagger.annotations.ApiModelProperty(value="门店编号",name="shopNumber") | ||||
| private String shopNumber; | private String shopNumber; | ||||
| @@ -6,6 +6,8 @@ import com.iformall.domain.po.AliBusinessCircleOrder; | |||||
| import com.iformall.domain.po.WxMerchant; | import com.iformall.domain.po.WxMerchant; | ||||
| import com.iformall.domain.po.base.TenantEntity; | import com.iformall.domain.po.base.TenantEntity; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.util.List; | import java.util.List; | ||||
| public interface AliBusinessCircleOrderService { | public interface AliBusinessCircleOrderService { | ||||
| @@ -49,4 +51,5 @@ public interface AliBusinessCircleOrderService { | |||||
| */ | */ | ||||
| void updatePoints(AliBusinessCircleOrder record); | void updatePoints(AliBusinessCircleOrder record); | ||||
| void exportData(AliBusinessCircleOrder circleOrder, HttpServletRequest request, HttpServletResponse response); | |||||
| } | } | ||||
| @@ -5,6 +5,8 @@ import com.iformall.common.ResultData; | |||||
| import com.iformall.domain.po.WxBusinessCircleOrder; | import com.iformall.domain.po.WxBusinessCircleOrder; | ||||
| import com.iformall.domain.po.base.TenantEntity; | import com.iformall.domain.po.base.TenantEntity; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.util.List; | import java.util.List; | ||||
| public interface WxBusinessCircleOrderService { | public interface WxBusinessCircleOrderService { | ||||
| @@ -52,4 +54,5 @@ public interface WxBusinessCircleOrderService { | |||||
| */ | */ | ||||
| void updateIsPointsNotify(WxBusinessCircleOrder record); | void updateIsPointsNotify(WxBusinessCircleOrder record); | ||||
| void exportData(WxBusinessCircleOrder circleOrder, HttpServletRequest request, HttpServletResponse response); | |||||
| } | } | ||||
| @@ -6,6 +6,8 @@ import com.iformall.domain.po.WxThirdPartyOrders; | |||||
| import com.iformall.domain.po.base.TenantEntity; | import com.iformall.domain.po.base.TenantEntity; | ||||
| import com.iformall.enums.EnumThirdOrderType; | import com.iformall.enums.EnumThirdOrderType; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.util.List; | import java.util.List; | ||||
| public interface WxThirdPartyOrdersService { | public interface WxThirdPartyOrdersService { | ||||
| @@ -55,4 +57,5 @@ public interface WxThirdPartyOrdersService { | |||||
| */ | */ | ||||
| void pointDeduction(WxThirdPartyOrders record); | void pointDeduction(WxThirdPartyOrders record); | ||||
| void exportData(WxThirdPartyOrders circleOrder, HttpServletRequest request, HttpServletResponse response); | |||||
| } | } | ||||
| @@ -20,6 +20,8 @@ import org.springframework.stereotype.Service; | |||||
| import org.springframework.transaction.annotation.Propagation; | import org.springframework.transaction.annotation.Propagation; | ||||
| import org.springframework.transaction.annotation.Transactional; | import org.springframework.transaction.annotation.Transactional; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.util.Date; | import java.util.Date; | ||||
| import java.util.List; | import java.util.List; | ||||
| @@ -30,6 +32,9 @@ public class AliBusinessCircleOrderServiceImpl implements AliBusinessCircleOrder | |||||
| private static final String ALI_CIRCLE_KEY = "CIRCLE:ALI:"; | private static final String ALI_CIRCLE_KEY = "CIRCLE:ALI:"; | ||||
| @Autowired | |||||
| ExcelService excelService; | |||||
| @Autowired | @Autowired | ||||
| RedisLock redisLock; | RedisLock redisLock; | ||||
| @@ -346,4 +351,11 @@ public class AliBusinessCircleOrderServiceImpl implements AliBusinessCircleOrder | |||||
| aliBusinessCircleOrderMapper.updatePoints(record); | aliBusinessCircleOrderMapper.updatePoints(record); | ||||
| } | } | ||||
| @Override | |||||
| public void exportData(AliBusinessCircleOrder circleOrder, HttpServletRequest request, HttpServletResponse response) { | |||||
| List<AliBusinessCircleOrder> list = aliBusinessCircleOrderMapper.findList(circleOrder); | |||||
| excelService.exportExcel(list, null, "支付宝商圈交易", AliBusinessCircleOrder.class, "支付宝商圈交易.xlsx", response, false); | |||||
| } | |||||
| } | } | ||||
| @@ -20,6 +20,8 @@ import org.springframework.stereotype.Service; | |||||
| import org.springframework.transaction.annotation.Propagation; | import org.springframework.transaction.annotation.Propagation; | ||||
| import org.springframework.transaction.annotation.Transactional; | import org.springframework.transaction.annotation.Transactional; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||
| import java.util.Date; | import java.util.Date; | ||||
| import java.util.List; | import java.util.List; | ||||
| @@ -31,6 +33,9 @@ public class WxBusinessCircleOrderServiceImpl implements WxBusinessCircleOrderSe | |||||
| private final String WX_CIRCLE_KEY = "CIRCLE:WX:"; | private final String WX_CIRCLE_KEY = "CIRCLE:WX:"; | ||||
| @Autowired | |||||
| ExcelService excelService; | |||||
| @Autowired | @Autowired | ||||
| RedisLock redisLock; | RedisLock redisLock; | ||||
| @@ -359,5 +364,11 @@ public class WxBusinessCircleOrderServiceImpl implements WxBusinessCircleOrderSe | |||||
| wxBusinessCircleOrderMapper.updateIsPointsNotify(record); | wxBusinessCircleOrderMapper.updateIsPointsNotify(record); | ||||
| } | } | ||||
| @Override | |||||
| public void exportData(WxBusinessCircleOrder circleOrder, HttpServletRequest request, HttpServletResponse response) { | |||||
| List<WxBusinessCircleOrder> list = wxBusinessCircleOrderMapper.findList(circleOrder); | |||||
| excelService.exportExcel(list, null, "微信商圈交易", WxBusinessCircleOrder.class, "微信商圈交易.xlsx", response, false); | |||||
| } | |||||
| } | } | ||||
| @@ -20,9 +20,12 @@ import org.springframework.stereotype.Service; | |||||
| import org.springframework.transaction.annotation.Propagation; | import org.springframework.transaction.annotation.Propagation; | ||||
| import org.springframework.transaction.annotation.Transactional; | import org.springframework.transaction.annotation.Transactional; | ||||
| import javax.servlet.http.HttpServletRequest; | |||||
| import javax.servlet.http.HttpServletResponse; | |||||
| import java.math.BigDecimal; | import java.math.BigDecimal; | ||||
| import java.util.Date; | import java.util.Date; | ||||
| import java.util.List; | import java.util.List; | ||||
| import java.util.Map; | |||||
| @Service | @Service | ||||
| public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService { | public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService { | ||||
| @@ -31,6 +34,9 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService | |||||
| private static final String THIRD_CIRCLE_KEY = "CIRCLE:TH:"; | private static final String THIRD_CIRCLE_KEY = "CIRCLE:TH:"; | ||||
| @Autowired | |||||
| ExcelService excelService; | |||||
| @Autowired | @Autowired | ||||
| RedisLock redisLock; | RedisLock redisLock; | ||||
| @@ -441,8 +447,12 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService | |||||
| redisLock.unlock(lockKey, timeStr); | redisLock.unlock(lockKey, timeStr); | ||||
| } | } | ||||
| } | } | ||||
| } | |||||
| @Override | |||||
| public void exportData(WxThirdPartyOrders circleOrder, HttpServletRequest request, HttpServletResponse response) { | |||||
| List<WxThirdPartyOrders> list = wxThirdPartyOrdersMapper.findList(circleOrder); | |||||
| excelService.exportExcel(list, null, "三方交易", WxThirdPartyOrders.class, "三方交易.xlsx", response, false); | |||||
| } | } | ||||