提交人:csx

提交时间:2025年01月19日
提交内容:推送共享优化
This commit is contained in:
1981897232@qq.com 2026-01-20 16:06:40 +08:00
parent 8464dfb63f
commit 549d9efc28
1 changed files with 3 additions and 3 deletions

View File

@ -314,9 +314,9 @@ public class InterestBearingFromListPlugin extends AbstractReportFormPlugin impl
for (int i = 0; i < children.size(); i++) { for (int i = 0; i < children.size(); i++) {
AbstractReportColumn abstractReportColumn = children.get(i); AbstractReportColumn abstractReportColumn = children.get(i);
String localeValue_zh_cn = abstractReportColumn.getCaption().getLocaleValue_zh_CN(); String localeValue_zh_cn = abstractReportColumn.getCaption().getLocaleValue_zh_CN();
if (localeValue_zh_cn.length() >= 4) { if (localeValue_zh_cn.length() >= 4 && localeValue_zh_cn.substring(0, 4).matches("\\d{4}")) {//前四位是数字
String year= String.valueOf(shkd_stratyear+i); String year= String.valueOf(shkd_stratyear+(i/2));
// "2025" 替换前四个字符 // 年份 替换前四个字符
String newlocaleValue_zh_cn = year + localeValue_zh_cn.substring(4); String newlocaleValue_zh_cn = year + localeValue_zh_cn.substring(4);
LocaleString l = new LocaleString(); LocaleString l = new LocaleString();
l.put("zh_CN",newlocaleValue_zh_cn); l.put("zh_CN",newlocaleValue_zh_cn);