Commit b930c631 authored by litianzhuang's avatar litianzhuang

fix:8.30 主体编号不带字母,Bug修复

parent d066afab
...@@ -46,7 +46,7 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic ...@@ -46,7 +46,7 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic
stopWatch.start(); stopWatch.start();
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
String lastMonth = DateUtils.getYearAndMonthLast(); String lastMonth = DateUtils.getYearAndMonthLast();
// String lastMonth = "2024-01"; // String lastMonth = "2024-07";
ParmDataModel parmDataModel = new ParmDataModel(); ParmDataModel parmDataModel = new ParmDataModel();
parmDataModel.setPeriod(lastMonth.replaceAll("-", "")); parmDataModel.setPeriod(lastMonth.replaceAll("-", ""));
parmDataModel.setYear(lastMonth.substring(0, 4)); parmDataModel.setYear(lastMonth.substring(0, 4));
...@@ -58,7 +58,7 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic ...@@ -58,7 +58,7 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic
List<String> icpCodeList = liabilitiesSlaveMapper.getCodeList(); List<String> icpCodeList = liabilitiesSlaveMapper.getCodeList();
List<String> stringList = new LinkedList<>(); List<String> stringList = new LinkedList<>();
for (String str : icpCodeList) { for (String str : icpCodeList) {
str = str.replaceAll("[a-zA-Z]", ""); // str = str.replaceAll("[a-zA-Z]", "");
parmDataModel.setEntity(str); parmDataModel.setEntity(str);
LiabilitiesModel liabilitiesModel = liabilitiesDataSyncMapper.getLiabilities(parmDataModel); LiabilitiesModel liabilitiesModel = liabilitiesDataSyncMapper.getLiabilities(parmDataModel);
if (ObjectUtils.isEmpty(liabilitiesModel)) { if (ObjectUtils.isEmpty(liabilitiesModel)) {
......
...@@ -47,7 +47,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService { ...@@ -47,7 +47,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService {
stopWatch.start(); stopWatch.start();
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
String lastMonth = DateUtils.getYearAndMonthLast(); String lastMonth = DateUtils.getYearAndMonthLast();
// String lastMonth = "2024-06"; // String lastMonth = "2024-07";
ParmDataModel parmDataModel = new ParmDataModel(); ParmDataModel parmDataModel = new ParmDataModel();
parmDataModel.setPeriod(lastMonth.replaceAll("-", "")); parmDataModel.setPeriod(lastMonth.replaceAll("-", ""));
parmDataModel.setYear(lastMonth.substring(0, 4)); parmDataModel.setYear(lastMonth.substring(0, 4));
...@@ -59,7 +59,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService { ...@@ -59,7 +59,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService {
List<String> icpCodeList = profitSlaveMapper.getCodeList(); List<String> icpCodeList = profitSlaveMapper.getCodeList();
List<String> stringList = new LinkedList<>(); List<String> stringList = new LinkedList<>();
for (String str : icpCodeList) { for (String str : icpCodeList) {
str = str.replaceAll("[a-zA-Z]", ""); // str = str.replaceAll("[a-zA-Z]", "");
parmDataModel.setEntity(str); parmDataModel.setEntity(str);
ProfitModel profitModel = profitDataSyncMapper.getProfit(parmDataModel); ProfitModel profitModel = profitDataSyncMapper.getProfit(parmDataModel);
if (ObjectUtils.isEmpty(profitModel)) { if (ObjectUtils.isEmpty(profitModel)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment