From a672c71e5a14d2c50c5f8573e66a3f18b083af58 Mon Sep 17 00:00:00 2001 From: sy Date: Wed, 6 Sep 2023 17:39:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E9=85=AC=E7=B3=BB=E7=BB=9F-=E7=A6=8F?= =?UTF-8?q?=E5=88=A9=E6=A1=A3=E6=A1=88=EF=BC=8C=E5=AF=BC=E5=85=A5=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E3=80=81=E6=9C=80=E5=90=8E=E7=BC=B4=E7=BA=B3=E6=9C=88?= =?UTF-8?q?=E5=8F=96=E5=80=BC=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../salary/service/impl/SISchemeServiceImpl.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/engine/salary/service/impl/SISchemeServiceImpl.java b/src/com/engine/salary/service/impl/SISchemeServiceImpl.java index 94f39ba08..81999f2db 100644 --- a/src/com/engine/salary/service/impl/SISchemeServiceImpl.java +++ b/src/com/engine/salary/service/impl/SISchemeServiceImpl.java @@ -1127,13 +1127,13 @@ public class SISchemeServiceImpl extends Service implements SISchemeService { insuranceArchivesSocialSchemePO.setSocialSchemeId(socialSchemeId); } String socialStartDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91319, "社保起始缴纳月")).get(SalaryI18nUtil.getI18nLabel(91319, "社保起始缴纳月")); - if (StringUtils.isNotBlank(socialStartDate) && socialStartDate.length() > 7) { + if (StringUtils.isNotBlank(socialStartDate) && socialStartDate.length() >= 7) { socialStartDate = socialStartDate.substring(0, 7); insuranceArchivesSocialSchemePO.setSocialStartTime(socialStartDate); } String socialEndDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91320, "社保最后缴纳月")).get(SalaryI18nUtil.getI18nLabel(91320, "社保最后缴纳月")); - if (StringUtils.isNotBlank(socialEndDate) && socialEndDate.length() > 7) { + if (StringUtils.isNotBlank(socialEndDate) && socialEndDate.length() >= 7) { socialEndDate = socialEndDate.substring(0, 7); insuranceArchivesSocialSchemePO.setSocialEndTime(socialEndDate); } @@ -1215,13 +1215,13 @@ public class SISchemeServiceImpl extends Service implements SISchemeService { insuranceArchivesFundSchemePO.setSupplementFundAccount(supplementFundAccount); } String fundStartDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91483, "公积金起始缴纳月")).get(SalaryI18nUtil.getI18nLabel(91483, "公积金起始缴纳月")); - if (StringUtils.isNotBlank(fundStartDate) && fundStartDate.length() > 7) { + if (StringUtils.isNotBlank(fundStartDate) && fundStartDate.length() >= 7) { fundStartDate = fundStartDate.substring(0, 7); insuranceArchivesFundSchemePO.setFundStartTime(fundStartDate); } String fundEndDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91484, "公积金最后缴纳月")).get(SalaryI18nUtil.getI18nLabel(91484, "公积金最后缴纳月")); - if (StringUtils.isNotBlank(fundEndDate) && fundEndDate.length() > 7) { + if (StringUtils.isNotBlank(fundEndDate) && fundEndDate.length() >= 7) { fundEndDate = fundEndDate.substring(0, 7); insuranceArchivesFundSchemePO.setFundEndTime(fundEndDate); } @@ -1291,13 +1291,13 @@ public class SISchemeServiceImpl extends Service implements SISchemeService { insuranceArchivesOtherSchemePO.setOtherSchemeId(otherSchemeId); } String otherStartDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91490, "其他福利起始缴纳月")).get(SalaryI18nUtil.getI18nLabel(91490, "其他福利起始缴纳月")); - if (StringUtils.isNotBlank(otherStartDate) && otherStartDate.length() > 7) { + if (StringUtils.isNotBlank(otherStartDate) && otherStartDate.length() >= 7) { otherStartDate = otherStartDate.substring(0, 7); insuranceArchivesOtherSchemePO.setOtherStartTime(otherStartDate); } String otherEndDate = (String) findElement(singleAccount, SalaryI18nUtil.getI18nLabel(91494, "其他福利最后缴纳月")).get(SalaryI18nUtil.getI18nLabel(91494, "其他福利最后缴纳月")); - if (StringUtils.isNotBlank(otherEndDate) && otherEndDate.length() > 7) { + if (StringUtils.isNotBlank(otherEndDate) && otherEndDate.length() >= 7) { otherEndDate = otherEndDate.substring(0, 7); insuranceArchivesOtherSchemePO.setOtherEndTime(otherEndDate); }