diff --git a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/StatisticAnalysisImpl.java b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/StatisticAnalysisImpl.java
index cc64b4e..6749912 100644
--- a/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/StatisticAnalysisImpl.java
+++ b/ruoyi-modules/intc-invest/src/main/java/com/ruoyi/invest/service/impl/StatisticAnalysisImpl.java
@@ -1493,7 +1493,7 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
String dayString=dateFormat.format(vo.getCreateTime());
if(staticsTime.equals(dayString)){
actualCreditBillDay+=vo.getAmount();
- details+=vo.getOutAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"刷卡"+vo.getAmount()+";
";
+ details+=vo.getOutAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"在商户【"+vo.getMerchantName()+"】通过POS机【"+vo.getPosName()+"】刷卡消费"+vo.getAmount()+",其中手续费为"+vo.getCommission()+",入账储蓄卡"+vo.getInAccountName()+vo.getActualAmount()+";
";
}
}
AccountsTransferRecordVo analysisVo=new AccountsTransferRecordVo();
@@ -1764,15 +1764,20 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
String dayString=dateFormat.format(vo.getCreateTime());
if(staticsTime.equals(dayString)){
+ String remark="";
+ if(vo.getRemark()!=null&&StringUtils.isNotEmpty(vo.getRemark())){
+ remark+=",备注:"+vo.getRemark();
+ }
if(vo.getDealType().equals("1")){
if(analysisDto.getDataType().equals("5")){
if(vo.getDealCategory().equals("2")){
actualCreditBillDay+=vo.getAmount();
- details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"交易盈利"+vo.getAmount()+";
";
+ details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"交易盈利"+vo.getAmount()+remark+";
";
}
} else {
actualCreditBillDay+=vo.getAmount();
- details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】收入"+vo.getAmount()+";
";
+
+ details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】收入"+vo.getAmount()+remark+";
";
}
}
@@ -1780,11 +1785,11 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
if(analysisDto.getDataType().equals("5")){
if(vo.getDealCategory().equals("2")){
actualCreditBillDay-=vo.getAmount();
- details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"交易亏损"+vo.getAmount()+";
";
+ details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"交易亏损"+vo.getAmount()+remark+";
";
}
} else {
actualCreditBillDay-=vo.getAmount();
- details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】支出"+vo.getAmount()+";
";
+ details+=vo.getAccountName()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】支出"+vo.getAmount()+remark+";
";
}
}
@@ -2051,13 +2056,17 @@ public class StatisticAnalysisImpl implements IStatisticAnalysisService {
String dayString=dateFormat.format(vo.getCreateTime());
if(staticsTime.equals(dayString)){
+ String remark="";
+ if(vo.getRemark()!=null&&StringUtils.isNotEmpty(vo.getRemark())){
+ remark+=",备注:"+vo.getRemark();
+ }
if(vo.getDealType().equals("1")){
- actualCreditBillDay+=vo.getAmount();
- details+=vo.getNameCode()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】收入"+vo.getAmount()+";
";
+ actualCreditBillDay+=vo.getAmount();
+ details+=vo.getNameCode()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】收入"+vo.getAmount()+remark+";
";
}
if(vo.getDealType().equals("2")){
actualCreditBillDay-=vo.getAmount();
- details+=vo.getNameCode()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】支出"+vo.getAmount()+";
";
+ details+=vo.getNameCode()+"于"+dateFormatSecond.format(vo.getCreateTime())+"因交易类别【"+vo.getDealCategoryName()+"】支出"+vo.getAmount()+remark+";
";
}
}
}
diff --git a/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/StatisticAnalysisMapper.xml b/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/StatisticAnalysisMapper.xml
index 9570021..6e02334 100644
--- a/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/StatisticAnalysisMapper.xml
+++ b/ruoyi-modules/intc-invest/src/main/resources/mapper/invest/StatisticAnalysisMapper.xml
@@ -82,6 +82,7 @@
atr.create_time ,
atr.pos_id as account_id ,
atr.create_by,
+ atr.remark,
p."name" as account_name ,
p.code
from
@@ -103,6 +104,7 @@
ihd.repayment_date as create_time,
ihd.bank_card_lend_id as account_id ,
ihd.create_by,
+ ihd.remark,
a."name" as account_name ,
a.code
from
@@ -120,6 +122,7 @@
adr.create_time ,
adr.account_id ,
adr.create_by,
+ adr.remark,
a."name" as account_name ,
a.code
from
@@ -128,9 +131,11 @@
a.id = adr.account_id
where
adr.del_flag = '0'
- and adr.deal_category = '1'
+ and (
+ adr.deal_category = '1'
or adr.deal_category = '2'
or adr.deal_category = '11'
+ )
) a
1=1