2 Achegas cdf8e940b1 ... ea0a52d574

Autor SHA1 Mensaxe Data
  ZC ea0a52d574 专家增加注册承诺书字段 hai 1 semana
  ZC e067244b9e 不明保证金退款筛选条件更新 hai 1 semana

+ 10 - 0
ruoyi-modules/hh-basic/src/main/java/com/hh/pms/sae/domain/BsExpert.java

@@ -171,6 +171,8 @@ public class BsExpert extends BaseEntity {
 
     private String jSign;
 
+    private String jCommit;
+
     public BsExperience getExperience() {
         return experience;
     }
@@ -507,6 +509,14 @@ public class BsExpert extends BaseEntity {
         this.jSign = jSign;
     }
 
+    public String getjCommit() {
+        return jCommit;
+    }
+
+    public void setjCommit(String jCommit) {
+        this.jCommit = jCommit;
+    }
+
     @Override
     public String toString() {
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

+ 3 - 1
ruoyi-modules/hh-basic/src/main/resources/mapper/BsExpertMapper.xml

@@ -80,7 +80,8 @@
                j_other,
                user_id,
                j_main,
-               j_sign
+               j_sign,
+               j_commit
         from bs_expert
     </sql>
 
@@ -211,6 +212,7 @@
             <if test="userId != null">user_id = #{userId},</if>
             <if test="jMain != null">j_main = #{jMain},</if>
             <if test="jSign != null">j_sign = #{jSign},</if>
+            <if test="jCommit != null">j_commit = #{jCommit},</if>
         </trim>
         where jid = #{jid}
     </update>

+ 24 - 1
ruoyi-modules/hh-mast/src/main/java/com/ruoyi/mast/bank/controller/BankDepositController.java

@@ -16,6 +16,7 @@ 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 com.sun.org.apache.xpath.internal.operations.Bool;
 import kong.unirest.core.HttpResponse;
 import kong.unirest.core.Unirest;
 import org.apache.poi.hssf.eventusermodel.AbortableHSSFListener;
@@ -75,6 +76,9 @@ public class BankDepositController extends BaseController {
     @Autowired
     private RemoteBidNoticeService remoteBidNoticeService;
 
+    @Autowired
+    private IBankTenderqueryService bankTenderqueryService;
+
     /**
      * 查询查询保证金入账数量列表
      */
@@ -609,6 +613,7 @@ public class BankDepositController extends BaseController {
 
         List<BankUncleardeposit> bankUncleardeposits = bankUncleardepositService.refundBankUnclearInfo(bankUncleardeposit);
         for(BankUncleardeposit item : bankUncleardeposits){
+            Boolean flag = false;
             String company = item.getRtnOppassetname();
             String bankAccount = item.getRtnOppbankno();
             BigDecimal amount = item.getRtnAmt();
@@ -617,8 +622,26 @@ public class BankDepositController extends BaseController {
             bankRefund.setRtnTdracctnm(company);
             bankRefund.setRtnTdracctno(bankAccount);
             bankRefund.setRtnRfndamt(amount);
+
             List<BankRefund> bankRefunds = bankRefundService.selectBankRefundList(bankRefund);
-            if(bankRefunds.size() == 0){
+
+            for(BankRefund refund : bankRefunds){
+                String prjno = refund.getPrjno();
+                String rtnSgtacctno = "";
+
+                BankTenderquery bankTenderquery = new BankTenderquery();
+                bankTenderquery.setPrjno(prjno);
+                List<BankTenderquery> bankTenderqueries = bankTenderqueryService.selectBankTenderqueryList(bankTenderquery);
+                if(bankTenderqueries.size() > 0){
+                    rtnSgtacctno = bankTenderqueries.get(0).getRtnSgtacctno();
+                }
+
+                if(bankUncleardeposit.getRtnAdjustreason().contains(rtnSgtacctno)){
+                    flag = true;
+                }
+            }
+
+            if(bankRefunds.size() == 0 || flag == false){
                 list.add(item);
             }
         }