gmcs il y a 3 mois
Parent
commit
1279c2b458
18 fichiers modifiés avec 304 ajouts et 164 suppressions
  1. 1 1
      docker/ruoyi/modules/mast/dockerfile
  2. 2 2
      ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/controller/BidQuoteController.java
  3. 3 2
      ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/controller/BidTenderController.java
  4. 67 0
      ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/domain/EarnParam.java
  5. 2 1
      ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/mapper/BidQuoteMapper.java
  6. 2 1
      ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/service/IBidQuoteService.java
  7. 3 2
      ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/service/impl/BidQuoteServiceImpl.java
  8. 8 2
      ruoyi-modules/hh-bidding/src/main/resources/mapper/BidQuoteMapper.xml
  9. 6 4
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankDepositController.java
  10. 11 0
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankDepositdescrController.java
  11. 4 0
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankTenderpubController.java
  12. 10 18
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankUncleardepositController.java
  13. 10 0
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/domain/BankDepositdesc.java
  14. 20 0
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/domain/BankDepositdescr.java
  15. 20 0
      ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/domain/BankUncleardeposit.java
  16. 50 49
      ruoyi-modules/hh-mast/src/main/resources/mapper/bank/BankDepositdescMapper.xml
  17. 51 50
      ruoyi-modules/hh-mast/src/main/resources/mapper/bank/BankDepositdescrMapper.xml
  18. 34 32
      ruoyi-modules/hh-mast/src/main/resources/mapper/bank/BankUncleardepositMapper.xml

+ 1 - 1
docker/ruoyi/modules/mast/dockerfile

@@ -1,5 +1,5 @@
 # 基础镜像
-FROM  openjdk:8-jre
+FROM  openjdk:11.0.16-jre
 # author
 MAINTAINER ruoyi
 

+ 2 - 2
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/controller/BidQuoteController.java

@@ -81,9 +81,9 @@ public class BidQuoteController extends BaseController
 
     // 查询保证金提交待审核状态的信息
     @GetMapping("/selectEarnList")
