Commit 8e035516 authored by 位宇华's avatar 位宇华

利润数据同步

parent 27b4a087
...@@ -46,8 +46,8 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService { ...@@ -46,8 +46,8 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService {
StopWatch stopWatch = new StopWatch(); StopWatch stopWatch = new StopWatch();
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-01";
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));
...@@ -77,7 +77,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService { ...@@ -77,7 +77,7 @@ public class ProfitDataSyncServiceImpl implements ProfitDataSyncService {
} }
for (IndexAccountModel indexAccountModel : indexAccountModelList) { for (IndexAccountModel indexAccountModel : indexAccountModelList) {
FreeQueryProfitModel freeQueryProfitModel = new FreeQueryProfitModel(); FreeQueryProfitModel freeQueryProfitModel = new FreeQueryProfitModel();
Field declaredField = profitModel.getClass().getDeclaredField("ZB4"); Field declaredField = profitModel.getClass().getDeclaredField(indexname);
declaredField.setAccessible(true); declaredField.setAccessible(true);
Object o = declaredField.get(profitModel); Object o = declaredField.get(profitModel);
if (o == null) { if (o == null) {
......
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