a.ID, a.EMP_ID, a.EMP_NO, a.EMP_NAME, a.EMP_IDCARD, a.SOCIAL_ID, a.SETTLE_DOMAIN_ID, a.UNIT_ID, a.PROVIDENT_ID, a.UNIT_PENSION_FEE, a.UNIT_MEDICAL_FEE, a.UNIT_UNEMPLOYMENT_FEE, a.UNIT_WORK_INJURY_FEE, a.UNIT_BIRTH_FEE, a.UNIT_BITAILMENT_FEE, a.PERSONAL_PENSION_FEE, a.PERSONAL_MEDICAL_FEE, a.PERSONAL_UNEMPLOYMENT_FEE, a.PERSONAL_BIGAILMENT_FEE, a.SOCIAL_PAY_MONTH, a.SOCIAL_CREATE_MONTH, a.PROVIDENT_PAY_MONTH, a.PROVIDENT_CREATE_MONTH, a.UNIT_SOCIAL_SUM, a.UNIT_FUND_SUM, a.PERSONAL_SOCIAL_SUM, a.PERSONAL_FUND_SUM, a.SUM_ALL, a.FUND_PROVINCE, a.FUND_CITY, a.FUND_TOWN, a.SOCIAL_PROVINCE, a.SOCIAL_CITY, a.SOCIAL_TOWN, a.UNIT_PENSION_BASE, a.UNIT_MEDICAL_BASE, a.UNIT_UNEMPLOYMENT_BASE, a.UNIT_INJURY_BASE, a.UNIT_BIRTH_BASE, a.UNIT_BIGAILMENT_BASE, a.PERSONAL_PENSION_BASE, a.PERSONAL_MEDICAL_BASE, a.PERSONAL_UNEMPLOYMENT_BASE, a.PERSONAL_BIGAILMENT_BASE, a.UNIT_PERSION_PRO, a.UNIT_MEDICAL_PRO, a.UNIT_UNEMPLOYMENT_PRO, a.UNIT_INJURY_PRO, a.UNIT_BIRTH_PRO, a.UNIT_BIGAILMENT_PRO, a.PERSONAL_PERSION_PRO, a.PERSONAL_MEDICAL_PRO, a.PERSONAL_UNEMPLOYMENT_PRO, a.PERSONAL_BIGAILMENT_PRO, a.UNIT_FUND_BASE, a.PERSONAL_FUND_BASE, a.UNIT_FUND_PROP, a.PERSONAL_FUND_PROP, a.REMARK, a.PROJECT_ID, a.UNIT_NAME, a.DEPT_NAME, a.DEPT_NO, a.EMP_NATRUE, a.UNIT_INTEREST_FEE, a.PERSONAL_INTEREST_FEE, a.SOCIAL_HOUSEHOLD, a.SOCIAL_HOUSEHOLD_NAME, a.PROVIDENT_HOUSEHOLD, a.PROVIDENT_HOUSEHOLD_NAME, a.DATA_PUSH, a.DATA_TYPE, a.DIFF_TYPE, a.CREATE_BY, a.CREATE_NAME, a.CREATE_TIME, a.UPDATE_BY, a.SALARY_SOCIAL_FLAG, a.SALARY_FUND_FLAG, a.UPDATE_TIME AND a.ID in #{idStr} AND a.ID = #{tForecastLibrary.id} AND a.EMP_ID = #{tForecastLibrary.empId} AND a.EMP_NO = #{tForecastLibrary.empNo} AND a.EMP_NAME = #{tForecastLibrary.empName} AND a.EMP_IDCARD = #{tForecastLibrary.empIdcard} AND a.SOCIAL_ID = #{tForecastLibrary.socialId} AND a.SETTLE_DOMAIN_ID = #{tForecastLibrary.settleDomainId} AND a.UNIT_ID = #{tForecastLibrary.unitId} AND a.PROVIDENT_ID = #{tForecastLibrary.providentId} AND a.UNIT_PENSION_FEE = #{tForecastLibrary.unitPensionFee} AND a.UNIT_MEDICAL_FEE = #{tForecastLibrary.unitMedicalFee} AND a.UNIT_UNEMPLOYMENT_FEE = #{tForecastLibrary.unitUnemploymentFee} AND a.UNIT_WORK_INJURY_FEE = #{tForecastLibrary.unitWorkInjuryFee} AND a.UNIT_BIRTH_FEE = #{tForecastLibrary.unitBirthFee} AND a.UNIT_BITAILMENT_FEE = #{tForecastLibrary.unitBitailmentFee} AND a.PERSONAL_PENSION_FEE = #{tForecastLibrary.personalPensionFee} AND a.PERSONAL_MEDICAL_FEE = #{tForecastLibrary.personalMedicalFee} AND a.PERSONAL_UNEMPLOYMENT_FEE = #{tForecastLibrary.personalUnemploymentFee} AND a.PERSONAL_BIGAILMENT_FEE = #{tForecastLibrary.personalBigailmentFee} AND a.SOCIAL_PAY_MONTH = #{tForecastLibrary.socialPayMonth} AND a.SOCIAL_CREATE_MONTH = #{tForecastLibrary.socialCreateMonth} AND a.PROVIDENT_PAY_MONTH = #{tForecastLibrary.providentPayMonth} AND a.PROVIDENT_CREATE_MONTH = #{tForecastLibrary.providentCreateMonth} AND a.UNIT_SOCIAL_SUM = #{tForecastLibrary.unitSocialSum} AND a.UNIT_FUND_SUM = #{tForecastLibrary.unitFundSum} AND a.PERSONAL_SOCIAL_SUM = #{tForecastLibrary.personalSocialSum} AND a.PERSONAL_FUND_SUM = #{tForecastLibrary.personalFundSum} AND a.FUND_PROVINCE = #{tForecastLibrary.fundProvince} AND a.FUND_CITY = #{tForecastLibrary.fundCity} AND a.FUND_TOWN = #{tForecastLibrary.fundTown} AND a.SOCIAL_PROVINCE = #{tForecastLibrary.socialProvince} AND a.SOCIAL_CITY = #{tForecastLibrary.socialCity} AND a.SOCIAL_TOWN = #{tForecastLibrary.socialTown} AND a.UNIT_PENSION_BASE = #{tForecastLibrary.unitPensionBase} AND a.UNIT_MEDICAL_BASE = #{tForecastLibrary.unitMedicalBase} AND a.UNIT_UNEMPLOYMENT_BASE = #{tForecastLibrary.unitUnemploymentBase} AND a.UNIT_INJURY_BASE = #{tForecastLibrary.unitInjuryBase} AND a.UNIT_BIRTH_BASE = #{tForecastLibrary.unitBirthBase} AND a.UNIT_BIGAILMENT_BASE = #{tForecastLibrary.unitBigailmentBase} AND a.PERSONAL_PENSION_BASE = #{tForecastLibrary.personalPensionBase} AND a.PERSONAL_MEDICAL_BASE = #{tForecastLibrary.personalMedicalBase} AND a.PERSONAL_UNEMPLOYMENT_BASE = #{tForecastLibrary.personalUnemploymentBase} AND a.PERSONAL_BIGAILMENT_BASE = #{tForecastLibrary.personalBigailmentBase} AND a.UNIT_PERSION_PRO = #{tForecastLibrary.unitPersionPro} AND a.UNIT_MEDICAL_PRO = #{tForecastLibrary.unitMedicalPro} AND a.UNIT_UNEMPLOYMENT_PRO = #{tForecastLibrary.unitUnemploymentPro} AND a.UNIT_INJURY_PRO = #{tForecastLibrary.unitInjuryPro} AND a.UNIT_BIRTH_PRO = #{tForecastLibrary.unitBirthPro} AND a.UNIT_BIGAILMENT_PRO = #{tForecastLibrary.unitBigailmentPro} AND a.PERSONAL_PERSION_PRO = #{tForecastLibrary.personalPersionPro} AND a.PERSONAL_MEDICAL_PRO = #{tForecastLibrary.personalMedicalPro} AND a.PERSONAL_UNEMPLOYMENT_PRO = #{tForecastLibrary.personalUnemploymentPro} AND a.PERSONAL_BIGAILMENT_PRO = #{tForecastLibrary.personalBigailmentPro} AND a.UNIT_FUND_BASE = #{tForecastLibrary.unitFundBase} AND a.PERSONAL_FUND_BASE = #{tForecastLibrary.personalFundBase} AND a.UNIT_FUND_PROP = #{tForecastLibrary.unitFundProp} AND a.PERSONAL_FUND_PROP = #{tForecastLibrary.personalFundProp} AND a.REMARK = #{tForecastLibrary.remark} AND a.PROJECT_ID = #{tForecastLibrary.projectId} AND a.UNIT_NAME = #{tForecastLibrary.unitName} AND a.DEPT_NAME = #{tForecastLibrary.deptName} AND a.DEPT_NO = #{tForecastLibrary.deptNo} AND a.EMP_NATRUE = #{tForecastLibrary.empNatrue} AND a.UNIT_INTEREST_FEE = #{tForecastLibrary.unitInterestFee} AND a.PERSONAL_INTEREST_FEE = #{tForecastLibrary.personalInterestFee} AND a.SOCIAL_HOUSEHOLD = #{tForecastLibrary.socialHousehold} AND a.SOCIAL_HOUSEHOLD_NAME = #{tForecastLibrary.socialHouseholdName} AND a.PROVIDENT_HOUSEHOLD = #{tForecastLibrary.providentHousehold} AND a.PROVIDENT_HOUSEHOLD_NAME = #{tForecastLibrary.providentHouseholdName} AND a.DATA_PUSH = #{tForecastLibrary.dataPush} AND a.DATA_TYPE = #{tForecastLibrary.dataType} AND a.DIFF_TYPE = #{tForecastLibrary.diffType} AND a.CREATE_BY = #{tForecastLibrary.createBy} AND a.CREATE_NAME = #{tForecastLibrary.createName} AND a.CREATE_TIME = #{tForecastLibrary.createTime} AND a.UPDATE_BY = #{tForecastLibrary.updateBy} AND a.UPDATE_TIME = #{tForecastLibrary.updateTime} AND a.CREATE_TIME >= #{tForecastLibrary.createTimeStart} AND a.CREATE_TIME #{tForecastLibrary.createTimeEnd} ${tForecastLibrary.authSql} update t_forecast_library set SALARY_SOCIAL_FLAG = #{status} where ID in #{item} update t_forecast_library set SALARY_FUND_FLAG = #{status} where ID in #{item} delete from t_forecast_library where ((SOCIAL_PAY_MONTH = #{socialPayMonth} and SOCIAL_CREATE_MONTH = #{socialCreateMonth}) or (PROVIDENT_PAY_MONTH = #{fundPayMonth} and PROVIDENT_CREATE_MONTH = #{fundCreateMonth})) and EMP_IDCARD = #{idCard} and DATA_PUSH = 0 update t_forecast_library set UNIT_ID = #{infoVo.unitId}, UNIT_NAME = #{infoVo.unitName}, DEPT_NAME = #{infoVo.settleDomainName}, DEPT_NO = #{infoVo.settleDomainCode}, SETTLE_DOMAIN_ID = #{infoVo.settleDomainId} where ((SALARY_SOCIAL_FLAG = '0' and SOCIAL_CREATE_MONTH >= #{infoVo.socialCreateMonth}) or (SALARY_FUND_FLAG = '0' and PROVIDENT_CREATE_MONTH >= #{infoVo.socialCreateMonth})) and DATA_PUSH = '0' and EMP_IDCARD = #{infoVo.empIdcard} update t_forecast_library set DATA_PUSH = 1 where ID in #{item} update t_forecast_library p set p.SETTLE_DOMAIN_ID = #{dept.id} ,p.DEPT_NAME = #{dept.departName} ,p.DEPT_NO = #{dept.departNo} ,p.UNIT_ID = #{dept.customerId} ,p.UNIT_NAME = #{dept.customerName} where (p.SALARY_SOCIAL_FLAG = '0' and p.SALARY_FUND_FLAG = '0') and p.id in #{item} update t_forecast_library set UNIT_PENSION_FEE = #{tForecastLibrary.unitPensionFee}, UNIT_MEDICAL_FEE = #{tForecastLibrary.unitMedicalFee}, UNIT_UNEMPLOYMENT_FEE = #{tForecastLibrary.unitUnemploymentFee}, UNIT_WORK_INJURY_FEE = #{tForecastLibrary.unitWorkInjuryFee}, UNIT_BIRTH_FEE = #{tForecastLibrary.unitBirthFee}, UNIT_BITAILMENT_FEE = #{tForecastLibrary.unitBitailmentFee}, PERSONAL_PENSION_FEE = #{tForecastLibrary.personalPensionFee}, PERSONAL_MEDICAL_FEE = #{tForecastLibrary.personalMedicalFee}, PERSONAL_UNEMPLOYMENT_FEE = #{tForecastLibrary.personalUnemploymentFee}, PERSONAL_BIGAILMENT_FEE = #{tForecastLibrary.personalBigailmentFee}, SOCIAL_PAY_MONTH = #{tForecastLibrary.socialPayMonth}, SOCIAL_CREATE_MONTH = #{tForecastLibrary.socialCreateMonth}, PROVIDENT_PAY_MONTH = #{tForecastLibrary.providentPayMonth}, PROVIDENT_CREATE_MONTH = #{tForecastLibrary.providentCreateMonth}, UNIT_SOCIAL_SUM = #{tForecastLibrary.unitSocialSum}, UNIT_FUND_SUM = #{tForecastLibrary.unitFundSum}, PERSONAL_SOCIAL_SUM = #{tForecastLibrary.personalSocialSum}, PERSONAL_FUND_SUM = #{tForecastLibrary.personalFundSum}, SUM_ALL = #{tForecastLibrary.sumAll}, UNIT_PENSION_BASE = #{tForecastLibrary.unitPensionBase}, UNIT_MEDICAL_BASE = #{tForecastLibrary.unitMedicalBase}, UNIT_UNEMPLOYMENT_BASE = #{tForecastLibrary.unitUnemploymentBase}, UNIT_INJURY_BASE = #{tForecastLibrary.unitInjuryBase}, UNIT_BIRTH_BASE = #{tForecastLibrary.unitBirthBase}, UNIT_BIGAILMENT_BASE = #{tForecastLibrary.unitBigailmentBase}, PERSONAL_PENSION_BASE = #{tForecastLibrary.personalPensionBase}, PERSONAL_MEDICAL_BASE = #{tForecastLibrary.personalMedicalBase}, PERSONAL_UNEMPLOYMENT_BASE = #{tForecastLibrary.personalUnemploymentBase}, PERSONAL_BIGAILMENT_BASE = #{tForecastLibrary.personalBigailmentBase}, UNIT_PERSION_PRO = #{tForecastLibrary.unitPersionPro}, UNIT_MEDICAL_PRO = #{tForecastLibrary.unitMedicalPro}, UNIT_UNEMPLOYMENT_PRO = #{tForecastLibrary.unitUnemploymentPro}, UNIT_INJURY_PRO = #{tForecastLibrary.unitInjuryPro}, UNIT_BIRTH_PRO = #{tForecastLibrary.unitBirthPro}, UNIT_BIGAILMENT_PRO = #{tForecastLibrary.unitBigailmentPro}, PERSONAL_PERSION_PRO = #{tForecastLibrary.personalPersionPro}, PERSONAL_MEDICAL_PRO = #{tForecastLibrary.personalMedicalPro}, PERSONAL_UNEMPLOYMENT_PRO = #{tForecastLibrary.personalUnemploymentPro}, PERSONAL_BIGAILMENT_PRO = #{tForecastLibrary.personalBigailmentPro}, UNIT_FUND_BASE = #{tForecastLibrary.unitFundBase}, PERSONAL_FUND_BASE = #{tForecastLibrary.personalFundBase}, UNIT_FUND_PROP = #{tForecastLibrary.unitFundProp}, PERSONAL_FUND_PROP = #{tForecastLibrary.personalFundProp}, UNIT_INTEREST_FEE = #{tForecastLibrary.unitInterestFee}, PERSONAL_INTEREST_FEE = #{tForecastLibrary.personalInterestFee}, SOCIAL_HOUSEHOLD = #{tForecastLibrary.socialHousehold}, SOCIAL_HOUSEHOLD_NAME = #{tForecastLibrary.socialHouseholdName}, PROVIDENT_HOUSEHOLD = #{tForecastLibrary.providentHousehold}, PROVIDENT_HOUSEHOLD_NAME = #{tForecastLibrary.providentHouseholdName}, SALARY_SOCIAL_FLAG = #{tForecastLibrary.salarySocialFlag}, SALARY_FUND_FLAG = #{tForecastLibrary.salaryFundFlag}, SETTLE_DOMAIN_ID = #{tForecastLibrary.settleDomainId}, UNIT_ID = #{tForecastLibrary.unitId}, UNIT_NAME = #{tForecastLibrary.unitName}, DEPT_NAME = #{tForecastLibrary.deptName}, DEPT_NO = #{tForecastLibrary.deptNo}, EMP_NATRUE = #{tForecastLibrary.empNatrue}, SOCIAL_ID = #{tForecastLibrary.socialId}, PROVIDENT_ID = #{tForecastLibrary.providentId}, FUND_PROVINCE = #{tForecastLibrary.fundProvince}, FUND_CITY = #{tForecastLibrary.fundCity}, FUND_TOWN = #{tForecastLibrary.fundTown}, SOCIAL_PROVINCE = #{tForecastLibrary.socialProvince}, SOCIAL_CITY = #{tForecastLibrary.socialCity}, SOCIAL_TOWN = #{tForecastLibrary.socialTown}, DATA_PUSH = #{tForecastLibrary.dataPush}, DATA_TYPE = #{tForecastLibrary.dataType}, DIFF_TYPE = #{tForecastLibrary.diffType}, UPDATE_BY = #{tForecastLibrary.updateBy}, UPDATE_TIME = now() where ID = #{tForecastLibrary.id} update t_forecast_library set INCOME_SETTLE_FLAG = #{tForecastLibrary.incomeSettleFlag}, INCOME_COLLECT_FLAG = #{tForecastLibrary.incomeCollectFlag}, PAY_SETTLE_FLAG = #{tForecastLibrary.paySettleFlag}, PAY_COLLECT_FLAG = #{tForecastLibrary.payCollectFlag}, UPDATE_TIME = now() where ID = #{tForecastLibrary.id}