Commit b930c631 authored by litianzhuang's avatar litianzhuang

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

parent d066afab
......@@ -46,7 +46,7 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic
stopWatch.start();
JSONObject jsonObject = new JSONObject();
String lastMonth = DateUtils.getYearAndMonthLast();
// String lastMonth = "2024-01";
// String lastMonth = "2024-07";
ParmDataModel parmDataModel = new ParmDataModel();
parmDataModel.setPeriod(lastMonth.replaceAll("-", ""));
parmDataModel.setYear(lastMonth.substring(0, 4));
......@@ -58,7 +58,7 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic
List<String> icpCodeList = liabilitiesSlaveMapper.getCodeList();
List<String> stringList = new LinkedList<>();
for (String str : icpCodeList) {
str = str.replaceAll("[a-zA-Z]", "");
// str = str.replaceAll("[a-zA-Z]", "");
parmDataModel.setEntity(str);
LiabilitiesModel liabilitiesModel = liabilitiesDataSyncMapper.getLiabilities(parmDataModel);
if (ObjectUtils.isEmpty(liabilitiesModel)) {
......
......@@ -47,7 +47,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService {
stopWatch.start();
JSONObject jsonObject = new JSONObject();
String lastMonth = DateUtils.getYearAndMonthLast();
// String lastMonth = "2024-06";
// String lastMonth = "2024-07";
ParmDataModel parmDataModel = new ParmDataModel();
parmDataModel.setPeriod(lastMonth.replaceAll("-", ""));
parmDataModel.setYear(lastMonth.substring(0, 4));
......@@ -59,7 +59,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService {
List<String> icpCodeList = profitSlaveMapper.getCodeList();
List<String> stringList = new LinkedList<>();
for (String str : icpCodeList) {
str = str.replaceAll("[a-zA-Z]", "");
// str = str.replaceAll("[a-zA-Z]", "");
parmDataModel.setEntity(str);
ProfitModel profitModel = profitDataSyncMapper.getProfit(parmDataModel);
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