Explorar o código

申请记录、充值列表

zhaoxian %!s(int64=2) %!d(string=hai) anos
pai
achega
b05e65f3a1

+ 5 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/entity/FinancePaymentRechargeAccount.java

@@ -12,7 +12,6 @@ import lombok.experimental.Accessors;
 import org.jeecgframework.poi.excel.annotation.Excel;
 
 import java.util.Date;
-import java.util.List;
 
 /**
  * 充值账户表
@@ -109,4 +108,9 @@ public class FinancePaymentRechargeAccount {
      */
     @TableField(exist = false)
     private String agentName;
+    /**
+     * 项目名称
+     */
+    @TableField(exist = false)
+    private String projectName;
 }

+ 3 - 1
jeecg-boot-module-system/src/main/java/cn/com/ctop/finance/payment/mapper/xml/FinancePaymentRechargeAccountMapper.xml

@@ -12,6 +12,7 @@
         SELECT t1.id,
                t1.recharge_id,
                t1.project_id,
+               t4.project_name,
                t1.account_id,
                t1.product_id,
                t1.product_name,
@@ -26,7 +27,8 @@
         FROM `finance_payment_recharge_account` t1
                  LEFT JOIN ctop_oauth_token t2 ON t1.account_id = t2.account_id
                  LEFT JOIN ctop_oauth_config t3 ON t2.app_id = t3.app_id
-        WHERE recharge_id = #{rechargeId}
+                 LEFT JOIN ctop_project t4 ON t1.project_id = t4.id
+             WHERE recharge_id = #{rechargeId}
         order by t1.id
     </select>