Commit 7a604083 authored by 位宇华's avatar 位宇华

指标数据添加代码提交

parent cfae0c8b
......@@ -45,8 +45,8 @@ public class LiabilitiesDataSyncServiceImpl implements LiabilitiesDataSyncServic
StopWatch stopWatch = new StopWatch();
stopWatch.start();
JSONObject jsonObject = new JSONObject();
String lastMonth = DateUtils.getYearAndMonthLast();
// String lastMonth = "2024-07";
//String lastMonth = DateUtils.getYearAndMonthLast();
String lastMonth = "2024-08";
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)) {
......
......@@ -24,21 +24,20 @@
SELECT
pk_obj
FROM
epmp_br.bp_task_2024
epmp_br.bp_task_${year}
WHERE
(
pk_sheet = '1763000151583490056'
AND YEAR = #{year}
AND MONTH = #{month}
AND entity = #{entity}
AND entity =#{entity}
AND mvtype = 'isEmpty'
AND version = 'isEmpty'
AND busisystem = 'BR'
AND pk_paradims = ''
AND ytenant_id = 'dmrn1j0i'
))
) order by ts desc limit 1)
AND a0.ytenant_id = 'dmrn1j0i'
AND a0.systemcode = 'BR'
</select>
</mapper>
\ No newline at end of file
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