Commit af2026af authored by hongguangwu's avatar hongguangwu

合同优化-待提交

parent 0e998c48
......@@ -717,6 +717,8 @@ public class TEmployeeContractInfoServiceImpl extends ServiceImpl<TEmployeeContr
errorInfo.append(EmployeeConstants.CONTRACT_NO_IN_USE);
} else {
insert.setContractName(contractInfo.getContractName());
insert.setContractSubName(contractInfo.getContractSubName());
insert.setReason(contractInfo.getReason());
insert.setSubjectUnit(contractInfo.getSubjectUnit());
insert.setContractParty(contractInfo.getContractParty());
insert.setContractType(contractInfo.getContractType());
......
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.List;
/**
* 预估费用
*
* @author hgw
* @date 2022-07-18 16:21:40
*/
@Data
@TableName("t_forecast_library")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "预估费用")
public class TForecastLibrary extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
private String id;
/**
* 人员档案id
*/
@ExcelAttribute(name = "人员档案id", maxLength = 32)
@Length(max = 32, message = "人员档案id不能超过32个字符")
@ExcelProperty("人员档案id")
private String empId;
/**
* 员工编码
*/
@ExcelAttribute(name = "员工编码", maxLength = 32)
@Length(max = 32, message = "员工编码不能超过32个字符")
@ExcelProperty("员工编码")
private String empNo;
/**
* 员工姓名
*/
@ExcelAttribute(name = "员工姓名", maxLength = 32)
@Length(max = 32, message = "员工姓名不能超过32个字符")
@ExcelProperty("员工姓名")
private String empName;
/**
* 身份证号
*/
@ExcelAttribute(name = "身份证号", maxLength = 20)
@Length(max = 20, message = "身份证号不能超过20个字符")
@ExcelProperty("身份证号")
private String empIdcard;
/**
* 社保ID
*/
@ExcelAttribute(name = "社保ID", maxLength = 32)
@Length(max = 32, message = "社保ID不能超过32个字符")
@ExcelProperty("社保ID")
private String socialId;
/**
* 部门ID
*/
@ExcelAttribute(name = "部门ID", isNotEmpty = true, errorInfo = "部门ID不能为空", maxLength = 32)
@NotBlank(message = "部门ID不能为空")
@Length(max = 32, message = "部门ID不能超过32个字符")
@ExcelProperty("部门ID")
private String settleDomainId;
/**
* 单位ID
*/
@ExcelAttribute(name = "单位ID", maxLength = 32)
@Length(max = 32, message = "单位ID不能超过32个字符")
@ExcelProperty("单位ID")
private String unitId;
/**
* 公积金ID
*/
@ExcelAttribute(name = "公积金ID", maxLength = 32)
@Length(max = 32, message = "公积金ID不能超过32个字符")
@ExcelProperty("公积金ID")
private String providentId;
/**
* 单位养老费用
*/
@ExcelAttribute(name = "单位养老费用")
@ExcelProperty("单位养老费用")
private BigDecimal unitPensionFee;
/**
* 单位医疗费用
*/
@ExcelAttribute(name = "单位医疗费用")
@ExcelProperty("单位医疗费用")
private BigDecimal unitMedicalFee;
/**
* 单位失业费用
*/
@ExcelAttribute(name = "单位失业费用")
@ExcelProperty("单位失业费用")
private BigDecimal unitUnemploymentFee;
/**
* 单位工伤费用
*/
@ExcelAttribute(name = "单位工伤费用")
@ExcelProperty("单位工伤费用")
private BigDecimal unitWorkInjuryFee;
/**
* 单位生育费用
*/
@ExcelAttribute(name = "单位生育费用")
@ExcelProperty("单位生育费用")
private BigDecimal unitBirthFee;
/**
* 单位医疗救助金
*/
@ExcelAttribute(name = "单位医疗救助金")
@ExcelProperty("单位医疗救助金")
private BigDecimal unitBitailmentFee;
/**
* 个人养老费用
*/
@ExcelAttribute(name = "个人养老费用")
@ExcelProperty("个人养老费用")
private BigDecimal personalPensionFee;
/**
* 个人医疗费用
*/
@ExcelAttribute(name = "个人医疗费用")
@ExcelProperty("个人医疗费用")
private BigDecimal personalMedicalFee;
/**
* 个人工伤费用
*/
@ExcelAttribute(name = "个人工伤费用")
@ExcelProperty("个人工伤费用")
private BigDecimal personalUnemploymentFee;
/**
* 个人医疗救助金
*/
@ExcelAttribute(name = "个人医疗救助金")
@ExcelProperty("个人医疗救助金")
private BigDecimal personalBigailmentFee;
/**
* 社保缴纳月份
*/
@ExcelAttribute(name = "社保缴纳月份", maxLength = 6)
@Length(max = 6, message = "社保缴纳月份不能超过6个字符")
@ExcelProperty("社保缴纳月份")
private String socialPayMonth;
/**
* 社保生成月份
*/
@ExcelAttribute(name = "社保生成月份", maxLength = 6)
@Length(max = 6, message = "社保生成月份不能超过6个字符")
@ExcelProperty("社保生成月份")
private String socialCreateMonth;
/**
* 公积金缴纳月份
*/
@ExcelAttribute(name = "公积金缴纳月份", maxLength = 6)
@Length(max = 6, message = "公积金缴纳月份不能超过6个字符")
@ExcelProperty("公积金缴纳月份")
private String providentPayMonth;
/**
* 公积金生成月份
*/
@ExcelAttribute(name = "公积金生成月份", maxLength = 6)
@Length(max = 6, message = "公积金生成月份不能超过6个字符")
@ExcelProperty("公积金生成月份")
private String providentCreateMonth;
/**
* 单位社保金额
*/
@ExcelAttribute(name = "单位社保金额")
@ExcelProperty("单位社保金额")
private BigDecimal unitSocialSum;
/**
* 单位公积金金额
*/
@ExcelAttribute(name = "单位公积金金额")
@ExcelProperty("单位公积金金额")
private BigDecimal unitFundSum;
/**
* 个人社保金额
*/
@ExcelAttribute(name = "个人社保金额")
@ExcelProperty("个人社保金额")
private BigDecimal personalSocialSum;
/**
* 个人公积金金额
*/
@ExcelAttribute(name = "个人公积金金额")
@ExcelProperty("个人公积金金额")
private BigDecimal personalFundSum;
/**
* 缴纳地-省
*/
@ExcelAttribute(name = "缴纳地-省", maxLength = 32)
@Length(max = 32, message = "缴纳地-省不能超过32个字符")
@ExcelProperty("缴纳地-省")
private String fundProvince;
/**
* 缴纳地-市
*/
@ExcelAttribute(name = "缴纳地-市", maxLength = 32)
@Length(max = 32, message = "缴纳地-市不能超过32个字符")
@ExcelProperty("缴纳地-市")
private String fundCity;
/**
* 缴纳地-县
*/
@ExcelAttribute(name = "缴纳地-县", maxLength = 32)
@Length(max = 32, message = "缴纳地-县不能超过32个字符")
@ExcelProperty("缴纳地-县")
private String fundTown;
/**
* 缴纳地-省
*/
@ExcelAttribute(name = "缴纳地-省", maxLength = 32)
@Length(max = 32, message = "缴纳地-省不能超过32个字符")
@ExcelProperty("缴纳地-省")
private String socialProvince;
/**
* 缴纳地-市
*/
@ExcelAttribute(name = "缴纳地-市", maxLength = 32)
@Length(max = 32, message = "缴纳地-市不能超过32个字符")
@ExcelProperty("缴纳地-市")
private String socialCity;
/**
* 缴纳地-县
*/
@ExcelAttribute(name = "缴纳地-县", maxLength = 32)
@Length(max = 32, message = "缴纳地-县不能超过32个字符")
@ExcelProperty("缴纳地-县")
private String socialTown;
/**
* 单位养老基数
*/
@ExcelAttribute(name = "单位养老基数")
@ExcelProperty("单位养老基数")
private BigDecimal unitPensionBase;
/**
* 单位医疗基数
*/
@ExcelAttribute(name = "单位医疗基数")
@ExcelProperty("单位医疗基数")
private BigDecimal unitMedicalBase;
/**
* 单位失业基数
*/
@ExcelAttribute(name = "单位失业基数")
@ExcelProperty("单位失业基数")
private BigDecimal unitUnemploymentBase;
/**
* 单位工伤基数
*/
@ExcelAttribute(name = "单位工伤基数")
@ExcelProperty("单位工伤基数")
private BigDecimal unitInjuryBase;
/**
* 单位生育基数
*/
@ExcelAttribute(name = "单位生育基数")
@ExcelProperty("单位生育基数")
private BigDecimal unitBirthBase;
/**
* 单位大病基数
*/
@ExcelAttribute(name = "单位大病基数")
@ExcelProperty("单位大病基数")
private BigDecimal unitBigailmentBase;
/**
* 个人养老基数
*/
@ExcelAttribute(name = "个人养老基数")
@ExcelProperty("个人养老基数")
private BigDecimal personalPensionBase;
/**
* 个人医疗基数
*/
@ExcelAttribute(name = "个人医疗基数")
@ExcelProperty("个人医疗基数")
private BigDecimal personalMedicalBase;
/**
* 个人失业基数
*/
@ExcelAttribute(name = "个人失业基数")
@ExcelProperty("个人失业基数")
private BigDecimal personalUnemploymentBase;
/**
* 个人大病基数
*/
@ExcelAttribute(name = "个人大病基数")
@ExcelProperty("个人大病基数")
private BigDecimal personalBigailmentBase;
/**
* 单位养老比例
*/
@ExcelAttribute(name = "单位养老比例")
@ExcelProperty("单位养老比例")
private BigDecimal unitPersionPro;
/**
* 单位医疗比例
*/
@ExcelAttribute(name = "单位医疗比例")
@ExcelProperty("单位医疗比例")
private BigDecimal unitMedicalPro;
/**
* 单位失业比例
*/
@ExcelAttribute(name = "单位失业比例")
@ExcelProperty("单位失业比例")
private BigDecimal unitUnemploymentPro;
/**
* 单位工伤比例
*/
@ExcelAttribute(name = "单位工伤比例")
@ExcelProperty("单位工伤比例")
private BigDecimal unitInjuryPro;
/**
* 单位生育比例
*/
@ExcelAttribute(name = "单位生育比例")
@ExcelProperty("单位生育比例")
private BigDecimal unitBirthPro;
/**
* 单位大病比例
*/
@ExcelAttribute(name = "单位大病比例")
@ExcelProperty("单位大病比例")
private BigDecimal unitBigailmentPro;
/**
* 个人养老比例
*/
@ExcelAttribute(name = "个人养老比例")
@ExcelProperty("个人养老比例")
private BigDecimal personalPersionPro;
/**
* 个人医疗比例
*/
@ExcelAttribute(name = "个人医疗比例")
@ExcelProperty("个人医疗比例")
private BigDecimal personalMedicalPro;
/**
* 个人失业比例
*/
@ExcelAttribute(name = "个人失业比例")
@ExcelProperty("个人失业比例")
private BigDecimal personalUnemploymentPro;
/**
* 个人大病比例
*/
@ExcelAttribute(name = "个人大病比例")
@ExcelProperty("个人大病比例")
private BigDecimal personalBigailmentPro;
/**
* 单位公积金基数
*/
@ExcelAttribute(name = "单位公积金基数")
@ExcelProperty("单位公积金基数")
private BigDecimal unitFundBase;
/**
* 个人公积金基数
*/
@ExcelAttribute(name = "个人公积金基数")
@ExcelProperty("个人公积金基数")
private BigDecimal personalFundBase;
/**
* 单位公积金比例
*/
@ExcelAttribute(name = "单位公积金比例")
@ExcelProperty("单位公积金比例")
private BigDecimal unitFundProp;
/**
* 个人公积金比例
*/
@ExcelAttribute(name = "个人公积金比例")
@ExcelProperty("个人公积金比例")
private BigDecimal personalFundProp;
/**
* 备注
*/
@ExcelAttribute(name = "备注", maxLength = 32)
@Length(max = 32, message = "备注不能超过32个字符")
@ExcelProperty("备注")
private String remark;
/**
* 项目档案id
*/
@ExcelAttribute(name = "项目档案id", maxLength = 32)
@Length(max = 32, message = "项目档案id不能超过32个字符")
@ExcelProperty("项目档案id")
private String projectId;
/**
* 单位名称
*/
@ExcelAttribute(name = "单位名称", maxLength = 50)
@Length(max = 50, message = "单位名称不能超过50个字符")
@ExcelProperty("单位名称")
private String unitName;
/**
* 项目名称
*/
@ExcelAttribute(name = "项目名称", maxLength = 50)
@Length(max = 50, message = "项目名称不能超过50个字符")
@ExcelProperty("项目名称")
private String deptName;
/**
* 员工类型(字典值,0外包1派遣2代理)
*/
@ExcelAttribute(name = "员工类型(字典值,0外包1派遣2代理)", maxLength = 1)
@Length(max = 1, message = "员工类型(字典值,0外包1派遣2代理)不能超过1个字符")
@ExcelProperty("员工类型(字典值,0外包1派遣2代理)")
private String empNatrue;
/**
* 单位补缴利息
*/
@ExcelAttribute(name = "单位补缴利息")
@ExcelProperty("单位补缴利息")
private BigDecimal unitInterestFee;
/**
* 个人补缴利息
*/
@ExcelAttribute(name = "个人补缴利息")
@ExcelProperty("个人补缴利息")
private BigDecimal personalInterestFee;
/**
* 社保户id
*/
@ExcelAttribute(name = "社保户id", maxLength = 32)
@Length(max = 32, message = "社保户id不能超过32个字符")
@ExcelProperty("社保户id")
private String socialHousehold;
/**
* 社保户
*/
@ExcelAttribute(name = "社保户", maxLength = 50)
@Length(max = 50, message = "社保户不能超过50个字符")
@ExcelProperty("社保户")
private String socialHouseholdName;
/**
* 公积金户id
*/
@ExcelAttribute(name = "公积金户id", maxLength = 32)
@Length(max = 32, message = "公积金户id不能超过32个字符")
@ExcelProperty("公积金户id")
private String providentHousehold;
/**
* 公积金户
*/
@ExcelAttribute(name = "公积金户", maxLength = 50)
@Length(max = 50, message = "公积金户不能超过50个字符")
@ExcelProperty("公积金户")
private String providentHouseholdName;
/**
* 公积金编号
*/
@ExcelAttribute(name = "公积金编号", maxLength = 50)
@Length(max = 50, message = "公积金编号不能超过50个字符")
@ExcelProperty("公积金编号")
private String providentNo;
/**
* 数据同步:0未同步;1已同步
*/
@ExcelAttribute(name = "数据同步:0未同步;1已同步")
@ExcelProperty("数据同步:0未同步;1已同步")
private Integer dataPush;
@TableField(exist = false)
private List<String> idList;
@Schema(description = "数据生成时间起")
@TableField(exist = false)
private String createTimeStart;
@Schema(description = "数据生成时间止")
@TableField(exist = false)
private String createTimeEnd;
/**
* 查询数据起
**/
@Schema(description = "查询limit 开始")
@TableField(exist = false)
private int limitStart;
/**
* 查询数据止
**/
@Schema(description = "查询limit 数据条数")
@TableField(exist = false)
private int limitEnd;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 预估费用
*
* @author hgw
* @date 2022-07-18 16:21:40
*/
@Data
public class TForecastLibraryVo extends RowIndex implements Serializable {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@NotBlank(message = "主键 不能为空")
@Length(max = 32, message = "主键 不能超过32 个字符")
@ExcelAttribute(name = "主键", isNotEmpty = true, errorInfo = "主键 不能为空", maxLength = 32)
@Schema(description = "主键")
@ExcelProperty("主键")
private String id;
/**
* 人员档案id
*/
@Length(max = 32, message = "人员档案id 不能超过32 个字符")
@ExcelAttribute(name = "人员档案id", maxLength = 32)
@Schema(description = "人员档案id")
@ExcelProperty("人员档案id")
private String empId;
/**
* 员工编码
*/
@Length(max = 32, message = "员工编码 不能超过32 个字符")
@ExcelAttribute(name = "员工编码", maxLength = 32)
@Schema(description = "员工编码")
@ExcelProperty("员工编码")
private String empNo;
/**
* 员工姓名
*/
@Length(max = 32, message = "员工姓名 不能超过32 个字符")
@ExcelAttribute(name = "员工姓名", maxLength = 32)
@Schema(description = "员工姓名")
@ExcelProperty("员工姓名")
private String empName;
/**
* 身份证号
*/
@Length(max = 20, message = "身份证号 不能超过20 个字符")
@ExcelAttribute(name = "身份证号", maxLength = 20)
@Schema(description = "身份证号")
@ExcelProperty("身份证号")
private String empIdcard;
/**
* 社保ID
*/
@Length(max = 32, message = "社保ID 不能超过32 个字符")
@ExcelAttribute(name = "社保ID", maxLength = 32)
@Schema(description = "社保ID")
@ExcelProperty("社保ID")
private String socialId;
/**
* 部门ID
*/
@NotBlank(message = "部门ID 不能为空")
@Length(max = 32, message = "部门ID 不能超过32 个字符")
@ExcelAttribute(name = "部门ID", isNotEmpty = true, errorInfo = "部门ID 不能为空", maxLength = 32)
@Schema(description = "部门ID")
@ExcelProperty("部门ID")
private String settleDomainId;
/**
* 单位ID
*/
@Length(max = 32, message = "单位ID 不能超过32 个字符")
@ExcelAttribute(name = "单位ID", maxLength = 32)
@Schema(description = "单位ID")
@ExcelProperty("单位ID")
private String unitId;
/**
* 公积金ID
*/
@Length(max = 32, message = "公积金ID 不能超过32 个字符")
@ExcelAttribute(name = "公积金ID", maxLength = 32)
@Schema(description = "公积金ID")
@ExcelProperty("公积金ID")
private String providentId;
/**
* 单位养老费用
*/
@ExcelAttribute(name = "单位养老费用")
@Schema(description = "单位养老费用")
@ExcelProperty("单位养老费用")
private BigDecimal unitPensionFee;
/**
* 单位医疗费用
*/
@ExcelAttribute(name = "单位医疗费用")
@Schema(description = "单位医疗费用")
@ExcelProperty("单位医疗费用")
private BigDecimal unitMedicalFee;
/**
* 单位失业费用
*/
@ExcelAttribute(name = "单位失业费用")
@Schema(description = "单位失业费用")
@ExcelProperty("单位失业费用")
private BigDecimal unitUnemploymentFee;
/**
* 单位工伤费用
*/
@ExcelAttribute(name = "单位工伤费用")
@Schema(description = "单位工伤费用")
@ExcelProperty("单位工伤费用")
private BigDecimal unitWorkInjuryFee;
/**
* 单位生育费用
*/
@ExcelAttribute(name = "单位生育费用")
@Schema(description = "单位生育费用")
@ExcelProperty("单位生育费用")
private BigDecimal unitBirthFee;
/**
* 单位医疗救助金
*/
@ExcelAttribute(name = "单位医疗救助金")
@Schema(description = "单位医疗救助金")
@ExcelProperty("单位医疗救助金")
private BigDecimal unitBitailmentFee;
/**
* 个人养老费用
*/
@ExcelAttribute(name = "个人养老费用")
@Schema(description = "个人养老费用")
@ExcelProperty("个人养老费用")
private BigDecimal personalPensionFee;
/**
* 个人医疗费用
*/
@ExcelAttribute(name = "个人医疗费用")
@Schema(description = "个人医疗费用")
@ExcelProperty("个人医疗费用")
private BigDecimal personalMedicalFee;
/**
* 个人工伤费用
*/
@ExcelAttribute(name = "个人工伤费用")
@Schema(description = "个人工伤费用")
@ExcelProperty("个人工伤费用")
private BigDecimal personalUnemploymentFee;
/**
* 个人医疗救助金
*/
@ExcelAttribute(name = "个人医疗救助金")
@Schema(description = "个人医疗救助金")
@ExcelProperty("个人医疗救助金")
private BigDecimal personalBigailmentFee;
/**
* 社保缴纳月份
*/
@Length(max = 6, message = "社保缴纳月份 不能超过6 个字符")
@ExcelAttribute(name = "社保缴纳月份", maxLength = 6)
@Schema(description = "社保缴纳月份")
@ExcelProperty("社保缴纳月份")
private String socialPayMonth;
/**
* 社保生成月份
*/
@Length(max = 6, message = "社保生成月份 不能超过6 个字符")
@ExcelAttribute(name = "社保生成月份", maxLength = 6)
@Schema(description = "社保生成月份")
@ExcelProperty("社保生成月份")
private String socialCreateMonth;
/**
* 公积金缴纳月份
*/
@Length(max = 6, message = "公积金缴纳月份 不能超过6 个字符")
@ExcelAttribute(name = "公积金缴纳月份", maxLength = 6)
@Schema(description = "公积金缴纳月份")
@ExcelProperty("公积金缴纳月份")
private String providentPayMonth;
/**
* 公积金生成月份
*/
@Length(max = 6, message = "公积金生成月份 不能超过6 个字符")
@ExcelAttribute(name = "公积金生成月份", maxLength = 6)
@Schema(description = "公积金生成月份")
@ExcelProperty("公积金生成月份")
private String providentCreateMonth;
/**
* 单位社保金额
*/
@ExcelAttribute(name = "单位社保金额")
@Schema(description = "单位社保金额")
@ExcelProperty("单位社保金额")
private BigDecimal unitSocialSum;
/**
* 单位公积金金额
*/
@ExcelAttribute(name = "单位公积金金额")
@Schema(description = "单位公积金金额")
@ExcelProperty("单位公积金金额")
private BigDecimal unitFundSum;
/**
* 个人社保金额
*/
@ExcelAttribute(name = "个人社保金额")
@Schema(description = "个人社保金额")
@ExcelProperty("个人社保金额")
private BigDecimal personalSocialSum;
/**
* 个人公积金金额
*/
@ExcelAttribute(name = "个人公积金金额")
@Schema(description = "个人公积金金额")
@ExcelProperty("个人公积金金额")
private BigDecimal personalFundSum;
/**
* 缴纳地-省
*/
@Length(max = 32, message = "缴纳地-省 不能超过32 个字符")
@ExcelAttribute(name = "缴纳地-省", maxLength = 32)
@Schema(description = "缴纳地-省")
@ExcelProperty("缴纳地-省")
private String fundProvince;
/**
* 缴纳地-市
*/
@Length(max = 32, message = "缴纳地-市 不能超过32 个字符")
@ExcelAttribute(name = "缴纳地-市", maxLength = 32)
@Schema(description = "缴纳地-市")
@ExcelProperty("缴纳地-市")
private String fundCity;
/**
* 缴纳地-县
*/
@Length(max = 32, message = "缴纳地-县 不能超过32 个字符")
@ExcelAttribute(name = "缴纳地-县", maxLength = 32)
@Schema(description = "缴纳地-县")
@ExcelProperty("缴纳地-县")
private String fundTown;
/**
* 缴纳地-省
*/
@Length(max = 32, message = "缴纳地-省 不能超过32 个字符")
@ExcelAttribute(name = "缴纳地-省", maxLength = 32)
@Schema(description = "缴纳地-省")
@ExcelProperty("缴纳地-省")
private String socialProvince;
/**
* 缴纳地-市
*/
@Length(max = 32, message = "缴纳地-市 不能超过32 个字符")
@ExcelAttribute(name = "缴纳地-市", maxLength = 32)
@Schema(description = "缴纳地-市")
@ExcelProperty("缴纳地-市")
private String socialCity;
/**
* 缴纳地-县
*/
@Length(max = 32, message = "缴纳地-县 不能超过32 个字符")
@ExcelAttribute(name = "缴纳地-县", maxLength = 32)
@Schema(description = "缴纳地-县")
@ExcelProperty("缴纳地-县")
private String socialTown;
/**
* 单位养老基数
*/
@ExcelAttribute(name = "单位养老基数")
@Schema(description = "单位养老基数")
@ExcelProperty("单位养老基数")
private BigDecimal unitPensionBase;
/**
* 单位医疗基数
*/
@ExcelAttribute(name = "单位医疗基数")
@Schema(description = "单位医疗基数")
@ExcelProperty("单位医疗基数")
private BigDecimal unitMedicalBase;
/**
* 单位失业基数
*/
@ExcelAttribute(name = "单位失业基数")
@Schema(description = "单位失业基数")
@ExcelProperty("单位失业基数")
private BigDecimal unitUnemploymentBase;
/**
* 单位工伤基数
*/
@ExcelAttribute(name = "单位工伤基数")
@Schema(description = "单位工伤基数")
@ExcelProperty("单位工伤基数")
private BigDecimal unitInjuryBase;
/**
* 单位生育基数
*/
@ExcelAttribute(name = "单位生育基数")
@Schema(description = "单位生育基数")
@ExcelProperty("单位生育基数")
private BigDecimal unitBirthBase;
/**
* 单位大病基数
*/
@ExcelAttribute(name = "单位大病基数")
@Schema(description = "单位大病基数")
@ExcelProperty("单位大病基数")
private BigDecimal unitBigailmentBase;
/**
* 个人养老基数
*/
@ExcelAttribute(name = "个人养老基数")
@Schema(description = "个人养老基数")
@ExcelProperty("个人养老基数")
private BigDecimal personalPensionBase;
/**
* 个人医疗基数
*/
@ExcelAttribute(name = "个人医疗基数")
@Schema(description = "个人医疗基数")
@ExcelProperty("个人医疗基数")
private BigDecimal personalMedicalBase;
/**
* 个人失业基数
*/
@ExcelAttribute(name = "个人失业基数")
@Schema(description = "个人失业基数")
@ExcelProperty("个人失业基数")
private BigDecimal personalUnemploymentBase;
/**
* 个人大病基数
*/
@ExcelAttribute(name = "个人大病基数")
@Schema(description = "个人大病基数")
@ExcelProperty("个人大病基数")
private BigDecimal personalBigailmentBase;
/**
* 单位养老比例
*/
@ExcelAttribute(name = "单位养老比例")
@Schema(description = "单位养老比例")
@ExcelProperty("单位养老比例")
private BigDecimal unitPersionPro;
/**
* 单位医疗比例
*/
@ExcelAttribute(name = "单位医疗比例")
@Schema(description = "单位医疗比例")
@ExcelProperty("单位医疗比例")
private BigDecimal unitMedicalPro;
/**
* 单位失业比例
*/
@ExcelAttribute(name = "单位失业比例")
@Schema(description = "单位失业比例")
@ExcelProperty("单位失业比例")
private BigDecimal unitUnemploymentPro;
/**
* 单位工伤比例
*/
@ExcelAttribute(name = "单位工伤比例")
@Schema(description = "单位工伤比例")
@ExcelProperty("单位工伤比例")
private BigDecimal unitInjuryPro;
/**
* 单位生育比例
*/
@ExcelAttribute(name = "单位生育比例")
@Schema(description = "单位生育比例")
@ExcelProperty("单位生育比例")
private BigDecimal unitBirthPro;
/**
* 单位大病比例
*/
@ExcelAttribute(name = "单位大病比例")
@Schema(description = "单位大病比例")
@ExcelProperty("单位大病比例")
private BigDecimal unitBigailmentPro;
/**
* 个人养老比例
*/
@ExcelAttribute(name = "个人养老比例")
@Schema(description = "个人养老比例")
@ExcelProperty("个人养老比例")
private BigDecimal personalPersionPro;
/**
* 个人医疗比例
*/
@ExcelAttribute(name = "个人医疗比例")
@Schema(description = "个人医疗比例")
@ExcelProperty("个人医疗比例")
private BigDecimal personalMedicalPro;
/**
* 个人失业比例
*/
@ExcelAttribute(name = "个人失业比例")
@Schema(description = "个人失业比例")
@ExcelProperty("个人失业比例")
private BigDecimal personalUnemploymentPro;
/**
* 个人大病比例
*/
@ExcelAttribute(name = "个人大病比例")
@Schema(description = "个人大病比例")
@ExcelProperty("个人大病比例")
private BigDecimal personalBigailmentPro;
/**
* 单位公积金基数
*/
@ExcelAttribute(name = "单位公积金基数")
@Schema(description = "单位公积金基数")
@ExcelProperty("单位公积金基数")
private BigDecimal unitFundBase;
/**
* 个人公积金基数
*/
@ExcelAttribute(name = "个人公积金基数")
@Schema(description = "个人公积金基数")
@ExcelProperty("个人公积金基数")
private BigDecimal personalFundBase;
/**
* 单位公积金比例
*/
@ExcelAttribute(name = "单位公积金比例")
@Schema(description = "单位公积金比例")
@ExcelProperty("单位公积金比例")
private BigDecimal unitFundProp;
/**
* 个人公积金比例
*/
@ExcelAttribute(name = "个人公积金比例")
@Schema(description = "个人公积金比例")
@ExcelProperty("个人公积金比例")
private BigDecimal personalFundProp;
/**
* 备注
*/
@Length(max = 32, message = "备注 不能超过32 个字符")
@ExcelAttribute(name = "备注", maxLength = 32)
@Schema(description = "备注")
@ExcelProperty("备注")
private String remark;
/**
* 项目档案id
*/
@Length(max = 32, message = "项目档案id 不能超过32 个字符")
@ExcelAttribute(name = "项目档案id", maxLength = 32)
@Schema(description = "项目档案id")
@ExcelProperty("项目档案id")
private String projectId;
/**
* 单位名称
*/
@Length(max = 50, message = "单位名称 不能超过50 个字符")
@ExcelAttribute(name = "单位名称", maxLength = 50)
@Schema(description = "单位名称")
@ExcelProperty("单位名称")
private String unitName;
/**
* 项目名称
*/
@Length(max = 50, message = "项目名称 不能超过50 个字符")
@ExcelAttribute(name = "项目名称", maxLength = 50)
@Schema(description = "项目名称")
@ExcelProperty("项目名称")
private String deptName;
/**
* 员工类型(字典值,0外包1派遣2代理)
*/
@Length(max = 1, message = "员工类型(字典值,0外包1派遣2代理) 不能超过1 个字符")
@ExcelAttribute(name = "员工类型(字典值,0外包1派遣2代理)", maxLength = 1)
@Schema(description = "员工类型(字典值,0外包1派遣2代理)")
@ExcelProperty("员工类型(字典值,0外包1派遣2代理)")
private String empNatrue;
/**
* 单位补缴利息
*/
@ExcelAttribute(name = "单位补缴利息")
@Schema(description = "单位补缴利息")
@ExcelProperty("单位补缴利息")
private BigDecimal unitInterestFee;
/**
* 个人补缴利息
*/
@ExcelAttribute(name = "个人补缴利息")
@Schema(description = "个人补缴利息")
@ExcelProperty("个人补缴利息")
private BigDecimal personalInterestFee;
/**
* 社保户id
*/
@Length(max = 32, message = "社保户id 不能超过32 个字符")
@ExcelAttribute(name = "社保户id", maxLength = 32)
@Schema(description = "社保户id")
@ExcelProperty("社保户id")
private String socialHousehold;
/**
* 社保户
*/
@Length(max = 50, message = "社保户 不能超过50 个字符")
@ExcelAttribute(name = "社保户", maxLength = 50)
@Schema(description = "社保户")
@ExcelProperty("社保户")
private String socialHouseholdName;
/**
* 公积金户id
*/
@Length(max = 32, message = "公积金户id 不能超过32 个字符")
@ExcelAttribute(name = "公积金户id", maxLength = 32)
@Schema(description = "公积金户id")
@ExcelProperty("公积金户id")
private String providentHousehold;
/**
* 公积金户
*/
@Length(max = 50, message = "公积金户 不能超过50 个字符")
@ExcelAttribute(name = "公积金户", maxLength = 50)
@Schema(description = "公积金户")
@ExcelProperty("公积金户")
private String providentHouseholdName;
/**
* 公积金编号
*/
@Length(max = 50, message = "公积金编号 不能超过50 个字符")
@ExcelAttribute(name = "公积金编号", maxLength = 50)
@Schema(description = "公积金编号")
@ExcelProperty("公积金编号")
private String providentNo;
/**
* 数据同步:0未同步;1已同步
*/
@ExcelAttribute(name = "数据同步:0未同步;1已同步")
@Schema(description = "数据同步:0未同步;1已同步")
@ExcelProperty("数据同步:0未同步;1已同步")
private Integer dataPush;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.social.entity.TForecastLibrary;
import com.yifu.cloud.plus.v1.yifu.social.service.TForecastLibraryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 预估费用
*
* @author hgw
* @date 2022-07-18 16:21:40
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tforecastlibrary")
@Tag(name = "预估费用管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TForecastLibraryController {
private final TForecastLibraryService tForecastLibraryService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tForecastLibrary 预估费用
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TForecastLibrary>> getTForecastLibraryPage(Page<TForecastLibrary> page, TForecastLibrary tForecastLibrary) {
return new R<>(tForecastLibraryService.getTForecastLibraryPage(page, tForecastLibrary));
}
/**
* 不分页查询
*
* @param tForecastLibrary 预估费用
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_get')" )
public R<List<TForecastLibrary>> getTForecastLibraryNoPage(@RequestBody TForecastLibrary tForecastLibrary) {
return R.ok(tForecastLibraryService.noPageDiy(tForecastLibrary));
}
/**
* 通过id查询预估费用
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('social_tforecastlibrary_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_get')")
public R<TForecastLibrary> getById(@PathVariable("id") String id) {
return R.ok(tForecastLibraryService.getById(id));
}
/**
* 新增预估费用
*
* @param tForecastLibrary 预估费用
* @return R
*/
@Operation(summary = "新增预估费用", description = "新增预估费用:hasPermission('social_tforecastlibrary_add')")
@SysLog("新增预估费用")
@PostMapping
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_add')")
public R<Boolean> save(@RequestBody TForecastLibrary tForecastLibrary) {
return R.ok(tForecastLibraryService.save(tForecastLibrary));
}
/**
* 修改预估费用
*
* @param tForecastLibrary 预估费用
* @return R
*/
@Operation(summary = "修改预估费用", description = "修改预估费用:hasPermission('social_tforecastlibrary_edit')")
@SysLog("修改预估费用")
@PutMapping
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_edit')")
public R<Boolean> updateById(@RequestBody TForecastLibrary tForecastLibrary) {
return R.ok(tForecastLibraryService.updateById(tForecastLibrary));
}
/**
* 通过id删除预估费用
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除预估费用", description = "通过id删除预估费用:hasPermission('social_tforecastlibrary_del')")
@SysLog("通过id删除预估费用")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tForecastLibraryService.removeById(id));
}
/**
* 预估费用 批量导出
*
* @author hgw
* @date 2022-07-18 16:21:40
**/
@Operation(description = "导出预估费用 hasPermission('social_tforecastlibrary-export')")
@PostMapping("/export")
@PreAuthorize("@pms.hasPermission('social_tforecastlibrary-export')")
public void export(HttpServletResponse response, @RequestBody TForecastLibrary searchVo) {
tForecastLibraryService.listExport(response, searchVo);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.social.entity.TForecastLibrary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 预估费用
*
* @author hgw
* @date 2022-07-18 16:21:40
*/
@Mapper
public interface TForecastLibraryMapper extends BaseMapper<TForecastLibrary> {
/**
* 预估费用简单分页查询
*
* @param tForecastLibrary 预估费用
* @return
*/
IPage<TForecastLibrary> getTForecastLibraryPage(Page<TForecastLibrary> page, @Param("tForecastLibrary") TForecastLibrary tForecastLibrary);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.social.entity.TForecastLibrary;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 预估费用
*
* @author hgw
* @date 2022-07-18 16:21:40
*/
public interface TForecastLibraryService extends IService<TForecastLibrary> {
/**
* 预估费用简单分页查询
*
* @param tForecastLibrary 预估费用
* @return
*/
IPage<TForecastLibrary> getTForecastLibraryPage(Page<TForecastLibrary> page, TForecastLibrary tForecastLibrary);
void listExport(HttpServletResponse response, TForecastLibrary searchVo);
List<TForecastLibrary> noPageDiy(TForecastLibrary searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service.impl;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.DateUtil;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ExcelUtil;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import com.yifu.cloud.plus.v1.yifu.social.entity.TForecastLibrary;
import com.yifu.cloud.plus.v1.yifu.social.mapper.TForecastLibraryMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.TForecastLibraryService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
/**
* 预估费用
*
* @author hgw
* @date 2022-07-18 16:21:40
*/
@Log4j2
@Service
public class TForecastLibraryServiceImpl extends ServiceImpl<TForecastLibraryMapper, TForecastLibrary> implements TForecastLibraryService {
/**
* 预估费用简单分页查询
*
* @param tForecastLibrary 预估费用
* @return
*/
@Override
public IPage<TForecastLibrary> getTForecastLibraryPage(Page<TForecastLibrary> page, TForecastLibrary tForecastLibrary) {
return baseMapper.getTForecastLibraryPage(page, tForecastLibrary);
}
/**
* 预估费用批量导出
*
* @param searchVo 预估费用
* @return
*/
@Override
public void listExport(HttpServletResponse response, TForecastLibrary searchVo) {
String fileName = "预估费用批量导出" + DateUtil.getThisTime() + ".xlsx";
//获取要导出的列表
List<TForecastLibrary> list = new ArrayList<>();
long count = noPageCountDiy(searchVo);
ServletOutputStream out = null;
try {
out = response.getOutputStream();
response.setContentType("multipart/form-data");
response.setCharacterEncoding("utf-8");
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, "UTF-8"));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("预估费用").doWrite(list)
ExcelWriter excelWriter = EasyExcel.write(out, TForecastLibrary.class).build();
int index = 0;
if (count > CommonConstants.ZERO_INT) {
for (int i = 0; i <= count; ) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
list = noPageDiy(searchVo);
if (Common.isNotNull(list)) {
ExcelUtil<TForecastLibrary> util = new ExcelUtil<>(TForecastLibrary.class);
for (TForecastLibrary vo : list) {
util.convertEntity(vo, null, null, null);
}
}
if (Common.isNotNull(list)) {
WriteSheet writeSheet = EasyExcel.writerSheet("预估费用" + index).build();
excelWriter.write(list, writeSheet);
index++;
}
i = i + CommonConstants.EXCEL_EXPORT_LIMIT;
if (Common.isNotNull(list)) {
list.clear();
}
}
} else {
WriteSheet writeSheet = EasyExcel.writerSheet("预估费用" + index).build();
excelWriter.write(list, writeSheet);
}
if (Common.isNotNull(list)) {
list.clear();
}
out.flush();
excelWriter.finish();
} catch (Exception e) {
log.error("执行异常", e);
} finally {
try {
if (null != out) {
out.close();
}
} catch (IOException e) {
log.error("执行异常", e);
}
}
}
@Override
public List<TForecastLibrary> noPageDiy(TForecastLibrary searchVo) {
LambdaQueryWrapper<TForecastLibrary> wrapper = buildQueryWrapper(searchVo);
if (Common.isNotNull(searchVo.getIdList())) {
wrapper.in(TForecastLibrary::getId, searchVo.getIdList());
}
if (searchVo.getLimitStart() >= 0 && searchVo.getLimitEnd() > 0) {
wrapper.last(" limit " + searchVo.getLimitStart() + "," + searchVo.getLimitEnd());
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private Long noPageCountDiy(TForecastLibrary searchVo) {
LambdaQueryWrapper<TForecastLibrary> wrapper = buildQueryWrapper(searchVo);
if (Common.isNotNull(searchVo.getIdList())) {
wrapper.in(TForecastLibrary::getId, searchVo.getIdList());
}
return baseMapper.selectCount(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TForecastLibrary entity) {
LambdaQueryWrapper<TForecastLibrary> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateTimeStart())) {
wrapper.ge(TForecastLibrary::getCreateTime, entity.getCreateTimeStart());
}
if (Common.isNotNull(entity.getCreateTimeEnd())) {
wrapper.le(TForecastLibrary::getCreateTime, entity.getCreateTimeEnd());
}
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TForecastLibrary::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.social.mapper.TForecastLibraryMapper">
<resultMap id="tForecastLibraryMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.TForecastLibrary">
<id property="id" column="ID"/>
<result property="empId" column="EMP_ID"/>
<result property="empNo" column="EMP_NO"/>
<result property="empName" column="EMP_NAME"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="socialId" column="SOCIAL_ID"/>
<result property="settleDomainId" column="SETTLE_DOMAIN_ID"/>
<result property="unitId" column="UNIT_ID"/>
<result property="providentId" column="PROVIDENT_ID"/>
<result property="unitPensionFee" column="UNIT_PENSION_FEE"/>
<result property="unitMedicalFee" column="UNIT_MEDICAL_FEE"/>
<result property="unitUnemploymentFee" column="UNIT_UNEMPLOYMENT_FEE"/>
<result property="unitWorkInjuryFee" column="UNIT_WORK_INJURY_FEE"/>
<result property="unitBirthFee" column="UNIT_BIRTH_FEE"/>
<result property="unitBitailmentFee" column="UNIT_BITAILMENT_FEE"/>
<result property="personalPensionFee" column="PERSONAL_PENSION_FEE"/>
<result property="personalMedicalFee" column="PERSONAL_MEDICAL_FEE"/>
<result property="personalUnemploymentFee" column="PERSONAL_UNEMPLOYMENT_FEE"/>
<result property="personalBigailmentFee" column="PERSONAL_BIGAILMENT_FEE"/>
<result property="socialPayMonth" column="SOCIAL_PAY_MONTH"/>
<result property="socialCreateMonth" column="SOCIAL_CREATE_MONTH"/>
<result property="providentPayMonth" column="PROVIDENT_PAY_MONTH"/>
<result property="providentCreateMonth" column="PROVIDENT_CREATE_MONTH"/>
<result property="unitSocialSum" column="UNIT_SOCIAL_SUM"/>
<result property="unitFundSum" column="UNIT_FUND_SUM"/>
<result property="personalSocialSum" column="PERSONAL_SOCIAL_SUM"/>
<result property="personalFundSum" column="PERSONAL_FUND_SUM"/>
<result property="fundProvince" column="FUND_PROVINCE"/>
<result property="fundCity" column="FUND_CITY"/>
<result property="fundTown" column="FUND_TOWN"/>
<result property="socialProvince" column="SOCIAL_PROVINCE"/>
<result property="socialCity" column="SOCIAL_CITY"/>
<result property="socialTown" column="SOCIAL_TOWN"/>
<result property="unitPensionBase" column="UNIT_PENSION_BASE"/>
<result property="unitMedicalBase" column="UNIT_MEDICAL_BASE"/>
<result property="unitUnemploymentBase" column="UNIT_UNEMPLOYMENT_BASE"/>
<result property="unitInjuryBase" column="UNIT_INJURY_BASE"/>
<result property="unitBirthBase" column="UNIT_BIRTH_BASE"/>
<result property="unitBigailmentBase" column="UNIT_BIGAILMENT_BASE"/>
<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="unitMedicalPro" column="UNIT_MEDICAL_PRO"/>
<result property="unitUnemploymentPro" column="UNIT_UNEMPLOYMENT_PRO"/>
<result property="unitInjuryPro" column="UNIT_INJURY_PRO"/>
<result property="unitBirthPro" column="UNIT_BIRTH_PRO"/>
<result property="unitBigailmentPro" column="UNIT_BIGAILMENT_PRO"/>
<result property="personalPersionPro" column="PERSONAL_PERSION_PRO"/>
<result property="personalMedicalPro" column="PERSONAL_MEDICAL_PRO"/>
<result property="personalUnemploymentPro" column="PERSONAL_UNEMPLOYMENT_PRO"/>
<result property="personalBigailmentPro" column="PERSONAL_BIGAILMENT_PRO"/>
<result property="unitFundBase" column="UNIT_FUND_BASE"/>
<result property="personalFundBase" column="PERSONAL_FUND_BASE"/>
<result property="unitFundProp" column="UNIT_FUND_PROP"/>
<result property="personalFundProp" column="PERSONAL_FUND_PROP"/>
<result property="remark" column="REMARK"/>
<result property="projectId" column="PROJECT_ID"/>
<result property="unitName" column="UNIT_NAME"/>
<result property="deptName" column="DEPT_NAME"/>
<result property="empNatrue" column="EMP_NATRUE"/>
<result property="unitInterestFee" column="UNIT_INTEREST_FEE"/>
<result property="personalInterestFee" column="PERSONAL_INTEREST_FEE"/>
<result property="socialHousehold" column="SOCIAL_HOUSEHOLD"/>
<result property="socialHouseholdName" column="SOCIAL_HOUSEHOLD_NAME"/>
<result property="providentHousehold" column="PROVIDENT_HOUSEHOLD"/>
<result property="providentHouseholdName" column="PROVIDENT_HOUSEHOLD_NAME"/>
<result property="providentNo" column="PROVIDENT_NO"/>
<result property="dataPush" column="DATA_PUSH"/>
<result property="createBy" column="CREATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
<sql id="Base_Column_List">
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.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.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.PROVIDENT_NO,
a.DATA_PUSH,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql id="tForecastLibrary_where">
<if test="tForecastLibrary != null">
<if test="tForecastLibrary.idList != null">
AND a.ID in
<foreach item="idStr" index="index" collection="tForecastLibrary.idList" open="(" separator="," close=")">
#{idStr}
</foreach>
</if>
<if test="tForecastLibrary.id != null and tForecastLibrary.id.trim() != ''">
AND a.ID = #{tForecastLibrary.id}
</if>
<if test="tForecastLibrary.empId != null and tForecastLibrary.empId.trim() != ''">
AND a.EMP_ID = #{tForecastLibrary.empId}
</if>
<if test="tForecastLibrary.empNo != null and tForecastLibrary.empNo.trim() != ''">
AND a.EMP_NO = #{tForecastLibrary.empNo}
</if>
<if test="tForecastLibrary.empName != null and tForecastLibrary.empName.trim() != ''">
AND a.EMP_NAME = #{tForecastLibrary.empName}
</if>
<if test="tForecastLibrary.empIdcard != null and tForecastLibrary.empIdcard.trim() != ''">
AND a.EMP_IDCARD = #{tForecastLibrary.empIdcard}
</if>
<if test="tForecastLibrary.socialId != null and tForecastLibrary.socialId.trim() != ''">
AND a.SOCIAL_ID = #{tForecastLibrary.socialId}
</if>
<if test="tForecastLibrary.settleDomainId != null and tForecastLibrary.settleDomainId.trim() != ''">
AND a.SETTLE_DOMAIN_ID = #{tForecastLibrary.settleDomainId}
</if>
<if test="tForecastLibrary.unitId != null and tForecastLibrary.unitId.trim() != ''">
AND a.UNIT_ID = #{tForecastLibrary.unitId}
</if>
<if test="tForecastLibrary.providentId != null and tForecastLibrary.providentId.trim() != ''">
AND a.PROVIDENT_ID = #{tForecastLibrary.providentId}
</if>
<if test="tForecastLibrary.unitPensionFee != null">
AND a.UNIT_PENSION_FEE = #{tForecastLibrary.unitPensionFee}
</if>
<if test="tForecastLibrary.unitMedicalFee != null">
AND a.UNIT_MEDICAL_FEE = #{tForecastLibrary.unitMedicalFee}
</if>
<if test="tForecastLibrary.unitUnemploymentFee != null">
AND a.UNIT_UNEMPLOYMENT_FEE = #{tForecastLibrary.unitUnemploymentFee}
</if>
<if test="tForecastLibrary.unitWorkInjuryFee != null">
AND a.UNIT_WORK_INJURY_FEE = #{tForecastLibrary.unitWorkInjuryFee}
</if>
<if test="tForecastLibrary.unitBirthFee != null">
AND a.UNIT_BIRTH_FEE = #{tForecastLibrary.unitBirthFee}
</if>
<if test="tForecastLibrary.unitBitailmentFee != null">
AND a.UNIT_BITAILMENT_FEE = #{tForecastLibrary.unitBitailmentFee}
</if>
<if test="tForecastLibrary.personalPensionFee != null">
AND a.PERSONAL_PENSION_FEE = #{tForecastLibrary.personalPensionFee}
</if>
<if test="tForecastLibrary.personalMedicalFee != null">
AND a.PERSONAL_MEDICAL_FEE = #{tForecastLibrary.personalMedicalFee}
</if>
<if test="tForecastLibrary.personalUnemploymentFee != null">
AND a.PERSONAL_UNEMPLOYMENT_FEE = #{tForecastLibrary.personalUnemploymentFee}
</if>
<if test="tForecastLibrary.personalBigailmentFee != null">
AND a.PERSONAL_BIGAILMENT_FEE = #{tForecastLibrary.personalBigailmentFee}
</if>
<if test="tForecastLibrary.socialPayMonth != null and tForecastLibrary.socialPayMonth.trim() != ''">
AND a.SOCIAL_PAY_MONTH = #{tForecastLibrary.socialPayMonth}
</if>
<if test="tForecastLibrary.socialCreateMonth != null and tForecastLibrary.socialCreateMonth.trim() != ''">
AND a.SOCIAL_CREATE_MONTH = #{tForecastLibrary.socialCreateMonth}
</if>
<if test="tForecastLibrary.providentPayMonth != null and tForecastLibrary.providentPayMonth.trim() != ''">
AND a.PROVIDENT_PAY_MONTH = #{tForecastLibrary.providentPayMonth}
</if>
<if test="tForecastLibrary.providentCreateMonth != null and tForecastLibrary.providentCreateMonth.trim() != ''">
AND a.PROVIDENT_CREATE_MONTH = #{tForecastLibrary.providentCreateMonth}
</if>
<if test="tForecastLibrary.unitSocialSum != null">
AND a.UNIT_SOCIAL_SUM = #{tForecastLibrary.unitSocialSum}
</if>
<if test="tForecastLibrary.unitFundSum != null">
AND a.UNIT_FUND_SUM = #{tForecastLibrary.unitFundSum}
</if>
<if test="tForecastLibrary.personalSocialSum != null">
AND a.PERSONAL_SOCIAL_SUM = #{tForecastLibrary.personalSocialSum}
</if>
<if test="tForecastLibrary.personalFundSum != null">
AND a.PERSONAL_FUND_SUM = #{tForecastLibrary.personalFundSum}
</if>
<if test="tForecastLibrary.fundProvince != null and tForecastLibrary.fundProvince.trim() != ''">
AND a.FUND_PROVINCE = #{tForecastLibrary.fundProvince}
</if>
<if test="tForecastLibrary.fundCity != null and tForecastLibrary.fundCity.trim() != ''">
AND a.FUND_CITY = #{tForecastLibrary.fundCity}
</if>
<if test="tForecastLibrary.fundTown != null and tForecastLibrary.fundTown.trim() != ''">
AND a.FUND_TOWN = #{tForecastLibrary.fundTown}
</if>
<if test="tForecastLibrary.socialProvince != null and tForecastLibrary.socialProvince.trim() != ''">
AND a.SOCIAL_PROVINCE = #{tForecastLibrary.socialProvince}
</if>
<if test="tForecastLibrary.socialCity != null and tForecastLibrary.socialCity.trim() != ''">
AND a.SOCIAL_CITY = #{tForecastLibrary.socialCity}
</if>
<if test="tForecastLibrary.socialTown != null and tForecastLibrary.socialTown.trim() != ''">
AND a.SOCIAL_TOWN = #{tForecastLibrary.socialTown}
</if>
<if test="tForecastLibrary.unitPensionBase != null">
AND a.UNIT_PENSION_BASE = #{tForecastLibrary.unitPensionBase}
</if>
<if test="tForecastLibrary.unitMedicalBase != null">
AND a.UNIT_MEDICAL_BASE = #{tForecastLibrary.unitMedicalBase}
</if>
<if test="tForecastLibrary.unitUnemploymentBase != null">
AND a.UNIT_UNEMPLOYMENT_BASE = #{tForecastLibrary.unitUnemploymentBase}
</if>
<if test="tForecastLibrary.unitInjuryBase != null">
AND a.UNIT_INJURY_BASE = #{tForecastLibrary.unitInjuryBase}
</if>
<if test="tForecastLibrary.unitBirthBase != null">
AND a.UNIT_BIRTH_BASE = #{tForecastLibrary.unitBirthBase}
</if>
<if test="tForecastLibrary.unitBigailmentBase != null">
AND a.UNIT_BIGAILMENT_BASE = #{tForecastLibrary.unitBigailmentBase}
</if>
<if test="tForecastLibrary.personalPensionBase != null">
AND a.PERSONAL_PENSION_BASE = #{tForecastLibrary.personalPensionBase}
</if>
<if test="tForecastLibrary.personalMedicalBase != null">
AND a.PERSONAL_MEDICAL_BASE = #{tForecastLibrary.personalMedicalBase}
</if>
<if test="tForecastLibrary.personalUnemploymentBase != null">
AND a.PERSONAL_UNEMPLOYMENT_BASE = #{tForecastLibrary.personalUnemploymentBase}
</if>
<if test="tForecastLibrary.personalBigailmentBase != null">
AND a.PERSONAL_BIGAILMENT_BASE = #{tForecastLibrary.personalBigailmentBase}
</if>
<if test="tForecastLibrary.unitPersionPro != null">
AND a.UNIT_PERSION_PRO = #{tForecastLibrary.unitPersionPro}
</if>
<if test="tForecastLibrary.unitMedicalPro != null">
AND a.UNIT_MEDICAL_PRO = #{tForecastLibrary.unitMedicalPro}
</if>
<if test="tForecastLibrary.unitUnemploymentPro != null">
AND a.UNIT_UNEMPLOYMENT_PRO = #{tForecastLibrary.unitUnemploymentPro}
</if>
<if test="tForecastLibrary.unitInjuryPro != null">
AND a.UNIT_INJURY_PRO = #{tForecastLibrary.unitInjuryPro}
</if>
<if test="tForecastLibrary.unitBirthPro != null">
AND a.UNIT_BIRTH_PRO = #{tForecastLibrary.unitBirthPro}
</if>
<if test="tForecastLibrary.unitBigailmentPro != null">
AND a.UNIT_BIGAILMENT_PRO = #{tForecastLibrary.unitBigailmentPro}
</if>
<if test="tForecastLibrary.personalPersionPro != null">
AND a.PERSONAL_PERSION_PRO = #{tForecastLibrary.personalPersionPro}
</if>
<if test="tForecastLibrary.personalMedicalPro != null">
AND a.PERSONAL_MEDICAL_PRO = #{tForecastLibrary.personalMedicalPro}
</if>
<if test="tForecastLibrary.personalUnemploymentPro != null">
AND a.PERSONAL_UNEMPLOYMENT_PRO = #{tForecastLibrary.personalUnemploymentPro}
</if>
<if test="tForecastLibrary.personalBigailmentPro != null">
AND a.PERSONAL_BIGAILMENT_PRO = #{tForecastLibrary.personalBigailmentPro}
</if>
<if test="tForecastLibrary.unitFundBase != null">
AND a.UNIT_FUND_BASE = #{tForecastLibrary.unitFundBase}
</if>
<if test="tForecastLibrary.personalFundBase != null">
AND a.PERSONAL_FUND_BASE = #{tForecastLibrary.personalFundBase}
</if>
<if test="tForecastLibrary.unitFundProp != null">
AND a.UNIT_FUND_PROP = #{tForecastLibrary.unitFundProp}
</if>
<if test="tForecastLibrary.personalFundProp != null">
AND a.PERSONAL_FUND_PROP = #{tForecastLibrary.personalFundProp}
</if>
<if test="tForecastLibrary.remark != null and tForecastLibrary.remark.trim() != ''">
AND a.REMARK = #{tForecastLibrary.remark}
</if>
<if test="tForecastLibrary.projectId != null and tForecastLibrary.projectId.trim() != ''">
AND a.PROJECT_ID = #{tForecastLibrary.projectId}
</if>
<if test="tForecastLibrary.unitName != null and tForecastLibrary.unitName.trim() != ''">
AND a.UNIT_NAME = #{tForecastLibrary.unitName}
</if>
<if test="tForecastLibrary.deptName != null and tForecastLibrary.deptName.trim() != ''">
AND a.DEPT_NAME = #{tForecastLibrary.deptName}
</if>
<if test="tForecastLibrary.empNatrue != null and tForecastLibrary.empNatrue.trim() != ''">
AND a.EMP_NATRUE = #{tForecastLibrary.empNatrue}
</if>
<if test="tForecastLibrary.unitInterestFee != null">
AND a.UNIT_INTEREST_FEE = #{tForecastLibrary.unitInterestFee}
</if>
<if test="tForecastLibrary.personalInterestFee != null">
AND a.PERSONAL_INTEREST_FEE = #{tForecastLibrary.personalInterestFee}
</if>
<if test="tForecastLibrary.socialHousehold != null and tForecastLibrary.socialHousehold.trim() != ''">
AND a.SOCIAL_HOUSEHOLD = #{tForecastLibrary.socialHousehold}
</if>
<if test="tForecastLibrary.socialHouseholdName != null and tForecastLibrary.socialHouseholdName.trim() != ''">
AND a.SOCIAL_HOUSEHOLD_NAME = #{tForecastLibrary.socialHouseholdName}
</if>
<if test="tForecastLibrary.providentHousehold != null and tForecastLibrary.providentHousehold.trim() != ''">
AND a.PROVIDENT_HOUSEHOLD = #{tForecastLibrary.providentHousehold}
</if>
<if test="tForecastLibrary.providentHouseholdName != null and tForecastLibrary.providentHouseholdName.trim() != ''">
AND a.PROVIDENT_HOUSEHOLD_NAME = #{tForecastLibrary.providentHouseholdName}
</if>
<if test="tForecastLibrary.providentNo != null and tForecastLibrary.providentNo.trim() != ''">
AND a.PROVIDENT_NO = #{tForecastLibrary.providentNo}
</if>
<if test="tForecastLibrary.dataPush != null">
AND a.DATA_PUSH = #{tForecastLibrary.dataPush}
</if>
<if test="tForecastLibrary.createBy != null and tForecastLibrary.createBy.trim() != ''">
AND a.CREATE_BY = #{tForecastLibrary.createBy}
</if>
<if test="tForecastLibrary.createName != null and tForecastLibrary.createName.trim() != ''">
AND a.CREATE_NAME = #{tForecastLibrary.createName}
</if>
<if test="tForecastLibrary.createTime != null">
AND a.CREATE_TIME = #{tForecastLibrary.createTime}
</if>
<if test="tForecastLibrary.updateBy != null and tForecastLibrary.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tForecastLibrary.updateBy}
</if>
<if test="tForecastLibrary.updateTime != null">
AND a.UPDATE_TIME = #{tForecastLibrary.updateTime}
</if>
<if test="tForecastLibrary.createTimeStart != null">
AND a.CREATE_TIME >= #{tForecastLibrary.createTimeStart}
</if>
<if test="tForecastLibrary.createTimeEnd != null">
AND a.CREATE_TIME <![CDATA[ <= ]]> #{tForecastLibrary.createTimeEnd}
</if>
</if>
</sql>
<!--tForecastLibrary简单分页查询-->
<select id="getTForecastLibraryPage" resultMap="tForecastLibraryMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_forecast_library a
<where>
1=1
<include refid="tForecastLibrary_where"/>
</where>
</select>
</mapper>
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