|
@@ -2053,6 +2053,7 @@ public class ReceiptServiceImpl implements ReceiptService {
|
|
* 【中信银行】您尾号0897的中信卡于03月19日13:37,财付通快捷支付存入人民币11348.45元,当前余额为人民币1000000.00元。
|
|
* 【中信银行】您尾号0897的中信卡于03月19日13:37,财付通快捷支付存入人民币11348.45元,当前余额为人民币1000000.00元。
|
|
* 【中信银行】您尾号0897的中信卡于03月14日16:01,支付宝存入人民币5994.06元,当前余额为人民币1000000.00元。
|
|
* 【中信银行】您尾号0897的中信卡于03月14日16:01,支付宝存入人民币5994.06元,当前余额为人民币1000000.00元。
|
|
* 【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币10000.00元,当前余额为人民币13871.67元。
|
|
* 【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币10000.00元,当前余额为人民币13871.67元。
|
|
|
|
+ * 您的账户2400于07月21日11:13收入人民币1000.79元,余额1000.79元。【华夏银行】
|
|
*/
|
|
*/
|
|
private ResponseJson<ReceiptVo> identifyMessage(String message) throws Exception {
|
|
private ResponseJson<ReceiptVo> identifyMessage(String message) throws Exception {
|
|
if (message.contains("银行")) {
|
|
if (message.contains("银行")) {
|
|
@@ -2079,7 +2080,7 @@ public class ReceiptServiceImpl implements ReceiptService {
|
|
if (message.contains("支付宝")) {
|
|
if (message.contains("支付宝")) {
|
|
receivableDesc += "-支付宝";
|
|
receivableDesc += "-支付宝";
|
|
}
|
|
}
|
|
- } else if (receivableDesc.contains("广发银行") || receivableDesc.contains("建设银行")) {
|
|
|
|
|
|
+ } else if (receivableDesc.contains("广发银行") || receivableDesc.contains("建设银行") || receivableDesc.contains("华夏银行")) {
|
|
// 匹配的第一组数字为银行卡尾号
|
|
// 匹配的第一组数字为银行卡尾号
|
|
Matcher matcherBank = PATTERN_NUMBER.matcher(message);
|
|
Matcher matcherBank = PATTERN_NUMBER.matcher(message);
|
|
if (matcherBank.find()) {
|
|
if (matcherBank.find()) {
|
|
@@ -2123,7 +2124,13 @@ public class ReceiptServiceImpl implements ReceiptService {
|
|
} else if (difference < 0) {
|
|
} else if (difference < 0) {
|
|
time = DateUtils.format(DateUtils.addMonth(DateUtils.parseDate(time), -1), "yyyy-MM-dd HH:mm:ss");
|
|
time = DateUtils.format(DateUtils.addMonth(DateUtils.parseDate(time), -1), "yyyy-MM-dd HH:mm:ss");
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
|
|
+ } else if(Arrays.asList(22).contains(typeId)){
|
|
|
|
+ time = year + "-" + contentTime.get(1) + "-" + contentTime.get(2) + " " + contentTime.get(3);
|
|
|
|
+ int difference = DateUtils.differentDays(time);
|
|
|
|
+ if (difference < 0) {
|
|
|
|
+ time = Integer.parseInt(year) - 1 + "-" + contentTime.get(1) + "-" + contentTime.get(2) + " " + contentTime.get(3);
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
time = year + "-" + contentTime.get(1) + "-" + contentTime.get(2) + " " + contentTime.get(3) + ":" + "00";
|
|
time = year + "-" + contentTime.get(1) + "-" + contentTime.get(2) + " " + contentTime.get(3) + ":" + "00";
|
|
int difference = DateUtils.differentDays(time);
|
|
int difference = DateUtils.differentDays(time);
|
|
if (difference < 0) {
|
|
if (difference < 0) {
|
|
@@ -2189,7 +2196,17 @@ public class ReceiptServiceImpl implements ReceiptService {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 隐藏短信余额
|
|
|
|
|
|
+ * 隐藏短信余额
|
|
|
|
+ *
|
|
|
|
+ * 贵公司尾号7297的账户5月23日15时30分往来款收入人民币1800.00元,余额7055.50元。对方户名:哈尔滨爱丽达医疗美容管理有限公司爱建医疗美容诊所。[建设银行]
|
|
|
|
+ * 【广发银行】尊敬的客户,贵司账号后四位0115 的账户于08日13:55 收入一笔方芳尾数为8067的账户转账1850.00元,手续费0.00元。账户余额:1000000.00元。
|
|
|
|
+ * 【广发银行】您末四位为0115的企业账户于12日16:09收入人民币5000.00元(深圳同城)。账户余额:8907.21元。
|
|
|
|
+ * 【中信银行】贵公司尾号7172的中信账号于03月15日17:25,二代支付存入人民币3132.30元,当前余额为人民币4373.07元。
|
|
|
|
+ * 【中信银行】您尾号0897的中信卡于03月06日11:44,存入人民币2358.00元,当前余额为人民币1000000.00元。
|
|
|
|
+ * 【中信银行】您尾号0897的中信卡于03月19日13:37,财付通快捷支付存入人民币11348.45元,当前余额为人民币1000000.00元。
|
|
|
|
+ * 【中信银行】您尾号0897的中信卡于03月14日16:01,支付宝存入人民币5994.06元,当前余额为人民币1000000.00元。
|
|
|
|
+ * 【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币10000.00元,当前余额为人民币13871.67元。
|
|
|
|
+ * 您的账户2400于07月21日11:13收入人民币1000.79元,余额1000.79元。【华夏银行】
|
|
*/
|
|
*/
|
|
private String hiddenBalance(String message) {
|
|
private String hiddenBalance(String message) {
|
|
message = message.replace(":", ":").trim();
|
|
message = message.replace(":", ":").trim();
|