From f7e4689349d907559e9054072032039ec1a75c35 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Mon, 8 Jul 2024 16:42:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=A1=E7=94=A8=E5=8D=A1=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8Cbug=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/job/service/impl/InvestJobImpl.java | 4 ++++ .../src/main/resources/mapper/invest/BankCardLendMapper.xml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/job/service/impl/InvestJobImpl.java b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/job/service/impl/InvestJobImpl.java index 3811b8d..0e6bf47 100644 --- a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/job/service/impl/InvestJobImpl.java +++ b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/job/service/impl/InvestJobImpl.java @@ -72,6 +72,10 @@ public class InvestJobImpl implements IInvestJobService Date billDate= new Date(); //遍历数据,获取信用卡账单日及数据 for (BankCardLendVo bankCard : bankCardVoList) { + //如果信用卡额度为0,不需要生成账单信息 + if(bankCard.getCreditLimit()==0){ + continue; + } //0表示当期,1表示下期 String isNextBillDate = bankCard.getIsNextBillDate(); String billDateStr=year+"-"+String.format("%02d", month)+"-"+String.format("%02d", bankCard.getBillDate()); diff --git a/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/BankCardLendMapper.xml b/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/BankCardLendMapper.xml index 5b64bcf..7e31939 100644 --- a/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/BankCardLendMapper.xml +++ b/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/BankCardLendMapper.xml @@ -121,7 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{billDate}, #{payDate}, #{delayPeriod}, - #{creditLimit}, + #{creditLimit}, #{effectiveDate}, #{cvv}, #{createBy}, @@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bill_date = #{billDate}, pay_date = #{payDate}, delay_period = #{delayPeriod}, - credit_limit = #{creditLimit}, + credit_limit = #{creditLimit}, effective_date = #{effectiveDate}, cvv = #{cvv}, create_by = #{createBy},