提交代码

dev-discount
胡锐 3 years ago
parent 71e054dc8d
commit 8c2d32e7d9
  1. 18
      hai-bweb/src/main/java/com/bweb/controller/HighTyAgentOilStationController.java
  2. 3
      hai-service/src/main/java/com/hai/dao/HighTyAgentOilStationMapperExt.java
  3. 18
      hai-service/src/main/java/com/hai/model/TyOrderModel.java

@ -341,6 +341,7 @@ public class HighTyAgentOilStationController {
@RequestParam(name = "memPhone", required = false) String memPhone, @RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "payTimeS", required = false) Long payTimeS, @RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE, @RequestParam(name = "payTimeE", required = false) Long payTimeE,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "pageNum", required = true) Integer pageNum, @RequestParam(name = "pageNum", required = true) Integer pageNum,
@RequestParam(name = "pageSize", required = true) Integer pageSize) { @RequestParam(name = "pageSize", required = true) Integer pageSize) {
try { try {
@ -352,6 +353,7 @@ public class HighTyAgentOilStationController {
param.put("orderNo", orderNo); param.put("orderNo", orderNo);
param.put("goodsName", goodsName); param.put("goodsName", goodsName);
param.put("memPhone", memPhone); param.put("memPhone", memPhone);
param.put("orderStatus", orderStatus);
if (payTimeS != null) { if (payTimeS != null) {
param.put("payTimeS", DateUtil.format(new Date(payTimeS), "yyyy-MM-dd HH:mm:ss")); param.put("payTimeS", DateUtil.format(new Date(payTimeS), "yyyy-MM-dd HH:mm:ss"));
} }
@ -412,6 +414,7 @@ public class HighTyAgentOilStationController {
@RequestParam(name = "orgName", required = false) String orgName, @RequestParam(name = "orgName", required = false) String orgName,
@RequestParam(name = "orgId", required = false) Long orgId, @RequestParam(name = "orgId", required = false) Long orgId,
@RequestParam(name = "memPhone", required = false) String memPhone, @RequestParam(name = "memPhone", required = false) String memPhone,
@RequestParam(name = "orderStatus", required = false) Integer orderStatus,
@RequestParam(name = "payTimeS", required = false) Long payTimeS, @RequestParam(name = "payTimeS", required = false) Long payTimeS,
@RequestParam(name = "payTimeE", required = false) Long payTimeE) { @RequestParam(name = "payTimeE", required = false) Long payTimeE) {
try { try {
@ -423,6 +426,7 @@ public class HighTyAgentOilStationController {
param.put("orderNo", orderNo); param.put("orderNo", orderNo);
param.put("goodsName", goodsName); param.put("goodsName", goodsName);
param.put("memPhone", memPhone); param.put("memPhone", memPhone);
param.put("orderStatus", orderStatus);
if (payTimeS != null) { if (payTimeS != null) {
param.put("payTimeS", DateUtil.format(new Date(payTimeS), "yyyy-MM-dd HH:mm:ss")); param.put("payTimeS", DateUtil.format(new Date(payTimeS), "yyyy-MM-dd HH:mm:ss"));
} }
@ -486,6 +490,8 @@ public class HighTyAgentOilStationController {
headList.add("团油枪价"); headList.add("团油枪价");
headList.add("创建时间"); headList.add("创建时间");
headList.add("支付时间"); headList.add("支付时间");
headList.add("订单状态");
headList.add("退款时间");
List<List<Object>> dataList = new ArrayList<>(); List<List<Object>> dataList = new ArrayList<>();
List<Object> data; List<Object> data;
@ -518,7 +524,19 @@ public class HighTyAgentOilStationController {
data.add(orderModel.getGasPriceGun()); data.add(orderModel.getGasPriceGun());
data.add(orderModel.getCreateTime()); data.add(orderModel.getCreateTime());
data.add(orderModel.getPayTime()); data.add(orderModel.getPayTime());
// 订单状态:1 待支付 2 已支付 3.已完成 4. 已退款 5.已取消 6.退款中 7.拒绝退款
if (orderModel.getOrderStatus().equals(3)) {
data.add("已完成");
} else if (orderModel.getOrderStatus().equals(4)) {
data.add("已退款");
} else if (orderModel.getOrderStatus().equals(6)) {
data.add("退款中");
} else if (orderModel.getOrderStatus().equals(7)) {
data.add("退款驳回");
}
dataList.add(data); dataList.add(data);
data.add(orderModel.getRefundTime());
} }
String fileUrl = SysConst.getSysConfig().getFileUrl() + "/temporary/"; String fileUrl = SysConst.getSysConfig().getFileUrl() + "/temporary/";

@ -78,6 +78,8 @@ public interface HighTyAgentOilStationMapperExt {
" a.gas_price_gun gasPriceGun," + " a.gas_price_gun gasPriceGun," +
" b.create_time createTime," + " b.create_time createTime," +
" b.pay_time payTime, " + " b.pay_time payTime, " +
" b.order_status orderStatus, " +
" b.refund_time refundTime, " +
" a.gas_org_name orgName, " + " a.gas_org_name orgName, " +
" a.gas_agent_name agentName, " + " a.gas_agent_name agentName, " +
" a.gas_salesman_name salesmanName " + " a.gas_salesman_name salesmanName " +
@ -99,6 +101,7 @@ public interface HighTyAgentOilStationMapperExt {
" <if test='param.memPhone != null'> AND b.mem_phone like concat('%',#{param.memPhone},'%') </if> " + " <if test='param.memPhone != null'> AND b.mem_phone like concat('%',#{param.memPhone},'%') </if> " +
" <if test='param.payTimeS != null'> <![CDATA[ AND b.pay_time >= #{param.payTimeS} ]]> </if> " + " <if test='param.payTimeS != null'> <![CDATA[ AND b.pay_time >= #{param.payTimeS} ]]> </if> " +
" <if test='param.payTimeE != null'> <![CDATA[ AND b.pay_time <= #{param.payTimeE} ]]> </if> " + " <if test='param.payTimeE != null'> <![CDATA[ AND b.pay_time <= #{param.payTimeE} ]]> </if> " +
" <if test='param.orderStatus != null'> AND b.order_status = #{param.orderStatus} </if> " +
" AND a.child_orde_status IN ( 2, 3 ) " + " AND a.child_orde_status IN ( 2, 3 ) " +
" ORDER BY" + " ORDER BY" +
" b.pay_time DESC" + " b.pay_time DESC" +

@ -20,11 +20,29 @@ public class TyOrderModel {
private BigDecimal gasPriceGun; private BigDecimal gasPriceGun;
private Date createTime; private Date createTime;
private Date payTime; private Date payTime;
private Integer orderStatus;
private Date refundTime;
private String orgName; private String orgName;
private String agentName; private String agentName;
private String salesmanName; private String salesmanName;
public Integer getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
}
public Date getRefundTime() {
return refundTime;
}
public void setRefundTime(Date refundTime) {
this.refundTime = refundTime;
}
public BigDecimal getOilLiters() { public BigDecimal getOilLiters() {
return oilLiters; return oilLiters;
} }

Loading…
Cancel
Save