chao 3 سال پیش
والد
کامیت
1d084e2990

+ 2 - 2
src/main/java/com/caimei365/order/mapper/ReceiptMapper.java

@@ -189,7 +189,7 @@ public interface ReceiptMapper {
      * @param shopOrderId 子订单Id
      * @param payStatus 付款状态
      */
-    void updateShopOrdePayStatus(String shopOrderId, Integer payStatus);
+    void updateShopOrderPayStatus(String shopOrderId, Integer payStatus);
     /**
      * 收款项和订单关系
      */
@@ -197,5 +197,5 @@ public interface ReceiptMapper {
     /**
      * 查询待审核数量
      */
-    int getPendingtAuditCount(Integer orderId);
+    int getPendingAuditCount(Integer orderId);
 }

+ 2 - 2
src/main/java/com/caimei365/order/service/impl/ReceiptServiceImpl.java

@@ -1252,7 +1252,7 @@ public class ReceiptServiceImpl implements ReceiptService {
                     break;
                 }
             }
-            receiptMapper.updateShopOrdePayStatus(shopOrderId, 3);
+            receiptMapper.updateShopOrderPayStatus(shopOrderId, 3);
             // 订单信息
             OrderVo order = orderCommonMapper.getOrderByShopOrderId(Integer.parseInt(shopOrderId));
             if (flag) {
@@ -1334,7 +1334,7 @@ public class ReceiptServiceImpl implements ReceiptService {
                     //大额退款余额-大额抹平确认-小额抹平确认
                     if (null != receipt.getConfirmType() && (3 == receipt.getConfirmType() || 2 == receipt.getConfirmType() || 1 == receipt.getConfirmType())) {
                         // 查询待审核数量
-                        int pendingCount = receiptMapper.getPendingtAuditCount(order.getOrderId());
+                        int pendingCount = receiptMapper.getPendingAuditCount(order.getOrderId());
                         if (pendingCount > 1) {
                             int i = pendingCount - 1;
                             String operating;

+ 2 - 2
src/main/resources/mapper/ReceiptMapper.xml

@@ -133,7 +133,7 @@
     <update id="deleteReceiptRelation">
         UPDATE cm_receipt_order_relation SET delFlag = '1' WHERE receiptID = #{receiptId}
     </update>
-    <update id="updateShopOrdePayStatus">
+    <update id="updateShopOrderPayStatus">
         UPDATE cm_shop_order SET payStatus = #{payStatus} WHERE shopOrderID = #{shopOrderId}
     </update>
     <select id="getReceiptUserByOpenid" resultType="com.caimei365.order.model.vo.ReceiptUserVo">
@@ -845,7 +845,7 @@
         WHERE cror.receiptID = #{receiptId}
         ORDER BY cror.id DESC
     </select>
-    <select id="getPendingtAuditCount" resultType="java.lang.Integer">
+    <select id="getPendingAuditCount" resultType="java.lang.Integer">
         SELECT COUNT(*) FROM cm_receipt_order_relation cror
         LEFT JOIN cm_discern_receipt cdr ON cror.receiptID = cdr.id
         WHERE cror.orderID = #{orderId}