Commit 39705315 authored by fangxinjiang's avatar fangxinjiang

合同续签-fxj

parent 1bcf05c9
...@@ -10,6 +10,8 @@ public class ArchivesConstants { ...@@ -10,6 +10,8 @@ public class ArchivesConstants {
public static final String EMP_BAD_RECORD="不良记录"; public static final String EMP_BAD_RECORD="不良记录";
public static final String EMP_AUTO_RENEWAL_RECORD="员工合同续签待办";
/** /**
* 复档 * 复档
*/ */
......
...@@ -317,6 +317,51 @@ public class TEmpContractAlert extends BaseEntity { ...@@ -317,6 +317,51 @@ public class TEmpContractAlert extends BaseEntity {
@Schema(description = "反馈时间") @Schema(description = "反馈时间")
private Date feedbackTime; private Date feedbackTime;
/**
* 预计合同发起时间
*/
@ExcelAttribute(name = "预计合同发起时间" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("预计合同发起时间")
@Schema(description = "预计合同发起时间")
private Date expectedCollectionTime;
/**
* 签署方式:1线下签0电子签
*/
@ExcelAttribute(name = "签署方式" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("签署方式")
@Schema(description = "签署方式:1线下签0电子签")
private Integer signType;
/**
* 续签状态:0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署
*/
@ExcelAttribute(name = "续签状态" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("续签状态")
@Schema(description = "签署方式:0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署")
private Integer processStatus;
/**
* 前端客服
*/
@ExcelAttribute(name = "前端客服" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("前端客服")
@Schema(description = "前端客服")
private String csName;
/**
* 前端客服
*/
@ExcelAttribute(name = "前端客服" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("前端客服")
@Schema(description = "前端客服")
private String csLoginName;
/** /**
* 合同截止日期 * 合同截止日期
*/ */
...@@ -342,4 +387,12 @@ public class TEmpContractAlert extends BaseEntity { ...@@ -342,4 +387,12 @@ public class TEmpContractAlert extends BaseEntity {
@Schema(description = "合同岗位", name = "post") @Schema(description = "合同岗位", name = "post")
private String post; private String post;
/**
* 是否自动化: 0 是 1 否 默认1
*/
@Length(max = 1, message = "工是否自动化不能超过1个字符")
@ExcelAttribute(name = "是否自动化", maxLength = 32)
@Schema(description = "是否自动化: 0 是 1 否 默认1", name = "autoFlag")
private String autoFlag;
} }
/*
* 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.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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 com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.util.Date;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
@Data
@TableName("t_employee_contract_pre_new")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "合同续签预派单信息")
public class TEmployeeContractPreNew extends BaseEntity {
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("id")
@Schema(description = "id")
private String id;
/**
* 项目名称
*/
@ExcelAttribute(name = "项目名称", maxLength = 50)
@Length(max = 50, message = "项目名称不能超过50个字符")
@ExcelProperty("项目名称")
@Schema(description = "项目名称")
private String deptName;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码不能为空", maxLength = 30)
@NotBlank(message = "项目编码不能为空")
@Length(max = 30, message = "项目编码不能超过30个字符")
@ExcelProperty("项目编码")
@Schema(description = "项目编码")
private String deptNo;
/**
* 项目id
*/
@ExcelAttribute(name = "项目id", maxLength = 36)
@Length(max = 36, message = "项目id不能超过36个字符")
@ExcelProperty("项目id")
@Schema(description = "项目id")
private String deptId;
/**
* 员工姓名
*/
@ExcelAttribute(name = "员工姓名", maxLength = 30)
@Length(max = 30, message = "员工姓名不能超过30个字符")
@ExcelProperty("员工姓名")
@Schema(description = "员工姓名")
private String employeeName;
/**
* 身份证号
*/
@ExcelAttribute(name = "身份证号", isNotEmpty = true, errorInfo = "身份证号不能为空", maxLength = 18)
@NotBlank(message = "身份证号不能为空")
@Length(max = 18, message = "身份证号不能超过18个字符")
@ExcelProperty("身份证号")
@Schema(description = "身份证号")
private String empIdcard;
/**
* 手机号码
*/
@ExcelAttribute(name = "手机号码", maxLength = 11)
@Length(max = 11, message = "手机号码不能超过11个字符")
@ExcelProperty("手机号码")
@Schema(description = "手机号码")
private String empPhone;
/**
* 员工类型
*/
@ExcelAttribute(name = "员工类型", maxLength = 30)
@Length(max = 30, message = "员工类型不能超过30个字符")
@ExcelProperty("员工类型")
@Schema(description = "员工类型")
private String employeeNature;
/**
* 就职岗位
*/
@ExcelAttribute(name = "就职岗位", maxLength = 50)
@Length(max = 50, message = "就职岗位不能超过50个字符")
@ExcelProperty("就职岗位")
@Schema(description = "就职岗位")
private String position;
/**
* 入职日期
*/
@ExcelAttribute(name = "入职日期", isDate = true)
@ExcelProperty("入职日期")
@Schema(description = "入职日期")
private Date joinLeaveDate;
/**
* 前端客服
*/
@ExcelAttribute(name = "前端客服", maxLength = 30)
@Length(max = 30, message = "前端客服不能超过30个字符")
@ExcelProperty("前端客服")
@Schema(description = "前端客服")
private String customerUsername;
/**
* 前端客服登录名
*/
@ExcelAttribute(name = "前端客服登录名", maxLength = 30)
@Length(max = 30, message = "前端客服登录名不能超过30个字符")
@ExcelProperty("前端客服登录名")
@Schema(description = "前端客服登录名")
private String customerUserLoginname;
/**
* 签署方式1线下签0电子签
*/
@ExcelAttribute(name = "签署方式", maxLength = 1)
@Length(max = 1, message = "签署方式不能超过1个字符")
@ExcelProperty("签署方式")
@Schema(description = "签署方式1线下签0电子签")
private String signType;
/**
* 合同签订内容:0自定义、上一份合同
*/
@ExcelAttribute(name = "合同签订内容", maxLength = 100)
@Length(max = 100, message = "合同签订内容同不能超过100个字符")
@ExcelProperty("合同签订内容")
@Schema(description = "合同签订内容:0自定义、上一份合同")
private String contractContent;
/**
* 法大大模版名称
*/
@ExcelAttribute(name = "法大大模版名称", maxLength = 100)
@Length(max = 100, message = "法大大模版名称不能超过100个字符")
@ExcelProperty("法大大模版名称")
@Schema(description = "法大大模版名称")
private String fadadaTemplate;
/**
* 数据来源1客户端 2客服端
*/
@ExcelAttribute(name = "数据来源", maxLength = 1)
@Length(max = 1, message = "数据来源不能超过1个字符")
@ExcelProperty("数据来源")
@Schema(description = "数据来源1客户端 2客服端")
private String dataSource;
/**
* 续签状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署
*/
@ExcelAttribute(name = "续签状态", maxLength = 2)
@Length(max = 2, message = "续签状态不能超过2个字符")
@ExcelProperty("续签状态")
@Schema(description = "续签状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署")
private String processStatus;
/**
* 配置名称
*/
@ExcelAttribute(name = "配置名称", maxLength = 100)
@Length(max = 100, message = "配置名称不能超过100个字符")
@ExcelProperty("配置名称")
@Schema(description = "配置名称")
private String configName;
/**
* 是否允许修改 0是 1否
*/
@ExcelAttribute(name = "是否允许修改 0是 1否", maxLength = 1)
@Length(max = 1, message = "是否允许修改 0是 1否不能超过1个字符")
@ExcelProperty("是否允许修改 0是 1否")
@Schema(description = "是否允许修改 0是 1否")
private String updateFlag;
/**
* 合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同
*/
@ExcelAttribute(name = "合同类型", maxLength = 8)
@Length(max = 8, message = "合同类型不能超过8个字符")
@ExcelProperty("合同类型")
@Schema(description = "合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同")
private String contractType;
/**
* 签署甲方
*/
@ExcelAttribute(name = "签署甲方", maxLength = 50)
@Length(max = 50, message = "签署甲方不能超过50个字符")
@ExcelProperty("签署甲方")
@Schema(description = "签署甲方")
private String signatory;
/**
* 预计确认时间
*/
@ExcelAttribute(name = "预计确认时间", isDate = true)
@ExcelProperty("预计确认时间")
@Schema(description = "预计确认时间")
private Date expectedConfirmTime;
/**
* 预计合同发起时间
*/
@ExcelAttribute(name = "预计合同发起时间", isDate = true)
@ExcelProperty("预计合同发起时间")
@Schema(description = "预计合同发起时间")
private Date expectedCollectionTime;
/**
* 签订类型-续签、新签等
*/
@ExcelAttribute(name = "签订类型", maxLength = 20)
@Length(max = 20, message = "签订类型不能超过20个字符")
@ExcelProperty("签订类型")
@Schema(description = "签订类型-续签、新签等")
private String situation;
/**
* 签订期限 0已完成一定工作任务为期限、1固定期限、2无固定期限
*/
@ExcelAttribute(name = "签订期限", maxLength = 1)
@Length(max = 1, message = "签订期限不能超过1个字符")
@ExcelProperty("签订期限")
@Schema(description = "签订期限 0已完成一定工作任务为期限、1固定期限、2无固定期限")
private String contractTerm;
/**
* 合同开始日期
*/
@ExcelAttribute(name = "合同开始日期", isDate = true)
@ExcelProperty("合同开始日期")
@Schema(description = "合同开始日期")
private Date contractStart;
/**
* 合同截止日期
*/
@ExcelAttribute(name = "合同截止日期", isDate = true)
@ExcelProperty("合同截止日期")
@Schema(description = "合同截止日期")
private Date contractEnd;
/**
* 合同岗位 0 固定岗位 1 等于档案处维护 2 自定义 -冗余字段
*/
@ExcelAttribute(name = "合同岗位", maxLength = 1)
@Length(max = 1, message = "合同岗位不能超过1个字符")
@ExcelProperty("合同岗位")
@Schema(description = "合同岗位 0 固定岗位 1 等于档案处维护 2 自定义 -冗余字段")
private String postType;
/**
* 合同岗位名称
*/
@ExcelAttribute(name = "合同岗位名称", maxLength = 50)
@Length(max = 50, message = "合同岗位名称不能超过50个字符")
@ExcelProperty("合同岗位名称")
@Schema(description = "合同岗位名称")
private String post;
/**
* 工作部门
*/
@ExcelAttribute(name = "工作部门", maxLength = 50)
@Length(max = 50, message = "工作部门不能超过50个字符")
@ExcelProperty("工作部门")
@Schema(description = "工作部门")
private String workingDept;
/**
* 工作地点
*/
@ExcelAttribute(name = "工作地点", maxLength = 200)
@Length(max = 200, message = "工作地点不能超过200个字符")
@ExcelProperty("工作地点")
@Schema(description = "工作地点")
private String workAddress;
/**
* 工时制 0 标准工时 1综合工时 2 不定时工时制
*/
@ExcelAttribute(name = "工时制 ", maxLength = 1)
@Length(max = 1, message = "工时制不能超过1个字符")
@ExcelProperty("工时制 ")
@Schema(description = "工时制 0 标准工时 1综合工时 2 不定时工时制")
private String workingHours;
/**
* 工资形式 1.计时工资 2.计件工资 3.其他
*/
@ExcelAttribute(name = "工资形式 ", maxLength = 1)
@Length(max = 1, message = "工资形式不能超过1个字符")
@ExcelProperty("工资形式")
@Schema(description = "工资形式 1.计时工资 2.计件工资 3.其他")
private String salaryType;
/**
* 其他 (工资形式其他时的工资)
*/
@ExcelAttribute(name = "其他 (工资形式其他时的工资)", maxLength = 50)
@Length(max = 50, message = "其他 (工资形式其他时的工资)不能超过50个字符")
@ExcelProperty("其他 (工资形式其他时的工资)")
@Schema(description = "其他 (工资形式其他时的工资)")
private String otherWage;
/**
* 违约责任(金额)
*/
@ExcelAttribute(name = "违约责任(金额)", maxLength = 20)
@Length(max = 20, message = "违约责任(金额)不能超过20个字符")
@ExcelProperty("违约责任(金额)")
@Schema(description = "违约责任(金额)")
private String defaultAmount;
/**
* 合同年限-年
*/
@ExcelAttribute(name = "合同年限-年", maxLength = 50)
@Length(max = 50, message = "合同年限-年不能超过50个字符")
@ExcelProperty("合同年限-年")
@Schema(description = "合同年限-年")
private String contractDurationYear;
/**
* 合同年限-月
*/
@ExcelAttribute(name = "合同年限-月", maxLength = 50)
@Length(max = 50, message = "合同年限-月不能超过50个字符")
@ExcelProperty("合同年限-月")
@Schema(description = "合同年限-月")
private String contractDurationMonth;
/**
* 合同试用期开始时间-续签无,冗余
*/
@ExcelAttribute(name = "合同试用期开始时间", isDate = true)
@ExcelProperty("合同试用期开始时间")
@Schema(description = "合同试用期开始时间-续签无,冗余")
private Date tryPeriodStart;
/**
* 合同试用期结束时间-续签无,冗余
*/
@ExcelAttribute(name = "合同试用期结束时间", isDate = true)
@ExcelProperty("合同试用期结束时间")
@Schema(description = "合同试用期结束时间-续签无,冗余")
private Date tryPeriodEnd;
/**
* 是否有试用期 0是1否-续签无,冗余
*/
@ExcelAttribute(name = "是否有试用期", maxLength = 1)
@Length(max = 1, message = "是否有试用期不能超过1个字符")
@ExcelProperty("是否有试用期")
@Schema(description = "是否有试用期 0是1否-续签无,冗余")
private String tryPeriodType;
/**
* 试用期(单位月)-续签无,冗余
*/
@ExcelAttribute(name = "试用期(单位月)", maxLength = 5)
@Length(max = 5, message = "试用期(单位月)不能超过5个字符")
@ExcelProperty("试用期(单位月)")
@Schema(description = "试用期(单位月)-续签无,冗余")
private String tryPeriod;
/**
* 劳务费(元/月)
*/
@ExcelAttribute(name = "劳务费(元/月)", maxLength = 20)
@Length(max = 20, message = "劳务费(元/月)不能超过20个字符")
@ExcelProperty("劳务费(元/月)")
@Schema(description = "劳务费(元/月)")
private String laborCost;
/**
* 购买补充保险说明
*/
@ExcelAttribute(name = "购买补充保险说明", maxLength = 50)
@Length(max = 50, message = "购买补充保险说明不能超过50个字符")
@ExcelProperty("购买补充保险说明")
@Schema(description = "购买补充保险说明")
private String riskBuyDesc;
/**
* 计时工资工资标准 元/月
*/
@ExcelAttribute(name = "计时工资工资标准 元/月 ", maxLength = 20)
@Length(max = 20, message = "计时工资工资标准 元/月 不能超过20个字符")
@ExcelProperty("计时工资工资标准 元/月 ")
@Schema(description = "计时工资工资标准 元/月 ")
private String salaryStandardPerHour;
/**
* 计件工资工资标准单价/元
*/
@ExcelAttribute(name = "计件工资工资标准单价/元 ", maxLength = 20)
@Length(max = 20, message = "计件工资工资标准单价/元 不能超过20个字符")
@ExcelProperty("计件工资工资标准单价/元 ")
@Schema(description = "计件工资工资标准单价/元 ")
private String salaryStandardPerPiece;
/**
* 配置id
*/
@ExcelAttribute(name = "配置id", maxLength = 36)
@Length(max = 36, message = "配置id不能超过36个字符")
@ExcelProperty("配置id")
@Schema(description = "配置id")
private String configId;
/**
* 工作方式 0 第一种方式 1 第二种方式
*/
@ExcelAttribute(name = "工作方式", maxLength = 5)
@Length(max = 5, message = "工作方式不能超过5个字符")
@ExcelProperty("工作方式 ")
@Schema(description = "工作方式 0 第一种方式 1 第二种方式")
private String workType;
/**
* 每周工作天数
*/
@ExcelAttribute(name = "每周工作天数", maxLength = 20)
@Length(max = 20, message = "每周工作天数不能超过20个字符")
@ExcelProperty("每周工作天数")
@Schema(description = "每周工作天数")
private String workDayCount;
/**
* 每周工作日
*/
@ExcelAttribute(name = "每周工作日", maxLength = 50)
@Length(max = 50, message = "每周工作日不能超过50个字符")
@ExcelProperty("每周工作日")
@Schema(description = "每周工作日")
private String workDay;
/**
* 每日工作时长
*/
@ExcelAttribute(name = "每日工作时长", maxLength = 20)
@Length(max = 20, message = "每日工作时长不能超过20个字符")
@ExcelProperty("每日工作时长")
@Schema(description = "每日工作时长")
private String workHours;
/**
* 工资结算周期
*/
@ExcelAttribute(name = "工资结算周期", maxLength = 20)
@Length(max = 20, message = "工资结算周期不能超过20个字符")
@ExcelProperty("工资结算周期")
@Schema(description = "工资结算周期")
private String settlementCycle;
/**
* 工资发放时间
*/
@ExcelAttribute(name = "工资发放时间", maxLength = 50)
@Length(max = 50, message = "工资发放时间不能超过50个字符")
@ExcelProperty("工资发放时间")
@Schema(description = "工资发放时间")
private String paymentTime;
/**
* 工资发放方式 0 直接发放/委托银行代发
*/
@ExcelAttribute(name = "工资发放方式 ", maxLength = 1)
@Length(max = 1, message = "工资发放方式不能超过1个字符")
@ExcelProperty("工资发放方式")
@Schema(description = "工资发放方式 0 直接发放/委托银行代发")
private String paymentType;
/**
* 用工单位名称
*/
@ExcelAttribute(name = "用工单位名称", maxLength = 50)
@Length(max = 50, message = "用工单位名称不能超过50个字符")
@ExcelProperty("用工单位名称")
@Schema(description = "用工单位名称")
private String workingCompany;
/**
* 派遣期限-年
*/
@ExcelAttribute(name = "派遣期限-年", maxLength = 3)
@Length(max = 3, message = "派遣期限-年不能超过3个字符")
@ExcelProperty("派遣期限-年")
@Schema(description = "派遣期限-年")
private String dispatchPeriodYear;
/**
* 派遣期限-月
*/
@ExcelAttribute(name = "派遣期限-月", maxLength = 3)
@Length(max = 3, message = "派遣期限-月不能超过3个字符")
@ExcelProperty("派遣期限-月")
@Schema(description = "派遣期限-月")
private String dispatchPeriodMonth;
/**
* 派遣开始日期
*/
@ExcelAttribute(name = "派遣开始日期", isDate = true)
@ExcelProperty("派遣开始日期")
@Schema(description = "派遣开始日期")
private Date dispatchPeriodStart;
/**
* 派遣结束日期
*/
@ExcelAttribute(name = "派遣结束日期", isDate = true)
@ExcelProperty("派遣结束日期")
@Schema(description = "派遣结束日期")
private Date dispatchPeriodEnd;
/**
* 其他工作时间 (工作方式为第二种方式)
*/
@ExcelAttribute(name = "其他工作时间", maxLength = 50)
@Length(max = 50, message = "其他工作时间不能超过50个字符")
@ExcelProperty("其他工作时间")
@Schema(description = "其他工作时间 (工作方式为第二种方式)")
private String otherWorkDay;
/**
* 实习期限 无/一个月/两个月.../十二个月
*/
@ExcelAttribute(name = "实习期限", maxLength = 5)
@Length(max = 5, message = "实习期限不能超过5个字符")
@ExcelProperty("实习期限")
@Schema(description = "实习期限 无/一个月/两个月.../十二个月")
private String internshipPeriod;
/**
* 实习开始日期
*/
@ExcelAttribute(name = "实习开始日期", isDate = true)
@ExcelProperty("实习开始日期")
@Schema(description = "实习开始日期")
private Date internshipPeriodStart;
/**
* 实习结束日期
*/
@ExcelAttribute(name = "实习结束日期", isDate = true)
@ExcelProperty("实习结束日期")
@Schema(description = "实习结束日期")
private Date internshipPeriodEnd;
/**
* 是否撤销签署0是1否
*/
@ExcelAttribute(name = "是否撤销签署0是1否", maxLength = 1)
@Length(max = 1, message = "是否撤销签署0是1否不能超过1个字符")
@ExcelProperty("是否撤销签署0是1否")
@Schema(description = "是否撤销签署0是1否")
private String signFlag;
/**
* 异常原因说明
*/
@ExcelAttribute(name = "异常原因说明", maxLength = 200)
@Length(max = 200, message = "异常原因说明不能超过200个字符")
@ExcelProperty("异常原因说明")
@Schema(description = "异常原因说明")
private String errorInfo;
/**
* 关联合同id
*/
@ExcelAttribute(name = "关联合同id", maxLength = 36)
@Length(max = 36, message = "关联合同id不能超过36个字符")
@ExcelProperty("关联合同id")
@Schema(description = "关联合同id")
private String contractId;
/**
* 撤销签署原因
*/
@ExcelAttribute(name = "撤销签署原因", maxLength = 255)
@Length(max = 255, message = "撤销签署原因不能超过255个字符")
@ExcelProperty("撤销签署原因")
@Schema(description = "撤销签署原因")
private String revokeReason;
/**
* 发起失败时间
*/
@ExcelAttribute(name = "发起失败时间", isDate = true)
@ExcelProperty("发起失败时间")
@Schema(description = "发起失败时间")
private Date errorTime;
/**
* 合同截止日期类型
*/
@ExcelAttribute(name = "合同截止日期类型", maxLength = 1)
@Length(max = 1, message = "合同截止日期类型不能超过1个字符")
@ExcelProperty("合同截止日期类型")
@Schema(description = "合同截止日期类型")
private String contractEndType;
/**
* 入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义
*/
@ExcelAttribute(name = "入职确认选择", maxLength = 2)
@Length(max = 2, message = "入职确认选择不能超过2个字符")
@ExcelProperty("入职确认选择 ")
@Schema(description = "入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义")
private String confirmEmpSelect;
/**
* 超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发 -- 冗余
*/
@ExcelAttribute(name = "超时未确认是否触发签署任务(电子签) ", maxLength = 2)
@Length(max = 2, message = "超时未确认是否触发签署任务(电子签)不触发不能超过2个字符")
@ExcelProperty("超时未确认是否触发签署任务(电子签)")
@Schema(description = "超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发--冗余")
private String timeoutElecSign;
/**
* 工作任务
*/
@ExcelAttribute(name = "工作任务", maxLength = 200)
@Length(max = 200, message = "工作任务不能超过200个字符")
@ExcelProperty("工作任务")
@Schema(description = "工作任务")
private String task;
/**
* 任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同
*/
@ExcelAttribute(name = "任务类型:", maxLength = 2)
@Length(max = 2, message = "任务类型不能超过2个字符")
@ExcelProperty("任务类型")
@Schema(description = "任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同")
private String taskType;
/**
* 结束任务标准
*/
@ExcelAttribute(name = "结束任务标准", maxLength = 200)
@Length(max = 200, message = "结束任务标准不能超过200个字符")
@ExcelProperty("结束任务标准")
@Schema(description = "结束任务标准")
private String taskEndStandard;
/**
* 是否已签署合同 0是1否
*/
@ExcelAttribute(name = "是否已签署合同", maxLength = 1)
@Length(max = 1, message = "是否已签署合同不能超过1个字符")
@ExcelProperty("是否已签署合同")
@Schema(description = "是否已签署合同 0是1否")
private String contractFlag;
/**
* 业务细分
*/
@ExcelAttribute(name = "业务细分", maxLength = 50)
@Length(max = 50, message = "业务细分不能超过50个字符")
@ExcelProperty("业务细分")
@Schema(description = "业务细分")
private String contractSubName;
/**
* 法大大模版ID
*/
@ExcelAttribute(name = "法大大模版ID", maxLength = 100)
@Length(max = 100, message = "法大大模版ID不能超过100个字符")
@ExcelProperty("法大大模版ID")
@Schema(description = "法大大模版ID")
private String fadadaTemplateId;
/**
* 任务ID
*/
@ExcelAttribute(name = "任务ID", maxLength = 100)
@Length(max = 100, message = "任务ID不能超过100个字符")
@ExcelProperty("任务ID")
@Schema(description = "任务ID")
private String requestId;
/**
* 任务反馈
*/
@ExcelAttribute(name = "任务反馈", maxLength = 500)
@Length(max = 500, message = "任务反馈不能超过500个字符")
@ExcelProperty("任务反馈")
@Schema(description = "任务反馈")
private String requestMsg;
/**
* 超期标识 0已超期 1未超期
*/
@ExcelAttribute(name = "超期标识", maxLength = 1)
@Length(max = 1, message = "超期标识不能超过1个字符")
@ExcelProperty("超期标识 ")
@Schema(description = "超期标识 0已超期 1未超期")
private String overFlag;
/**
* 电子签转线下签的原因
*/
@ExcelAttribute(name = "电子签转线下签的原因", maxLength = 200)
@Length(max = 200, message = "电子签转线下签的原因不能超过200个字符")
@ExcelProperty("电子签转线下签的原因")
@Schema(description = "电子签转线下签的原因")
private String changeTypeReason;
/**
* 电子签转线下签的操作人
*/
@ExcelAttribute(name = "电子签转线下签的操作人", maxLength = 50)
@Length(max = 50, message = "电子签转线下签的操作人不能超过50个字符")
@ExcelProperty("电子签转线下签的操作人")
@Schema(description = "电子签转线下签的操作人")
private String changeTypeUser;
/**
* 电子签转线下签时间
*/
@ExcelAttribute(name = "电子签转线下签时间", isDate = true)
@ExcelProperty("电子签转线下签时间")
@Schema(description = "电子签转线下签时间")
private Date changeTypeTime;
/**
* 催办标识 0已催办 1未催办
*/
@ExcelAttribute(name = "催办标识", maxLength = 1)
@Length(max = 1, message = "催办标识 不能超过1个字符")
@ExcelProperty("催办标识 0已催办 1未催办")
@Schema(description = "催办标识 0已催办 1未催办")
private String isUrg;
/**
* 试用期工资(元/月)
*/
@ExcelAttribute(name = "试用期工资(元/月)", maxLength = 20)
@Length(max = 20, message = "试用期工资(元/月)不能超过20个字符")
@ExcelProperty("试用期工资(元/月)")
@Schema(description = "试用期工资(元/月)")
private String workingReward;
}
...@@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema; ...@@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.List;
/** /**
* @Author fxj * @Author fxj
...@@ -47,4 +48,27 @@ public class ContractAlertSearchVo extends TEmpContractAlert { ...@@ -47,4 +48,27 @@ public class ContractAlertSearchVo extends TEmpContractAlert {
* 合同截止时间区间查询--截止 * 合同截止时间区间查询--截止
**/ **/
private LocalDateTime contractEndEnd; private LocalDateTime contractEndEnd;
/**
* @Author fxj
* 合同截止时间区间查询--开始
**/
private LocalDateTime expectedCollectionTimeStart;
/**
* @Author fxj
* 合同截止时间区间查询--截止
**/
private LocalDateTime expectedCollectionTimeEnd;
/**
* @Author fxj
* 续签状态多选查询
**/
private List<String> processStatusList;
/**
* 项目编码列表
*/
@Schema(description = "项目编码列表")
private List<String> deptNoList;
} }
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttributeConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
/**
* @Author fxj
* @Date 2026/2/5
* @Description
* @Version 1.0
*/
@Data
public class TEmpContractAlertExportVo {
/**
* 员工编码
*/
@ExcelAttribute(name = "员工编码" )
@Schema(description ="员工编码")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("员工编码")
private String empCode;
/**
* 员工名称
*/
@ExcelAttribute(name = "员工名称" )
@Schema(description ="员工名称")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("员工名称")
private String empName;
/**
* 手机号码
*/
@ExcelAttribute(name = "手机号码" )
@Schema(description = "手机号码")
@ExcelProperty("手机号码")
private String empPhone;
/**
* 身份证号
*/
@ExcelAttribute(name = "身份证号" )
@Schema(description ="身份证号")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("身份证号")
private String empIdcard;
/**
* 合同开始日期
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ExcelAttribute(name = "合同开始日期" )
@Schema(description ="合同开始日期")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("合同开始日期")
private Date contractStart;
/**
* 合同截止日期
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ExcelAttribute(name = "合同截止日期" )
@Schema(description ="合同截止日期")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("合同截止日期")
private Date contractEnd;
/**
* 合同岗位
*/
@Length(max = 32, message = "合同岗位不能超过32个字符")
@ExcelAttribute(name = "合同岗位", maxLength = 32, needExport = true)
@Schema(description = "合同岗位", name = "post")
@ExcelProperty("合同岗位")
private String post;
/**
* 工时制(数据字典) 1标准工时 2 综合工时 3不定时工时制
*/
@Length(max = 32, message = "工时制不能超过32个字符")
@ExcelAttribute(name = "工时制", maxLength = 32, isDataId = true, dataType = ExcelAttributeConstants.WORKING_HOURS)
@Schema(description = "工时制(数据字典) 1标准工时 2 综合工时 3不定时工时制", name = "workingHours")
@ExcelProperty("工时制")
private String workingHours;
/**
* 档案地-省
*/
@ExcelAttribute(name = "档案地-省",isArea = true )
@Schema(description ="档案地-省")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("档案所在省")
private String fileProvince;
/**
* 档案地-市
*/
@ExcelAttribute(name = "档案地-市",isArea = true,parentField = "fileProvince" )
@Schema(description ="档案地-市")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("档案所在市")
private String fileCity;
/**
* 档案地-县
*/
@ExcelAttribute(name = "档案地-县" ,isArea = true,parentField = "fileCity")
@Schema(description ="档案地-县")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("档案所在县")
private String fileTown;
/**
* 客户名称
*/
@ExcelAttribute(name = "客户名称" )
@Schema(description = "客户名称")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("客户名称")
private String unitName;
/**
* 客户编码
*/
@ExcelAttribute(name = "客户编码" )
@Schema(description = "客户编码")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("客户编码")
private String unitNo;
/**
* 项目名称
*/
@ExcelAttribute(name = "项目名称" )
@Schema(description ="项目名称")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("项目名称")
private String project;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码" )
@Schema(description ="项目编码")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("项目编码")
private String projectNo;
/**
* 员工类型
*/
@ExcelAttribute(name = "员工类型" ,isDataId = true,dataType = ExcelAttributeConstants.EMP_NATRUE )
@Schema(description ="员工类型")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("员工类型")
private String empType;
/**
* 合同类型
*/
@ExcelAttribute(name = "合同类型" , isDataId = true,dataType = ExcelAttributeConstants.EMPLOYEE_CONTRACT_TYPE)
@Schema(description ="合同类型")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("合同类型")
private String contractType;
/**
* 签订期限
*/
@ExcelAttribute(name = "签订期限" ,isDataId = true,readConverterExp = "0=已完成一定工作任务为期限,1=固定期限,2=无固定期限")
@Schema(description ="签订期限")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("签订期限")
private String contractTerm;
/**
* 到期天数
*/
@ExcelAttribute(name = "到期天数" )
@Schema(description ="到期天数")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("距离到期天数")
private Integer daysDue;
/**
* 是否过期:0 未过期 1 过期
*/
@ExcelAttribute(name = "是否过期", isDataId = true,readConverterExp = "0=未过期,1=过期" )
@Schema(description ="是否过期:0 未过期 1 过期")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("是否过期")
private String dueFlag;
/**
* 过期天数
*/
@ExcelAttribute(name = "过期天数" )
@Schema(description ="过期天数")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("过期天数")
private Integer daysOver;
/**
* 首次提醒时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ExcelAttribute(name = "首次提醒时间" )
@Schema(description ="首次提醒时间")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("首次提醒时间")
private Date firstAlertTime;
/**
* 提醒人
*/
@ExcelAttribute(name = "提醒人" )
@Schema(description ="提醒人")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("提醒人")
private String alertPerson;
/**
* 是否反馈: 0 否 1 是
*/
@ExcelAttribute(name = "是否反馈", isDataId = true,readConverterExp = "0=否,1=是" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("是否反馈")
@Schema(description = "是否反馈")
private String isFeedback;
/**
* 反馈原因
*/
@ExcelAttribute(name = "未续签原因" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("未续签原因")
@Schema(description = "未续签原因")
private String feedbackReason;
/**
* 详情
*/
@ExcelAttribute(name = "具体描述信息" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("具体描述信息")
@Schema(description = "具体描述信息")
private String feedbackDetail;
/**
* 反馈人
*/
@ExcelAttribute(name = "反馈人" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("反馈人")
@Schema(description = "反馈人")
private String feedbackPerson;
/**
* 反馈时间
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@ExcelAttribute(name = "反馈时间" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("反馈时间")
@Schema(description = "反馈时间")
private Date feedbackTime;
/**
* 处理状态 0 待处理 1 处理中 2 已处理
*/
@ExcelAttribute(name = "处理状态", isDataId = true, readConverterExp = "0=待处理,1=处理中,2=已处理" )
@Schema(description ="处理状态")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("处理状态")
private String handleStatus;
/**
* 签署方式:1线下签0电子签
*/
@ExcelAttribute(name = "签署方式" , isDataId = true,readConverterExp = "1=线下签,0=电子签")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("签署方式")
@Schema(description = "签署方式:1线下签0电子签")
private Integer signType;
/**
* 续签状态:0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署
*/
@ExcelAttribute(name = "续签状态", isDataId = true, readConverterExp = "0=待确认,1=待发起,2=线待审核,3=审核不通过,4=线下签待归档,5=发起失败,6=签署中,7=签署失败,8=电子待归档,9=已归档,10=撤销签署")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("续签状态")
@Schema(description = "签署方式:0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署")
private Integer processStatus;
/**
* 预计合同发起时间
*/
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
@ExcelAttribute(name = "预计合同发起时间" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("预计合同发起时间")
@Schema(description = "预计合同发起时间")
private Date expectedCollectionTime;
/**
* 前端客服
*/
@ExcelAttribute(name = "前端客服" )
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty("前端客服")
@Schema(description = "前端客服")
private String csName;
}
/*
* 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.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
@Data
public class TEmployeeContractPreNewSearchVo extends TEmployeeContractPreNew {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema(description = "创建时间区间")
private LocalDateTime[] createTimes;
/**
* @Author fxj
* 查询数据起
**/
@Schema(description = "查询limit 开始")
private int limitStart;
/**
* @Author fxj
* 查询数据止
**/
@Schema(description = "查询limit 数据条数")
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.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex;
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 com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
@Data
public class TEmployeeContractPreNewVo extends RowIndex implements Serializable {
/**
* id
*/
@TableId(type = IdType.ASSIGN_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 id;
/**
* 项目名称
*/
@Length(max = 50, message = "项目名称 不能超过50 个字符")
@ExcelAttribute(name = "项目名称", maxLength = 50)
@Schema(description = "项目名称")
@ExcelProperty("项目名称")
private String deptName;
/**
* 项目编码
*/
@NotBlank(message = "项目编码 不能为空")
@Length(max = 30, message = "项目编码 不能超过30 个字符")
@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码 不能为空", maxLength = 30)
@Schema(description = "项目编码")
@ExcelProperty("项目编码")
private String deptNo;
/**
* 项目id
*/
@Length(max = 36, message = "项目id 不能超过36 个字符")
@ExcelAttribute(name = "项目id", maxLength = 36)
@Schema(description = "项目id")
@ExcelProperty("项目id")
private String deptId;
/**
* 员工姓名
*/
@Length(max = 30, message = "员工姓名 不能超过30 个字符")
@ExcelAttribute(name = "员工姓名", maxLength = 30)
@Schema(description = "员工姓名")
@ExcelProperty("员工姓名")
private String employeeName;
/**
* 身份证号
*/
@NotBlank(message = "身份证号 不能为空")
@Length(max = 18, message = "身份证号 不能超过18 个字符")
@ExcelAttribute(name = "身份证号", isNotEmpty = true, errorInfo = "身份证号 不能为空", maxLength = 18)
@Schema(description = "身份证号")
@ExcelProperty("身份证号")
private String empIdcard;
/**
* 手机号码
*/
@Length(max = 11, message = "手机号码 不能超过11 个字符")
@ExcelAttribute(name = "手机号码", maxLength = 11)
@Schema(description = "手机号码")
@ExcelProperty("手机号码")
private String empPhone;
/**
* 员工类型
*/
@Length(max = 30, message = "员工类型 不能超过30 个字符")
@ExcelAttribute(name = "员工类型", maxLength = 30)
@Schema(description = "员工类型")
@ExcelProperty("员工类型")
private String employeeNature;
/**
* 就职岗位
*/
@Length(max = 50, message = "就职岗位 不能超过50 个字符")
@ExcelAttribute(name = "就职岗位", maxLength = 50)
@Schema(description = "就职岗位")
@ExcelProperty("就职岗位")
private String position;
/**
* 入职日期
*/
@ExcelAttribute(name = "入职日期", isDate = true)
@Schema(description = "入职日期")
@ExcelProperty("入职日期")
private Date joinLeaveDate;
/**
* 前端客服
*/
@Length(max = 30, message = "前端客服 不能超过30 个字符")
@ExcelAttribute(name = "前端客服", maxLength = 30)
@Schema(description = "前端客服")
@ExcelProperty("前端客服")
private String customerUsername;
/**
* 前端客服登录名
*/
@Length(max = 30, message = "前端客服登录名 不能超过30 个字符")
@ExcelAttribute(name = "前端客服登录名", maxLength = 30)
@Schema(description = "前端客服登录名")
@ExcelProperty("前端客服登录名")
private String customerUserLoginname;
/**
* 签署方式1线下签0电子签
*/
@Length(max = 1, message = "签署方式1线下签0电子签 不能超过1 个字符")
@ExcelAttribute(name = "签署方式1线下签0电子签", maxLength = 1)
@Schema(description = "签署方式1线下签0电子签")
@ExcelProperty("签署方式1线下签0电子签")
private String signType;
/**
* 合同签订内容:0自定义、上一份合同
*/
@Length(max = 100, message = "合同签订内容:0自定义、上一份合同 不能超过100 个字符")
@ExcelAttribute(name = "合同签订内容:0自定义、上一份合同", maxLength = 100)
@Schema(description = "合同签订内容:0自定义、上一份合同")
@ExcelProperty("合同签订内容:0自定义、上一份合同")
private String contractContent;
/**
* 法大大模版名称
*/
@Length(max = 100, message = "法大大模版名称 不能超过100 个字符")
@ExcelAttribute(name = "法大大模版名称", maxLength = 100)
@Schema(description = "法大大模版名称")
@ExcelProperty("法大大模版名称")
private String fadadaTemplate;
/**
* 数据来源1客户端 2客服端
*/
@Length(max = 1, message = "数据来源1客户端 2客服端 不能超过1 个字符")
@ExcelAttribute(name = "数据来源1客户端 2客服端", maxLength = 1)
@Schema(description = "数据来源1客户端 2客服端")
@ExcelProperty("数据来源1客户端 2客服端")
private String dataSource;
/**
* 状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署
*/
@Length(max = 2, message = "状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署 不能超过2 个字符")
@ExcelAttribute(name = "状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署", maxLength = 2)
@Schema(description = "状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署")
@ExcelProperty("状态,0待确认,1待发起,2线下签待审核,3线下签审核不通过4线下签待归档5发起失败6签署中7签署失败8电子待归档9(已归档-电子签+线下签)已完结10撤销签署")
private String processStatus;
/**
* 配置名称
*/
@Length(max = 100, message = "配置名称 不能超过100 个字符")
@ExcelAttribute(name = "配置名称", maxLength = 100)
@Schema(description = "配置名称")
@ExcelProperty("配置名称")
private String configName;
/**
* 是否允许修改 0是 1否
*/
@Length(max = 1, message = "是否允许修改 0是 1否 不能超过1 个字符")
@ExcelAttribute(name = "是否允许修改 0是 1否", maxLength = 1)
@Schema(description = "是否允许修改 0是 1否")
@ExcelProperty("是否允许修改 0是 1否")
private String updateFlag;
/**
* 合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同
*/
@Length(max = 8, message = "合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同 不能超过8 个字符")
@ExcelAttribute(name = "合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同", maxLength = 8)
@Schema(description = "合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同")
@ExcelProperty("合同类型 标准合同/劳务协议/实习协议/劳务派遣合同/非全日制/其他合同")
private String contractType;
/**
* 签署甲方
*/
@Length(max = 50, message = "签署甲方 不能超过50 个字符")
@ExcelAttribute(name = "签署甲方", maxLength = 50)
@Schema(description = "签署甲方")
@ExcelProperty("签署甲方")
private String signatory;
/**
* 预计确认时间
*/
@ExcelAttribute(name = "预计确认时间", isDate = true)
@Schema(description = "预计确认时间")
@ExcelProperty("预计确认时间")
private Date expectedConfirmTime;
/**
* 预计合同发起时间
*/
@ExcelAttribute(name = "预计合同发起时间", isDate = true)
@Schema(description = "预计合同发起时间")
@ExcelProperty("预计合同发起时间")
private Date expectedCollectionTime;
/**
* 签订类型-续签、新签等
*/
@Length(max = 20, message = "签订类型-续签、新签等 不能超过20 个字符")
@ExcelAttribute(name = "签订类型-续签、新签等", maxLength = 20)
@Schema(description = "签订类型-续签、新签等")
@ExcelProperty("签订类型-续签、新签等")
private String situation;
/**
* 签订期限 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 contractTerm;
/**
* 合同开始日期
*/
@ExcelAttribute(name = "合同开始日期", isDate = true)
@Schema(description = "合同开始日期")
@ExcelProperty("合同开始日期")
private Date contractStart;
/**
* 合同截止日期
*/
@ExcelAttribute(name = "合同截止日期", isDate = true)
@Schema(description = "合同截止日期")
@ExcelProperty("合同截止日期")
private Date contractEnd;
/**
* 合同岗位 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 postType;
/**
* 合同岗位名称
*/
@Length(max = 50, message = "合同岗位名称 不能超过50 个字符")
@ExcelAttribute(name = "合同岗位名称", maxLength = 50)
@Schema(description = "合同岗位名称")
@ExcelProperty("合同岗位名称")
private String post;
/**
* 工作部门
*/
@Length(max = 50, message = "工作部门 不能超过50 个字符")
@ExcelAttribute(name = "工作部门", maxLength = 50)
@Schema(description = "工作部门")
@ExcelProperty("工作部门")
private String workingDept;
/**
* 工作地点
*/
@Length(max = 200, message = "工作地点 不能超过200 个字符")
@ExcelAttribute(name = "工作地点", maxLength = 200)
@Schema(description = "工作地点")
@ExcelProperty("工作地点")
private String workAddress;
/**
* 工时制 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 workingHours;
/**
* 工资形式 1.计时工资 2.计件工资 3.其他
*/
@Length(max = 1, message = "工资形式 1.计时工资 2.计件工资 3.其他 不能超过1 个字符")
@ExcelAttribute(name = "工资形式 1.计时工资 2.计件工资 3.其他", maxLength = 1)
@Schema(description = "工资形式 1.计时工资 2.计件工资 3.其他")
@ExcelProperty("工资形式 1.计时工资 2.计件工资 3.其他")
private String salaryType;
/**
* 其他 (工资形式其他时的工资)
*/
@Length(max = 50, message = "其他 (工资形式其他时的工资) 不能超过50 个字符")
@ExcelAttribute(name = "其他 (工资形式其他时的工资)", maxLength = 50)
@Schema(description = "其他 (工资形式其他时的工资)")
@ExcelProperty("其他 (工资形式其他时的工资)")
private String otherWage;
/**
* 违约责任(金额)
*/
@Length(max = 20, message = "违约责任(金额) 不能超过20 个字符")
@ExcelAttribute(name = "违约责任(金额)", maxLength = 20)
@Schema(description = "违约责任(金额)")
@ExcelProperty("违约责任(金额)")
private String defaultAmount;
/**
* 合同年限-年
*/
@Length(max = 50, message = "合同年限-年 不能超过50 个字符")
@ExcelAttribute(name = "合同年限-年", maxLength = 50)
@Schema(description = "合同年限-年")
@ExcelProperty("合同年限-年")
private String contractDurationYear;
/**
* 合同年限-月
*/
@Length(max = 50, message = "合同年限-月 不能超过50 个字符")
@ExcelAttribute(name = "合同年限-月", maxLength = 50)
@Schema(description = "合同年限-月")
@ExcelProperty("合同年限-月")
private String contractDurationMonth;
/**
* 合同试用期开始时间-续签无,冗余
*/
@ExcelAttribute(name = "合同试用期开始时间-续签无,冗余", isDate = true)
@Schema(description = "合同试用期开始时间-续签无,冗余")
@ExcelProperty("合同试用期开始时间-续签无,冗余")
private Date tryPeriodStart;
/**
* 合同试用期结束时间-续签无,冗余
*/
@ExcelAttribute(name = "合同试用期结束时间-续签无,冗余", isDate = true)
@Schema(description = "合同试用期结束时间-续签无,冗余")
@ExcelProperty("合同试用期结束时间-续签无,冗余")
private Date tryPeriodEnd;
/**
* 是否有试用期 0是1否-续签无,冗余
*/
@Length(max = 1, message = "是否有试用期 0是1否-续签无,冗余 不能超过1 个字符")
@ExcelAttribute(name = "是否有试用期 0是1否-续签无,冗余", maxLength = 1)
@Schema(description = "是否有试用期 0是1否-续签无,冗余")
@ExcelProperty("是否有试用期 0是1否-续签无,冗余")
private String tryPeriodType;
/**
* 试用期(单位月)-续签无,冗余
*/
@Length(max = 5, message = "试用期(单位月)-续签无,冗余 不能超过5 个字符")
@ExcelAttribute(name = "试用期(单位月)-续签无,冗余", maxLength = 5)
@Schema(description = "试用期(单位月)-续签无,冗余")
@ExcelProperty("试用期(单位月)-续签无,冗余")
private String tryPeriod;
/**
* 劳务费(元/月)
*/
@Length(max = 20, message = "劳务费(元/月) 不能超过20 个字符")
@ExcelAttribute(name = "劳务费(元/月)", maxLength = 20)
@Schema(description = "劳务费(元/月)")
@ExcelProperty("劳务费(元/月)")
private String laborCost;
/**
* 购买补充保险说明
*/
@Length(max = 50, message = "购买补充保险说明 不能超过50 个字符")
@ExcelAttribute(name = "购买补充保险说明", maxLength = 50)
@Schema(description = "购买补充保险说明")
@ExcelProperty("购买补充保险说明")
private String riskBuyDesc;
/**
* 计时工资工资标准 元/月
*/
@Length(max = 20, message = "计时工资工资标准 元/月 不能超过20 个字符")
@ExcelAttribute(name = "计时工资工资标准 元/月 ", maxLength = 20)
@Schema(description = "计时工资工资标准 元/月 ")
@ExcelProperty("计时工资工资标准 元/月 ")
private String salaryStandardPerHour;
/**
* 计件工资工资标准单价/元
*/
@Length(max = 20, message = "计件工资工资标准单价/元 不能超过20 个字符")
@ExcelAttribute(name = "计件工资工资标准单价/元 ", maxLength = 20)
@Schema(description = "计件工资工资标准单价/元 ")
@ExcelProperty("计件工资工资标准单价/元 ")
private String salaryStandardPerPiece;
/**
* 配置id
*/
@Length(max = 36, message = "配置id 不能超过36 个字符")
@ExcelAttribute(name = "配置id", maxLength = 36)
@Schema(description = "配置id")
@ExcelProperty("配置id")
private String configId;
/**
* 工作方式 0 第一种方式 1 第二种方式
*/
@Length(max = 5, message = "工作方式 0 第一种方式 1 第二种方式 不能超过5 个字符")
@ExcelAttribute(name = "工作方式 0 第一种方式 1 第二种方式", maxLength = 5)
@Schema(description = "工作方式 0 第一种方式 1 第二种方式")
@ExcelProperty("工作方式 0 第一种方式 1 第二种方式")
private String workType;
/**
* 每周工作天数
*/
@Length(max = 20, message = "每周工作天数 不能超过20 个字符")
@ExcelAttribute(name = "每周工作天数", maxLength = 20)
@Schema(description = "每周工作天数")
@ExcelProperty("每周工作天数")
private String workDayCount;
/**
* 每周工作日
*/
@Length(max = 50, message = "每周工作日 不能超过50 个字符")
@ExcelAttribute(name = "每周工作日", maxLength = 50)
@Schema(description = "每周工作日")
@ExcelProperty("每周工作日")
private String workDay;
/**
* 每日工作时长
*/
@Length(max = 20, message = "每日工作时长 不能超过20 个字符")
@ExcelAttribute(name = "每日工作时长", maxLength = 20)
@Schema(description = "每日工作时长")
@ExcelProperty("每日工作时长")
private String workHours;
/**
* 工资结算周期
*/
@Length(max = 20, message = "工资结算周期 不能超过20 个字符")
@ExcelAttribute(name = "工资结算周期", maxLength = 20)
@Schema(description = "工资结算周期")
@ExcelProperty("工资结算周期")
private String settlementCycle;
/**
* 工资发放时间
*/
@Length(max = 50, message = "工资发放时间 不能超过50 个字符")
@ExcelAttribute(name = "工资发放时间", maxLength = 50)
@Schema(description = "工资发放时间")
@ExcelProperty("工资发放时间")
private String paymentTime;
/**
* 工资发放方式 0 直接发放/委托银行代发
*/
@Length(max = 1, message = "工资发放方式 0 直接发放/委托银行代发 不能超过1 个字符")
@ExcelAttribute(name = "工资发放方式 0 直接发放/委托银行代发", maxLength = 1)
@Schema(description = "工资发放方式 0 直接发放/委托银行代发")
@ExcelProperty("工资发放方式 0 直接发放/委托银行代发")
private String paymentType;
/**
* 用工单位名称
*/
@Length(max = 50, message = "用工单位名称 不能超过50 个字符")
@ExcelAttribute(name = "用工单位名称", maxLength = 50)
@Schema(description = "用工单位名称")
@ExcelProperty("用工单位名称")
private String workingCompany;
/**
* 派遣期限-年
*/
@Length(max = 3, message = "派遣期限-年 不能超过3 个字符")
@ExcelAttribute(name = "派遣期限-年", maxLength = 3)
@Schema(description = "派遣期限-年")
@ExcelProperty("派遣期限-年")
private String dispatchPeriodYear;
/**
* 派遣期限-月
*/
@Length(max = 3, message = "派遣期限-月 不能超过3 个字符")
@ExcelAttribute(name = "派遣期限-月", maxLength = 3)
@Schema(description = "派遣期限-月")
@ExcelProperty("派遣期限-月")
private String dispatchPeriodMonth;
/**
* 派遣开始日期
*/
@ExcelAttribute(name = "派遣开始日期", isDate = true)
@Schema(description = "派遣开始日期")
@ExcelProperty("派遣开始日期")
private Date dispatchPeriodStart;
/**
* 派遣结束日期
*/
@ExcelAttribute(name = "派遣结束日期", isDate = true)
@Schema(description = "派遣结束日期")
@ExcelProperty("派遣结束日期")
private Date dispatchPeriodEnd;
/**
* 其他工作时间 (工作方式为第二种方式)
*/
@Length(max = 50, message = "其他工作时间 (工作方式为第二种方式) 不能超过50 个字符")
@ExcelAttribute(name = "其他工作时间 (工作方式为第二种方式)", maxLength = 50)
@Schema(description = "其他工作时间 (工作方式为第二种方式)")
@ExcelProperty("其他工作时间 (工作方式为第二种方式)")
private String otherWorkDay;
/**
* 实习期限 无/一个月/两个月.../十二个月
*/
@Length(max = 5, message = "实习期限 无/一个月/两个月.../十二个月 不能超过5 个字符")
@ExcelAttribute(name = "实习期限 无/一个月/两个月.../十二个月", maxLength = 5)
@Schema(description = "实习期限 无/一个月/两个月.../十二个月")
@ExcelProperty("实习期限 无/一个月/两个月.../十二个月")
private String internshipPeriod;
/**
* 实习开始日期
*/
@ExcelAttribute(name = "实习开始日期", isDate = true)
@Schema(description = "实习开始日期")
@ExcelProperty("实习开始日期")
private Date internshipPeriodStart;
/**
* 实习结束日期
*/
@ExcelAttribute(name = "实习结束日期", isDate = true)
@Schema(description = "实习结束日期")
@ExcelProperty("实习结束日期")
private Date internshipPeriodEnd;
/**
* 是否撤销签署0是1否
*/
@Length(max = 1, message = "是否撤销签署0是1否 不能超过1 个字符")
@ExcelAttribute(name = "是否撤销签署0是1否", maxLength = 1)
@Schema(description = "是否撤销签署0是1否")
@ExcelProperty("是否撤销签署0是1否")
private String signFlag;
/**
* 异常原因说明
*/
@Length(max = 200, message = "异常原因说明 不能超过200 个字符")
@ExcelAttribute(name = "异常原因说明", maxLength = 200)
@Schema(description = "异常原因说明")
@ExcelProperty("异常原因说明")
private String errorInfo;
/**
* 关联合同id
*/
@Length(max = 36, message = "关联合同id 不能超过36 个字符")
@ExcelAttribute(name = "关联合同id", maxLength = 36)
@Schema(description = "关联合同id")
@ExcelProperty("关联合同id")
private String contractId;
/**
* 撤销签署原因
*/
@Length(max = 255, message = "撤销签署原因 不能超过255 个字符")
@ExcelAttribute(name = "撤销签署原因", maxLength = 255)
@Schema(description = "撤销签署原因")
@ExcelProperty("撤销签署原因")
private String revokeReason;
/**
* 发起失败时间
*/
@ExcelAttribute(name = "发起失败时间", isDate = true)
@Schema(description = "发起失败时间")
@ExcelProperty("发起失败时间")
private Date errorTime;
/**
* 合同截止日期类型
*/
@Length(max = 1, message = "合同截止日期类型 不能超过1 个字符")
@ExcelAttribute(name = "合同截止日期类型", maxLength = 1)
@Schema(description = "合同截止日期类型")
@ExcelProperty("合同截止日期类型")
private String contractEndType;
/**
* 入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义
*/
@Length(max = 2, message = "入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义 不能超过2 个字符")
@ExcelAttribute(name = "入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义", maxLength = 2)
@Schema(description = "入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义")
@ExcelProperty("入职确认选择 0 配置方案内选择、1 自定义 2 配置方案+自定义")
private String confirmEmpSelect;
/**
* 超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发
*/
@Length(max = 2, message = "超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发 不能超过2 个字符")
@ExcelAttribute(name = "超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发", maxLength = 2)
@Schema(description = "超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发")
@ExcelProperty("超时未确认是否触发签署任务(电子签) 0 自动触发 1 不触发")
private String timeoutElecSign;
/**
* 工作任务
*/
@Length(max = 200, message = "工作任务 不能超过200 个字符")
@ExcelAttribute(name = "工作任务", maxLength = 200)
@Schema(description = "工作任务")
@ExcelProperty("工作任务")
private String task;
/**
* 任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同
*/
@Length(max = 2, message = "任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同 不能超过2 个字符")
@ExcelAttribute(name = "任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同", maxLength = 2)
@Schema(description = "任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同")
@ExcelProperty("任务类型: 0 不同员工不同任务自定义 1 所有员工任务相同")
private String taskType;
/**
* 结束任务标准
*/
@Length(max = 200, message = "结束任务标准 不能超过200 个字符")
@ExcelAttribute(name = "结束任务标准", maxLength = 200)
@Schema(description = "结束任务标准")
@ExcelProperty("结束任务标准")
private String taskEndStandard;
/**
* 是否已签署合同 0是1否
*/
@Length(max = 1, message = "是否已签署合同 0是1否 不能超过1 个字符")
@ExcelAttribute(name = "是否已签署合同 0是1否", maxLength = 1)
@Schema(description = "是否已签署合同 0是1否")
@ExcelProperty("是否已签署合同 0是1否")
private String contractFlag;
/**
* 业务细分
*/
@Length(max = 50, message = "业务细分 不能超过50 个字符")
@ExcelAttribute(name = "业务细分", maxLength = 50)
@Schema(description = "业务细分")
@ExcelProperty("业务细分")
private String contractSubName;
/**
* 法大大模版ID
*/
@Length(max = 100, message = "法大大模版ID 不能超过100 个字符")
@ExcelAttribute(name = "法大大模版ID", maxLength = 100)
@Schema(description = "法大大模版ID")
@ExcelProperty("法大大模版ID")
private String fadadaTemplateId;
/**
* 任务ID
*/
@Length(max = 100, message = "任务ID 不能超过100 个字符")
@ExcelAttribute(name = "任务ID", maxLength = 100)
@Schema(description = "任务ID")
@ExcelProperty("任务ID")
private String requestId;
/**
* 任务反馈
*/
@Length(max = 500, message = "任务反馈 不能超过500 个字符")
@ExcelAttribute(name = "任务反馈", maxLength = 500)
@Schema(description = "任务反馈")
@ExcelProperty("任务反馈")
private String requestMsg;
/**
* 超期标识 0已超期 1未超期
*/
@Length(max = 1, message = "超期标识 0已超期 1未超期 不能超过1 个字符")
@ExcelAttribute(name = "超期标识 0已超期 1未超期", maxLength = 1)
@Schema(description = "超期标识 0已超期 1未超期")
@ExcelProperty("超期标识 0已超期 1未超期")
private String overFlag;
/**
* 电子签转线下签的原因
*/
@Length(max = 200, message = "电子签转线下签的原因 不能超过200 个字符")
@ExcelAttribute(name = "电子签转线下签的原因", maxLength = 200)
@Schema(description = "电子签转线下签的原因")
@ExcelProperty("电子签转线下签的原因")
private String changeTypeReason;
/**
* 电子签转线下签的操作人
*/
@Length(max = 50, message = "电子签转线下签的操作人 不能超过50 个字符")
@ExcelAttribute(name = "电子签转线下签的操作人", maxLength = 50)
@Schema(description = "电子签转线下签的操作人")
@ExcelProperty("电子签转线下签的操作人")
private String changeTypeUser;
/**
* 电子签转线下签时间
*/
@ExcelAttribute(name = "电子签转线下签时间", isDate = true)
@Schema(description = "电子签转线下签时间")
@ExcelProperty("电子签转线下签时间")
private Date changeTypeTime;
/**
* 催办标识 0已催办 1未催办
*/
@Length(max = 1, message = "催办标识 0已催办 1未催办 不能超过1 个字符")
@ExcelAttribute(name = "催办标识 0已催办 1未催办", maxLength = 1)
@Schema(description = "催办标识 0已催办 1未催办")
@ExcelProperty("催办标识 0已催办 1未催办")
private String isUrg;
/**
* 试用期工资(元/月)
*/
@Length(max = 20, message = "试用期工资(元/月) 不能超过20 个字符")
@ExcelAttribute(name = "试用期工资(元/月)", maxLength = 20)
@Schema(description = "试用期工资(元/月)")
@ExcelProperty("试用期工资(元/月)")
private String workingReward;
}
...@@ -60,7 +60,35 @@ public class TEmpContractAlertController { ...@@ -60,7 +60,35 @@ public class TEmpContractAlertController {
private final TEmpContractAlertService tEmpContractAlertService; private final TEmpContractAlertService tEmpContractAlertService;
private final MenuUtil menuUtil; private final MenuUtil menuUtil;
/**
* 自动化合同续签待办查询
* @param page 分页对象
* @param tEmpContractAlert 自动化合同续签待办查询
* @return
*/
@Operation(description = "自动化合同续签待办查询")
@GetMapping("/autoPage")
public R<IPage<TEmpContractAlert>> getTEmpContractAlertAutoPage(Page<TEmpContractAlert> page, ContractAlertSearchVo tEmpContractAlert) {
//默认开启自动化的
tEmpContractAlert.setAutoFlag(CommonConstants.ZERO_STRING);
return R.ok(tEmpContractAlertService.getTEmpContractAlertAutoPage(page,tEmpContractAlert));
}
/**
* @Author fxj
* @Description 自动化合同续签待办数量
* @Date 16:49 2026/2/5
* @Param
* @return
**/
@Operation(description = "自动化合同续签待办数量")
@GetMapping("/autoCount")
public R<Integer> getTEmpContractAlertAutoCount() {
ContractAlertSearchVo tEmpContractAlert = new ContractAlertSearchVo();
//默认开启自动化的
tEmpContractAlert.setAutoFlag(CommonConstants.ZERO_STRING);
return R.ok(tEmpContractAlertService.getTEmpContractAlertAutoCount(tEmpContractAlert));
}
/** /**
* 分页查询 * 分页查询
...@@ -280,4 +308,18 @@ public class TEmpContractAlertController { ...@@ -280,4 +308,18 @@ public class TEmpContractAlertController {
public void pushInsuranceAlertToWx() { public void pushInsuranceAlertToWx() {
tEmpContractAlertService.pushContractAlertToWx(); tEmpContractAlertService.pushContractAlertToWx();
} }
/**
* @Author fxj
* @Description 批量导出自动化合同续签待办
* @Date 17:00 2026/2/5
* @Param
* @return
**/
@Operation(description = "导出自动化续签待办")
@PostMapping("/autoExport")
public void autoExport(HttpServletResponse response, @RequestBody ContractAlertSearchVo searchVo) {
tEmpContractAlertService.listAutoExport(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.archives.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
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.archives.entity.TEmployeeContractPreNew;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeContractPreNewService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewSearchVo;
import lombok.SneakyThrows;
import org.springframework.security.access.prepost.PreAuthorize;
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 org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/temployeecontractprenew")
@Tag(name = "合同续签预派单信息管理")
public class TEmployeeContractPreNewController {
private final TEmployeeContractPreNewService tEmployeeContractPreNewService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TEmployeeContractPreNew>> getTEmployeeContractPreNewPage(Page<TEmployeeContractPreNew> page, TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) {
return new R<>(tEmployeeContractPreNewService.getTEmployeeContractPreNewPage(page, tEmployeeContractPreNew));
}
/**
* 不分页查询
*
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew_get')" )
public R<List<TEmployeeContractPreNew>> getTEmployeeContractPreNewNoPage(@RequestBody TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) {
return R.ok(tEmployeeContractPreNewService.noPageDiy(tEmployeeContractPreNew));
}
/**
* 通过id查询合同续签预派单信息
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_temployeecontractprenew_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew_get')")
public R<TEmployeeContractPreNew> getById(@PathVariable("id") String id) {
return R.ok(tEmployeeContractPreNewService.getById(id));
}
/**
* 新增合同续签预派单信息
*
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return R
*/
@Operation(summary = "新增合同续签预派单信息", description = "新增合同续签预派单信息:hasPermission('archives_temployeecontractprenew_add')")
@SysLog("新增合同续签预派单信息")
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew_add')")
public R<Boolean> save(@RequestBody TEmployeeContractPreNew tEmployeeContractPreNew) {
return R.ok(tEmployeeContractPreNewService.save(tEmployeeContractPreNew));
}
/**
* 修改合同续签预派单信息
*
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return R
*/
@Operation(summary = "修改合同续签预派单信息", description = "修改合同续签预派单信息:hasPermission('archives_temployeecontractprenew_edit')")
@SysLog("修改合同续签预派单信息")
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew_edit')")
public R<Boolean> updateById(@RequestBody TEmployeeContractPreNew tEmployeeContractPreNew) {
return R.ok(tEmployeeContractPreNewService.updateById(tEmployeeContractPreNew));
}
/**
* 通过id删除合同续签预派单信息
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除合同续签预派单信息", description = "通过id删除合同续签预派单信息:hasPermission('archives_temployeecontractprenew_del')")
@SysLog("通过id删除合同续签预派单信息")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tEmployeeContractPreNewService.removeById(id));
}
/**
* 合同续签预派单信息 批量导入
*
* @author fxj
* @date 2026-02-05 15:45:40
**/
@SneakyThrows
@Operation(description = "批量新增合同续签预派单信息 hasPermission('archives_temployeecontractprenew-batch-import')")
@SysLog("批量新增合同续签预派单信息")
@PostMapping("/importListAdd")
@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew-batch-import')")
public R<List<ErrorMessage>> importListAdd(@RequestBody MultipartFile file) {
return tEmployeeContractPreNewService.importDiy(file.getInputStream());
}
/**
* 合同续签预派单信息 批量导出
*
* @author fxj
* @date 2026-02-05 15:45:40
**/
@Operation(description = "导出合同续签预派单信息 hasPermission('archives_temployeecontractprenew-export')")
@PostMapping("/export")
@PreAuthorize("@pms.hasPermission('archives_temployeecontractprenew-export')")
public void export(HttpServletResponse response, @RequestBody TEmployeeContractPreNewSearchVo searchVo) {
tEmployeeContractPreNewService.listExport(response, searchVo);
}
}
...@@ -18,9 +18,13 @@ ...@@ -18,9 +18,13 @@
package com.yifu.cloud.plus.v1.yifu.archives.mapper; package com.yifu.cloud.plus.v1.yifu.archives.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; 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.archives.entity.TEmpContractAlert; import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpContractAlert;
import com.yifu.cloud.plus.v1.yifu.archives.vo.ChangeFeedBackAllVo; import com.yifu.cloud.plus.v1.yifu.archives.vo.ChangeFeedBackAllVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.ContractAlertSearchVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpContractAlertUpdateVO; import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpContractAlertUpdateVO;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpContractAlertExportVo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
...@@ -41,4 +45,21 @@ public interface TEmpContractAlertMapper extends BaseMapper<TEmpContractAlert> { ...@@ -41,4 +45,21 @@ public interface TEmpContractAlertMapper extends BaseMapper<TEmpContractAlert> {
List<TEmpContractAlert> getAlertInfoList(@Param("idCardList") List<String> idCardList); List<TEmpContractAlert> getAlertInfoList(@Param("idCardList") List<String> idCardList);
/**
* 员工合同续签待办简单分页查询
* @param tEmpContractAlert 员工合同续签待办
* @return
*/
IPage<TEmpContractAlert> getTEmpContractAlertAutoPage(Page<TEmpContractAlert> page, @Param("tEmpContractAlert") TEmpContractAlert tEmpContractAlert);
/**
* @Author fxj
* @Description 自动化合同续签待办数量
* @Date 16:51 2026/2/5
* @Param
* @return
**/
int getTEmpContractAlertAutoCount(@Param("tEmpContractAlert") ContractAlertSearchVo tEmpContractAlert);
List<TEmpContractAlertExportVo> listExport(@Param("tEmpContractAlert") ContractAlertSearchVo 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.archives.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.archives.entity.TEmployeeContractPreNew;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
@Mapper
public interface TEmployeeContractPreNewMapper extends BaseMapper<TEmployeeContractPreNew> {
/**
* 合同续签预派单信息简单分页查询
*
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return
*/
IPage<TEmployeeContractPreNew> getTEmployeeContractPreNewPage(Page<TEmployeeContractPreNew> page, @Param("tEmployeeContractPreNew") TEmployeeContractPreNew tEmployeeContractPreNew);
}
...@@ -40,6 +40,13 @@ import java.util.List; ...@@ -40,6 +40,13 @@ import java.util.List;
*/ */
public interface TEmpContractAlertService extends IService<TEmpContractAlert> { public interface TEmpContractAlertService extends IService<TEmpContractAlert> {
/**
* 员工合同续签待办简单分页查询
* @param tEmpContractAlert 员工合同续签待办
* @return
*/
IPage<TEmpContractAlert> getTEmpContractAlertAutoPage(Page<TEmpContractAlert> page, ContractAlertSearchVo tEmpContractAlert);
IPage<TEmpContractAlert> pageDiy(Page page, ContractAlertSearchVo searchVo); IPage<TEmpContractAlert> pageDiy(Page page, ContractAlertSearchVo searchVo);
// 给自动化用的-合同待续签-分页查询 // 给自动化用的-合同待续签-分页查询
IPage<TEmpContractAlert> getAutoPage(Page page, ContractAlertSearchVo searchVo); IPage<TEmpContractAlert> getAutoPage(Page page, ContractAlertSearchVo searchVo);
...@@ -74,4 +81,8 @@ public interface TEmpContractAlertService extends IService<TEmpContractAlert> { ...@@ -74,4 +81,8 @@ public interface TEmpContractAlertService extends IService<TEmpContractAlert> {
R<List<ErrorMessage>> importDiy(InputStream inputStream); R<List<ErrorMessage>> importDiy(InputStream inputStream);
void pushContractAlertToWx(); void pushContractAlertToWx();
Integer getTEmpContractAlertAutoCount(ContractAlertSearchVo tEmpContractAlert);
void listAutoExport(HttpServletResponse response, ContractAlertSearchVo 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.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew;
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.archives.vo.TEmployeeContractPreNewSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
public interface TEmployeeContractPreNewService extends IService<TEmployeeContractPreNew> {
/**
* 合同续签预派单信息简单分页查询
*
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return
*/
IPage<TEmployeeContractPreNew> getTEmployeeContractPreNewPage(Page<TEmployeeContractPreNew> page, TEmployeeContractPreNewSearchVo tEmployeeContractPreNew);
R<List<ErrorMessage>> importDiy(InputStream inputStream);
void listExport(HttpServletResponse response, TEmployeeContractPreNewSearchVo searchVo);
List<TEmployeeContractPreNew> noPageDiy(TEmployeeContractPreNewSearchVo searchVo);
}
...@@ -41,7 +41,10 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.*; ...@@ -41,7 +41,10 @@ import com.yifu.cloud.plus.v1.yifu.archives.entity.*;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.*; import com.yifu.cloud.plus.v1.yifu.archives.mapper.*;
import com.yifu.cloud.plus.v1.yifu.archives.service.FeedBackDetailService; import com.yifu.cloud.plus.v1.yifu.archives.service.FeedBackDetailService;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpContractAlertService; import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpContractAlertService;
import com.yifu.cloud.plus.v1.yifu.archives.service.TSettleDomainService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.*; import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ClientNameConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.SecurityConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*; import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
...@@ -76,6 +79,8 @@ import java.util.stream.Collectors; ...@@ -76,6 +79,8 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor @RequiredArgsConstructor
@Service @Service
public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertMapper, TEmpContractAlert> implements TEmpContractAlertService { public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertMapper, TEmpContractAlert> implements TEmpContractAlertService {
@Autowired
private RedisUtil redisUtil;
private final TEmployeeContractInfoMapper contractInfoMapper; private final TEmployeeContractInfoMapper contractInfoMapper;
...@@ -90,6 +95,8 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -90,6 +95,8 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
private final TSettleDomainMapper settleDomainMapper; private final TSettleDomainMapper settleDomainMapper;
private final TAutoMainRelMapper tAutoMainRelMapper; private final TAutoMainRelMapper tAutoMainRelMapper;
private final TSettleDomainService tSettleDomainService;
@Autowired @Autowired
private UpmsDaprUtils upmsDaprUtils; private UpmsDaprUtils upmsDaprUtils;
...@@ -211,7 +218,9 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -211,7 +218,9 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
} }
return baseMapper.selectList(wrapper); return baseMapper.selectList(wrapper);
} }
public List<TEmpContractAlertExportVo> listExport(ContractAlertSearchVo searchVo) {
return baseMapper.listExport(searchVo);
}
private long noPageCountDiy(ContractAlertSearchVo searchVo) { private long noPageCountDiy(ContractAlertSearchVo searchVo) {
LambdaQueryWrapper<TEmpContractAlert> wrapper = buildQueryWrapper(searchVo); LambdaQueryWrapper<TEmpContractAlert> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds()); List<String> idList = Common.getList(searchVo.getIds());
...@@ -941,6 +950,7 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -941,6 +950,7 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
} }
} }
//发送企业微信待办 //发送企业微信待办
private void sendMessageToWx(String useruserWx, StringBuilder content) { private void sendMessageToWx(String useruserWx, StringBuilder content) {
if (Common.isEmpty(useruserWx) || Common.isEmpty(content)) { if (Common.isEmpty(useruserWx) || Common.isEmpty(content)) {
...@@ -1008,5 +1018,137 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM ...@@ -1008,5 +1018,137 @@ public class TEmpContractAlertServiceImpl extends ServiceImpl<TEmpContractAlertM
} }
} }
/**
* 员工合同续签待办简单分页查询
* @param tEmpContractAlert 员工合同续签待办
* @return
*/
@Override
public IPage<TEmpContractAlert> getTEmpContractAlertAutoPage(Page<TEmpContractAlert> page, ContractAlertSearchVo tEmpContractAlert){
//初始化客服的项目权限 ,管理员及SSC 全量
initSearchVo(tEmpContractAlert);
return baseMapper.getTEmpContractAlertAutoPage(page,tEmpContractAlert);
}
public void initSearchVo(ContractAlertSearchVo searchVo) {
YifuUser user = SecurityUtils.getUser();
long roleId = 1839501715787390978L;
boolean isSsc = this.haveRole(user, roleId);
if (isSsc || CommonConstants.ZERO_STRING.equals(user.getSystemFlag())) {
searchVo.setAuthSql(null);
return;
}
//获取项目信息
List<String> deptNos = tSettleDomainService.getAllDeptByCustomerLoginName(user.getUsername());
if (null != deptNos && !deptNos.isEmpty()) {
searchVo.setDeptNoList(deptNos);
} else {
searchVo.setId(CommonConstants.ONE_STRING_NEGATE);
}
}
public boolean haveRole(YifuUser user, long roleId) {
List<Long> roleList = user.getClientRoleMap().get(ClientNameConstants.CLIENT_MVP);
for (Long role : roleList) {
if (role == roleId) {
return true;
}
}
return false;
}
@Override
public Integer getTEmpContractAlertAutoCount(ContractAlertSearchVo tEmpContractAlert) {
//初始化客服的项目权限 ,管理员及SSC 全量
initSearchVo(tEmpContractAlert);
return baseMapper.getTEmpContractAlertAutoCount(tEmpContractAlert);
}
public Integer geAutoExportCount(ContractAlertSearchVo tEmpContractAlert) {
return baseMapper.getTEmpContractAlertAutoCount(tEmpContractAlert);
}
/**
* @Author fxj
* @Description 导出自动化续签待办
* @Date 17:01 2026/2/5
* @Param
* @return
**/
@Override
public void listAutoExport(HttpServletResponse response, ContractAlertSearchVo searchVo) {
//默认导出自动化的合同续签待办
searchVo.setAutoFlag(CommonConstants.ZERO_STRING);
initSearchVo(searchVo);
String fileName = ArchivesConstants.EMP_AUTO_RENEWAL_RECORD + LocalDateTime.now() + CommonConstants.XLSX;
//获取要导出的列表
List<TEmpContractAlertExportVo> list = new ArrayList<>();
ServletOutputStream out = null;
YifuUser user = SecurityUtils.getUser();
String key = CacheConstants.EMP_CONTRACT_AUTO_RENEWAL_EXPORT + CommonConstants.DOWN_LINE_STRING +user.getId() ;
try {
out = response.getOutputStream();
response.setContentType(CommonConstants.MULTIPART_FORM_DATA);
response.setHeader(CommonConstants.CONTENT_DISPOSITION, CommonConstants.ATTACHMENT_FILENAME + URLEncoder.encode(fileName , CommonConstants.UTF8));
//防止同一个人反复操作导出
if (Common.isNotNull(redisUtil.get(key))) {
out.write(CommonConstants.SOCIAL_EXPORT_CONTINUE.getBytes("GBK"));
out.close();
return;
} else {
redisUtil.set(key, user.getId(), 600L);
}
long count = this.geAutoExportCount(searchVo);
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter excelWriter = EasyExcel.write(out, TEmpContractAlertExportVo.class).build();
int index = 0;
if (count > CommonConstants.ZERO_INT) {
WriteSheet writeSheet;
ExcelUtil<TEmpContractAlertExportVo> util;
for (int i = 0; i <= count; ) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
list = listExport(searchVo);
if (Common.isNotNull(list)){
util = new ExcelUtil<>(TEmpContractAlertExportVo.class);
for (TEmpContractAlertExportVo vo:list){
util.convertEntity(vo,null,null,null);
}
}
if (Common.isNotNull(list)){
writeSheet = EasyExcel.writerSheet(ArchivesConstants.EMP_AUTO_RENEWAL_RECORD+index).build();
excelWriter.write(list,writeSheet);
index++;
i = i + CommonConstants.EXCEL_EXPORT_LIMIT;
}
if (Common.isNotNull(list)){
list.clear();
}
}
excelWriter.finish();
}else {
WriteSheet writeSheet = EasyExcel.writerSheet(ArchivesConstants.EMP_AUTO_RENEWAL_RECORD+index).build();
excelWriter.write(list,writeSheet);
excelWriter.finish();
}
if (Common.isNotNull(list)){
list.clear();
}
out.flush();
}catch (Exception e){
redisUtil.remove(key);
log.error("自动化合同续签待办导出执行异常" ,e);
}finally {
try {
if (null != out) {
out.close();
}
redisUtil.remove(key);
} catch (IOException e) {
redisUtil.remove(key);
log.error("自动化合同续签待办导出执行异常", e);
}
}
}
} }
/*
* 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.archives.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TEmployeeContractPreNewVo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeContractPreNewMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmployeeContractPreNewService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
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.archives.vo.TEmployeeContractPreNewSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
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.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
/**
* 合同续签预派单信息
*
* @author fxj
* @date 2026-02-05 15:45:40
*/
@Log4j2
@Service
public class TEmployeeContractPreNewServiceImpl extends ServiceImpl<TEmployeeContractPreNewMapper, TEmployeeContractPreNew> implements TEmployeeContractPreNewService {
/**
* 合同续签预派单信息简单分页查询
*
* @param tEmployeeContractPreNew 合同续签预派单信息
* @return
*/
@Override
public IPage<TEmployeeContractPreNew> getTEmployeeContractPreNewPage(Page<TEmployeeContractPreNew> page, TEmployeeContractPreNewSearchVo tEmployeeContractPreNew) {
return baseMapper.getTEmployeeContractPreNewPage(page, tEmployeeContractPreNew);
}
/**
* 合同续签预派单信息批量导出
*
* @param searchVo 合同续签预派单信息
* @return
*/
@Override
public void listExport(HttpServletResponse response, TEmployeeContractPreNewSearchVo searchVo) {
String fileName = "合同续签预派单信息批量导出" + DateUtil.getThisTime() + ".xlsx";
//获取要导出的列表
List<TEmployeeContractPreNew> list = new ArrayList<>();
long count = noPageCountDiy(searchVo);
ServletOutputStream out = null;
try {
out = response.getOutputStream();
response.setContentType(CommonConstants.MULTIPART_FORM_DATA);
response.setCharacterEncoding("utf-8");
response.setHeader(CommonConstants.CONTENT_DISPOSITION, CommonConstants.ATTACHMENT_FILENAME + URLEncoder.encode(fileName, CommonConstants.UTF8));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter excelWriter = EasyExcel.write(out, TEmployeeContractPreNew.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<TEmployeeContractPreNew> util = new ExcelUtil<>(TEmployeeContractPreNew.class);
for (TEmployeeContractPreNew 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<TEmployeeContractPreNew> noPageDiy(TEmployeeContractPreNewSearchVo searchVo) {
LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TEmployeeContractPreNew::getId, idList);
}
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(TEmployeeContractPreNewSearchVo searchVo) {
LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TEmployeeContractPreNew::getId, idList);
}
return baseMapper.selectCount(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TEmployeeContractPreNewSearchVo entity) {
LambdaQueryWrapper<TEmployeeContractPreNew> wrapper = Wrappers.lambdaQuery();
if (ArrayUtil.isNotEmpty(entity.getCreateTimes())) {
wrapper.ge(TEmployeeContractPreNew::getCreateTime, entity.getCreateTimes()[0])
.le(TEmployeeContractPreNew::getCreateTime,
entity.getCreateTimes()[1]);
}
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TEmployeeContractPreNew::getCreateName, entity.getCreateName());
}
return wrapper;
}
@Override
public R<List<ErrorMessage>> importDiy(InputStream inputStream) {
List<ErrorMessage> errorMessageList = new ArrayList<>();
ExcelUtil<TEmployeeContractPreNewVo> util1 = new ExcelUtil<>(TEmployeeContractPreNewVo.class);
;
// 写法2:
// 匿名内部类 不用额外写一个DemoDataListener
// 这里 需要指定读用哪个class去读,然后读取第一个sheet 文件流会自动关闭
try {
EasyExcel.read(inputStream, TEmployeeContractPreNewVo.class, new ReadListener<TEmployeeContractPreNewVo>() {
/**
* 单次缓存的数据量
*/
public static final int BATCH_COUNT = CommonConstants.BATCH_COUNT;
/**
*临时存储
*/
private List<TEmployeeContractPreNewVo> cachedDataList = ListUtils.newArrayListWithExpectedSize(BATCH_COUNT);
@Override
public void invoke(TEmployeeContractPreNewVo data, AnalysisContext context) {
ReadRowHolder readRowHolder = context.readRowHolder();
Integer rowIndex = readRowHolder.getRowIndex();
data.setRowIndex(rowIndex + 1);
ErrorMessage errorMessage = util1.checkEntity(data, data.getRowIndex());
if (Common.isNotNull(errorMessage)) {
errorMessageList.add(errorMessage);
} else {
cachedDataList.add(data);
}
if (cachedDataList.size() >= BATCH_COUNT) {
saveData();
// 存储完成清理 list
cachedDataList = ListUtils.newArrayListWithExpectedSize(BATCH_COUNT);
}
}
@Override
public void doAfterAllAnalysed(AnalysisContext context) {
saveData();
}
/**
* 加上存储数据库
*/
private void saveData() {
log.info("{}条数据,开始存储数据库!", cachedDataList.size());
importTEmployeeContractPreNew(cachedDataList, errorMessageList);
log.info("存储数据库成功!");
}
}).sheet().doRead();
} catch (Exception e) {
log.error(CommonConstants.IMPORT_DATA_ANALYSIS_ERROR, e);
return R.failed(CommonConstants.IMPORT_DATA_ANALYSIS_ERROR);
}
return R.ok(errorMessageList);
}
private void importTEmployeeContractPreNew(List<TEmployeeContractPreNewVo> excelVOList, List<ErrorMessage> errorMessageList) {
// 个性化校验逻辑
ErrorMessage errorMsg;
// 执行数据插入操作 组装
for (int i = 0; i < excelVOList.size(); i++) {
TEmployeeContractPreNewVo excel = excelVOList.get(i);
// 数据合法情况 TODO
// 插入
insertExcel(excel);
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), CommonConstants.SAVE_SUCCESS));
}
}
/**
* 插入excel bad record
*/
private void insertExcel(TEmployeeContractPreNewVo excel) {
TEmployeeContractPreNew insert = new TEmployeeContractPreNew();
BeanUtil.copyProperties(excel, insert);
this.save(insert);
}
}
...@@ -57,6 +57,13 @@ ...@@ -57,6 +57,13 @@
<result property="applyNo" column="APPLY_NO"/> <result property="applyNo" column="APPLY_NO"/>
<result property="workingHours" column="WORKING_HOURS"/> <result property="workingHours" column="WORKING_HOURS"/>
<result property="post" column="POST"/> <result property="post" column="POST"/>
<!-- 合同自动化新增字段 -->
<result property="expectedCollectionTime" column="EXPECTED_COLLECTION_TIME"/>
<result property="signType" column="SIGN_TYPE"/>
<result property="processStatus" column="PROCESS_STATUS"/>
<result property="csName" column="CS_NAME"/>
<result property="csLoginName" column="CS_LOGIN_NAME"/>
<result property="autoFlag" column="AUTO_FLAG"/>
</resultMap> </resultMap>
<update id="truncate"> <update id="truncate">
TRUNCATE t_emp_contract_alert TRUNCATE t_emp_contract_alert
...@@ -87,5 +94,253 @@ ...@@ -87,5 +94,253 @@
#{idStr} #{idStr}
</foreach> </foreach>
</select> </select>
<sql id="Base_Column_List">
a.ID,
a.EMP_NAME,
a.EMP_ID,
a.DEPT_ID,
a.PROJECT,
a.PROJECT_NO,
a.EMP_IDCARD,
a.EMP_CODE,
a.CONTRACT_START,
a.CONTRACT_END,
a.FILE_PROVINCE,
a.FILE_CITY,
a.FILE_TOWN,
a.EMP_TYPE,
a.CONTRACT_TYPE,
a.CONTRACT_TERM,
a.DAYS_DUE,
a.DUE_FLAG,
a.DAYS_OVER,
a.FIRST_ALERT_TIME,
a.ALERT_PERSON,
a.CREATE_BY,
a.UPDATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_TIME,
a.HANDLE_STATUS,
a.CONTRACT_ID,
a.AUDIT_TIME,
a.UNIT_ID,
a.UNIT_NAME,
a.UNIT_NO,
a.EMP_PHONE,
a.IS_FEEDBACK,
a.FEEDBACK_PERSON,
a.FEEDBACK_TIME,
a.FEEDBACK_REASON,
a.FEEDBACK_DETAIL,
a.APPLY_NO,
a.POST,
a.WORKING_HOURS,
a.EXPECTED_COLLECTION_TIME,
a.SIGN_TYPE,
a.PROCESS_STATUS,
a.CS_NAME,
a.CS_LOGIN_NAME,
a.AUTO_FLAG
</sql>
<sql id="tEmpContractAlert_where">
<if test="tEmpContractAlert != null">
<if test="tEmpContractAlert.id != null and tEmpContractAlert.id.trim() != ''">
AND a.ID = #{tEmpContractAlert.id}
</if>
<if test="tEmpContractAlert.empName != null and tEmpContractAlert.empName.trim() != ''">
AND a.EMP_NAME = #{tEmpContractAlert.empName}
</if>
<if test="tEmpContractAlert.empId != null and tEmpContractAlert.empId.trim() != ''">
AND a.EMP_ID = #{tEmpContractAlert.empId}
</if>
<if test="tEmpContractAlert.deptId != null and tEmpContractAlert.deptId.trim() != ''">
AND a.DEPT_ID = #{tEmpContractAlert.deptId}
</if>
<if test="tEmpContractAlert.project != null and tEmpContractAlert.project.trim() != ''">
AND a.PROJECT = #{tEmpContractAlert.project}
</if>
<if test="tEmpContractAlert.deptNoList != null and tEmpContractAlert.deptNoList.size > 0">
AND a.PROJECT in
<foreach item="idStr" index="index" collection="tEmpContractAlert.deptNoList" open="(" separator="," close=")">
#{idStr}
</foreach>
</if>
<if test="tEmpContractAlert.projectNo != null and tEmpContractAlert.projectNo.trim() != ''">
AND a.PROJECT_NO = #{tEmpContractAlert.projectNo}
</if>
<if test="tEmpContractAlert.empIdcard != null and tEmpContractAlert.empIdcard.trim() != ''">
AND a.EMP_IDCARD = #{tEmpContractAlert.empIdcard}
</if>
<if test="tEmpContractAlert.empCode != null and tEmpContractAlert.empCode.trim() != ''">
AND a.EMP_CODE = #{tEmpContractAlert.empCode}
</if>
<if test="tEmpContractAlert.contractStart != null">
AND a.CONTRACT_START = #{tEmpContractAlert.contractStart}
</if>
<if test="tEmpContractAlert.contractEnd != null">
AND a.CONTRACT_END = #{tEmpContractAlert.contractEnd}
</if>
<if test="tEmpContractAlert.fileProvince != null and tEmpContractAlert.fileProvince.trim() != ''">
AND a.FILE_PROVINCE = #{tEmpContractAlert.fileProvince}
</if>
<if test="tEmpContractAlert.fileCity != null and tEmpContractAlert.fileCity.trim() != ''">
AND a.FILE_CITY = #{tEmpContractAlert.fileCity}
</if>
<if test="tEmpContractAlert.fileTown != null and tEmpContractAlert.fileTown.trim() != ''">
AND a.FILE_TOWN = #{tEmpContractAlert.fileTown}
</if>
<if test="tEmpContractAlert.empType != null and tEmpContractAlert.empType.trim() != ''">
AND a.EMP_TYPE = #{tEmpContractAlert.empType}
</if>
<if test="tEmpContractAlert.contractType != null and tEmpContractAlert.contractType.trim() != ''">
AND a.CONTRACT_TYPE = #{tEmpContractAlert.contractType}
</if>
<if test="tEmpContractAlert.contractTerm != null and tEmpContractAlert.contractTerm.trim() != ''">
AND a.CONTRACT_TERM = #{tEmpContractAlert.contractTerm}
</if>
<if test="tEmpContractAlert.daysDue != null">
AND a.DAYS_DUE = #{tEmpContractAlert.daysDue}
</if>
<if test="tEmpContractAlert.dueFlag != null and tEmpContractAlert.dueFlag.trim() != ''">
AND a.DUE_FLAG = #{tEmpContractAlert.dueFlag}
</if>
<if test="tEmpContractAlert.daysOver != null">
AND a.DAYS_OVER = #{tEmpContractAlert.daysOver}
</if>
<if test="tEmpContractAlert.firstAlertTime != null">
AND a.FIRST_ALERT_TIME = #{tEmpContractAlert.firstAlertTime}
</if>
<if test="tEmpContractAlert.alertPerson != null and tEmpContractAlert.alertPerson.trim() != ''">
AND a.ALERT_PERSON = #{tEmpContractAlert.alertPerson}
</if>
<if test="tEmpContractAlert.createBy != null and tEmpContractAlert.createBy.trim() != ''">
AND a.CREATE_BY = #{tEmpContractAlert.createBy}
</if>
<if test="tEmpContractAlert.updateBy != null and tEmpContractAlert.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tEmpContractAlert.updateBy}
</if>
<if test="tEmpContractAlert.createName != null and tEmpContractAlert.createName.trim() != ''">
AND a.CREATE_NAME = #{tEmpContractAlert.createName}
</if>
<if test="tEmpContractAlert.createTime != null">
AND a.CREATE_TIME = #{tEmpContractAlert.createTime}
</if>
<if test="tEmpContractAlert.updateTime != null">
AND a.UPDATE_TIME = #{tEmpContractAlert.updateTime}
</if>
<if test="tEmpContractAlert.handleStatus != null and tEmpContractAlert.handleStatus.trim() != ''">
AND a.HANDLE_STATUS = #{tEmpContractAlert.handleStatus}
</if>
<if test="tEmpContractAlert.contractId != null and tEmpContractAlert.contractId.trim() != ''">
AND a.CONTRACT_ID = #{tEmpContractAlert.contractId}
</if>
<if test="tEmpContractAlert.auditTime != null">
AND a.AUDIT_TIME = #{tEmpContractAlert.auditTime}
</if>
<if test="tEmpContractAlert.unitId != null and tEmpContractAlert.unitId.trim() != ''">
AND a.UNIT_ID = #{tEmpContractAlert.unitId}
</if>
<if test="tEmpContractAlert.unitName != null and tEmpContractAlert.unitName.trim() != ''">
AND a.UNIT_NAME = #{tEmpContractAlert.unitName}
</if>
<if test="tEmpContractAlert.unitNo != null and tEmpContractAlert.unitNo.trim() != ''">
AND a.UNIT_NO = #{tEmpContractAlert.unitNo}
</if>
<if test="tEmpContractAlert.empPhone != null and tEmpContractAlert.empPhone.trim() != ''">
AND a.EMP_PHONE = #{tEmpContractAlert.empPhone}
</if>
<if test="tEmpContractAlert.isFeedback != null">
AND a.IS_FEEDBACK = #{tEmpContractAlert.isFeedback}
</if>
<if test="tEmpContractAlert.feedbackPerson != null and tEmpContractAlert.feedbackPerson.trim() != ''">
AND a.FEEDBACK_PERSON = #{tEmpContractAlert.feedbackPerson}
</if>
<if test="tEmpContractAlert.feedbackTime != null">
AND a.FEEDBACK_TIME = #{tEmpContractAlert.feedbackTime}
</if>
<if test="tEmpContractAlert.feedbackReason != null and tEmpContractAlert.feedbackReason.trim() != ''">
AND a.FEEDBACK_REASON = #{tEmpContractAlert.feedbackReason}
</if>
<if test="tEmpContractAlert.feedbackDetail != null and tEmpContractAlert.feedbackDetail.trim() != ''">
AND a.FEEDBACK_DETAIL = #{tEmpContractAlert.feedbackDetail}
</if>
<if test="tEmpContractAlert.applyNo != null and tEmpContractAlert.applyNo.trim() != ''">
AND a.APPLY_NO = #{tEmpContractAlert.applyNo}
</if>
<if test="tEmpContractAlert.post != null and tEmpContractAlert.post.trim() != ''">
AND a.POST = #{tEmpContractAlert.post}
</if>
<if test="tEmpContractAlert.workingHours != null and tEmpContractAlert.workingHours.trim() != ''">
AND a.WORKING_HOURS = #{tEmpContractAlert.workingHours}
</if>
<if test="tEmpContractAlert.expectedCollectionTime != null">
AND a.EXPECTED_COLLECTION_TIME = #{tEmpContractAlert.expectedCollectionTime}
</if>
<if test="tEmpContractAlert.signType != null and tEmpContractAlert.signType.trim() != ''">
AND a.SIGN_TYPE = #{tEmpContractAlert.signType}
</if>
<if test="tEmpContractAlert.processStatus != null and tEmpContractAlert.processStatus.trim() != ''">
AND a.PROCESS_STATUS = #{tEmpContractAlert.processStatus}
</if>
<if test="tEmpContractAlert.processStatusList != null and tEmpContractAlert.processStatusList.length>0">
AND a.PROCESS_STATUS IN
<foreach collection="tEmpContractAlert.processStatusList" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="tEmpContractAlert.csName != null and tEmpContractAlert.csName.trim() != ''">
AND a.CS_NAME like CONCAT('%',#{tEmpContractAlert.csName},'%')
</if>
<if test="tEmpContractAlert.expectedCollectionTimeStart != null">
AND a.EXPECTED_COLLECTION_TIME <![CDATA[ >= ]]> #{tEmpContractAlert.expectedCollectionTimeStart}
</if>
<if test="tEmpContractAlert.expectedCollectionTimeEnd != null">
AND a.EXPECTED_COLLECTION_TIME <![CDATA[ <= ]]> #{tEmpContractAlert.expectedCollectionTimeEnd}
</if>
<if test="tEmpContractAlert.csLoginName != null and tEmpContractAlert.csLoginName.trim() != ''">
AND a.CS_LOGIN_NAME = #{tEmpContractAlert.csLoginName}
</if>
<if test="tEmpContractAlert.autoFlag != null and tEmpContractAlert.autoFlag.trim() != ''">
AND a.AUTO_FLAG = #{tEmpContractAlert.autoFlag}
</if>
</if>
</sql>
<!--tEmpContractAlert简单分页查询-->
<select id="getTEmpContractAlertAutoPage" resultMap="tEmpContractAlertMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_emp_contract_alert a
<where>
1=1
<include refid="tEmpContractAlert_where"/>
</where>
</select>
<!--tEmpContractAlert简单分页查询-->
<select id="getTEmpContractAlertAutoCount" resultType="java.lang.Integer">
SELECT
count(1)
FROM t_emp_contract_alert a
<where>
1=1
<include refid="tEmpContractAlert_where"/>
</where>
</select>
<!--tEmpContractAlert简单分页查询-->
<select id="listExport" resultType="com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpContractAlertExportVo">
SELECT
<include refid="Base_Column_List"/>
FROM t_emp_contract_alert a
<where>
1=1
<include refid="tEmpContractAlert_where"/>
<if test="tEmpContractAlert != null">
<if test="tEmpContractAlert.limitStart != null">
limit #{tEmpContractAlert.limitStart},#{tEmpContractAlert.limitEnd}
</if>
</if>
</where>
</select>
</mapper> </mapper>
<?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.archives.mapper.TEmployeeContractPreNewMapper">
<resultMap id="tEmployeeContractPreNewMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeContractPreNew">
<id property="id" column="id"/>
<result property="deptName" column="dept_name"/>
<result property="deptNo" column="dept_no"/>
<result property="deptId" column="dept_id"/>
<result property="employeeName" column="employee_name"/>
<result property="empIdcard" column="emp_idcard"/>
<result property="empPhone" column="emp_phone"/>
<result property="employeeNature" column="employee_nature"/>
<result property="position" column="position"/>
<result property="joinLeaveDate" column="join_leave_date"/>
<result property="customerUsername" column="customer_username"/>
<result property="customerUserLoginname" column="customer_user_loginname"/>
<result property="signType" column="sign_type"/>
<result property="contractContent" column="contract_content"/>
<result property="fadadaTemplate" column="fadada_template"/>
<result property="dataSource" column="data_source"/>
<result property="processStatus" column="process_status"/>
<result property="configName" column="config_name"/>
<result property="updateFlag" column="update_flag"/>
<result property="contractType" column="contract_type"/>
<result property="signatory" column="signatory"/>
<result property="expectedConfirmTime" column="expected_confirm_time"/>
<result property="expectedCollectionTime" column="expected_collection_time"/>
<result property="situation" column="situation"/>
<result property="contractTerm" column="contract_term"/>
<result property="contractStart" column="contract_start"/>
<result property="contractEnd" column="contract_end"/>
<result property="postType" column="post_type"/>
<result property="post" column="post"/>
<result property="workingDept" column="working_dept"/>
<result property="workAddress" column="work_address"/>
<result property="workingHours" column="working_hours"/>
<result property="salaryType" column="salary_type"/>
<result property="otherWage" column="other_wage"/>
<result property="defaultAmount" column="default_amount"/>
<result property="contractDurationYear" column="contract_duration_year"/>
<result property="contractDurationMonth" column="contract_duration_month"/>
<result property="tryPeriodStart" column="try_period_start"/>
<result property="tryPeriodEnd" column="try_period_end"/>
<result property="tryPeriodType" column="try_period_type"/>
<result property="tryPeriod" column="try_period"/>
<result property="laborCost" column="labor_cost"/>
<result property="riskBuyDesc" column="risk_buy_desc"/>
<result property="salaryStandardPerHour" column="salary_standard_per_hour"/>
<result property="salaryStandardPerPiece" column="salary_standard_per_piece"/>
<result property="configId" column="config_id"/>
<result property="workType" column="work_type"/>
<result property="workDayCount" column="work_day_count"/>
<result property="workDay" column="work_day"/>
<result property="workHours" column="work_hours"/>
<result property="settlementCycle" column="settlement_cycle"/>
<result property="paymentTime" column="payment_time"/>
<result property="paymentType" column="payment_type"/>
<result property="workingCompany" column="working_company"/>
<result property="dispatchPeriodYear" column="dispatch_period_year"/>
<result property="dispatchPeriodMonth" column="dispatch_period_month"/>
<result property="dispatchPeriodStart" column="dispatch_period_start"/>
<result property="dispatchPeriodEnd" column="dispatch_period_end"/>
<result property="otherWorkDay" column="other_work_day"/>
<result property="internshipPeriod" column="internship_period"/>
<result property="internshipPeriodStart" column="internship_period_start"/>
<result property="internshipPeriodEnd" column="internship_period_end"/>
<result property="signFlag" column="sign_flag"/>
<result property="errorInfo" column="error_info"/>
<result property="contractId" column="contract_id"/>
<result property="revokeReason" column="revoke_reason"/>
<result property="errorTime" column="error_time"/>
<result property="contractEndType" column="contract_end_type"/>
<result property="confirmEmpSelect" column="confirm_emp_select"/>
<result property="timeoutElecSign" column="timeout_elec_sign"/>
<result property="task" column="task"/>
<result property="taskType" column="task_type"/>
<result property="taskEndStandard" column="task_end_standard"/>
<result property="contractFlag" column="contract_flag"/>
<result property="contractSubName" column="CONTRACT_SUB_NAME"/>
<result property="fadadaTemplateId" column="fadada_template_id"/>
<result property="requestId" column="request_id"/>
<result property="requestMsg" column="request_msg"/>
<result property="overFlag" column="over_flag"/>
<result property="changeTypeReason" column="change_type_reason"/>
<result property="changeTypeUser" column="change_type_user"/>
<result property="changeTypeTime" column="change_type_time"/>
<result property="isUrg" column="is_urg"/>
<result property="workingReward" column="working_reward"/>
<result property="updateTime" column="update_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.dept_name,
a.dept_no,
a.dept_id,
a.employee_name,
a.emp_idcard,
a.emp_phone,
a.employee_nature,
a.position,
a.join_leave_date,
a.customer_username,
a.customer_user_loginname,
a.sign_type,
a.contract_content,
a.fadada_template,
a.data_source,
a.process_status,
a.config_name,
a.update_flag,
a.contract_type,
a.signatory,
a.expected_confirm_time,
a.expected_collection_time,
a.situation,
a.contract_term,
a.contract_start,
a.contract_end,
a.post_type,
a.post,
a.working_dept,
a.work_address,
a.working_hours,
a.salary_type,
a.other_wage,
a.default_amount,
a.contract_duration_year,
a.contract_duration_month,
a.try_period_start,
a.try_period_end,
a.try_period_type,
a.try_period,
a.labor_cost,
a.risk_buy_desc,
a.salary_standard_per_hour,
a.salary_standard_per_piece,
a.config_id,
a.work_type,
a.work_day_count,
a.work_day,
a.work_hours,
a.settlement_cycle,
a.payment_time,
a.payment_type,
a.working_company,
a.dispatch_period_year,
a.dispatch_period_month,
a.dispatch_period_start,
a.dispatch_period_end,
a.other_work_day,
a.internship_period,
a.internship_period_start,
a.internship_period_end,
a.sign_flag,
a.error_info,
a.contract_id,
a.revoke_reason,
a.error_time,
a.contract_end_type,
a.confirm_emp_select,
a.timeout_elec_sign,
a.task,
a.task_type,
a.task_end_standard,
a.contract_flag,
a.CONTRACT_SUB_NAME,
a.fadada_template_id,
a.request_id,
a.request_msg,
a.over_flag,
a.change_type_reason,
a.change_type_user,
a.change_type_time,
a.is_urg,
a.working_reward,
a.update_time,
a.create_by,
a.create_name,
a.create_time,
a.update_by
</sql>
<sql id="tEmployeeContractPreNew_where">
<if test="tEmployeeContractPreNew != null">
<if test="tEmployeeContractPreNew.id != null and tEmployeeContractPreNew.id.trim() != ''">
AND a.id = #{tEmployeeContractPreNew.id}
</if>
<if test="tEmployeeContractPreNew.deptName != null and tEmployeeContractPreNew.deptName.trim() != ''">
AND a.dept_name = #{tEmployeeContractPreNew.deptName}
</if>
<if test="tEmployeeContractPreNew.deptNo != null and tEmployeeContractPreNew.deptNo.trim() != ''">
AND a.dept_no = #{tEmployeeContractPreNew.deptNo}
</if>
<if test="tEmployeeContractPreNew.deptId != null and tEmployeeContractPreNew.deptId.trim() != ''">
AND a.dept_id = #{tEmployeeContractPreNew.deptId}
</if>
<if test="tEmployeeContractPreNew.employeeName != null and tEmployeeContractPreNew.employeeName.trim() != ''">
AND a.employee_name = #{tEmployeeContractPreNew.employeeName}
</if>
<if test="tEmployeeContractPreNew.empIdcard != null and tEmployeeContractPreNew.empIdcard.trim() != ''">
AND a.emp_idcard = #{tEmployeeContractPreNew.empIdcard}
</if>
<if test="tEmployeeContractPreNew.empPhone != null and tEmployeeContractPreNew.empPhone.trim() != ''">
AND a.emp_phone = #{tEmployeeContractPreNew.empPhone}
</if>
<if test="tEmployeeContractPreNew.employeeNature != null and tEmployeeContractPreNew.employeeNature.trim() != ''">
AND a.employee_nature = #{tEmployeeContractPreNew.employeeNature}
</if>
<if test="tEmployeeContractPreNew.position != null and tEmployeeContractPreNew.position.trim() != ''">
AND a.position = #{tEmployeeContractPreNew.position}
</if>
<if test="tEmployeeContractPreNew.joinLeaveDate != null">
AND a.join_leave_date = #{tEmployeeContractPreNew.joinLeaveDate}
</if>
<if test="tEmployeeContractPreNew.customerUsername != null and tEmployeeContractPreNew.customerUsername.trim() != ''">
AND a.customer_username = #{tEmployeeContractPreNew.customerUsername}
</if>
<if test="tEmployeeContractPreNew.customerUserLoginname != null and tEmployeeContractPreNew.customerUserLoginname.trim() != ''">
AND a.customer_user_loginname = #{tEmployeeContractPreNew.customerUserLoginname}
</if>
<if test="tEmployeeContractPreNew.signType != null and tEmployeeContractPreNew.signType.trim() != ''">
AND a.sign_type = #{tEmployeeContractPreNew.signType}
</if>
<if test="tEmployeeContractPreNew.contractContent != null and tEmployeeContractPreNew.contractContent.trim() != ''">
AND a.contract_content = #{tEmployeeContractPreNew.contractContent}
</if>
<if test="tEmployeeContractPreNew.fadadaTemplate != null and tEmployeeContractPreNew.fadadaTemplate.trim() != ''">
AND a.fadada_template = #{tEmployeeContractPreNew.fadadaTemplate}
</if>
<if test="tEmployeeContractPreNew.dataSource != null and tEmployeeContractPreNew.dataSource.trim() != ''">
AND a.data_source = #{tEmployeeContractPreNew.dataSource}
</if>
<if test="tEmployeeContractPreNew.processStatus != null and tEmployeeContractPreNew.processStatus.trim() != ''">
AND a.process_status = #{tEmployeeContractPreNew.processStatus}
</if>
<if test="tEmployeeContractPreNew.configName != null and tEmployeeContractPreNew.configName.trim() != ''">
AND a.config_name = #{tEmployeeContractPreNew.configName}
</if>
<if test="tEmployeeContractPreNew.updateFlag != null and tEmployeeContractPreNew.updateFlag.trim() != ''">
AND a.update_flag = #{tEmployeeContractPreNew.updateFlag}
</if>
<if test="tEmployeeContractPreNew.contractType != null and tEmployeeContractPreNew.contractType.trim() != ''">
AND a.contract_type = #{tEmployeeContractPreNew.contractType}
</if>
<if test="tEmployeeContractPreNew.signatory != null and tEmployeeContractPreNew.signatory.trim() != ''">
AND a.signatory = #{tEmployeeContractPreNew.signatory}
</if>
<if test="tEmployeeContractPreNew.expectedConfirmTime != null">
AND a.expected_confirm_time = #{tEmployeeContractPreNew.expectedConfirmTime}
</if>
<if test="tEmployeeContractPreNew.expectedCollectionTime != null">
AND a.expected_collection_time = #{tEmployeeContractPreNew.expectedCollectionTime}
</if>
<if test="tEmployeeContractPreNew.situation != null and tEmployeeContractPreNew.situation.trim() != ''">
AND a.situation = #{tEmployeeContractPreNew.situation}
</if>
<if test="tEmployeeContractPreNew.contractTerm != null and tEmployeeContractPreNew.contractTerm.trim() != ''">
AND a.contract_term = #{tEmployeeContractPreNew.contractTerm}
</if>
<if test="tEmployeeContractPreNew.contractStart != null">
AND a.contract_start = #{tEmployeeContractPreNew.contractStart}
</if>
<if test="tEmployeeContractPreNew.contractEnd != null">
AND a.contract_end = #{tEmployeeContractPreNew.contractEnd}
</if>
<if test="tEmployeeContractPreNew.postType != null and tEmployeeContractPreNew.postType.trim() != ''">
AND a.post_type = #{tEmployeeContractPreNew.postType}
</if>
<if test="tEmployeeContractPreNew.post != null and tEmployeeContractPreNew.post.trim() != ''">
AND a.post = #{tEmployeeContractPreNew.post}
</if>
<if test="tEmployeeContractPreNew.workingDept != null and tEmployeeContractPreNew.workingDept.trim() != ''">
AND a.working_dept = #{tEmployeeContractPreNew.workingDept}
</if>
<if test="tEmployeeContractPreNew.workAddress != null and tEmployeeContractPreNew.workAddress.trim() != ''">
AND a.work_address = #{tEmployeeContractPreNew.workAddress}
</if>
<if test="tEmployeeContractPreNew.workingHours != null and tEmployeeContractPreNew.workingHours.trim() != ''">
AND a.working_hours = #{tEmployeeContractPreNew.workingHours}
</if>
<if test="tEmployeeContractPreNew.salaryType != null and tEmployeeContractPreNew.salaryType.trim() != ''">
AND a.salary_type = #{tEmployeeContractPreNew.salaryType}
</if>
<if test="tEmployeeContractPreNew.otherWage != null and tEmployeeContractPreNew.otherWage.trim() != ''">
AND a.other_wage = #{tEmployeeContractPreNew.otherWage}
</if>
<if test="tEmployeeContractPreNew.defaultAmount != null and tEmployeeContractPreNew.defaultAmount.trim() != ''">
AND a.default_amount = #{tEmployeeContractPreNew.defaultAmount}
</if>
<if test="tEmployeeContractPreNew.contractDurationYear != null and tEmployeeContractPreNew.contractDurationYear.trim() != ''">
AND a.contract_duration_year = #{tEmployeeContractPreNew.contractDurationYear}
</if>
<if test="tEmployeeContractPreNew.contractDurationMonth != null and tEmployeeContractPreNew.contractDurationMonth.trim() != ''">
AND a.contract_duration_month = #{tEmployeeContractPreNew.contractDurationMonth}
</if>
<if test="tEmployeeContractPreNew.tryPeriodStart != null">
AND a.try_period_start = #{tEmployeeContractPreNew.tryPeriodStart}
</if>
<if test="tEmployeeContractPreNew.tryPeriodEnd != null">
AND a.try_period_end = #{tEmployeeContractPreNew.tryPeriodEnd}
</if>
<if test="tEmployeeContractPreNew.tryPeriodType != null and tEmployeeContractPreNew.tryPeriodType.trim() != ''">
AND a.try_period_type = #{tEmployeeContractPreNew.tryPeriodType}
</if>
<if test="tEmployeeContractPreNew.tryPeriod != null and tEmployeeContractPreNew.tryPeriod.trim() != ''">
AND a.try_period = #{tEmployeeContractPreNew.tryPeriod}
</if>
<if test="tEmployeeContractPreNew.laborCost != null and tEmployeeContractPreNew.laborCost.trim() != ''">
AND a.labor_cost = #{tEmployeeContractPreNew.laborCost}
</if>
<if test="tEmployeeContractPreNew.riskBuyDesc != null and tEmployeeContractPreNew.riskBuyDesc.trim() != ''">
AND a.risk_buy_desc = #{tEmployeeContractPreNew.riskBuyDesc}
</if>
<if test="tEmployeeContractPreNew.salaryStandardPerHour != null and tEmployeeContractPreNew.salaryStandardPerHour.trim() != ''">
AND a.salary_standard_per_hour = #{tEmployeeContractPreNew.salaryStandardPerHour}
</if>
<if test="tEmployeeContractPreNew.salaryStandardPerPiece != null and tEmployeeContractPreNew.salaryStandardPerPiece.trim() != ''">
AND a.salary_standard_per_piece = #{tEmployeeContractPreNew.salaryStandardPerPiece}
</if>
<if test="tEmployeeContractPreNew.configId != null and tEmployeeContractPreNew.configId.trim() != ''">
AND a.config_id = #{tEmployeeContractPreNew.configId}
</if>
<if test="tEmployeeContractPreNew.workType != null and tEmployeeContractPreNew.workType.trim() != ''">
AND a.work_type = #{tEmployeeContractPreNew.workType}
</if>
<if test="tEmployeeContractPreNew.workDayCount != null and tEmployeeContractPreNew.workDayCount.trim() != ''">
AND a.work_day_count = #{tEmployeeContractPreNew.workDayCount}
</if>
<if test="tEmployeeContractPreNew.workDay != null and tEmployeeContractPreNew.workDay.trim() != ''">
AND a.work_day = #{tEmployeeContractPreNew.workDay}
</if>
<if test="tEmployeeContractPreNew.workHours != null and tEmployeeContractPreNew.workHours.trim() != ''">
AND a.work_hours = #{tEmployeeContractPreNew.workHours}
</if>
<if test="tEmployeeContractPreNew.settlementCycle != null and tEmployeeContractPreNew.settlementCycle.trim() != ''">
AND a.settlement_cycle = #{tEmployeeContractPreNew.settlementCycle}
</if>
<if test="tEmployeeContractPreNew.paymentTime != null and tEmployeeContractPreNew.paymentTime.trim() != ''">
AND a.payment_time = #{tEmployeeContractPreNew.paymentTime}
</if>
<if test="tEmployeeContractPreNew.paymentType != null and tEmployeeContractPreNew.paymentType.trim() != ''">
AND a.payment_type = #{tEmployeeContractPreNew.paymentType}
</if>
<if test="tEmployeeContractPreNew.workingCompany != null and tEmployeeContractPreNew.workingCompany.trim() != ''">
AND a.working_company = #{tEmployeeContractPreNew.workingCompany}
</if>
<if test="tEmployeeContractPreNew.dispatchPeriodYear != null and tEmployeeContractPreNew.dispatchPeriodYear.trim() != ''">
AND a.dispatch_period_year = #{tEmployeeContractPreNew.dispatchPeriodYear}
</if>
<if test="tEmployeeContractPreNew.dispatchPeriodMonth != null and tEmployeeContractPreNew.dispatchPeriodMonth.trim() != ''">
AND a.dispatch_period_month = #{tEmployeeContractPreNew.dispatchPeriodMonth}
</if>
<if test="tEmployeeContractPreNew.dispatchPeriodStart != null">
AND a.dispatch_period_start = #{tEmployeeContractPreNew.dispatchPeriodStart}
</if>
<if test="tEmployeeContractPreNew.dispatchPeriodEnd != null">
AND a.dispatch_period_end = #{tEmployeeContractPreNew.dispatchPeriodEnd}
</if>
<if test="tEmployeeContractPreNew.otherWorkDay != null and tEmployeeContractPreNew.otherWorkDay.trim() != ''">
AND a.other_work_day = #{tEmployeeContractPreNew.otherWorkDay}
</if>
<if test="tEmployeeContractPreNew.internshipPeriod != null and tEmployeeContractPreNew.internshipPeriod.trim() != ''">
AND a.internship_period = #{tEmployeeContractPreNew.internshipPeriod}
</if>
<if test="tEmployeeContractPreNew.internshipPeriodStart != null">
AND a.internship_period_start = #{tEmployeeContractPreNew.internshipPeriodStart}
</if>
<if test="tEmployeeContractPreNew.internshipPeriodEnd != null">
AND a.internship_period_end = #{tEmployeeContractPreNew.internshipPeriodEnd}
</if>
<if test="tEmployeeContractPreNew.signFlag != null and tEmployeeContractPreNew.signFlag.trim() != ''">
AND a.sign_flag = #{tEmployeeContractPreNew.signFlag}
</if>
<if test="tEmployeeContractPreNew.errorInfo != null and tEmployeeContractPreNew.errorInfo.trim() != ''">
AND a.error_info = #{tEmployeeContractPreNew.errorInfo}
</if>
<if test="tEmployeeContractPreNew.contractId != null and tEmployeeContractPreNew.contractId.trim() != ''">
AND a.contract_id = #{tEmployeeContractPreNew.contractId}
</if>
<if test="tEmployeeContractPreNew.revokeReason != null and tEmployeeContractPreNew.revokeReason.trim() != ''">
AND a.revoke_reason = #{tEmployeeContractPreNew.revokeReason}
</if>
<if test="tEmployeeContractPreNew.errorTime != null">
AND a.error_time = #{tEmployeeContractPreNew.errorTime}
</if>
<if test="tEmployeeContractPreNew.contractEndType != null and tEmployeeContractPreNew.contractEndType.trim() != ''">
AND a.contract_end_type = #{tEmployeeContractPreNew.contractEndType}
</if>
<if test="tEmployeeContractPreNew.confirmEmpSelect != null and tEmployeeContractPreNew.confirmEmpSelect.trim() != ''">
AND a.confirm_emp_select = #{tEmployeeContractPreNew.confirmEmpSelect}
</if>
<if test="tEmployeeContractPreNew.timeoutElecSign != null and tEmployeeContractPreNew.timeoutElecSign.trim() != ''">
AND a.timeout_elec_sign = #{tEmployeeContractPreNew.timeoutElecSign}
</if>
<if test="tEmployeeContractPreNew.task != null and tEmployeeContractPreNew.task.trim() != ''">
AND a.task = #{tEmployeeContractPreNew.task}
</if>
<if test="tEmployeeContractPreNew.taskType != null and tEmployeeContractPreNew.taskType.trim() != ''">
AND a.task_type = #{tEmployeeContractPreNew.taskType}
</if>
<if test="tEmployeeContractPreNew.taskEndStandard != null and tEmployeeContractPreNew.taskEndStandard.trim() != ''">
AND a.task_end_standard = #{tEmployeeContractPreNew.taskEndStandard}
</if>
<if test="tEmployeeContractPreNew.contractFlag != null and tEmployeeContractPreNew.contractFlag.trim() != ''">
AND a.contract_flag = #{tEmployeeContractPreNew.contractFlag}
</if>
<if test="tEmployeeContractPreNew.contractSubName != null and tEmployeeContractPreNew.contractSubName.trim() != ''">
AND a.CONTRACT_SUB_NAME = #{tEmployeeContractPreNew.contractSubName}
</if>
<if test="tEmployeeContractPreNew.fadadaTemplateId != null and tEmployeeContractPreNew.fadadaTemplateId.trim() != ''">
AND a.fadada_template_id = #{tEmployeeContractPreNew.fadadaTemplateId}
</if>
<if test="tEmployeeContractPreNew.requestId != null and tEmployeeContractPreNew.requestId.trim() != ''">
AND a.request_id = #{tEmployeeContractPreNew.requestId}
</if>
<if test="tEmployeeContractPreNew.requestMsg != null and tEmployeeContractPreNew.requestMsg.trim() != ''">
AND a.request_msg = #{tEmployeeContractPreNew.requestMsg}
</if>
<if test="tEmployeeContractPreNew.overFlag != null and tEmployeeContractPreNew.overFlag.trim() != ''">
AND a.over_flag = #{tEmployeeContractPreNew.overFlag}
</if>
<if test="tEmployeeContractPreNew.changeTypeReason != null and tEmployeeContractPreNew.changeTypeReason.trim() != ''">
AND a.change_type_reason = #{tEmployeeContractPreNew.changeTypeReason}
</if>
<if test="tEmployeeContractPreNew.changeTypeUser != null and tEmployeeContractPreNew.changeTypeUser.trim() != ''">
AND a.change_type_user = #{tEmployeeContractPreNew.changeTypeUser}
</if>
<if test="tEmployeeContractPreNew.changeTypeTime != null">
AND a.change_type_time = #{tEmployeeContractPreNew.changeTypeTime}
</if>
<if test="tEmployeeContractPreNew.isUrg != null and tEmployeeContractPreNew.isUrg.trim() != ''">
AND a.is_urg = #{tEmployeeContractPreNew.isUrg}
</if>
<if test="tEmployeeContractPreNew.workingReward != null and tEmployeeContractPreNew.workingReward.trim() != ''">
AND a.working_reward = #{tEmployeeContractPreNew.workingReward}
</if>
<if test="tEmployeeContractPreNew.updateTime != null">
AND a.update_time = #{tEmployeeContractPreNew.updateTime}
</if>
<if test="tEmployeeContractPreNew.createBy != null and tEmployeeContractPreNew.createBy.trim() != ''">
AND a.create_by = #{tEmployeeContractPreNew.createBy}
</if>
<if test="tEmployeeContractPreNew.createName != null and tEmployeeContractPreNew.createName.trim() != ''">
AND a.create_name = #{tEmployeeContractPreNew.createName}
</if>
<if test="tEmployeeContractPreNew.createTime != null">
AND a.create_time = #{tEmployeeContractPreNew.createTime}
</if>
<if test="tEmployeeContractPreNew.updateBy != null and tEmployeeContractPreNew.updateBy.trim() != ''">
AND a.update_by = #{tEmployeeContractPreNew.updateBy}
</if>
</if>
</sql>
<!--tEmployeeContractPreNew简单分页查询-->
<select id="getTEmployeeContractPreNewPage" resultMap="tEmployeeContractPreNewMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_employee_contract_pre_new a
<where>
1=1
<include refid="tEmployeeContractPreNew_where"/>
</where>
</select>
</mapper>
...@@ -158,6 +158,8 @@ public interface CacheConstants { ...@@ -158,6 +158,8 @@ public interface CacheConstants {
String PAYMENT_SOCIAL_EXPORT = "payment_social_export"; String PAYMENT_SOCIAL_EXPORT = "payment_social_export";
String EMP_CONTRACT_AUTO_RENEWAL_EXPORT = "emp_contract_auto_renewal_export";
String PAYMENT_DISPATCH_BATCH_ADD_IMPORT = "payment_dispatch_batch_add_import"; String PAYMENT_DISPATCH_BATCH_ADD_IMPORT = "payment_dispatch_batch_add_import";
String MOBILE_CHANGE_LIMIT = "mobile_change_limit"; String MOBILE_CHANGE_LIMIT = "mobile_change_limit";
......
...@@ -125,7 +125,6 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap ...@@ -125,7 +125,6 @@ public class SysMessageSalaryServiceImpl extends ServiceImpl<SysMessageSalaryMap
String fileName = "最低工资提醒批量导出" + DateUtil.getThisTime() + CommonConstants.XLSX; String fileName = "最低工资提醒批量导出" + DateUtil.getThisTime() + CommonConstants.XLSX;
//获取要导出的列表 //获取要导出的列表
List<SysMessageSalaryExportVo> list = new ArrayList<>(); List<SysMessageSalaryExportVo> list = new ArrayList<>();
// TODO
List<String> settleDomainIds =null; List<String> settleDomainIds =null;
List<String> ids = Common.getList(searchVo.getIds()); List<String> ids = Common.getList(searchVo.getIds());
String sql = null; String sql = null;
......
...@@ -183,7 +183,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc ...@@ -183,7 +183,6 @@ public class THaveSalaryNosocialServiceImpl extends ServiceImpl<THaveSalaryNosoc
String fileName = "有工资无社保批量导出" + DateUtil.getThisTime() + CommonConstants.XLSX; String fileName = "有工资无社保批量导出" + DateUtil.getThisTime() + CommonConstants.XLSX;
//获取要导出的列表 //获取要导出的列表
List<THaveSalaryNoSocialExportVo> list = new ArrayList<>(); List<THaveSalaryNoSocialExportVo> list = new ArrayList<>();
// TODO
List<String> settleDomainIds =null; List<String> settleDomainIds =null;
List<String> ids = Common.getList(searchVo.getIds()); List<String> ids = Common.getList(searchVo.getIds());
String sql = null; String sql = null;
......
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