Commit e7a282da authored by hongguangwu's avatar hongguangwu

社保-批量调基

parent 92e8b945
...@@ -481,13 +481,6 @@ public class TForecastLibrary extends BaseEntity { ...@@ -481,13 +481,6 @@ public class TForecastLibrary extends BaseEntity {
@Length(max = 50, message = "公积金户不能超过50个字符") @Length(max = 50, message = "公积金户不能超过50个字符")
@ExcelProperty("公积金户") @ExcelProperty("公积金户")
private String providentHouseholdName; private String providentHouseholdName;
/**
* 公积金编号
*/
@ExcelAttribute(name = "公积金编号", maxLength = 50)
@Length(max = 50, message = "公积金编号不能超过50个字符")
@ExcelProperty("公积金编号")
private String providentNo;
/** /**
* 数据同步:0未同步;1已同步 * 数据同步:0未同步;1已同步
*/ */
......
...@@ -460,6 +460,7 @@ public class TSocialFundInfo extends BaseEntity { ...@@ -460,6 +460,7 @@ public class TSocialFundInfo extends BaseEntity {
private BigDecimal unitBigailmentPer; private BigDecimal unitBigailmentPer;
/** /**
* 社保停缴日期 * 社保停缴日期
* 社保减少日期
*/ */
@ExcelAttribute(name = "社保停缴日期", isDate = true) @ExcelAttribute(name = "社保停缴日期", isDate = true)
@Schema(description = "社保停缴日期" ) @Schema(description = "社保停缴日期" )
......
...@@ -42,13 +42,13 @@ public class TSocialFundHistoryVo extends RowIndex implements Serializable { ...@@ -42,13 +42,13 @@ public class TSocialFundHistoryVo extends RowIndex implements Serializable {
@ExcelAttribute(name = "员工姓名", isNotEmpty = true, maxLength = 20, needExport = true, errorInfo = "员工姓名必填且不可超过20位") @ExcelAttribute(name = "员工姓名", isNotEmpty = true, maxLength = 20, needExport = true, errorInfo = "员工姓名必填且不可超过20位")
@Schema(description = "员工姓名") @Schema(description = "员工姓名")
@ExcelProperty("员工姓名") @ExcelProperty("员工姓名")
private String name; private String empName;
@Length(max = 20, message = "身份证号 不能超过20 个字符") @Length(max = 20, message = "身份证号 不能超过20 个字符")
@ExcelAttribute(name = "身份证号", isNotEmpty = true, maxLength = 20, needExport = true, errorInfo = "身份证号必填且不可超过20位") @ExcelAttribute(name = "身份证号", isNotEmpty = true, maxLength = 20, needExport = true, errorInfo = "身份证号必填且不可超过20位")
@Schema(description = "身份证号") @Schema(description = "身份证号")
@ExcelProperty("身份证号") @ExcelProperty("身份证号")
private String idCard; private String empIdcard;
@ExcelAttribute(name = "缴纳类型", isNotEmpty = true, errorInfo = "缴纳类型必填", readConverterExp = "0=最低缴纳,1=自定义缴纳,2=最高缴纳") @ExcelAttribute(name = "缴纳类型", isNotEmpty = true, errorInfo = "缴纳类型必填", readConverterExp = "0=最低缴纳,1=自定义缴纳,2=最高缴纳")
@Schema(description = "缴纳类型(0最低缴纳、1自定义缴纳、2最高缴纳)") @Schema(description = "缴纳类型(0最低缴纳、1自定义缴纳、2最高缴纳)")
...@@ -58,23 +58,27 @@ public class TSocialFundHistoryVo extends RowIndex implements Serializable { ...@@ -58,23 +58,27 @@ public class TSocialFundHistoryVo extends RowIndex implements Serializable {
@ExcelAttribute(name = "养老基数") @ExcelAttribute(name = "养老基数")
@Schema(description = "养老基数") @Schema(description = "养老基数")
@ExcelProperty("养老基数") @ExcelProperty("养老基数")
private BigDecimal unitPensionBase; private BigDecimal unitPensionCardinal;
@ExcelAttribute(name = "医疗基数") @ExcelAttribute(name = "医疗基数")
@Schema(description = "医疗基数") @Schema(description = "医疗基数")
@ExcelProperty("医疗基数") @ExcelProperty("医疗基数")
private BigDecimal unitMedicalBase; private BigDecimal unitMedicalCardinal;
@ExcelAttribute(name = "失业基数") @ExcelAttribute(name = "失业基数")
@Schema(description = "失业基数") @Schema(description = "失业基数")
@ExcelProperty("失业基数") @ExcelProperty("失业基数")
private BigDecimal unitUnemploymentBase; private BigDecimal unitUnemploymentCardinal;
@ExcelAttribute(name = "工伤基数") @ExcelAttribute(name = "工伤基数")
@Schema(description = "工伤基数") @Schema(description = "工伤基数")
@ExcelProperty("工伤基数") @ExcelProperty("工伤基数")
private BigDecimal unitInjuryBase; private BigDecimal unitWorkInjuryCardinal;
@ExcelAttribute(name = "生育基数") @ExcelAttribute(name = "生育基数")
@Schema(description = "生育基数") @Schema(description = "生育基数")
@ExcelProperty("生育基数") @ExcelProperty("生育基数")
private BigDecimal unitBirthBase; private BigDecimal unitBirthCardinal;
@ExcelAttribute(name = "单位大病救助金额") @ExcelAttribute(name = "单位大病救助金额")
@Schema(description = "单位大病救助金额") @Schema(description = "单位大病救助金额")
......
...@@ -159,7 +159,7 @@ public class TForecastLibraryController { ...@@ -159,7 +159,7 @@ public class TForecastLibraryController {
@SysLog("按缴纳月重新生成") @SysLog("按缴纳月重新生成")
@PostMapping("/createForecastlibary") @PostMapping("/createForecastlibary")
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_create')") @PreAuthorize("@pms.hasPermission('social_tforecastlibrary_create')")
public R<Boolean> createForecastlibary(@RequestParam String payMonths, public R<String> createForecastlibary(@RequestParam String payMonths,
@RequestParam(value = "empIdCard", required = false) String empIdCard, @RequestParam(value = "empIdCard", required = false) String empIdCard,
@RequestParam(value = "settleDomainIds", required = false) String settleDomainIds) { @RequestParam(value = "settleDomainIds", required = false) String settleDomainIds) {
if (Common.isEmpty(empIdCard) && Common.isEmpty(settleDomainIds)) { if (Common.isEmpty(empIdCard) && Common.isEmpty(settleDomainIds)) {
......
...@@ -27,11 +27,9 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TSocialFundInfoService; ...@@ -27,11 +27,9 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TSocialFundInfoService;
import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialFundInfoDetailVo; import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialFundInfoDetailVo;
import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialFundInfoSearchVo; import com.yifu.cloud.plus.v1.yifu.social.vo.TSocialFundInfoSearchVo;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
......
...@@ -23,6 +23,8 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -23,6 +23,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo; import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo;
import java.util.Map;
/** /**
* 基数设置表 * 基数设置表
* *
...@@ -56,4 +58,13 @@ public interface SysBaseSetInfoService extends IService<SysBaseSetInfo> { ...@@ -56,4 +58,13 @@ public interface SysBaseSetInfoService extends IService<SysBaseSetInfo> {
**/ **/
R<String> updateSysBase(SysBaseSetInfo sysBaseSetInfo); R<String> updateSysBase(SysBaseSetInfo sysBaseSetInfo);
/**
* @param
* @Description: 获取社保基数配置的Map
* @Author: hgw
* @Date: 2020/10/27 16:44
* @return: java.util.Map<java.lang.String, com.yifu.cloud.v1.hrms.api.entity.SysBaseSetInfo>
**/
Map<String, SysBaseSetInfo> getSysBaseSetInfoMap(String baseType);
} }
...@@ -57,16 +57,15 @@ public interface TForecastLibraryService extends IService<TForecastLibrary> { ...@@ -57,16 +57,15 @@ public interface TForecastLibraryService extends IService<TForecastLibrary> {
* @Date: 2022/7/18 17:11 * @Date: 2022/7/18 17:11
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.Boolean> * @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.lang.Boolean>
**/ **/
R<Boolean> createForecastlibary(String payMonths, String empIdCard, String settleDomainIds); R<String> createForecastlibary(String payMonths, String empIdCard, String settleDomainIds);
/** /**
* @Description: 填充预估实际金额 * @param socialFundInfo
* @Description: 批量调基,同步预估库
* @Author: hgw * @Author: hgw
* @Date: 2020/10/10 16:45 * @Date: 2022/7/25 17:33
* @return: com.yifu.cloud.v1.hrms.api.entity.TForecastLibrary * @return: void
**/ **/
TForecastLibrary initForecastLibrary(TForecastLibrary library R<String> updateToneForecastLibary(TSocialFundInfo socialFundInfo);
, TSocialFundInfo socialInfo, TSocialFundInfo fund, Integer month, boolean isReduceFund
, boolean isReduceSocial, HashMap<String, TAgentConfig> agentConfigMap);
} }
...@@ -34,8 +34,11 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TSocialLogService; ...@@ -34,8 +34,11 @@ import com.yifu.cloud.plus.v1.yifu.social.service.TSocialLogService;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.Date; import java.util.Date;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 基数设置表 * 基数设置表
...@@ -261,4 +264,31 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper, ...@@ -261,4 +264,31 @@ public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper,
} }
} }
} }
@Override
public Map<String, SysBaseSetInfo> getSysBaseSetInfoMap(String baseType) {
// 基数配置
SysBaseSetInfo sysBaseSetInfo = new SysBaseSetInfo();
sysBaseSetInfo.setBaseType(baseType);
sysBaseSetInfo.setDeleteFlag(CommonConstants.STATUS_NORMAL);
sysBaseSetInfo.setStatus(CommonConstants.ZERO_INT);
sysBaseSetInfo.setApplyStartDate(new Date());
// 查询符合条件的基数列表
List<SysBaseSetInfo> sysBaseSetInfoList = baseMapper.getSysBaseSetInfoNoPage(sysBaseSetInfo);
// 返回的map
Map<String, SysBaseSetInfo> setInfoMap = new HashMap<>();
if (sysBaseSetInfoList != null && !sysBaseSetInfoList.isEmpty()) {
// map的键
String key;
for (SysBaseSetInfo setInfo : sysBaseSetInfoList) {
key = setInfo.getDepartId() + CommonConstants.DOWN_LINE_STRING + setInfo.getProvince()
+ CommonConstants.DOWN_LINE_STRING + setInfo.getCity();
if (setInfo.getTown() != null) {
key += CommonConstants.DOWN_LINE_STRING + setInfo.getTown();
}
setInfoMap.put(key, setInfo);
}
}
return setInfoMap;
}
} }
...@@ -161,6 +161,10 @@ ...@@ -161,6 +161,10 @@
<if test="sysBaseSetInfo.applyStartDate != null"> <if test="sysBaseSetInfo.applyStartDate != null">
AND a.APPLY_START_DATE = #{sysBaseSetInfo.applyStartDate} AND a.APPLY_START_DATE = #{sysBaseSetInfo.applyStartDate}
</if> </if>
<if test="sysBaseSetInfo.applyStartDate != null">
AND a.APPLY_START_DATE <![CDATA[ <= ]]> #{sysBaseSetInfo.applyStartDate}
AND (a.APPLY_END_DATE is null or a.APPLY_END_DATE <![CDATA[ >= ]]> #{sysBaseSetInfo.applyStartDate})
</if>
<if test="sysBaseSetInfo.applyEndDate != null"> <if test="sysBaseSetInfo.applyEndDate != null">
AND a.APPLY_END_DATE = #{sysBaseSetInfo.applyEndDate} AND a.APPLY_END_DATE = #{sysBaseSetInfo.applyEndDate}
</if> </if>
......
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
<result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/> <result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/>
<result property="providentHousehold" column="PROVIDENT_HOUSEHOLD"/> <result property="providentHousehold" column="PROVIDENT_HOUSEHOLD"/>
<result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/> <result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/>
<result property="providentNo" column="PROVIDENT_NO"/>
<result property="dataPush" column="DATA_PUSH"/> <result property="dataPush" column="DATA_PUSH"/>
<result property="dataType" column="DATA_TYPE"/> <result property="dataType" column="DATA_TYPE"/>
<result property="createBy" column="CREATE_BY"/> <result property="createBy" column="CREATE_BY"/>
...@@ -170,7 +169,6 @@ ...@@ -170,7 +169,6 @@
a.SOCIAL_HOUSEHOLD_NAME, a.SOCIAL_HOUSEHOLD_NAME,
a.PROVIDENT_HOUSEHOLD, a.PROVIDENT_HOUSEHOLD,
a.PROVIDENT_HOUSEHOLD_NAME, a.PROVIDENT_HOUSEHOLD_NAME,
a.PROVIDENT_NO,
a.DATA_PUSH, a.DATA_PUSH,
a.DATA_TYPE, a.DATA_TYPE,
a.CREATE_BY, a.CREATE_BY,
...@@ -391,9 +389,6 @@ ...@@ -391,9 +389,6 @@
<if test="tForecastLibrary.providentHouseholdName != null and tForecastLibrary.providentHouseholdName.trim() != ''"> <if test="tForecastLibrary.providentHouseholdName != null and tForecastLibrary.providentHouseholdName.trim() != ''">
AND a.PROVIDENT_HOUSEHOLD_NAME = #{tForecastLibrary.providentHouseholdName} AND a.PROVIDENT_HOUSEHOLD_NAME = #{tForecastLibrary.providentHouseholdName}
</if> </if>
<if test="tForecastLibrary.providentNo != null and tForecastLibrary.providentNo.trim() != ''">
AND a.PROVIDENT_NO = #{tForecastLibrary.providentNo}
</if>
<if test="tForecastLibrary.dataPush != null"> <if test="tForecastLibrary.dataPush != null">
AND a.DATA_PUSH = #{tForecastLibrary.dataPush} AND a.DATA_PUSH = #{tForecastLibrary.dataPush}
</if> </if>
......
...@@ -25,19 +25,16 @@ ...@@ -25,19 +25,16 @@
<resultMap id="tSocialFundHistoryMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.TSocialFundHistory"> <resultMap id="tSocialFundHistoryMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.TSocialFundHistory">
<id property="id" column="ID"/> <id property="id" column="ID"/>
<result property="name" column="NAME"/> <result property="empName" column="EMP_NAME"/>
<result property="idCard" column="ID_CARD"/> <result property="empIdcard" column="ID_CARD"/>
<result property="employeeId" column="EMPLOYEE_ID"/> <result property="empId" column="EMP_ID"/>
<result property="unitPensionBase" column="UNIT_PENSION_BASE"/> <result property="unitPensionCardinal" column="UNIT_PENSION_CARDINAL"/>
<result property="unitMedicalBase" column="UNIT_MEDICAL_BASE"/> <result property="unitMedicalCardinal" column="UNIT_MEDICAL_CARDINAL"/>
<result property="unitUnemploymentBase" column="UNIT_UNEMPLOYMENT_BASE"/> <result property="unitUnemploymentCardinal" column="UNIT_UNEMPLOYMENT_CARDINAL"/>
<result property="unitInjuryBase" column="UNIT_INJURY_BASE"/> <result property="unitWorkInjuryCardinal" column="UNIT_WORK_INJURY_CARDINAL"/>
<result property="unitBirthBase" column="UNIT_BIRTH_BASE"/> <result property="unitBirthCardinal" column="UNIT_BIRTH_CARDINAL"/>
<result property="unitBigailmentBase" column="UNIT_BIGAILMENT_BASE"/> <result property="unitBigailmentCardinal" column="UNIT_BIGAILMENT_CARDINAL"/>
<result property="personalPensionBase" column="PERSONAL_PENSION_BASE"/>
<result property="personalMedicalBase" column="PERSONAL_MEDICAL_BASE"/>
<result property="personalUnemploymentBase" column="PERSONAL_UNEMPLOYMENT_BASE"/>
<result property="personalBigailmentBase" column="PERSONAL_BIGAILMENT_BASE"/>
<result property="unitPersionPro" column="UNIT_PERSION_PRO"/> <result property="unitPersionPro" column="UNIT_PERSION_PRO"/>
<result property="unitPersionMoney" column="UNIT_PERSION_MONEY"/> <result property="unitPersionMoney" column="UNIT_PERSION_MONEY"/>
<result property="unitMedicalPro" column="UNIT_MEDICAL_PRO"/> <result property="unitMedicalPro" column="UNIT_MEDICAL_PRO"/>
...@@ -64,12 +61,10 @@ ...@@ -64,12 +61,10 @@
<result property="personalFundProp" column="PERSONAL_FUND_PROP"/> <result property="personalFundProp" column="PERSONAL_FUND_PROP"/>
<result property="unitFundMoney" column="UNIT_FUND_MONEY"/> <result property="unitFundMoney" column="UNIT_FUND_MONEY"/>
<result property="personalFundMoney" column="PERSONAL_FUND_MONEY"/> <result property="personalFundMoney" column="PERSONAL_FUND_MONEY"/>
<result property="isOld" column="IS_OLD"/>
<result property="paymentType" column="PAYMENT_TYPE"/> <result property="paymentType" column="PAYMENT_TYPE"/>
<result property="isSocial" column="IS_SOCIAL"/> <result property="isSocial" column="IS_SOCIAL"/>
<result property="isFund" column="IS_FUND"/> <result property="isFund" column="IS_FUND"/>
<result property="socialId" column="SOCIAL_ID"/> <result property="socialFundId" column="SOCIAL_FUND_ID"/>
<result property="fundId" column="FUND_ID"/>
<result property="createBy" column="CREATE_BY"/> <result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/> <result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/> <result property="createName" column="CREATE_NAME"/>
...@@ -77,19 +72,17 @@ ...@@ -77,19 +72,17 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
a.ID, a.ID,
a.NAME, a.EMP_NAME,
a.ID_CARD, a.EMP_IDCARD,
a.EMPLOYEE_ID, a.EMP_ID,
a.UNIT_PENSION_BASE,
a.UNIT_MEDICAL_BASE, a.UNIT_PENSION_CARDINAL,
a.UNIT_UNEMPLOYMENT_BASE, a.UNIT_MEDICAL_CARDINAL,
a.UNIT_INJURY_BASE, a.UNIT_UNEMPLOYMENT_CARDINAL,
a.UNIT_BIRTH_BASE, a.UNIT_WORK_INJURY_CARDINAL,
a.UNIT_BIGAILMENT_BASE, a.UNIT_BIRTH_CARDINAL,
a.PERSONAL_PENSION_BASE, a.UNIT_BIGAILMENT_CARDINAL,
a.PERSONAL_MEDICAL_BASE,
a.PERSONAL_UNEMPLOYMENT_BASE,
a.PERSONAL_BIGAILMENT_BASE,
a.UNIT_PERSION_PRO, a.UNIT_PERSION_PRO,
a.UNIT_PERSION_MONEY, a.UNIT_PERSION_MONEY,
a.UNIT_MEDICAL_PRO, a.UNIT_MEDICAL_PRO,
...@@ -116,12 +109,10 @@ ...@@ -116,12 +109,10 @@
a.PERSONAL_FUND_PROP, a.PERSONAL_FUND_PROP,
a.UNIT_FUND_MONEY, a.UNIT_FUND_MONEY,
a.PERSONAL_FUND_MONEY, a.PERSONAL_FUND_MONEY,
a.IS_OLD,
a.PAYMENT_TYPE, a.PAYMENT_TYPE,
a.IS_SOCIAL, a.IS_SOCIAL,
a.IS_FUND, a.IS_FUND,
a.SOCIAL_ID, a.SOCIAL_FUND_ID,
a.FUND_ID,
a.CREATE_BY, a.CREATE_BY,
a.UPDATE_BY, a.UPDATE_BY,
a.CREATE_NAME, a.CREATE_NAME,
...@@ -132,45 +123,16 @@ ...@@ -132,45 +123,16 @@
<if test="tSocialFundHistory.id != null and tSocialFundHistory.id.trim() != ''"> <if test="tSocialFundHistory.id != null and tSocialFundHistory.id.trim() != ''">
AND a.ID = #{tSocialFundHistory.id} AND a.ID = #{tSocialFundHistory.id}
</if> </if>
<if test="tSocialFundHistory.name != null and tSocialFundHistory.name.trim() != ''"> <if test="tSocialFundHistory.empName != null and tSocialFundHistory.empName.trim() != ''">
AND a.NAME = #{tSocialFundHistory.name} AND a.EMP_NAME = #{tSocialFundHistory.empName}
</if>
<if test="tSocialFundHistory.idCard != null and tSocialFundHistory.idCard.trim() != ''">
AND a.ID_CARD = #{tSocialFundHistory.idCard}
</if>
<if test="tSocialFundHistory.employeeId != null and tSocialFundHistory.employeeId.trim() != ''">
AND a.EMPLOYEE_ID = #{tSocialFundHistory.employeeId}
</if>
<if test="tSocialFundHistory.unitPensionBase != null">
AND a.UNIT_PENSION_BASE = #{tSocialFundHistory.unitPensionBase}
</if>
<if test="tSocialFundHistory.unitMedicalBase != null">
AND a.UNIT_MEDICAL_BASE = #{tSocialFundHistory.unitMedicalBase}
</if>
<if test="tSocialFundHistory.unitUnemploymentBase != null">
AND a.UNIT_UNEMPLOYMENT_BASE = #{tSocialFundHistory.unitUnemploymentBase}
</if> </if>
<if test="tSocialFundHistory.unitInjuryBase != null"> <if test="tSocialFundHistory.empIdcard != null and tSocialFundHistory.empIdcard.trim() != ''">
AND a.UNIT_INJURY_BASE = #{tSocialFundHistory.unitInjuryBase} AND a.EMP_IDCARD = #{tSocialFundHistory.empIdcard}
</if> </if>
<if test="tSocialFundHistory.unitBirthBase != null"> <if test="tSocialFundHistory.empId != null and tSocialFundHistory.empId.trim() != ''">
AND a.UNIT_BIRTH_BASE = #{tSocialFundHistory.unitBirthBase} AND a.EMP_ID = #{tSocialFundHistory.empId}
</if>
<if test="tSocialFundHistory.unitBigailmentBase != null">
AND a.UNIT_BIGAILMENT_BASE = #{tSocialFundHistory.unitBigailmentBase}
</if>
<if test="tSocialFundHistory.personalPensionBase != null">
AND a.PERSONAL_PENSION_BASE = #{tSocialFundHistory.personalPensionBase}
</if>
<if test="tSocialFundHistory.personalMedicalBase != null">
AND a.PERSONAL_MEDICAL_BASE = #{tSocialFundHistory.personalMedicalBase}
</if>
<if test="tSocialFundHistory.personalUnemploymentBase != null">
AND a.PERSONAL_UNEMPLOYMENT_BASE = #{tSocialFundHistory.personalUnemploymentBase}
</if>
<if test="tSocialFundHistory.personalBigailmentBase != null">
AND a.PERSONAL_BIGAILMENT_BASE = #{tSocialFundHistory.personalBigailmentBase}
</if> </if>
<if test="tSocialFundHistory.unitPersionPro != null"> <if test="tSocialFundHistory.unitPersionPro != null">
AND a.UNIT_PERSION_PRO = #{tSocialFundHistory.unitPersionPro} AND a.UNIT_PERSION_PRO = #{tSocialFundHistory.unitPersionPro}
</if> </if>
...@@ -249,9 +211,6 @@ ...@@ -249,9 +211,6 @@
<if test="tSocialFundHistory.personalFundMoney != null"> <if test="tSocialFundHistory.personalFundMoney != null">
AND a.PERSONAL_FUND_MONEY = #{tSocialFundHistory.personalFundMoney} AND a.PERSONAL_FUND_MONEY = #{tSocialFundHistory.personalFundMoney}
</if> </if>
<if test="tSocialFundHistory.isOld != null">
AND a.IS_OLD = #{tSocialFundHistory.isOld}
</if>
<if test="tSocialFundHistory.paymentType != null"> <if test="tSocialFundHistory.paymentType != null">
AND a.PAYMENT_TYPE = #{tSocialFundHistory.paymentType} AND a.PAYMENT_TYPE = #{tSocialFundHistory.paymentType}
</if> </if>
...@@ -261,11 +220,8 @@ ...@@ -261,11 +220,8 @@
<if test="tSocialFundHistory.isFund != null"> <if test="tSocialFundHistory.isFund != null">
AND a.IS_FUND = #{tSocialFundHistory.isFund} AND a.IS_FUND = #{tSocialFundHistory.isFund}
</if> </if>
<if test="tSocialFundHistory.socialId != null and tSocialFundHistory.socialId.trim() != ''"> <if test="tSocialFundHistory.socialFundId != null and tSocialFundHistory.socialFundId.trim() != ''">
AND a.SOCIAL_ID = #{tSocialFundHistory.socialId} AND a.SOCIAL_FUND_ID = #{tSocialFundHistory.socialFundId}
</if>
<if test="tSocialFundHistory.fundId != null and tSocialFundHistory.fundId.trim() != ''">
AND a.FUND_ID = #{tSocialFundHistory.fundId}
</if> </if>
<if test="tSocialFundHistory.createBy != null and tSocialFundHistory.createBy.trim() != ''"> <if test="tSocialFundHistory.createBy != null and tSocialFundHistory.createBy.trim() != ''">
AND a.CREATE_BY = #{tSocialFundHistory.createBy} AND a.CREATE_BY = #{tSocialFundHistory.createBy}
......
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