-    public TableDataInfo selectEarnList(){
+    public TableDataInfo selectEarnList(EarnParam earnParam){
         startPage();
-        List<Earnest> earnests = bidQuoteService.selectEarnList();
+        List<Earnest> earnests = bidQuoteService.selectEarnList(earnParam);
         for(Earnest earnest : earnests){
             Long ownerDept = earnest.getOwnerDept();
             SysDept sysDept = remoteUserService.getInfoById(ownerDept,SecurityConstants.INNER);

+ 3 - 2
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/controller/BidTenderController.java

@@ -26,7 +26,6 @@ import com.ruoyi.common.core.utils.StringUtils;
 import com.ruoyi.common.security.annotation.InnerAuth;
 import com.ruoyi.common.security.service.TokenService;
 import com.ruoyi.common.security.utils.SecurityUtils;
-import com.ruoyi.mast.bank.domain.BankDepositdescr;
 import com.ruoyi.system.api.*;
 import com.ruoyi.system.api.domain.*;
 import com.ruoyi.system.api.util.DeptUtil;
@@ -665,7 +664,9 @@ public class BidTenderController extends BaseController {
     public int getDeposit(){
         List<BidNotice> bidNotices = bidNoticeService.selectBidNoticeList(new BidNotice());
         int i = 0;
+        System.out.println("22222222222222222222");
         for(BidNotice bidNotice : bidNotices){
+            System.out.println("111111111111111111111111111");
             String s = remoteDepositService.getDepositByNoticeId(bidNotice.getUid(), SecurityConstants.INNER);
             logger.info("同步银行入账信息结果:{}",s.length());
             i++;
@@ -712,7 +713,7 @@ public class BidTenderController extends BaseController {
                 bankDepositdescr.setRtnCode(item.getRtnCode());
                 bankDepositdescr.setRtnSeverity(item.getRtnSeverity());
                 bankDepositdescr.setRtnMessage(item.getRtnMessage());
-                bankDepositdescr.setRtnRsbody(item.getRtnRsbody());
+//                bankDepositdescr.setRtnRsbody(item.getRtnRsbody());
                 bankDepositdescr.setRtnRcrdtotnum(item.getRtnRcrdtotnum());
                 bankDepositdescr.setRtnCrnpgno(item.getRtnCrnpgno());
                 bankDepositdescr.setRtnPgrcrdnum(item.getRtnPgrcrdnum());

+ 67 - 0
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/domain/EarnParam.java

@@ -0,0 +1,67 @@
+package com.hh.bidding.domain;
+
+/**
+ * @author GMCS
+ * @version 1.0
+ * @title EarnParam
+ * @description
+ * @create 2024/9/19 15:15
+ */
+// 保证金审核列表模糊查询参数
+public class EarnParam {
+
+    // 公告标题
+    private String title;
+
+    // 项目编号
+    private String code;
+
+    // 招标项目名称
+    private String projName;
+
+    // 采购商
+    private String company;
+
+    // 供应商
+    private String supplier;
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public String getProjName() {
+        return projName;
+    }
+
+    public void setProjName(String projName) {
+        this.projName = projName;
+    }
+
+    public String getCompany() {
+        return company;
+    }
+
+    public void setCompany(String company) {
+        this.company = company;
+    }
+
+    public String getSupplier() {
+        return supplier;
+    }
+
+    public void setSupplier(String supplier) {
+        this.supplier = supplier;
+    }
+}

+ 2 - 1
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/mapper/BidQuoteMapper.java

@@ -4,6 +4,7 @@ import java.util.List;
 import java.util.Map;
 
 import com.hh.bidding.domain.BidQuote;
+import com.hh.bidding.domain.EarnParam;
 import com.hh.bidding.domain.Earnest;
 
 /**
@@ -75,7 +76,7 @@ public interface BidQuoteMapper
      *
      * @return
      */
-    public List<Earnest> selectEarnList();
+    public List<Earnest> selectEarnList(EarnParam earnParam);
 
     // 查询供应商报价
     public BidQuote selectQuoteBySupplier(Map map);

+ 2 - 1
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/service/IBidQuoteService.java

@@ -4,6 +4,7 @@ import java.util.List;
 import java.util.Map;
 
 import com.hh.bidding.domain.BidQuote;
+import com.hh.bidding.domain.EarnParam;
 import com.hh.bidding.domain.Earnest;
 
 /**
@@ -75,7 +76,7 @@ public interface IBidQuoteService
      *
      * @return
      */
-    public List<Earnest> selectEarnList();
+    public List<Earnest> selectEarnList(EarnParam earnParam);
 
     // 查询供应商报价
     public BidQuote selectQuoteBySupplier(Map map);

+ 3 - 2
ruoyi-modules/hh-bidding/src/main/java/com/hh/bidding/service/impl/BidQuoteServiceImpl.java

@@ -3,6 +3,7 @@ package com.hh.bidding.service.impl;
 import java.util.List;
 import java.util.Map;
 
+import com.hh.bidding.domain.EarnParam;
 import com.hh.bidding.domain.Earnest;
 import com.ruoyi.common.core.utils.DateUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -103,8 +104,8 @@ public class BidQuoteServiceImpl implements IBidQuoteService
     }
 
     @Override
-    public List<Earnest> selectEarnList() {
-        return bidQuoteMapper.selectEarnList();
+    public List<Earnest> selectEarnList(EarnParam earnParam) {
+        return bidQuoteMapper.selectEarnList(earnParam);
     }
 
     @Override

+ 8 - 2
ruoyi-modules/hh-bidding/src/main/resources/mapper/BidQuoteMapper.xml

@@ -122,7 +122,7 @@
         </foreach>
     </delete>
 
-    <select id="selectEarnList" resultType="com.hh.bidding.domain.Earnest">
+    <select id="selectEarnList" parameterType="com.hh.bidding.domain.EarnParam" resultType="com.hh.bidding.domain.Earnest">
         select q.sid,q.status,q.contact,q.contact_phone,q.qid,q.hid,
                t.s_code,t.owner_dept,
                n.u_title,
@@ -133,7 +133,13 @@
             inner join bid_notice n on q.sid = n.sid
             inner join ppm_procurement_plan p on p.aid = t.xy_id
             inner join bs_supplier s on q.hid = s.hid
-        where q.status = 2
+        <where>
+            <if test="title != null  and title != ''">and n.u_title like concat('%', #{title}, '%')</if>
+            <if test="code != null  and code != ''">and t.s_code like concat('%', #{code}, '%')</if>
+            <if test="projName != null  and projName != ''">and p.a_name like concat('%', #{projName}, '%')</if>
+            <if test="supplier != null  and supplier != ''">and s.h_name like concat('%', #{supplier}, '%')</if>
+            and q.status = 2
+        </where>
     </select>
 
     <select id = "selectQuoteBySupplier" parameterType="map">

+ 6 - 4
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankDepositController.java

@@ -163,13 +163,14 @@ public class BankDepositController extends BaseController {
     @InnerAuth
     @GetMapping("/getDepositByNoticeId")
     public String getDepositByNoticeId(@RequestParam("noticeId") Long noticeId){
+        System.out.println("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
         Map<String, Object> map = bankTenderpubController.getInfos(String.valueOf(noticeId));
         if (map.size() < 2) return "请检查标段发布和标段查询请求数据是否成功!";
         BankTenderpub bt = map.get("tenderpub") == null ? null : (BankTenderpub) map.get("tenderpub");
         BankTenderquery bq = map.get("tenderquery") == null ? null : (BankTenderquery) map.get("tenderquery");
         if (bt == null) return "标段发布数据异常,请检查!";
         if (bq == null) return "标段信息查询数据异常,请检查!";
-
+        System.out.println("BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB");
         BankDeposit bankDeposit = new BankDeposit();
         bankDeposit.setPpid(bq.getPpid());
         List<BankDeposit> list = bankDepositService.selectBankDepositList(bankDeposit);
@@ -178,7 +179,7 @@ public class BankDepositController extends BaseController {
                 bankDepositService.deleteBankDepositByDepositid(bd.getDepositid());
             }
         }
-
+        System.out.println("CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC");
         bankDeposit.setSgtid(bq.getRtnSgtid());
         bankDeposit.setSgtno(bq.getRtnSgtno());
         bankDeposit.setPrjno(bq.getRtnPrjno());
@@ -186,7 +187,7 @@ public class BankDepositController extends BaseController {
         bankDeposit.setEntpnm("");
 
         AjaxResult msg1 = addBankDeposit(bankDeposit);
-
+        System.out.println("DDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
         BankDeposit tempDeposit = new BankDeposit();
         tempDeposit.setPpid(bq.getPpid());
         List<BankDeposit> tempList = bankDepositService.selectBankDepositList(tempDeposit);
@@ -197,7 +198,7 @@ public class BankDepositController extends BaseController {
         int page = pgno / 20;
         int page1 = pgno % 20;
         if (page1 > 0) page += 1;
-
+        System.out.println("EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE");
         BankDepositdesc bankDepositdesc = new BankDepositdesc();
         bankDepositdesc.setPpid(bq.getPpid());
         List<BankDepositdesc> blist = bankDepositdescService.selectBankDepositdescList(bankDepositdesc);
@@ -479,6 +480,7 @@ public class BankDepositController extends BaseController {
 
 
     public AjaxResult addBankDeposit(BankDeposit bankDeposit) {
+        System.out.println("GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG");
         // 流水号
         String TRNUID = "BZJN" + System.currentTimeMillis() + (new Random().nextInt(1000) + 1);
 

+ 11 - 0
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankDepositdescrController.java

@@ -44,6 +44,17 @@ public class BankDepositdescrController extends BaseController
     {
         startPage();
         List<BankDepositdescr> list = bankDepositdescrService.selectBankDepositdescrList(bankDepositdescr);
+        for(BankDepositdescr item : list){
+            if("3".equals(item.getRtnRfndst())){
+                item.setStatus("退款处理中");
+            }else if ("5".equals(item.getRtnRfndst())){
+                item.setStatus("退款成功");
+            }else if ("7".equals(item.getRtnRfndst())){
+                item.setStatus("退款失败");
+            }else{
+                item.setStatus("未申请退款");
+            }
+        }
         return getDataTable(list);
     }
 

+ 4 - 0
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankTenderpubController.java

@@ -210,18 +210,22 @@ public class BankTenderpubController extends BaseController {
 
         String rtn = JsonUtils.getStatus(rtnxml);
         System.out.println("BBBBBBBBBBBBBBB");
+        System.out.println(rtnxml);
 
         if (rtn.contains("成功")) {
+            System.out.println("1111111111111111111111111111111111111");
             bankTenderpubService.insertBankTenderpub(bankTenderpub);
             String account = JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/OPENTENDERTRNRS/RSBODY/ACCTNO");
             String lno = JsonUtils.findXML(rtnxml, "FOX/SECURITIES_MSGSRSV1/OPENTENDERTRNRS/RSBODY/SGTVRTLNO");
             if (update(bankTenderpub, rtnxml) > 0) {
                 /** 同时查询保存标段查询信息 **/
+                System.out.println("222222222222222222222222");
                 BankTenderpub b = bankTenderpubService.selectBankTenderpubByTenderpubid(bankTenderpub.getTenderpubid());
                 BankTenderquery bt = new BankTenderquery();
                 bt.setPpid(Long.valueOf(bankTenderpub.getPpid()));
                 bt.setSgtid(b.getRtnSgtid());
                 AjaxResult msg = bankTenderqueryController.addBankTenderquery(bt);
+                System.out.println(msg);
                 if (msg.isSuccess()) {
                     System.out.println("获取虚拟子账户");
                     return account+lno;

+ 10 - 18
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankUncleardepositController.java

@@ -6,15 +6,11 @@ import java.util.List;
 import java.util.Random;
 import javax.servlet.http.HttpServletResponse;
 
-import com.ruoyi.common.core.constant.SecurityConstants;
 import com.ruoyi.common.core.utils.DateUtils;
 import com.ruoyi.common.core.utils.uuid.UUID;
-import com.ruoyi.mast.bank.domain.BankTenderpub;
 import com.ruoyi.mast.bank.domain.BankUncleardepositrfnd;
 import com.ruoyi.mast.bank.utils.JsonUtils;
-import com.ruoyi.system.api.RemoteBidNoticeService;
 import com.ruoyi.system.api.RemotePlanService;
-import com.ruoyi.system.api.domain.BidNotice;
 import kong.unirest.core.HttpResponse;
 import kong.unirest.core.Unirest;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -52,10 +48,10 @@ public class BankUncleardepositController extends BaseController {
     private BankUncleardepositrfndController bankUncleardepositrfndController;
 
     @Autowired
-    private Environment env;
+    private RemotePlanService remotePlanService;
 
     @Autowired
-    private RemoteBidNoticeService remoteBidNoticeService;
+    private Environment env;
 
     /**
      * 查询查询不明保证金明细列表
@@ -65,17 +61,15 @@ public class BankUncleardepositController extends BaseController {
     public TableDataInfo list(BankUncleardeposit bankUncleardeposit) {
         startPage();
         List<BankUncleardeposit> list = bankUncleardepositService.selectBankUncleardepositList(bankUncleardeposit);
-
-        Long[] uids = list.stream().map(BankUncleardeposit::getPpid).toArray(Long[]::new);
-
-        if(uids.length>0){
-            List<BidNotice> blist = remoteBidNoticeService.selectBidNoticeByUids(uids, SecurityConstants.INNER);
-
-            for (int i = 0; i < list.size(); i++) {
-                list.get(i).setCggg(JsonUtils.getBidNoticeName(list.get(i).getPpid(), blist));
+        for(BankUncleardeposit item : list){
+            if(item.getRtnXferprccode() == null){
+                item.setStatus("未申请退款");
+            } else if("PAYOUT".equals(item.getRtnXferprccode())){
+                 item.setStatus("退款成功");
+             }else{
+                 item.setStatus("已申请");
             }
         }
-
         return getDataTable(list);
     }
 
@@ -107,9 +101,7 @@ public class BankUncleardepositController extends BaseController {
         bt.setDestbailamt(bankUncleardeposit.getRtnSelfbal());
 
         AjaxResult msg = bankUncleardepositrfndController.addBankUncleardepositrfnd(bt);
-
-        if ((msg != null) && msg.containsValue("成功")) return success(msg);
-        else return error(msg.get("msg").toString());
+        return msg;
     }
 
     /**

+ 10 - 0
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/domain/BankDepositdesc.java

@@ -207,6 +207,8 @@ public class BankDepositdesc extends BaseEntity
     @Excel(name = "交易附言")
     private String rtnRemark;
 
+    private String rtnRfndst;
+
     public void setDepositdescid(String depositdescid) 
     {
         this.depositdescid = depositdescid;
@@ -640,6 +642,14 @@ public class BankDepositdesc extends BaseEntity
         return rtnRemark;
     }
 
+    public String getRtnRfndst() {
+        return rtnRfndst;
+    }
+
+    public void setRtnRfndst(String rtnRfndst) {
+        this.rtnRfndst = rtnRfndst;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 20 - 0
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/domain/BankDepositdescr.java

@@ -211,6 +211,10 @@ public class BankDepositdescr extends BaseEntity
     @Excel(name = "原因")
     private String reason;
 
+    private String rtnRfndst;
+
+    private String status;
+
     public void setDepositdescid(String depositdescid) 
     {
         this.depositdescid = depositdescid;
@@ -653,6 +657,22 @@ public class BankDepositdescr extends BaseEntity
         return reason;
     }
 
+    public String getRtnRfndst() {
+        return rtnRfndst;
+    }
+
+    public void setRtnRfndst(String rtnRfndst) {
+        this.rtnRfndst = rtnRfndst;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

+ 20 - 0
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/domain/BankUncleardeposit.java

@@ -154,6 +154,10 @@ public class BankUncleardeposit extends BaseEntity
     @Excel(name = "进入不明原因")
     private String rtnAdjustreason;
 
+    private String rtnXferprccode;
+
+    private String status;
+
     public void setUncleardepositid(String uncleardepositid) 
     {
         this.uncleardepositid = uncleardepositid;
@@ -478,4 +482,20 @@ public class BankUncleardeposit extends BaseEntity
     public void setPage(String page) {
         this.page = page;
     }
+
+    public String getRtnXferprccode() {
+        return rtnXferprccode;
+    }
+
+    public void setRtnXferprccode(String rtnXferprccode) {
+        this.rtnXferprccode = rtnXferprccode;
+    }
+
+    public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
 }

+ 50 - 49
ruoyi-modules/hh-mast/src/main/resources/mapper/bank/BankDepositdescMapper.xml

@@ -59,56 +59,57 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select depositdescid, ppid, trnuid, rqbody, sgtid, sgtno, prjno, pltfmcstno, entpnm, pgno, version, rtn_trnuid, rtn_status, rtn_code, rtn_severity, rtn_message, rtn_rsbody, rtn_rcrdtotnum, rtn_crnpgno, rtn_pgrcrdnum, rtn_totpgnum, rtn_content, rtn_lescstno, rtn_tdrno, rtn_cstno, rtn_prjno, rtn_prjnm, rtn_sgtno, rtn_sgtnm, rtn_sgtst, rtn_mrgnst, rtn_tdracctno, rtn_tdracctnoccycd, rtn_tdracctnm, rtn_tdracctnobnkno, rtn_tdracctnobnknm, rtn_tdrnum, rtn_mrgnamt, rtn_tdramt, rtn_agncsvcfee, rtn_frzamt, rtn_fineamt, rtn_tdrdt, rtn_tdrtm, rtn_duetp, rtn_mbrshpno, rtn_svcfee, rtn_remark from bank_depositdesc
     </sql>
 
-    <select id="selectBankDepositdescList" parameterType="BankDepositdesc" resultMap="BankDepositdescResult">
-        <include refid="selectBankDepositdescVo"/>
+    <select id="selectBankDepositdescList" parameterType="BankDepositdesc" resultType="com.ruoyi.mast.bank.domain.BankDepositdesc">
+        select b.*,r.rtn_rfndst
+        from bank_depositdesc b left join bank_refund r on (b.sgtid = r.sgtid and b.rtn_tdracctno = r.rtn_tdracctno)
         <where>  
-            <if test="ppid != null "> and ppid = #{ppid}</if>
-            <if test="trnuid != null  and trnuid != ''"> and trnuid = #{trnuid}</if>
-            <if test="rqbody != null  and rqbody != ''"> and rqbody = #{rqbody}</if>
-            <if test="sgtid != null  and sgtid != ''"> and sgtid = #{sgtid}</if>
-            <if test="sgtno != null  and sgtno != ''"> and sgtno = #{sgtno}</if>
-            <if test="prjno != null  and prjno != ''"> and prjno = #{prjno}</if>
-            <if test="pltfmcstno != null  and pltfmcstno != ''"> and pltfmcstno = #{pltfmcstno}</if>
-            <if test="entpnm != null  and entpnm != ''"> and entpnm = #{entpnm}</if>
-            <if test="pgno != null  and pgno != ''"> and pgno = #{pgno}</if>
-            <if test="version != null  and version != ''"> and version = #{version}</if>
-            <if test="rtnTrnuid != null  and rtnTrnuid != ''"> and rtn_trnuid = #{rtnTrnuid}</if>
-            <if test="rtnStatus != null  and rtnStatus != ''"> and rtn_status = #{rtnStatus}</if>
-            <if test="rtnCode != null  and rtnCode != ''"> and rtn_code = #{rtnCode}</if>
-            <if test="rtnSeverity != null  and rtnSeverity != ''"> and rtn_severity = #{rtnSeverity}</if>
-            <if test="rtnMessage != null  and rtnMessage != ''"> and rtn_message = #{rtnMessage}</if>
-            <if test="rtnRsbody != null  and rtnRsbody != ''"> and rtn_rsbody = #{rtnRsbody}</if>
-            <if test="rtnRcrdtotnum != null  and rtnRcrdtotnum != ''"> and rtn_rcrdtotnum = #{rtnRcrdtotnum}</if>
-            <if test="rtnCrnpgno != null  and rtnCrnpgno != ''"> and rtn_crnpgno = #{rtnCrnpgno}</if>
-            <if test="rtnPgrcrdnum != null  and rtnPgrcrdnum != ''"> and rtn_pgrcrdnum = #{rtnPgrcrdnum}</if>
-            <if test="rtnTotpgnum != null  and rtnTotpgnum != ''"> and rtn_totpgnum = #{rtnTotpgnum}</if>
-            <if test="rtnContent != null  and rtnContent != ''"> and rtn_content = #{rtnContent}</if>
-            <if test="rtnLescstno != null  and rtnLescstno != ''"> and rtn_lescstno = #{rtnLescstno}</if>
-            <if test="rtnTdrno != null  and rtnTdrno != ''"> and rtn_tdrno = #{rtnTdrno}</if>
-            <if test="rtnCstno != null  and rtnCstno != ''"> and rtn_cstno = #{rtnCstno}</if>
-            <if test="rtnPrjno != null  and rtnPrjno != ''"> and rtn_prjno = #{rtnPrjno}</if>
-            <if test="rtnPrjnm != null  and rtnPrjnm != ''"> and rtn_prjnm = #{rtnPrjnm}</if>
-            <if test="rtnSgtno != null  and rtnSgtno != ''"> and rtn_sgtno = #{rtnSgtno}</if>
-            <if test="rtnSgtnm != null  and rtnSgtnm != ''"> and rtn_sgtnm = #{rtnSgtnm}</if>
-            <if test="rtnSgtst != null  and rtnSgtst != ''"> and rtn_sgtst = #{rtnSgtst}</if>
-            <if test="rtnMrgnst != null  and rtnMrgnst != ''"> and rtn_mrgnst = #{rtnMrgnst}</if>
-            <if test="rtnTdracctno != null  and rtnTdracctno != ''"> and rtn_tdracctno = #{rtnTdracctno}</if>
-            <if test="rtnTdracctnoccycd != null  and rtnTdracctnoccycd != ''"> and rtn_tdracctnoccycd = #{rtnTdracctnoccycd}</if>
-            <if test="rtnTdracctnm != null  and rtnTdracctnm != ''"> and rtn_tdracctnm = #{rtnTdracctnm}</if>
-            <if test="rtnTdracctnobnkno != null  and rtnTdracctnobnkno != ''"> and rtn_tdracctnobnkno = #{rtnTdracctnobnkno}</if>
-            <if test="rtnTdracctnobnknm != null  and rtnTdracctnobnknm != ''"> and rtn_tdracctnobnknm = #{rtnTdracctnobnknm}</if>
-            <if test="rtnTdrnum != null  and rtnTdrnum != ''"> and rtn_tdrnum = #{rtnTdrnum}</if>
-            <if test="rtnMrgnamt != null "> and rtn_mrgnamt = #{rtnMrgnamt}</if>
-            <if test="rtnTdramt != null "> and rtn_tdramt = #{rtnTdramt}</if>
-            <if test="rtnAgncsvcfee != null "> and rtn_agncsvcfee = #{rtnAgncsvcfee}</if>
-            <if test="rtnFrzamt != null "> and rtn_frzamt = #{rtnFrzamt}</if>
-            <if test="rtnFineamt != null "> and rtn_fineamt = #{rtnFineamt}</if>
-            <if test="rtnTdrdt != null  and rtnTdrdt != ''"> and rtn_tdrdt = #{rtnTdrdt}</if>
-            <if test="rtnTdrtm != null  and rtnTdrtm != ''"> and rtn_tdrtm = #{rtnTdrtm}</if>
-            <if test="rtnDuetp != null  and rtnDuetp != ''"> and rtn_duetp = #{rtnDuetp}</if>
-            <if test="rtnMbrshpno != null  and rtnMbrshpno != ''"> and rtn_mbrshpno = #{rtnMbrshpno}</if>
-            <if test="rtnSvcfee != null "> and rtn_svcfee = #{rtnSvcfee}</if>
-            <if test="rtnRemark != null  and rtnRemark != ''"> and rtn_remark = #{rtnRemark}</if>
+            <if test="ppid != null and ppid !=''" > and b.ppid = #{ppid}</if>
+            <if test="trnuid != null  and trnuid != ''"> and b.trnuid like concat('%', #{trnuid}, '%')</if>
+            <if test="rqbody != null  and rqbody != ''"> and b.rqbody = #{rqbody}</if>
+            <if test="sgtid != null  and sgtid != ''"> and b.sgtid = #{sgtid}</if>
+            <if test="sgtno != null  and sgtno != ''"> and b.sgtno = #{sgtno}</if>
+            <if test="prjno != null  and prjno != ''"> and b.prjno = #{prjno}</if>
+            <if test="pltfmcstno != null  and pltfmcstno != ''"> and b.pltfmcstno = #{pltfmcstno}</if>
+            <if test="entpnm != null  and entpnm != ''"> and b.entpnm = #{entpnm}</if>
+            <if test="pgno != null  and pgno != ''"> and b.pgno = #{pgno}</if>
+            <if test="version != null  and version != ''"> and b.version = #{version}</if>
+            <if test="rtnTrnuid != null  and rtnTrnuid != ''"> and b.rtn_trnuid = #{rtnTrnuid}</if>
+            <if test="rtnStatus != null  and rtnStatus != ''"> and b.rtn_status = #{rtnStatus}</if>
+            <if test="rtnCode != null  and rtnCode != ''"> and b.rtn_code = #{rtnCode}</if>
+            <if test="rtnSeverity != null  and rtnSeverity != ''"> and b.rtn_severity = #{rtnSeverity}</if>
+            <if test="rtnMessage != null  and rtnMessage != ''"> and b.rtn_message = #{rtnMessage}</if>
+            <if test="rtnRsbody != null  and rtnRsbody != ''"> and b.rtn_rsbody = #{rtnRsbody}</if>
+            <if test="rtnRcrdtotnum != null  and rtnRcrdtotnum != ''"> and b.rtn_rcrdtotnum = #{rtnRcrdtotnum}</if>
+            <if test="rtnCrnpgno != null  and rtnCrnpgno != ''"> and b.rtn_crnpgno = #{rtnCrnpgno}</if>
+            <if test="rtnPgrcrdnum != null  and rtnPgrcrdnum != ''"> and b.rtn_pgrcrdnum = #{rtnPgrcrdnum}</if>
+            <if test="rtnTotpgnum != null  and rtnTotpgnum != ''"> and b.rtn_totpgnum = #{rtnTotpgnum}</if>
+            <if test="rtnContent != null  and rtnContent != ''"> and b.rtn_content = #{rtnContent}</if>
+            <if test="rtnLescstno != null  and rtnLescstno != ''"> and b.rtn_lescstno = #{rtnLescstno}</if>
+            <if test="rtnTdrno != null  and rtnTdrno != ''"> and b.rtn_tdrno = #{rtnTdrno}</if>
+            <if test="rtnCstno != null  and rtnCstno != ''"> and b.rtn_cstno = #{rtnCstno}</if>
+            <if test="rtnPrjno != null  and rtnPrjno != ''"> and b.rtn_prjno = #{rtnPrjno}</if>
+            <if test="rtnPrjnm != null  and rtnPrjnm != ''"> and b.rtn_prjnm = #{rtnPrjnm}</if>
+            <if test="rtnSgtno != null  and rtnSgtno != ''"> and b.rtn_sgtno = #{rtnSgtno}</if>
+            <if test="rtnSgtnm != null  and rtnSgtnm != ''"> and b.rtn_sgtnm = #{rtnSgtnm}</if>
+            <if test="rtnSgtst != null  and rtnSgtst != ''"> and b.rtn_sgtst = #{rtnSgtst}</if>
+            <if test="rtnMrgnst != null  and rtnMrgnst != ''"> and b.rtn_mrgnst = #{rtnMrgnst}</if>
+            <if test="rtnTdracctno != null  and rtnTdracctno != ''"> and b.rtn_tdracctno = #{rtnTdracctno}</if>
+            <if test="rtnTdracctnoccycd != null  and rtnTdracctnoccycd != ''"> and b.rtn_tdracctnoccycd = #{rtnTdracctnoccycd}</if>
+            <if test="rtnTdracctnm != null  and rtnTdracctnm != ''"> and b.rtn_tdracctnm like concat('%', #{rtnTdracctnm}, '%')</if>
+            <if test="rtnTdracctnobnkno != null  and rtnTdracctnobnkno != ''"> and b.rtn_tdracctnobnkno = #{rtnTdracctnobnkno}</if>
+            <if test="rtnTdracctnobnknm != null  and rtnTdracctnobnknm != ''"> and b.rtn_tdracctnobnknm = #{rtnTdracctnobnknm}</if>
+            <if test="rtnTdrnum != null  and rtnTdrnum != ''"> and b.rtn_tdrnum = #{rtnTdrnum}</if>
+            <if test="rtnMrgnamt != null "> and b.rtn_mrgnamt = #{rtnMrgnamt}</if>
+            <if test="rtnTdramt != null "> and b.rtn_tdramt = #{rtnTdramt}</if>
+            <if test="rtnAgncsvcfee != null "> and b.rtn_agncsvcfee = #{rtnAgncsvcfee}</if>
+            <if test="rtnFrzamt != null "> and b.rtn_frzamt = #{rtnFrzamt}</if>
+            <if test="rtnFineamt != null "> and b.rtn_fineamt = #{rtnFineamt}</if>
+            <if test="rtnTdrdt != null  and rtnTdrdt != ''"> and b.rtn_tdrdt = #{rtnTdrdt}</if>
+            <if test="rtnTdrtm != null  and rtnTdrtm != ''"> and b.rtn_tdrtm = #{rtnTdrtm}</if>
+            <if test="rtnDuetp != null  and rtnDuetp != ''"> and b.rtn_duetp = #{rtnDuetp}</if>
+            <if test="rtnMbrshpno != null  and rtnMbrshpno != ''"> and b.rtn_mbrshpno = #{rtnMbrshpno}</if>
+            <if test="rtnSvcfee != null "> and b.rtn_svcfee = #{rtnSvcfee}</if>
+            <if test="rtnRemark != null  and rtnRemark != ''"> and b.rtn_remark = #{rtnRemark}</if>
         </where>
     </select>
     

+ 51 - 50
ruoyi-modules/hh-mast/src/main/resources/mapper/bank/BankDepositdescrMapper.xml

@@ -60,57 +60,58 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select depositdescid, ppid, trnuid, rqbody, sgtid, sgtno, prjno, pltfmcstno, entpnm, pgno, version, rtn_trnuid, rtn_status, rtn_code, rtn_severity, rtn_message, rtn_rsbody, rtn_rcrdtotnum, rtn_crnpgno, rtn_pgrcrdnum, rtn_totpgnum, rtn_content, rtn_lescstno, rtn_tdrno, rtn_cstno, rtn_prjno, rtn_prjnm, rtn_sgtno, rtn_sgtnm, rtn_sgtst, rtn_mrgnst, rtn_tdracctno, rtn_tdracctnoccycd, rtn_tdracctnm, rtn_tdracctnobnkno, rtn_tdracctnobnknm, rtn_tdrnum, rtn_mrgnamt, rtn_tdramt, rtn_agncsvcfee, rtn_frzamt, rtn_fineamt, rtn_tdrdt, rtn_tdrtm, rtn_duetp, rtn_mbrshpno, rtn_svcfee, rtn_remark, reason from bank_depositdescr
     </sql>
 
-    <select id="selectBankDepositdescrList" parameterType="BankDepositdescr" resultMap="BankDepositdescrResult">
-        <include refid="selectBankDepositdescrVo"/>
+    <select id="selectBankDepositdescrList" parameterType="BankDepositdescr" resultType="com.ruoyi.mast.bank.domain.BankDepositdescr">
+        select b.*,r.rtn_rfndst
+        from bank_depositdescr b left join bank_refund r on (b.sgtid = r.sgtid and b.rtn_tdracctno = r.rtn_tdracctno)
         <where>  
-            <if test="ppid != null "> and ppid = #{ppid}</if>
-            <if test="trnuid != null  and trnuid != ''"> and trnuid = #{trnuid}</if>
-            <if test="rqbody != null  and rqbody != ''"> and rqbody = #{rqbody}</if>
-            <if test="sgtid != null  and sgtid != ''"> and sgtid = #{sgtid}</if>
-            <if test="sgtno != null  and sgtno != ''"> and sgtno = #{sgtno}</if>
-            <if test="prjno != null  and prjno != ''"> and prjno = #{prjno}</if>
-            <if test="pltfmcstno != null  and pltfmcstno != ''"> and pltfmcstno = #{pltfmcstno}</if>
-            <if test="entpnm != null  and entpnm != ''"> and entpnm = #{entpnm}</if>
-            <if test="pgno != null  and pgno != ''"> and pgno = #{pgno}</if>
-            <if test="version != null  and version != ''"> and version = #{version}</if>
-            <if test="rtnTrnuid != null  and rtnTrnuid != ''"> and rtn_trnuid = #{rtnTrnuid}</if>
-            <if test="rtnStatus != null  and rtnStatus != ''"> and rtn_status = #{rtnStatus}</if>
-            <if test="rtnCode != null  and rtnCode != ''"> and rtn_code = #{rtnCode}</if>
-            <if test="rtnSeverity != null  and rtnSeverity != ''"> and rtn_severity = #{rtnSeverity}</if>
-            <if test="rtnMessage != null  and rtnMessage != ''"> and rtn_message = #{rtnMessage}</if>
-            <if test="rtnRsbody != null  and rtnRsbody != ''"> and rtn_rsbody = #{rtnRsbody}</if>
-            <if test="rtnRcrdtotnum != null  and rtnRcrdtotnum != ''"> and rtn_rcrdtotnum = #{rtnRcrdtotnum}</if>
-            <if test="rtnCrnpgno != null  and rtnCrnpgno != ''"> and rtn_crnpgno = #{rtnCrnpgno}</if>
-            <if test="rtnPgrcrdnum != null  and rtnPgrcrdnum != ''"> and rtn_pgrcrdnum = #{rtnPgrcrdnum}</if>
-            <if test="rtnTotpgnum != null  and rtnTotpgnum != ''"> and rtn_totpgnum = #{rtnTotpgnum}</if>
-            <if test="rtnContent != null  and rtnContent != ''"> and rtn_content = #{rtnContent}</if>
-            <if test="rtnLescstno != null  and rtnLescstno != ''"> and rtn_lescstno = #{rtnLescstno}</if>
-            <if test="rtnTdrno != null  and rtnTdrno != ''"> and rtn_tdrno = #{rtnTdrno}</if>
-            <if test="rtnCstno != null  and rtnCstno != ''"> and rtn_cstno = #{rtnCstno}</if>
-            <if test="rtnPrjno != null  and rtnPrjno != ''"> and rtn_prjno = #{rtnPrjno}</if>
-            <if test="rtnPrjnm != null  and rtnPrjnm != ''"> and rtn_prjnm = #{rtnPrjnm}</if>
-            <if test="rtnSgtno != null  and rtnSgtno != ''"> and rtn_sgtno = #{rtnSgtno}</if>
-            <if test="rtnSgtnm != null  and rtnSgtnm != ''"> and rtn_sgtnm = #{rtnSgtnm}</if>
-            <if test="rtnSgtst != null  and rtnSgtst != ''"> and rtn_sgtst = #{rtnSgtst}</if>
-            <if test="rtnMrgnst != null  and rtnMrgnst != ''"> and rtn_mrgnst = #{rtnMrgnst}</if>
-            <if test="rtnTdracctno != null  and rtnTdracctno != ''"> and rtn_tdracctno = #{rtnTdracctno}</if>
-            <if test="rtnTdracctnoccycd != null  and rtnTdracctnoccycd != ''"> and rtn_tdracctnoccycd = #{rtnTdracctnoccycd}</if>
-            <if test="rtnTdracctnm != null  and rtnTdracctnm != ''"> and rtn_tdracctnm = #{rtnTdracctnm}</if>
-            <if test="rtnTdracctnobnkno != null  and rtnTdracctnobnkno != ''"> and rtn_tdracctnobnkno = #{rtnTdracctnobnkno}</if>
-            <if test="rtnTdracctnobnknm != null  and rtnTdracctnobnknm != ''"> and rtn_tdracctnobnknm = #{rtnTdracctnobnknm}</if>
-            <if test="rtnTdrnum != null  and rtnTdrnum != ''"> and rtn_tdrnum = #{rtnTdrnum}</if>
-            <if test="rtnMrgnamt != null "> and rtn_mrgnamt = #{rtnMrgnamt}</if>
-            <if test="rtnTdramt != null "> and rtn_tdramt = #{rtnTdramt}</if>
-            <if test="rtnAgncsvcfee != null "> and rtn_agncsvcfee = #{rtnAgncsvcfee}</if>
-            <if test="rtnFrzamt != null "> and rtn_frzamt = #{rtnFrzamt}</if>
-            <if test="rtnFineamt != null "> and rtn_fineamt = #{rtnFineamt}</if>
-            <if test="rtnTdrdt != null  and rtnTdrdt != ''"> and rtn_tdrdt = #{rtnTdrdt}</if>
-            <if test="rtnTdrtm != null  and rtnTdrtm != ''"> and rtn_tdrtm = #{rtnTdrtm}</if>
-            <if test="rtnDuetp != null  and rtnDuetp != ''"> and rtn_duetp = #{rtnDuetp}</if>
-            <if test="rtnMbrshpno != null  and rtnMbrshpno != ''"> and rtn_mbrshpno = #{rtnMbrshpno}</if>
-            <if test="rtnSvcfee != null "> and rtn_svcfee = #{rtnSvcfee}</if>
-            <if test="rtnRemark != null  and rtnRemark != ''"> and rtn_remark = #{rtnRemark}</if>
-            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
+            <if test="ppid != null "> and b.ppid = #{ppid}</if>
+            <if test="trnuid != null  and trnuid != ''"> and b.trnuid like concat('%', #{trnuid}, '%')</if>
+            <if test="rqbody != null  and rqbody != ''"> and b.rqbody = #{rqbody}</if>
+            <if test="sgtid != null  and sgtid != ''"> and b.sgtid = #{sgtid}</if>
+            <if test="sgtno != null  and sgtno != ''"> and b.sgtno = #{sgtno}</if>
+            <if test="prjno != null  and prjno != ''"> and b.prjno = #{prjno}</if>
+            <if test="pltfmcstno != null  and pltfmcstno != ''"> and b.pltfmcstno = #{pltfmcstno}</if>
+            <if test="entpnm != null  and entpnm != ''"> and b.entpnm = #{entpnm}</if>
+            <if test="pgno != null  and pgno != ''"> and b.pgno = #{pgno}</if>
+            <if test="version != null  and version != ''"> and b.version = #{version}</if>
+            <if test="rtnTrnuid != null  and rtnTrnuid != ''"> and b.rtn_trnuid = #{rtnTrnuid}</if>
+            <if test="rtnStatus != null  and rtnStatus != ''"> and b.rtn_status = #{rtnStatus}</if>
+            <if test="rtnCode != null  and rtnCode != ''"> and b.rtn_code = #{rtnCode}</if>
+            <if test="rtnSeverity != null  and rtnSeverity != ''"> and b.rtn_severity = #{rtnSeverity}</if>
+            <if test="rtnMessage != null  and rtnMessage != ''"> and b.rtn_message = #{rtnMessage}</if>
+            <if test="rtnRsbody != null  and rtnRsbody != ''"> and b.rtn_rsbody = #{rtnRsbody}</if>
+            <if test="rtnRcrdtotnum != null  and rtnRcrdtotnum != ''"> and b.rtn_rcrdtotnum = #{rtnRcrdtotnum}</if>
+            <if test="rtnCrnpgno != null  and rtnCrnpgno != ''"> and b.rtn_crnpgno = #{rtnCrnpgno}</if>
+            <if test="rtnPgrcrdnum != null  and rtnPgrcrdnum != ''"> and b.rtn_pgrcrdnum = #{rtnPgrcrdnum}</if>
+            <if test="rtnTotpgnum != null  and rtnTotpgnum != ''"> and b.rtn_totpgnum = #{rtnTotpgnum}</if>
+            <if test="rtnContent != null  and rtnContent != ''"> and b.rtn_content = #{rtnContent}</if>
+            <if test="rtnLescstno != null  and rtnLescstno != ''"> and b.rtn_lescstno = #{rtnLescstno}</if>
+            <if test="rtnTdrno != null  and rtnTdrno != ''"> and b.rtn_tdrno = #{rtnTdrno}</if>
+            <if test="rtnCstno != null  and rtnCstno != ''"> and b.rtn_cstno = #{rtnCstno}</if>
+            <if test="rtnPrjno != null  and rtnPrjno != ''"> and b.rtn_prjno = #{rtnPrjno}</if>
+            <if test="rtnPrjnm != null  and rtnPrjnm != ''"> and b.rtn_prjnm = #{rtnPrjnm}</if>
+            <if test="rtnSgtno != null  and rtnSgtno != ''"> and b.rtn_sgtno = #{rtnSgtno}</if>
+            <if test="rtnSgtnm != null  and rtnSgtnm != ''"> and b.rtn_sgtnm = #{rtnSgtnm}</if>
+            <if test="rtnSgtst != null  and rtnSgtst != ''"> and b.rtn_sgtst = #{rtnSgtst}</if>
+            <if test="rtnMrgnst != null  and rtnMrgnst != ''"> and b.rtn_mrgnst = #{rtnMrgnst}</if>
+            <if test="rtnTdracctno != null  and rtnTdracctno != ''"> and b.rtn_tdracctno like concat('%', #{rtnTdracctno}, '%')</if>
+            <if test="rtnTdracctnoccycd != null  and rtnTdracctnoccycd != ''"> and b.rtn_tdracctnoccycd = #{rtnTdracctnoccycd}</if>
+            <if test="rtnTdracctnm != null  and rtnTdracctnm != ''"> and b.rtn_tdracctnm like concat('%', #{rtnTdracctnm}, '%')</if>
+            <if test="rtnTdracctnobnkno != null  and rtnTdracctnobnkno != ''"> and b.rtn_tdracctnobnkno = #{rtnTdracctnobnkno}</if>
+            <if test="rtnTdracctnobnknm != null  and rtnTdracctnobnknm != ''"> and b.rtn_tdracctnobnknm like concat('%', #{rtnTdracctnobnknm}, '%')</if>
+            <if test="rtnTdrnum != null  and rtnTdrnum != ''"> and b.rtn_tdrnum = #{rtnTdrnum}</if>
+            <if test="rtnMrgnamt != null "> and b.rtn_mrgnamt = #{rtnMrgnamt}</if>
+            <if test="rtnTdramt != null "> and b.rtn_tdramt = #{rtnTdramt}</if>
+            <if test="rtnAgncsvcfee != null "> and b.rtn_agncsvcfee = #{rtnAgncsvcfee}</if>
+            <if test="rtnFrzamt != null "> and b.rtn_frzamt = #{rtnFrzamt}</if>
+            <if test="rtnFineamt != null "> and b.rtn_fineamt = #{rtnFineamt}</if>
+            <if test="rtnTdrdt != null  and rtnTdrdt != ''"> and b.rtn_tdrdt = #{rtnTdrdt}</if>
+            <if test="rtnTdrtm != null  and rtnTdrtm != ''"> and b.rtn_tdrtm = #{rtnTdrtm}</if>
+            <if test="rtnDuetp != null  and rtnDuetp != ''"> and b.rtn_duetp = #{rtnDuetp}</if>
+            <if test="rtnMbrshpno != null  and rtnMbrshpno != ''"> and b.rtn_mbrshpno = #{rtnMbrshpno}</if>
+            <if test="rtnSvcfee != null "> and b.rtn_svcfee = #{rtnSvcfee}</if>
+            <if test="rtnRemark != null  and rtnRemark != ''"> and b.rtn_remark = #{rtnRemark}</if>
+            <if test="reason != null  and reason != ''"> and b.reason = #{reason}</if>
         </where>
     </select>
     

+ 34 - 32
ruoyi-modules/hh-mast/src/main/resources/mapper/bank/BankUncleardepositMapper.xml

@@ -42,39 +42,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select uncleardepositid, ppid, trnuid, rqbody, acctno, ccycd, begdt, enddt, rtn_trnuid, rtn_status, rtn_code, rtn_severity, rtn_message, rtn_rsbody, rtn_rcrdtotnum, rtn_crnpgno, rtn_pgrcrdnum, rtn_totpgnum, rtn_content, rtn_tradedate, rtn_serialno, rtn_assetno, rtn_assetname, rtn_oppassetno, rtn_oppassetname, rtn_oppbankno, rtn_oppbankname, rtn_amt, rtn_selfbal, rtn_summary, rtn_adjustreason from bank_uncleardeposit
     </sql>
 
-    <select id="selectBankUncleardepositList" parameterType="BankUncleardeposit" resultMap="BankUncleardepositResult">
-        <include refid="selectBankUncleardepositVo"/>
+    <select id="selectBankUncleardepositList" parameterType="BankUncleardeposit" resultType="com.ruoyi.mast.bank.domain.BankUncleardeposit">
+        select u.uncleardepositid, u.ppid, u.trnuid, u.rqbody, u.acctno, u.ccycd, u.begdt, u.enddt, u.rtn_trnuid, u.rtn_status, u.rtn_code, u.rtn_severity, u.rtn_message, u.rtn_rsbody, u.rtn_rcrdtotnum, u.rtn_crnpgno, u.rtn_pgrcrdnum, u.rtn_totpgnum, u.rtn_content, u.rtn_tradedate, u.rtn_serialno, u.rtn_assetno, u.rtn_assetname, u.rtn_oppassetno, u.rtn_oppassetname, u.rtn_oppbankno, u.rtn_oppbankname, u.rtn_amt, u.rtn_selfbal, u.rtn_summary,
+        u.rtn_adjustreason,r.rtn_xferprccode
+        from bank_uncleardeposit u left join bank_uncleardepositrfnd r on u.rtn_serialno = r.serialno
         <where>  
-            <if test="ppid != null "> and ppid = #{ppid}</if>
-            <if test="trnuid != null  and trnuid != ''"> and trnuid = #{trnuid}</if>
-            <if test="rqbody != null  and rqbody != ''"> and rqbody = #{rqbody}</if>
-            <if test="acctno != null  and acctno != ''"> and acctno = #{acctno}</if>
-            <if test="ccycd != null  and ccycd != ''"> and ccycd = #{ccycd}</if>
-            <if test="begdt != null  and begdt != ''"> and begdt = #{begdt}</if>
-            <if test="enddt != null  and enddt != ''"> and enddt = #{enddt}</if>
-            <if test="rtnTrnuid != null  and rtnTrnuid != ''"> and rtn_trnuid = #{rtnTrnuid}</if>
-            <if test="rtnStatus != null  and rtnStatus != ''"> and rtn_status = #{rtnStatus}</if>
-            <if test="rtnCode != null  and rtnCode != ''"> and rtn_code = #{rtnCode}</if>
-            <if test="rtnSeverity != null  and rtnSeverity != ''"> and rtn_severity = #{rtnSeverity}</if>
-            <if test="rtnMessage != null  and rtnMessage != ''"> and rtn_message = #{rtnMessage}</if>
-            <if test="rtnRsbody != null  and rtnRsbody != ''"> and rtn_rsbody = #{rtnRsbody}</if>
-            <if test="rtnRcrdtotnum != null  and rtnRcrdtotnum != ''"> and rtn_rcrdtotnum = #{rtnRcrdtotnum}</if>
-            <if test="rtnCrnpgno != null  and rtnCrnpgno != ''"> and rtn_crnpgno = #{rtnCrnpgno}</if>
-            <if test="rtnPgrcrdnum != null  and rtnPgrcrdnum != ''"> and rtn_pgrcrdnum = #{rtnPgrcrdnum}</if>
-            <if test="rtnTotpgnum != null  and rtnTotpgnum != ''"> and rtn_totpgnum = #{rtnTotpgnum}</if>
-            <if test="rtnContent != null  and rtnContent != ''"> and rtn_content = #{rtnContent}</if>
-            <if test="rtnTradedate != null  and rtnTradedate != ''"> and rtn_tradedate = #{rtnTradedate}</if>
-            <if test="rtnSerialno != null  and rtnSerialno != ''"> and rtn_serialno = #{rtnSerialno}</if>
-            <if test="rtnAssetno != null  and rtnAssetno != ''"> and rtn_assetno = #{rtnAssetno}</if>
-            <if test="rtnAssetname != null  and rtnAssetname != ''"> and rtn_assetname like concat('%', #{rtnAssetname}, '%')</if>
-            <if test="rtnOppassetno != null  and rtnOppassetno != ''"> and rtn_oppassetno = #{rtnOppassetno}</if>
-            <if test="rtnOppassetname != null  and rtnOppassetname != ''"> and rtn_oppassetname like concat('%', #{rtnOppassetname}, '%')</if>
-            <if test="rtnOppbankno != null  and rtnOppbankno != ''"> and rtn_oppbankno = #{rtnOppbankno}</if>
-            <if test="rtnOppbankname != null  and rtnOppbankname != ''"> and rtn_oppbankname like concat('%', #{rtnOppbankname}, '%')</if>
-            <if test="rtnAmt != null "> and rtn_amt = #{rtnAmt}</if>
-            <if test="rtnSelfbal != null "> and rtn_selfbal = #{rtnSelfbal}</if>
-            <if test="rtnSummary != null  and rtnSummary != ''"> and rtn_summary = #{rtnSummary}</if>
-            <if test="rtnAdjustreason != null  and rtnAdjustreason != ''"> and rtn_adjustreason = #{rtnAdjustreason}</if>
+            <if test="ppid != null "> and u.ppid = #{ppid}</if>
+            <if test="trnuid != null  and trnuid != ''"> and u.trnuid like concat('%', #{trnuid}, '%')</if>
+            <if test="rqbody != null  and rqbody != ''"> and u.rqbody = #{rqbody}</if>
+            <if test="acctno != null  and acctno != ''"> and u.acctno = #{acctno}</if>
+            <if test="ccycd != null  and ccycd != ''"> and u.ccycd = #{ccycd}</if>
+            <if test="begdt != null  and begdt != ''"> and u.begdt = #{begdt}</if>
+            <if test="enddt != null  and enddt != ''"> and u.enddt = #{enddt}</if>
+            <if test="rtnTrnuid != null  and rtnTrnuid != ''"> and u.rtn_trnuid = #{rtnTrnuid}</if>
+            <if test="rtnStatus != null  and rtnStatus != ''"> and u.rtn_status = #{rtnStatus}</if>
+            <if test="rtnCode != null  and rtnCode != ''"> and u.rtn_code = #{rtnCode}</if>
+            <if test="rtnSeverity != null  and rtnSeverity != ''"> and u.rtn_severity = #{rtnSeverity}</if>
+            <if test="rtnMessage != null  and rtnMessage != ''"> and u.rtn_message = #{rtnMessage}</if>
+            <if test="rtnRsbody != null  and rtnRsbody != ''"> and u.rtn_rsbody = #{rtnRsbody}</if>
+            <if test="rtnRcrdtotnum != null  and rtnRcrdtotnum != ''"> and u.rtn_rcrdtotnum = #{rtnRcrdtotnum}</if>
+            <if test="rtnCrnpgno != null  and rtnCrnpgno != ''"> and u.rtn_crnpgno = #{rtnCrnpgno}</if>
+            <if test="rtnPgrcrdnum != null  and rtnPgrcrdnum != ''"> and u.rtn_pgrcrdnum = #{rtnPgrcrdnum}</if>
+            <if test="rtnTotpgnum != null  and rtnTotpgnum != ''"> and u.rtn_totpgnum = #{rtnTotpgnum}</if>
+            <if test="rtnContent != null  and rtnContent != ''"> and u.rtn_content = #{rtnContent}</if>
+            <if test="rtnTradedate != null  and rtnTradedate != ''"> and u.rtn_tradedate = #{rtnTradedate}</if>
+            <if test="rtnSerialno != null  and rtnSerialno != ''"> and u.rtn_serialno = #{rtnSerialno}</if>
+            <if test="rtnAssetno != null  and rtnAssetno != ''"> and u.rtn_assetno = #{rtnAssetno}</if>
+            <if test="rtnAssetname != null  and rtnAssetname != ''"> and u.rtn_assetname like concat('%', #{rtnAssetname}, '%')</if>
+            <if test="rtnOppassetno != null  and rtnOppassetno != ''"> and u.rtn_oppassetno like concat('%', #{rtnOppassetno}, '%')</if>
+            <if test="rtnOppassetname != null  and rtnOppassetname != ''"> and u.rtn_oppassetname like concat('%', #{rtnOppassetname}, '%')</if>
+            <if test="rtnOppbankno != null  and rtnOppbankno != ''"> and u.rtn_oppbankno like concat('%', #{rtnOppbankno}, '%') </if>
+            <if test="rtnOppbankname != null  and rtnOppbankname != ''"> and u.rtn_oppbankname like concat('%', #{rtnOppbankname}, '%')</if>
+            <if test="rtnAmt != null "> and u.rtn_amt = #{rtnAmt}</if>
+            <if test="rtnSelfbal != null "> and u.rtn_selfbal = #{rtnSelfbal}</if>
+            <if test="rtnSummary != null  and rtnSummary != ''"> and u.rtn_summary = #{rtnSummary}</if>
+            <if test="rtnAdjustreason != null  and rtnAdjustreason != ''"> and u.rtn_adjustreason = #{rtnAdjustreason}</if>
         </where>
     </select>