From eeff5c64994f45ce13749f8abddafe6288b7c53b Mon Sep 17 00:00:00 2001 From: hupeng Date: Tue, 12 Mar 2019 12:40:34 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=88=86=E8=B4=A6][=E4=BF=AE=E5=A4=8D]:?= =?UTF-8?q?=E5=88=86=E5=B8=90=E4=B8=AD=E4=BA=A7=E7=94=9F=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iformall/enums/EnumProfitSharingOrderStatus.java | 2 +- .../service/impl/WxProfitSharingOrderServiceImpl.java | 1 + .../resources/mapper/WxProfitSharingOrderMapper.xml | 11 ++++++++--- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/enums/EnumProfitSharingOrderStatus.java b/mallinkService/src/main/java/com/iformall/enums/EnumProfitSharingOrderStatus.java index f78e5129a..be59246a2 100644 --- a/mallinkService/src/main/java/com/iformall/enums/EnumProfitSharingOrderStatus.java +++ b/mallinkService/src/main/java/com/iformall/enums/EnumProfitSharingOrderStatus.java @@ -4,7 +4,7 @@ package com.iformall.enums; * Created by Stormeye on 2018/08/09. */ public enum EnumProfitSharingOrderStatus { - PROFIT_SHARING_UNKNOWN(-1, "未知"), + PROFIT_SHARING_UNKNOWN(0, "未知"), PROFIT_SHARING_REQ_FAILED(1, "提交订单失败"), PROFIT_SHARING_APPLY_FAILED(2, "提交业务失败"), PROFIT_SHARING_ACCEPTED(3, "受理成功"), diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java index 6ccb88227..0d394cc78 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxProfitSharingOrderServiceImpl.java @@ -570,6 +570,7 @@ public class WxProfitSharingOrderServiceImpl implements WxProfitSharingOrderServ record.setTransactionId(sharingOrderDto.getTransactionId()); record.setPayAmount(sharingOrderDto.getPayAmount()); record.setMerchantId(sharingOrderDto.getMerchantId()); + record.setOrderId(sharingOrderDto.getOrderId()); record.setSharingStatus(EnumProfitSharingOrderStatus.PROFIT_SHARING_UNKNOWN.getCode()); record.setCreateTime(currentDate); record.setUpdateTime(currentDate); diff --git a/mallinkService/src/main/resources/mapper/WxProfitSharingOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxProfitSharingOrderMapper.xml index 3b77a249d..5f03e8259 100644 --- a/mallinkService/src/main/resources/mapper/WxProfitSharingOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxProfitSharingOrderMapper.xml @@ -44,11 +44,16 @@ and `order_id` = #{orderId} - - + + + + and `type` = #{type} + + + and `pay_amount` = #{payAmount} - +