parent
a72c96ff56
commit
c520f8e2e3
@ -1,7 +1,35 @@ |
||||
package com.hfkj.dao; |
||||
|
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* mapper扩展类 |
||||
*/ |
||||
public interface BsMerchantAccountMapperExt { |
||||
|
||||
@Select("<script>" + |
||||
" SELECT" + |
||||
" b.province_name provinceName," + |
||||
" b.city_name cityName," + |
||||
" b.area_name areaName," + |
||||
" b.mer_no merNo," + |
||||
" b.mer_name merName," + |
||||
" b.address," + |
||||
" a.amount " + |
||||
" FROM" + |
||||
" bs_merchant_account a" + |
||||
" LEFT JOIN bs_merchant b ON a.mer_no = b.mer_no" + |
||||
" where 1 = 1" + |
||||
" <if test='param.provinceCode != null'> and b.province_code = #{param.provinceCode} </if>" + |
||||
" <if test='param.cityCode != null'> and b.city_code = #{param.cityCode} </if>" + |
||||
" <if test='param.areaCode != null'> and b.area_code = #{param.areaCode} </if>" + |
||||
" <if test='param.merNo != null'> and b.mer_no like concat('%',#{param.merNo},'%') </if>" + |
||||
" <if test='param.merName != null'> and b.mer_name like concat('%',#{param.merName},'%') </if>" + |
||||
" ORDER BY a.amount asc" + |
||||
"</script>") |
||||
List<Map<String,Object>> selectMerList(@Param("param") Map<String,Object> param); |
||||
} |
@ -0,0 +1,126 @@ |
||||
package com.hfkj.model.order; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import lombok.Data; |
||||
|
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 导出油站订单模型 |
||||
* @className: ExportGasOrderModel |
||||
* @author: HuRui |
||||
* @date: 2022/9/20 |
||||
**/ |
||||
@Data |
||||
public class ExportGasOrderModel { |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty("代理商") |
||||
private String agentName; |
||||
|
||||
@ColumnWidth(20) |
||||
@ExcelProperty("业务员") |
||||
private String agentStaffName; |
||||
|
||||
@ColumnWidth(25) |
||||
@ExcelProperty("交易单号") |
||||
private String orderNo; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty("客户电话") |
||||
private String userPhone; |
||||
|
||||
@ColumnWidth(25) |
||||
@ExcelProperty("加油站") |
||||
private String merName; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty("加油员") |
||||
private String gasStaffName; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "加油信息", "加油金额"}) |
||||
private BigDecimal gasRefuelPrice; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "加油信息", "加油升数"}) |
||||
private BigDecimal gasOilLiters; |
||||
|
||||
@ColumnWidth(10) |
||||
@ExcelProperty({ "加油信息", "油号"}) |
||||
private String gasOilNo; |
||||
|
||||
@ColumnWidth(10) |
||||
@ExcelProperty({ "加油信息", "油枪号"}) |
||||
private String gasGunNo; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "加油信息", "平台折扣"}) |
||||
private String gasDiscount; |
||||
|
||||
@ColumnWidth(10) |
||||
@ExcelProperty({ "加油信息", "平台价"}) |
||||
private BigDecimal gasPricePlatform; |
||||
|
||||
@ColumnWidth(10) |
||||
@ExcelProperty({ "加油信息", "油站价"}) |
||||
private BigDecimal gasPriceGun; |
||||
|
||||
@ColumnWidth(10) |
||||
@ExcelProperty({ "加油信息", "国标价"}) |
||||
private BigDecimal gasPriceOfficial; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "总优惠"}) |
||||
private BigDecimal totalDeductionPrice; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "优惠券优惠"}) |
||||
private BigDecimal deductionCouponPrice; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "加油优惠"}) |
||||
private BigDecimal deductionOilPrice; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "应付金额"}) |
||||
private BigDecimal payablePrice; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "积分抵扣"}) |
||||
private BigDecimal payIntegral; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "实付金额"}) |
||||
private String payPrice; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty({ "支付信息", "支付方式"}) |
||||
private String payTypeName; |
||||
|
||||
@ColumnWidth(15) |
||||
@ExcelProperty("交易状态") |
||||
private String status; |
||||
|
||||
@ColumnWidth(22) |
||||
@ExcelProperty("创建时间") |
||||
private Date createTime; |
||||
|
||||
@ColumnWidth(22) |
||||
@ExcelProperty("支付时间") |
||||
private Date payTime; |
||||
|
||||
@ColumnWidth(22) |
||||
@ExcelProperty("退款时间") |
||||
private Date refundTime; |
||||
|
||||
@ColumnWidth(22) |
||||
@ExcelProperty("取消时间") |
||||
private Date cancelTime; |
||||
|
||||
@ColumnWidth(22) |
||||
@ExcelProperty("渠道") |
||||
private String channelTypeName; |
||||
} |
Loading…
Reference in new issue