Commit dedc4978 authored by hongguangwu's avatar hongguangwu

Merge remote-tracking branch 'origin/develop' into develop

parents 92e1b740 3b3674b2
......@@ -32,9 +32,9 @@ import lombok.EqualsAndHashCode;
*/
@Data
@TableName("fdd_company_info")
@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode()
@Schema(description = "法大大企业接入方信息")
public class FddCompanyInfo extends BaseEntity {
public class FddCompanyInfo {
/**
* 主键
......
/*
* 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.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 java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName("fdd_contract_attach_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法大大合同附属信息表")
public class FddContractAttachInfo extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private String id;
/**
* 合同id
*/
@Schema(description ="合同id")
private String contractId;
/**
* 合同试用期开始时间
*/
@Schema(description ="合同试用期开始时间")
private LocalDateTime periodStart;
/**
* 合同试用期结束时间
*/
@Schema(description ="合同试用期结束时间")
private LocalDateTime periodEnd;
/**
* 合同起始时间
*/
@Schema(description ="合同起始时间")
private LocalDateTime contractStart;
/**
* 合同到期时间
*/
@Schema(description ="合同到期时间")
private LocalDateTime contractEnd;
/**
* 试用期工资 元/月
*/
@Schema(description ="试用期工资 元/月")
private BigDecimal periodSalaryPerMonth;
/**
* 工资形式 1.计时工资 2.计件工资 3.其他
*/
@Schema(description ="工资形式 1.计时工资 2.计件工资 3.其他")
private String salaryType;
/**
* 计时工资 工资标准 元/月
*/
@Schema(description ="计时工资 工资标准 元/月")
private BigDecimal salaryStandardPerHour;
/**
* 计件工资 工资标准单价/元
*/
@Schema(description ="计件工资 工资标准单价/元")
private BigDecimal salaryStandardPerPiece;
/**
* 工作地点
*/
@Schema(description ="工作地点")
private String workSpace;
/**
* 岗位
*/
@Schema(description ="岗位")
private String post;
/**
* 备注
*/
@Schema(description ="备注")
private String remark;
/**
* 是否删除 0未删除/1删除
*/
@Schema(description ="是否删除 0未删除/1删除")
private String deleteFlag;
/**
* 附件是否已转移到合同里(0:未转移;1已转移)
*/
@Schema(description ="附件是否已转移到合同里(0:未转移;1已转移)")
private Integer isMove;
/**
* 法大大模板id
*/
@Schema(description ="法大大模板id")
private String fddTemplateId;
/**
* 员工姓名
*/
@Schema(description ="员工姓名")
private String empName;
/**
* 身份证号码
*/
@Schema(description ="身份证号码")
private String empIdcard;
/**
* 手机号码
*/
@Schema(description ="手机号码")
private String empPhone;
/**
* 结算主体编码
*/
@Schema(description ="结算主体编码")
private String departNo;
/**
* 创建者
*/
@Schema(description ="创建者")
private String createBy;
/**
* 更新人
*/
@Schema(description ="更新人")
private String updateBy;
/**
* 创建时间
*/
@Schema(description ="创建时间")
private LocalDateTime createTime;
/**
* 更新时间
*/
@Schema(description ="更新时间")
private LocalDateTime updateTime;
/**
* 创建人姓名
*/
@Schema(description ="创建人姓名")
private String createName;
}
/*
* 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.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 java.time.LocalDateTime;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@Data
@TableName("fdd_contract_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法大大合同与员工合同信息")
public class FddContractInfo extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private String id;
/**
* 员工合同Id
*/
@Schema(description ="员工合同Id")
private String contractId;
/**
* 甲方用户ID: FDD_PERSON_ACCOUNT的个人实名ID
*/
@Schema(description ="甲方用户ID: FDD_PERSON_ACCOUNT的个人实名ID")
private String fddPersonAccountSendId;
/**
* 乙方用户ID: FDD_PERSON_ACCOUNT的个人实名ID
*/
@Schema(description ="乙方用户ID: FDD_PERSON_ACCOUNT的个人实名ID")
private String fddPersonAccountReceiveId;
/**
* 组织的unionId
*/
@Schema(description ="组织的unionId")
private String sendUnionid;
/**
* 签署人的unionId
*/
@Schema(description ="签署人的unionId")
private String receiveUnionid;
/**
* 定稿状态 1未定稿 2.定稿成功
*/
@Schema(description ="定稿状态 1未定稿 2.定稿成功")
private String taskStatus;
/**
* 签署发送方状态 1.未签署 2 已签署 3 已拒签 4 已撤销
*/
@Schema(description ="签署发送方状态 1.未签署 2 已签署 3 已拒签 4 已撤销")
private String sendSignStatus;
/**
* 定稿任务编号
*/
@Schema(description ="定稿任务编号")
private String taskId;
/**
* 定稿文件编号
*/
@Schema(description ="定稿文件编号")
private String fileId;
/**
* 草稿id,用于生成后续签署任务
*/
@Schema(description ="草稿id,用于生成后续签署任务")
private String draftId;
/**
* 是否删除 0未删除/1删除
*/
@Schema(description ="是否删除 0未删除/1删除")
private String deleteFlag;
/**
* 签署任务编号
*/
@Schema(description ="签署任务编号")
private String signTaskId;
/**
* 签署接收方状态 1.未签署 2 已签署 3 已拒签 4 已撤销
*/
@Schema(description ="签署接收方状态 1.未签署 2 已签署 3 已拒签 4 已撤销")
private String receiveSignStatus;
/**
* 签署状态 1.未签署 2 已签署 4 已撤销 5已拒签
*/
@Schema(description ="签署状态 1.未签署 2 已签署 4 已撤销 5已拒签")
private String signStatus;
/**
* 备注
*/
@Schema(description ="备注")
private String remark;
/**
* 合同模板id
*/
@Schema(description ="合同模板id")
private String fddTemplateId;
/**
* 创建者
*/
@Schema(description ="创建者")
private String createBy;
/**
* 更新人
*/
@Schema(description ="更新人")
private String updateBy;
/**
* 创建时间
*/
@Schema(description ="创建时间")
private LocalDateTime createTime;
/**
* 更新时间
*/
@Schema(description ="更新时间")
private LocalDateTime updateTime;
/**
* 创建人姓名
*/
@Schema(description ="创建人姓名")
private String createName;
}
/*
* 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.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;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName("fdd_contract_template")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法大大员工合同模板")
public class FddContractTemplate extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private String id;
/**
* 合同类型的字典
*/
@Schema(description ="合同类型的字典")
private String type;
/**
* 合同编辑状态 1成功
*/
@Schema(description ="合同编辑状态 1成功")
private String modifyUploadStatus;
/**
* 省
*/
@Schema(description ="省")
private Integer province;
/**
* 市
*/
@Schema(description ="市")
private Integer city;
/**
* 是否有加班工资 0无加班工资 1有加班工资
*/
@Schema(description ="是否有加班工资 0无加班工资 1有加班工资")
private String overtimeWageFlag;
/**
* 法大大模板id
*/
@Schema(description ="法大大模板id")
private String fddTemplateId;
/**
* 本地模板名称
*/
@Schema(description ="本地模板名称")
private String localName;
/**
* 签署组织名称
*/
@Schema(description ="签署组织名称")
private String signerName;
}
/*
* 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.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;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName("fdd_contract_template_file")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法大大员工合同模板文件表")
public class FddContractTemplateFile extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="主键")
private String id;
/**
* 法大大模板id
*/
@Schema(description ="法大大模板id")
private String fddTemplateId;
/**
* 法大大FileId
*/
@Schema(description ="法大大FileId")
private String fddFileId;
}
/*
* 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.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;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName("fdd_global_field_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法大大模板字段信息表")
public class FddGlobalFieldInfo extends BaseEntity {
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="id")
private String id;
/**
* 法大大字段
*/
@Schema(description ="法大大字段")
private String filedName;
/**
* 备注
*/
@Schema(description ="备注")
private String remark;
/**
* 0 个人 1 公司
*/
@Schema(description ="0 个人 1 公司")
private String type;
}
/*
* 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.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;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Data
@TableName("fdd_template_field_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "法大大字段对应信息表")
public class FddTemplateFieldInfo extends BaseEntity {
/**
* ID
*/
@TableId(type = IdType.ASSIGN_ID)
@Schema(description ="ID")
private String id;
/**
* 角色:0个人 1公司
*/
@Schema(description ="角色:0个人 1公司")
private String type;
/**
* 对应法大大模板字段名称,传给法大大时要初始化
*/
@Schema(description ="对应法大大模板字段名称,传给法大大时要初始化")
private String filedName;
/**
* 模板ID
*/
@Schema(description ="模板ID")
private String templateId;
}
......@@ -117,41 +117,6 @@ public class TCertRecord extends BaseEntity {
@Schema(description ="印章名称")
private String seal;
/**
* 创建者
*/
@ExcelAttribute(name = "创建者" )
@Schema(description ="创建者")
private String createBy;
/**
* 更新人
*/
@ExcelAttribute(name = "更新人" )
@Schema(description ="更新人")
private String updateBy;
/**
* 创建人姓名
*/
@ExcelAttribute(name = "创建人姓名" )
@Schema(description ="创建人姓名")
private String createName;
/**
* 创建时间
*/
@ExcelAttribute(name = "创建时间" )
@Schema(description ="创建时间")
private LocalDateTime createTime;
/**
* 更新时间
*/
@ExcelAttribute(name = "更新时间" )
@Schema(description ="更新时间")
private LocalDateTime updateTime;
/**
* 证明类型:0 在职 1 离职2劳动合同解除 3调档函4.代缴证明
*/
......@@ -174,10 +139,10 @@ public class TCertRecord extends BaseEntity {
private String leaveReason;
/**
* 性别:0男 1
* 性别:1男 2
*/
@ExcelAttribute(name = "性别:0男 1女" )
@Schema(description ="性别:0男 1女")
@ExcelAttribute(name = "性别" )
@Schema(description ="性别:1男 2女,和档案一致")
private String sex;
/**
......
/*
* 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.ExcelIgnore;
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.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@Data
@TableName("t_emp_bad_record")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "员工不良记录")
public class TEmpBadRecord extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelAttribute(name = "主键" )
@Schema(description ="主键")
@ExcelIgnore
private String id;
/**
* 员工姓名
*/
@ExcelAttribute(name = "员工姓名" ,maxLength = 20)
@Schema(description ="员工姓名")
@ExcelProperty("员工姓名")
private String empName;
/**
* 员工ID
*/
@ExcelAttribute(name = "员工ID")
@Schema(description ="员工ID")
@ExcelIgnore
private String empId;
/**
* 身份证号
*/
@ExcelAttribute(name = "身份证号" ,maxLength = 20)
@Schema(description ="身份证号")
@ExcelProperty("身份证号")
private String empIdcard;
/**
* 产生项目
*/
@ExcelAttribute(name = "产生项目" ,maxLength = 50)
@Schema(description ="产生项目")
@ExcelProperty("产生项目")
private String project;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码" ,maxLength = 50)
@Schema(description ="项目编码")
@ExcelProperty("项目编码")
private String projectCode;
/**
* 发生时间
*/
@ExcelAttribute(name = "发生时间" )
@Schema(description ="发生时间")
@ExcelProperty("发生时间")
private Date happenTime;
/**
* 备注
*/
@ExcelAttribute(name = "备注", maxLength = 200)
@Schema(description ="备注")
@ExcelProperty("备注")
private String remark;
/**
* 费用损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute(name = "费用损失 " )
@Schema(description ="费用损失 (费用损失与其他费用损失其一必填)")
@ExcelProperty("费用损失")
private BigDecimal loseFee;
/**
* 其他损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute(name = "其他损失" )
@Schema(description ="其他损失 (费用损失与其他费用损失其一必填)")
@ExcelProperty("其他损失")
private BigDecimal loseFeeOther;
}
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
/**
* @Author fxj
* @Date 2022/6/29
* @Description
* @Version 1.0
*/
@Data
public class EmpBadRecordSearchVo extends TEmpBadRecord {
private String ids;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema(description = "创建时间区间")
private LocalDateTime[] createTimes;
}
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Author fxj
* @Date 2022/6/29
* @Description
* @Version 1.0
*/
@Data
public class EmpBadRecordVo extends RowIndex implements Serializable {
/**
* 员工姓名
*/
@ExcelAttribute(name = "员工姓名" ,maxLength = 20, isNotEmpty = true)
@Schema(description ="员工姓名")
private String empName;
/**
* 员工ID
*/
@ExcelAttribute(name = "员工ID")
@Schema(description ="员工ID")
private String empId;
/**
* 身份证号
*/
@ExcelAttribute(name = "身份证号" ,maxLength = 20, isNotEmpty = true)
@Schema(description ="身份证号")
private String empIdcard;
/**
* 产生项目
*/
@ExcelAttribute(name = "产生项目" ,maxLength = 50, isNotEmpty = true)
@Schema(description ="产生项目")
private String project;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码" ,maxLength = 50, isNotEmpty = true)
@Schema(description ="项目编码")
private String projectCode;
/**
* 发生时间
*/
@ExcelAttribute(name = "发生时间" , isNotEmpty = true)
@Schema(description ="发生时间")
private Date happenTime;
/**
* 备注
*/
@ExcelAttribute(name = "备注", maxLength = 200, isNotEmpty = true)
@Schema(description ="备注")
private String remark;
/**
* 费用损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute(name = "费用损失 " )
@Schema(description ="费用损失 (费用损失与其他费用损失其一必填)")
private BigDecimal loseFee;
/**
* 其他损失 (费用损失与其他费用损失其一必填)
*/
@ExcelAttribute(name = "其他损失" )
@Schema(description ="其他损失 (费用损失与其他费用损失其一必填)")
private BigDecimal loseFeeOther;
}
......@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
......@@ -41,6 +42,7 @@ public class EmployeeProjectExportVO{
* 档案员工类型(字典值,0外包1派遣2代理)
*/
@ExcelProperty(value ="档案员工类型")
@ExcelAttribute(name = "档案员工类型",isNotEmpty = true, errorInfo = "档案员工类型不可为空",isDataId = true,dataType = "emp_natrue")
private String proEmpNatrue;
/**
......
......@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import lombok.Data;
import javax.validation.constraints.NotNull;
......@@ -42,7 +43,7 @@ public class EmployeeProjectVO implements Serializable {
* 员工类型(字典值,0外包1派遣2代理)
*/
@NotNull(message = "员工类型不能为空")
@Size(max = 1, message = "员工类型不可超过1位")
@ExcelAttribute(name = "员工类型",isNotEmpty = true, errorInfo = "员工类型不能为空",maxLength = 1)
@ExcelProperty(value ="员工类型")
private String empNatrue;
......@@ -50,7 +51,7 @@ public class EmployeeProjectVO implements Serializable {
* 员工姓名
*/
@NotNull(message = "员工姓名不能为空")
@Size(max = 20,message = "员工姓名不可超过20位")
@ExcelAttribute(name = "员工姓名",isNotEmpty = true, errorInfo = "员工姓名不能为空",maxLength = 20)
@ExcelProperty(value ="员工姓名")
private String empName;
......@@ -58,7 +59,7 @@ public class EmployeeProjectVO implements Serializable {
* 身份证号码
*/
@NotNull(message = "身份证号不能为空")
@Size(max = 20,message = "身份证号不可超过20位")
@ExcelAttribute(name = "身份证号",isNotEmpty = true, errorInfo = "身份证号不能为空",maxLength = 20)
@ExcelProperty(value ="身份证号")
private String empIdcard;
......@@ -85,6 +86,7 @@ public class EmployeeProjectVO implements Serializable {
*/
@NotNull(message = "项目编码不能为空")
@ExcelProperty(value ="项目编码")
@ExcelAttribute(name = "项目编码",isNotEmpty = true, errorInfo = "项目编码不能为空",maxLength = 20)
private String deptNo;
/**
......@@ -103,6 +105,7 @@ public class EmployeeProjectVO implements Serializable {
* 就职岗位
*/
@ExcelProperty(value ="就职岗位")
@ExcelAttribute(name = "就职岗位",isNotEmpty = true, errorInfo = "就职岗位不能为空",maxLength = 20)
private String post;
/**
......
/*
* 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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractAttachInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
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.*;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/fddcontractattachinfo" )
@Tag(name = "法大大合同附属信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class FddContractAttachInfoController {
private final FddContractAttachInfoService fddContractAttachInfoService;
/**
* 分页查询
* @param page 分页对象
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('demo_fddcontractattachinfo_get')" )
public R getFddContractAttachInfoPage(Page page, FddContractAttachInfo fddContractAttachInfo) {
return R.ok(fddContractAttachInfoService.getFddContractAttachInfoPage(page, fddContractAttachInfo));
}
/**
* 通过id查询法大大合同附属信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_fddcontractattachinfo_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontractattachinfo_get')" )
public R getById(@PathVariable("id" ) String id) {
return R.ok(fddContractAttachInfoService.getById(id));
}
/**
* 新增法大大合同附属信息表
* @param fddContractAttachInfo 法大大合同附属信息表
* @return R
*/
@Operation(summary = "新增法大大合同附属信息表", description = "新增法大大合同附属信息表:hasPermission('demo_fddcontractattachinfo_add')")
@SysLog("新增法大大合同附属信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontractattachinfo_add')" )
public R save(@RequestBody FddContractAttachInfo fddContractAttachInfo) {
return R.ok(fddContractAttachInfoService.save(fddContractAttachInfo));
}
/**
* 修改法大大合同附属信息表
* @param fddContractAttachInfo 法大大合同附属信息表
* @return R
*/
@Operation(summary = "修改法大大合同附属信息表", description = "修改法大大合同附属信息表:hasPermission('demo_fddcontractattachinfo_edit')")
@SysLog("修改法大大合同附属信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontractattachinfo_edit')" )
public R updateById(@RequestBody FddContractAttachInfo fddContractAttachInfo) {
return R.ok(fddContractAttachInfoService.updateById(fddContractAttachInfo));
}
/**
* 通过id删除法大大合同附属信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除法大大合同附属信息表", description = "通过id删除法大大合同附属信息表:hasPermission('demo_fddcontractattachinfo_del')")
@SysLog("通过id删除法大大合同附属信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontractattachinfo_del')" )
public R removeById(@PathVariable String id) {
return R.ok(fddContractAttachInfoService.removeById(id));
}
}
/*
* 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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
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.*;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/fddcontractinfo" )
@Tag(name = "法大大合同与员工合同信息管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class FddContractInfoController {
private final FddContractInfoService fddContractInfoService;
/**
* 分页查询
* @param page 分页对象
* @param fddContractInfo 法大大合同与员工合同信息
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('demo_fddcontractinfo_get')" )
public R getFddContractInfoPage(Page page, FddContractInfo fddContractInfo) {
return R.ok(fddContractInfoService.page(page, Wrappers.query(fddContractInfo)));
}
/**
* 通过id查询法大大合同与员工合同信息
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_fddcontractinfo_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontractinfo_get')" )
public R getById(@PathVariable("id" ) String id) {
return R.ok(fddContractInfoService.getById(id));
}
/**
* 新增法大大合同与员工合同信息
* @param fddContractInfo 法大大合同与员工合同信息
* @return R
*/
@Operation(summary = "新增法大大合同与员工合同信息", description = "新增法大大合同与员工合同信息:hasPermission('demo_fddcontractinfo_add')")
@SysLog("新增法大大合同与员工合同信息" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontractinfo_add')" )
public R save(@RequestBody FddContractInfo fddContractInfo) {
return R.ok(fddContractInfoService.save(fddContractInfo));
}
/**
* 修改法大大合同与员工合同信息
* @param fddContractInfo 法大大合同与员工合同信息
* @return R
*/
@Operation(summary = "修改法大大合同与员工合同信息", description = "修改法大大合同与员工合同信息:hasPermission('demo_fddcontractinfo_edit')")
@SysLog("修改法大大合同与员工合同信息" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontractinfo_edit')" )
public R updateById(@RequestBody FddContractInfo fddContractInfo) {
return R.ok(fddContractInfoService.updateById(fddContractInfo));
}
/**
* 通过id删除法大大合同与员工合同信息
* @param id id
* @return R
*/
@Operation(summary = "通过id删除法大大合同与员工合同信息", description = "通过id删除法大大合同与员工合同信息:hasPermission('demo_fddcontractinfo_del')")
@SysLog("通过id删除法大大合同与员工合同信息" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontractinfo_del')" )
public R removeById(@PathVariable String id) {
return R.ok(fddContractInfoService.removeById(id));
}
}
/*
* 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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fadada.api.exception.ApiException;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
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.*;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/fddcontracttemplate" )
@Tag(name = "法大大员工合同模板管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class FddContractTemplateController {
private final FddContractTemplateService fddContractTemplateService;
/**
* 分页查询
* @param page 分页对象
* @param fddContractTemplate 法大大员工合同模板
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplate_get')" )
public R getFddContractTemplatePage(Page page, FddContractTemplate fddContractTemplate) throws ApiException {
return R.ok(fddContractTemplateService.getFddContractTemplatePage(page, fddContractTemplate));
}
/**
* 通过id查询法大大员工合同模板
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_fddcontracttemplate_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplate_get')" )
public R getById(@PathVariable("id" ) String id) {
return R.ok(fddContractTemplateService.getById(id));
}
/**
* 新增法大大员工合同模板
* @param fddContractTemplate 法大大员工合同模板
* @return R
*/
@Operation(summary = "新增法大大员工合同模板", description = "新增法大大员工合同模板:hasPermission('demo_fddcontracttemplate_add')")
@SysLog("新增法大大员工合同模板" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplate_add')" )
public R save(@RequestBody FddContractTemplate fddContractTemplate) {
return R.ok(fddContractTemplateService.save(fddContractTemplate));
}
/**
* 修改法大大员工合同模板
* @param fddContractTemplate 法大大员工合同模板
* @return R
*/
@Operation(summary = "修改法大大员工合同模板", description = "修改法大大员工合同模板:hasPermission('demo_fddcontracttemplate_edit')")
@SysLog("修改法大大员工合同模板" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplate_edit')" )
public R updateById(@RequestBody FddContractTemplate fddContractTemplate) {
return R.ok(fddContractTemplateService.updateById(fddContractTemplate));
}
/**
* 通过id删除法大大员工合同模板
* @param id id
* @return R
*/
@Operation(summary = "通过id删除法大大员工合同模板", description = "通过id删除法大大员工合同模板:hasPermission('demo_fddcontracttemplate_del')")
@SysLog("通过id删除法大大员工合同模板" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplate_del')" )
public R removeById(@PathVariable String id) {
return R.ok(fddContractTemplateService.removeById(id));
}
}
/*
* 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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateFileService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
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.*;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/fddcontracttemplatefile" )
@Tag(name = "法大大员工合同模板文件表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class FddContractTemplateFileController {
private final FddContractTemplateFileService fddContractTemplateFileService;
/**
* 分页查询
* @param page 分页对象
* @param fddContractTemplateFile 法大大员工合同模板文件表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplatefile_get')" )
public R getFddContractTemplateFilePage(Page page, FddContractTemplateFile fddContractTemplateFile) {
return R.ok(fddContractTemplateFileService.page(page, Wrappers.query(fddContractTemplateFile)));
}
/**
* 通过id查询法大大员工合同模板文件表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_fddcontracttemplatefile_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplatefile_get')" )
public R getById(@PathVariable("id" ) String id) {
return R.ok(fddContractTemplateFileService.getById(id));
}
/**
* 新增法大大员工合同模板文件表
* @param fddContractTemplateFile 法大大员工合同模板文件表
* @return R
*/
@Operation(summary = "新增法大大员工合同模板文件表", description = "新增法大大员工合同模板文件表:hasPermission('demo_fddcontracttemplatefile_add')")
@SysLog("新增法大大员工合同模板文件表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplatefile_add')" )
public R save(@RequestBody FddContractTemplateFile fddContractTemplateFile) {
return R.ok(fddContractTemplateFileService.save(fddContractTemplateFile));
}
/**
* 修改法大大员工合同模板文件表
* @param fddContractTemplateFile 法大大员工合同模板文件表
* @return R
*/
@Operation(summary = "修改法大大员工合同模板文件表", description = "修改法大大员工合同模板文件表:hasPermission('demo_fddcontracttemplatefile_edit')")
@SysLog("修改法大大员工合同模板文件表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplatefile_edit')" )
public R updateById(@RequestBody FddContractTemplateFile fddContractTemplateFile) {
return R.ok(fddContractTemplateFileService.updateById(fddContractTemplateFile));
}
/**
* 通过id删除法大大员工合同模板文件表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除法大大员工合同模板文件表", description = "通过id删除法大大员工合同模板文件表:hasPermission('demo_fddcontracttemplatefile_del')")
@SysLog("通过id删除法大大员工合同模板文件表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddcontracttemplatefile_del')" )
public R removeById(@PathVariable String id) {
return R.ok(fddContractTemplateFileService.removeById(id));
}
}
/*
* 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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddGlobalFieldInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
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.*;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/fddglobalfieldinfo" )
@Tag(name = "法大大模板字段信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class FddGlobalFieldInfoController {
private final FddGlobalFieldInfoService fddGlobalFieldInfoService;
/**
* 分页查询
* @param page 分页对象
* @param fddGlobalFieldInfo 法大大模板字段信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('demo_fddglobalfieldinfo_get')" )
public R getFddGlobalFieldInfoPage(Page page, FddGlobalFieldInfo fddGlobalFieldInfo) {
return R.ok(fddGlobalFieldInfoService.page(page, Wrappers.query(fddGlobalFieldInfo)));
}
/**
* 通过id查询法大大模板字段信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_fddglobalfieldinfo_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddglobalfieldinfo_get')" )
public R getById(@PathVariable("id" ) String id) {
return R.ok(fddGlobalFieldInfoService.getById(id));
}
/**
* 新增法大大模板字段信息表
* @param fddGlobalFieldInfo 法大大模板字段信息表
* @return R
*/
@Operation(summary = "新增法大大模板字段信息表", description = "新增法大大模板字段信息表:hasPermission('demo_fddglobalfieldinfo_add')")
@SysLog("新增法大大模板字段信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_fddglobalfieldinfo_add')" )
public R save(@RequestBody FddGlobalFieldInfo fddGlobalFieldInfo) {
return R.ok(fddGlobalFieldInfoService.save(fddGlobalFieldInfo));
}
/**
* 修改法大大模板字段信息表
* @param fddGlobalFieldInfo 法大大模板字段信息表
* @return R
*/
@Operation(summary = "修改法大大模板字段信息表", description = "修改法大大模板字段信息表:hasPermission('demo_fddglobalfieldinfo_edit')")
@SysLog("修改法大大模板字段信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_fddglobalfieldinfo_edit')" )
public R updateById(@RequestBody FddGlobalFieldInfo fddGlobalFieldInfo) {
return R.ok(fddGlobalFieldInfoService.updateById(fddGlobalFieldInfo));
}
/**
* 通过id删除法大大模板字段信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除法大大模板字段信息表", description = "通过id删除法大大模板字段信息表:hasPermission('demo_fddglobalfieldinfo_del')")
@SysLog("通过id删除法大大模板字段信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddglobalfieldinfo_del')" )
public R removeById(@PathVariable String id) {
return R.ok(fddGlobalFieldInfoService.removeById(id));
}
}
......@@ -70,7 +70,7 @@ public class FddPersonAccountController {
*/
@Operation(summary = "通过id查询", description = "通过id查询")
@GetMapping("/{id}" )
public R getById(@PathVariable("id" ) String id) {
public R getById(@PathVariable("id") String id) {
return R.ok(fddPersonAccountService.getById(id));
}
......
/*
* 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.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddTemplateFieldInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
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.*;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/fddtemplatefieldinfo" )
@Tag(name = "法大大字段对应信息表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class FddTemplateFieldInfoController {
private final FddTemplateFieldInfoService fddTemplateFieldInfoService;
/**
* 分页查询
* @param page 分页对象
* @param fddTemplateFieldInfo 法大大字段对应信息表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
@PreAuthorize("@pms.hasPermission('demo_fddtemplatefieldinfo_get')" )
public R getFddTemplateFieldInfoPage(Page page, FddTemplateFieldInfo fddTemplateFieldInfo) {
return R.ok(fddTemplateFieldInfoService.page(page, Wrappers.query(fddTemplateFieldInfo)));
}
/**
* 通过id查询法大大字段对应信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_fddtemplatefieldinfo_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddtemplatefieldinfo_get')" )
public R getById(@PathVariable("id" ) String id) {
return R.ok(fddTemplateFieldInfoService.getById(id));
}
/**
* 新增法大大字段对应信息表
* @param fddTemplateFieldInfo 法大大字段对应信息表
* @return R
*/
@Operation(summary = "新增法大大字段对应信息表", description = "新增法大大字段对应信息表:hasPermission('demo_fddtemplatefieldinfo_add')")
@SysLog("新增法大大字段对应信息表" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_fddtemplatefieldinfo_add')" )
public R save(@RequestBody FddTemplateFieldInfo fddTemplateFieldInfo) {
return R.ok(fddTemplateFieldInfoService.save(fddTemplateFieldInfo));
}
/**
* 修改法大大字段对应信息表
* @param fddTemplateFieldInfo 法大大字段对应信息表
* @return R
*/
@Operation(summary = "修改法大大字段对应信息表", description = "修改法大大字段对应信息表:hasPermission('demo_fddtemplatefieldinfo_edit')")
@SysLog("修改法大大字段对应信息表" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_fddtemplatefieldinfo_edit')" )
public R updateById(@RequestBody FddTemplateFieldInfo fddTemplateFieldInfo) {
return R.ok(fddTemplateFieldInfoService.updateById(fddTemplateFieldInfo));
}
/**
* 通过id删除法大大字段对应信息表
* @param id id
* @return R
*/
@Operation(summary = "通过id删除法大大字段对应信息表", description = "通过id删除法大大字段对应信息表:hasPermission('demo_fddtemplatefieldinfo_del')")
@SysLog("通过id删除法大大字段对应信息表" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_fddtemplatefieldinfo_del')" )
public R removeById(@PathVariable String id) {
return R.ok(fddTemplateFieldInfoService.removeById(id));
}
}
/*
* 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.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord;
import com.yifu.cloud.plus.v1.yifu.archives.service.TEmpBadRecordService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpBadRecordSearchVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
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 io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.springframework.http.HttpHeaders;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tempbadrecord" )
@Tag(name = "员工不良记录管理")
public class TEmpBadRecordController {
private final TEmpBadRecordService tEmpBadRecordService;
/**
* 分页查询
* @param page 分页对象
* @param tEmpBadRecord 员工不良记录
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page" )
//@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_get')" )
public R<IPage<TEmpBadRecord>> getTEmpBadRecordPage(Page page, EmpBadRecordSearchVo tEmpBadRecord) {
return R.ok(tEmpBadRecordService.pageDiy(page, tEmpBadRecord));
}
/**
* 不分页查询
* @param tEmpBadRecord 员工不良记录
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage" )
//@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_get')" )
public R<List<TEmpBadRecord>> getTEmpBadRecordNoPage(@RequestBody EmpBadRecordSearchVo tEmpBadRecord) {
return R.ok(tEmpBadRecordService.noPageDiy(tEmpBadRecord));
}
/**
* 通过id查询员工不良记录
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('demo_tempbadrecord_get')")
@GetMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_get')" )
public R<TEmpBadRecord> getById(@PathVariable("id" ) String id) {
return R.ok(tEmpBadRecordService.getById(id));
}
/**
* 新增员工不良记录
* @param tEmpBadRecord 员工不良记录
* @return R
*/
@Operation(summary = "新增员工不良记录", description = "新增员工不良记录:hasPermission('demo_tempbadrecord_add')")
@SysLog("新增员工不良记录" )
@PostMapping
@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_add')" )
public R<Boolean> save(@RequestBody TEmpBadRecord tEmpBadRecord) {
return tEmpBadRecordService.saveDiy(tEmpBadRecord);
}
/**
* 修改员工不良记录
* @param tEmpBadRecord 员工不良记录
* @return R
*/
@Operation(summary = "修改员工不良记录", description = "修改员工不良记录:hasPermission('demo_tempbadrecord_edit')")
@SysLog("修改员工不良记录" )
@PutMapping
@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_edit')" )
public R<Boolean> updateById(@RequestBody TEmpBadRecord tEmpBadRecord) {
return R.ok(tEmpBadRecordService.updateById(tEmpBadRecord));
}
/**
* 通过id删除员工不良记录
* @param id id
* @return R
*/
@Operation(summary = "通过id删除员工不良记录", description = "通过id删除员工不良记录:hasPermission('demo_tempbadrecord_del')")
@SysLog("通过id删除员工不良记录" )
@DeleteMapping("/{id}" )
@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_del')" )
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tEmpBadRecordService.removeById(id));
}
/**
* 通过ids删除员工不良记录
* @param ids
* @return R
*/
@Operation(summary = "通过ids删除员工不良记录", description = "通过id删除员工不良记录:hasPermission('demo_tempbadrecord_del_batch')")
@SysLog("通过ids删除员工不良记录" )
@DeleteMapping("/removeByIds" )
@PreAuthorize("@pms.hasPermission('demo_tempbadrecord_del_batch')" )
public R<Boolean> removeByIds(@RequestParam String ids) {
List<String> idList = Common.getList(ids);
return R.ok(tEmpBadRecordService.removeByIds(idList));
}
/**
* 批量新增不良记录信息
*
* @param file
* @return
* @Author fxj
* @Date 2019-08-16
**/
@SneakyThrows
@Operation(description = "批量新增不良记录信息 hasPermission('archives_tempbadrecord_importListAdd')")
@SysLog("批量新增不良记录信息")
@PostMapping("/importListAdd")
@PreAuthorize("@pms.hasPermission('archives_tempbadrecord_importListAdd')")
public R<List<ErrorMessage>> importListAdd(@RequestBody MultipartFile file) {
return tEmpBadRecordService.importEmpBadRecordDiy(file.getInputStream());
}
/**
* 批量导出项目档案信息
* @param searchVo
* @return R<List>
* @Author FXJ
* @Date 2022-06-21
**/
@Operation(description = "导出")
@PostMapping("/export")
public void export(HttpServletResponse response, @RequestBody EmpBadRecordSearchVo searchVo) {
tEmpBadRecordService.listExport(response,searchVo);
}
}
......@@ -39,6 +39,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
/**
......@@ -245,4 +246,17 @@ public class TEmployeeProjectController {
public R getItemByEmpNo(@RequestParam String empIdcard,@RequestParam String empNo) {
return tEmployeeProjectService.getItemByEmpNo(empIdcard,empNo);
}
/**
* 通过身份证获取对应所有项目信息
* @author fxj
* @param empIdCard
* @date 2022-06-29 17:45
* @return R
*/
@Operation(summary = "通过身份证获取对应所有项目信息", description = "通过身份证获取对应所有项目信息")
@GetMapping("/getProjectByIdCard" )
public R<Map<String,String>> getProjectByIdCard(@RequestParam String empIdCard) {
return tEmployeeProjectService.getProjectByIdCard(empIdCard);
}
}
/*
* 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.FddContractAttachInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public interface FddContractAttachInfoMapper extends BaseMapper<FddContractAttachInfo> {
/**
* 法大大合同附属信息表简单分页查询
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
IPage<FddContractAttachInfo> getFddContractAttachInfoPage(Page<FddContractAttachInfo> page, @Param("fddContractAttachInfo") FddContractAttachInfo fddContractAttachInfo);
List<FddContractAttachInfo> getListByNoInfoByEmpIdcard(@Param("empIdcard")String empIdcard);
}
/*
* 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.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@Mapper
public interface FddContractInfoMapper extends BaseMapper<FddContractInfo> {
int cancleSignTask(@Param("id") String id);
}
/*
* 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.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile;
import org.apache.ibatis.annotations.Mapper;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public interface FddContractTemplateFileMapper extends BaseMapper<FddContractTemplateFile> {
}
/*
* 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.FddContractTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public interface FddContractTemplateMapper extends BaseMapper<FddContractTemplate> {
/**
* 法大大员工合同模板简单分页查询
* @param fddContractTemplate 法大大员工合同模板
* @return
*/
IPage<FddContractTemplate> getFddContractTemplatePage(Page<FddContractTemplate> page, @Param("fddContractTemplate") FddContractTemplate fddContractTemplate);
int updateTeFddTemplateNull(@Param("id") String id);
}
/*
* 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.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo;
import org.apache.ibatis.annotations.Mapper;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public interface FddGlobalFieldInfoMapper extends BaseMapper<FddGlobalFieldInfo> {
}
/*
* 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.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo;
import org.apache.ibatis.annotations.Mapper;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Mapper
public interface FddTemplateFieldInfoMapper extends BaseMapper<FddTemplateFieldInfo> {
}
/*
* 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.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord;
import org.apache.ibatis.annotations.Mapper;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
@Mapper
public interface TEmpBadRecordMapper extends BaseMapper<TEmpBadRecord> {
}
/*
* 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.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo;
import java.util.List;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public interface FddContractAttachInfoService extends IService<FddContractAttachInfo> {
/**
* 法大大合同附属信息表简单分页查询
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
IPage<FddContractAttachInfo> getFddContractAttachInfoPage(Page<FddContractAttachInfo> page, FddContractAttachInfo fddContractAttachInfo);
/**
* 获取有附属信息但是没有法大大电子合同的数据
* @param empIdcard
* @return
*/
List<FddContractAttachInfo> getListByNoInfoByEmpIdcard(String empIdcard);
}
/*
* 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.FddContractInfo;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
public interface FddContractInfoService extends IService<FddContractInfo> {
}
/*
* 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.FddContractTemplateFile;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public interface FddContractTemplateFileService extends IService<FddContractTemplateFile> {
}
/*
* 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.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fadada.api.exception.ApiException;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public interface FddContractTemplateService extends IService<FddContractTemplate> {
/**
* 法大大员工合同模板简单分页查询
* @param fddContractTemplate 法大大员工合同模板
* @return
*/
IPage<FddContractTemplate> getFddContractTemplatePage(Page<FddContractTemplate> page, FddContractTemplate fddContractTemplate) throws ApiException;
}
/*
* 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.FddGlobalFieldInfo;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public interface FddGlobalFieldInfoService extends IService<FddGlobalFieldInfo> {
}
/*
* 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.FddTemplateFieldInfo;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
public interface FddTemplateFieldInfoService extends IService<FddTemplateFieldInfo> {
}
/*
* 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.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmpBadRecordSearchVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 员工不良记录
*
* @author fxj
* @date 2022-06-29 15:50:45
*/
public interface TEmpBadRecordService extends IService<TEmpBadRecord> {
R<List<ErrorMessage>> importEmpBadRecordDiy(InputStream inputStream);
R<Boolean> saveDiy(TEmpBadRecord tEmpBadRecord);
void listExport(HttpServletResponse response, EmpBadRecordSearchVo searchVo);
IPage<TEmpBadRecord> pageDiy(Page page, EmpBadRecordSearchVo tEmpBadRecord);
List<TEmpBadRecord> noPageDiy(EmpBadRecordSearchVo tEmpBadRecord);
}
......@@ -31,6 +31,7 @@ import org.springframework.validation.BindingResult;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 项目档案表
......@@ -118,4 +119,6 @@ public interface TEmployeeProjectService extends IService<TEmployeeProject> {
void saveEmployeeProjectInfo(TEmployeeInfo employeeInfo);
R getItemByEmpNo(String empIdcard, String empNo);
R<Map<String, String>> getProjectByIdCard(String empIdCard);
}
/*
* 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.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractAttachInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractAttachInfoService;
import lombok.RequiredArgsConstructor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 法大大合同附属信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public class FddContractAttachInfoServiceImpl extends ServiceImpl<FddContractAttachInfoMapper, FddContractAttachInfo> implements FddContractAttachInfoService {
/**
* 法大大合同附属信息表简单分页查询
* @param fddContractAttachInfo 法大大合同附属信息表
* @return
*/
@Override
public IPage<FddContractAttachInfo> getFddContractAttachInfoPage(Page<FddContractAttachInfo> page, FddContractAttachInfo fddContractAttachInfo) {
return baseMapper.getFddContractAttachInfoPage(page, fddContractAttachInfo);
}
/**
* 获取有附属信息但是没有法大大电子合同的数据
* @param empIdcard
* @return
*/
@Override
public List<FddContractAttachInfo> getListByNoInfoByEmpIdcard(@Param("empIdcard") String empIdcard) {
return baseMapper.getListByNoInfoByEmpIdcard(empIdcard);
}
}
/*
* 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.FddContractInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
* 法大大合同与员工合同信息
*
* @author fxj
* @date 2022-06-29 16:21:51
*/
@Service
@RequiredArgsConstructor
public class FddContractInfoServiceImpl extends ServiceImpl<FddContractInfoMapper, FddContractInfo> implements FddContractInfoService {
}
/*
* 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.FddContractTemplateFile;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractTemplateFileMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateFileService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
* 法大大员工合同模板文件表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public class FddContractTemplateFileServiceImpl extends ServiceImpl<FddContractTemplateFileMapper, FddContractTemplateFile> implements FddContractTemplateFileService {
}
/*
* 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.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.fadada.api.bean.req.template.GetTemplateDetailReq;
import com.fadada.api.bean.rsp.BaseRsp;
import com.fadada.api.bean.rsp.template.GetTemplateDetailRsp;
import com.fadada.api.client.TemplateClient;
import com.fadada.api.exception.ApiException;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate;
import com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.FddContractTemplateMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateFileService;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddContractTemplateService;
import com.yifu.cloud.plus.v1.yifu.archives.utils.FddUtil;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 法大大员工合同模板
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public class FddContractTemplateServiceImpl extends ServiceImpl<FddContractTemplateMapper, FddContractTemplate> implements FddContractTemplateService {
@Autowired
private FddUtil fddUtil;
@Autowired
private FddContractTemplateFileService templateFileService;
/**
* 法大大员工合同模板简单分页查询
*
* @param fddContractTemplate 法大大员工合同模板
* @return IPage<FddContractTemplate>
*/
@Override
public IPage<FddContractTemplate> getFddContractTemplatePage(Page<FddContractTemplate> page, FddContractTemplate fddContractTemplate) throws ApiException {
IPage<FddContractTemplate> fddContractTemplatePage = baseMapper.getFddContractTemplatePage(page, fddContractTemplate);
List<FddContractTemplate> records = fddContractTemplatePage.getRecords();
for (FddContractTemplate record : records) {
//发送请求
GetTemplateDetailReq req = new GetTemplateDetailReq();
req.setToken(fddUtil.getToken());
req.setTemplateId(record.getFddTemplateId());
TemplateClient client = new TemplateClient(fddUtil.getFadadaApiClient());
BaseRsp<GetTemplateDetailRsp> rsp = client.getTemplateDetail(req);
//校验参数
if (StringUtils.equals(rsp.getCode(), FddUtil.SUCCESS)) {
String fileId = rsp.getData().getTemplateFiles().get(CommonConstants.ZERO_INT).getFileId();
FddContractTemplateFile fddContractTemplateFile = templateFileService.getOne(Wrappers.<FddContractTemplateFile>query().lambda().eq(FddContractTemplateFile::getFddTemplateId, record.getFddTemplateId()));
if(fddContractTemplateFile!=null&&!StringUtils.equals(fddContractTemplateFile.getFddFileId(),fileId)){
fddContractTemplateFile.setFddFileId(fileId);
templateFileService.updateById(fddContractTemplateFile);
}
}
}
return fddContractTemplatePage;
}
}
/*
* 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.FddGlobalFieldInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.FddGlobalFieldInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddGlobalFieldInfoService;
import org.springframework.stereotype.Service;
/**
* 法大大模板字段信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
public class FddGlobalFieldInfoServiceImpl extends ServiceImpl<FddGlobalFieldInfoMapper, FddGlobalFieldInfo> implements FddGlobalFieldInfoService {
}
......@@ -46,6 +46,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import lombok.RequiredArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Service;
......@@ -63,15 +64,20 @@ import java.util.List;
@EnableConfigurationProperties(FddConfigProperties.class)
public class FddPersonAccountServiceImpl extends ServiceImpl<FddPersonAccountMapper, FddPersonAccount> implements FddPersonAccountService {
private final FddCompanyInfoService fddCompanyInfoService;
@Autowired
private FddCompanyInfoService fddCompanyInfoService;
private final FddConfigProperties fddConfigProperties;
@Autowired
private FddConfigProperties fddConfigProperties;
private final FddUtil fddUtil;
@Autowired
private FddUtil fddUtil;
private final FddSealPersonAuthService fddSealPersonAuthService;
@Autowired
private FddSealPersonAuthService fddSealPersonAuthService;
private final FddReqLogService reqLogService;
@Autowired
private FddReqLogService reqLogService;
@Override
public IPage<FddPersonAccount> getFddPersonAccountPage(Page<FddPersonAccount> page, FddPersonAccount fddPersonAccount) {
......
/*
* 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.FddTemplateFieldInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.FddTemplateFieldInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.FddTemplateFieldInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
/**
* 法大大字段对应信息表
*
* @author fxj
* @date 2022-06-28 16:24:12
*/
@Service
@RequiredArgsConstructor
public class FddTemplateFieldInfoServiceImpl extends ServiceImpl<FddTemplateFieldInfoMapper, FddTemplateFieldInfo> implements FddTemplateFieldInfoService {
}
......@@ -92,7 +92,7 @@ public class TCertRecordServiceImpl extends ServiceImpl<TCertRecordMapper, TCert
@Override
public IPage<TCertRecord> pageDiy(Page page, CertRecordSearchVo searchVo) {
LambdaQueryWrapper<TCertRecord> wrapper = buildQueryWrapper(searchVo);
wrapper.orderByDesc(BaseEntity::getCreateTime);
wrapper.orderByDesc(TCertRecord::getOpenTime);
return baseMapper.selectPage(page,wrapper);
}
......
......@@ -96,7 +96,7 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
continue;
}
// 数据合法情况
insertExcelPost(excel,emp);
insertExcel(excel,emp);
errorMessageList.add(new ErrorMessage(excel.getRowIndex(),CommonConstants.SAVE_SUCCESS));
}
}
......@@ -166,7 +166,7 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
/**
* 插入excel work record
*/
private void insertExcelPost(EmpWorkRecordExcelVO excel,TEmployeeInfo emp) {
private void insertExcel(EmpWorkRecordExcelVO excel, TEmployeeInfo emp) {
TEmpWorkRecording insert = new TEmpWorkRecording();
BeanUtil.copyProperties(excel, insert);
insert.setDeleteFlag(CommonConstants.ZERO_STRING);
......@@ -194,7 +194,7 @@ public class TEmpWorkRecordingServiceImpl extends ServiceImpl<TEmpWorkRecordingM
@Override
public R<List<ErrorMessage>> importEmpWorkRecordDiy(InputStream inputStream) {
List<com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage> errorMessageList = new ArrayList<>();
List<ErrorMessage> errorMessageList = new ArrayList<>();
ExcelUtil<EmpWorkRecordExcelVO> util1 = new ExcelUtil<>(EmpWorkRecordExcelVO.class);;
// 写法2:
// 匿名内部类 不用额外写一个DemoDataListener
......
......@@ -727,4 +727,19 @@ public class TEmployeeProjectServiceImpl extends ServiceImpl<TEmployeeProjectMap
return R.ok(map);
}
@Override
public R<Map<String, String>> getProjectByIdCard(String empIdCard) {
List<TEmployeeProject> projects = baseMapper.selectList(Wrappers.<TEmployeeProject>query().lambda()
.eq(TEmployeeProject::getDeleteFlag,CommonConstants.ZERO_STRING)
.eq(TEmployeeProject::getProjectStatus,CommonConstants.ZERO_STRING)
.eq(TEmployeeProject::getEmpIdcard,empIdCard));
Map<String,String> projectMap = new HashMap<>();
if (Common.isEmpty(projects)){
for (TEmployeeProject project:projects){
projectMap.put(project.getDeptName(),project.getDeptNo());
}
}
return R.ok(projectMap);
}
}
<?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.FddContractAttachInfoMapper">
<resultMap id="fddContractAttachInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo">
<id property="id" column="ID"/>
<result property="contractId" column="CONTRACT_ID"/>
<result property="periodStart" column="PERIOD_START"/>
<result property="periodEnd" column="PERIOD_END"/>
<result property="contractStart" column="CONTRACT_START"/>
<result property="contractEnd" column="CONTRACT_END"/>
<result property="periodSalaryPerMonth" column="PERIOD_SALARY_PER_MONTH"/>
<result property="salaryType" column="SALARY_TYPE"/>
<result property="salaryStandardPerHour" column="SALARY_STANDARD_PER_HOUR"/>
<result property="salaryStandardPerPiece" column="SALARY_STANDARD_PER_PIECE"/>
<result property="workSpace" column="WORK_SPACE"/>
<result property="post" column="POST"/>
<result property="remark" column="REMARK"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="isMove" column="IS_MOVE"/>
<result property="fddTemplateId" column="FDD_TEMPLATE_ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="empPhone" column="EMP_PHONE"/>
<result property="departNo" column="DEPART_NO"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
<result property="createName" column="CREATE_NAME"/>
</resultMap>
<sql id="Base_Column_List">
a.ID,
a.CONTRACT_ID,
a.PERIOD_START,
a.PERIOD_END,
a.PERIOD_SALARY_PER_MONTH,
a.SALARY_TYPE,
a.SALARY_STANDARD_PER_HOUR,
a.SALARY_STANDARD_PER_PIECE,
a.CREATE_USER_ID,
a.REMARK,
a.DELETE_FLAG,
a.WORK_SPACE,
a.IS_MOVE,
a.FDD_TEMPLATE_ID,
a.EMP_NAME,
a.EMP_IDCARD,
a.EMP_PHONE,
a.DEPART_NO,
a.CONTRACT_START,
a.CONTRACT_END,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql id="fddContractAttachInfo_where">
<if test="fddContractAttachInfo != null">
<if test="fddContractAttachInfo.id != null and fddContractAttachInfo.id.trim() != ''">
AND a.ID = #{fddContractAttachInfo.id}
</if>
<if test="fddContractAttachInfo.contractId != null and fddContractAttachInfo.contractId.trim() != ''">
AND a.CONTRACT_ID = #{fddContractAttachInfo.contractId}
</if>
<if test="fddContractAttachInfo.periodStart != null">
AND a.PERIOD_START = #{fddContractAttachInfo.periodStart}
</if>
<if test="fddContractAttachInfo.periodEnd != null">
AND a.PERIOD_END = #{fddContractAttachInfo.periodEnd}
</if>
<if test="fddContractAttachInfo.periodSalaryPerMonth != null">
AND a.PERIOD_SALARY_PER_MONTH = #{fddContractAttachInfo.periodSalaryPerMonth}
</if>
<if test="fddContractAttachInfo.salaryType != null and fddContractAttachInfo.salaryType.trim() != ''">
AND a.SALARY_TYPE = #{fddContractAttachInfo.salaryType}
</if>
<if test="fddContractAttachInfo.salaryStandardPerHour != null">
AND a.SALARY_STANDARD_PER_HOUR = #{fddContractAttachInfo.salaryStandardPerHour}
</if>
<if test="fddContractAttachInfo.salaryStandardPerPiece != null">
AND a.SALARY_STANDARD_PER_PIECE = #{fddContractAttachInfo.salaryStandardPerPiece}
</if>
<if test="fddContractAttachInfo.createUserId != null and fddContractAttachInfo.createUserId.trim() != ''">
AND a.CREATE_USER_ID = #{fddContractAttachInfo.createUserId}
</if>
<if test="fddContractAttachInfo.fddTemplateId != null and fddContractAttachInfo.fddTemplateId.trim() != ''">
AND a.FDD_TEMPLATE_ID = #{fddContractAttachInfo.fddTemplateId}
</if>
<if test="fddContractAttachInfo.empName != null and fddContractAttachInfo.empName.trim() != ''">
AND a.EMP_NAME = #{fddContractAttachInfo.empName}
</if>
<if test="fddContractAttachInfo.empIdcard != null and fddContractAttachInfo.empIdcard.trim() != ''">
AND a.EMP_IDCARD = #{fddContractAttachInfo.empIdcard}
</if>
<if test="fddContractAttachInfo.empPhone != null and fddContractAttachInfo.empPhone.trim() != ''">
AND a.EMP_PHONE = #{fddContractAttachInfo.empPhone}
</if>
<if test="fddContractAttachInfo.departNo != null and fddContractAttachInfo.departNo.trim() != ''">
AND a.DEPART_NO = #{fddContractAttachInfo.departNo}
</if>
<if test="fddContractAttachInfo.contractStart != null">
AND a.CONTRACT_START = #{fddContractAttachInfo.contractStart}
</if>
<if test="fddContractAttachInfo.contractEnd != null">
AND a.CONTRACT_END = #{fddContractAttachInfo.contractEnd}
</if>
<if test="fddContractAttachInfo.createBy != null and fddContractAttachInfo.createBy.trim() != ''">
AND a.CREATE_BY = #{fddContractAttachInfo.createBy}
</if>
<if test="fddContractAttachInfo.createName != null and fddContractAttachInfo.createName.trim() != ''">
AND a.CREATE_NAME = #{fddContractAttachInfo.createName}
</if>
<if test="fddContractAttachInfo.createTime != null">
AND a.CREATE_TIME = #{fddContractAttachInfo.createTime}
</if>
<if test="fddContractAttachInfo.updateBy != null and fddContractAttachInfo.updateBy.trim() != ''">
AND a.UPDATE_BY = #{fddContractAttachInfo.updateBy}
</if>
<if test="fddContractAttachInfo.updateTime != null">
AND a.UPDATE_TIME = #{fddContractAttachInfo.updateTime}
</if>
</if>
</sql>
<!--fddContractAttachInfo简单分页查询-->
<select id="getFddContractAttachInfoPage" resultMap="fddContractAttachInfoMap">
SELECT
<include refid="Base_Column_List"/>,
i.id FDD_CONTRACT_ID,i.TASK_STATUS,i.SEND_SIGN_STATUS,i.RECEIVE_SIGN_STATUS,i.SIGN_STATUS,i.TASK_ID,i.SIGN_TASK_ID,i.DRAFT_ID,i.REMARK SIGN_REMARK
FROM fdd_contract_attach_info a
left join fdd_contract_info i on a.CONTRACT_ID=i.CONTRACT_ID
<where>
1=1 and a.DELETE_FLAG='0' and (i.DELETE_FLAG='0' or i.id is null )
<include refid="fddContractAttachInfo_where"/>
</where>
order by a.CREATE_TIME desc
</select>
<select id="getListByNoInfoByEmpIdcard" resultType="com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractAttachInfo">
select a.* FROM fdd_contract_attach_info a
left join fdd_contract_info i on a.CONTRACT_ID=i.CONTRACT_ID
left join t_employee_contract_info c on a.CONTRACT_ID=c.ID
left join t_employee_info e on c.EMP_Id=e.ID
where e.EMP_IDCARD=#{empIdcard} and i.id is null and a.DELETE_FLAG='0' order by a.CREATE_TIME desc
</select>
</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.FddContractInfoMapper">
<resultMap id="fddContractInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractInfo">
<id property="id" column="ID"/>
<result property="contractId" column="CONTRACT_ID"/>
<result property="fddPersonAccountSendId" column="FDD_PERSON_ACCOUNT_SEND_ID"/>
<result property="fddPersonAccountReceiveId" column="FDD_PERSON_ACCOUNT_RECEIVE_ID"/>
<result property="sendUnionid" column="SEND_UNIONID"/>
<result property="receiveUnionid" column="RECEIVE_UNIONID"/>
<result property="taskStatus" column="TASK_STATUS"/>
<result property="sendSignStatus" column="SEND_SIGN_STATUS"/>
<result property="taskId" column="TASK_ID"/>
<result property="fileId" column="FILE_ID"/>
<result property="draftId" column="DRAFT_ID"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="signTaskId" column="SIGN_TASK_ID"/>
<result property="receiveSignStatus" column="RECEIVE_SIGN_STATUS"/>
<result property="signStatus" column="SIGN_STATUS"/>
<result property="remark" column="REMARK"/>
<result property="fddTemplateId" column="FDD_TEMPLATE_ID"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
<result property="createName" column="CREATE_NAME"/>
</resultMap>
<update id="cancleSignTask">
update fdd_contract_info set SIGN_STATUS=0,SIGN_TASK_ID=null where id=#{id}
</update>
</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.FddContractTemplateFileMapper">
<resultMap id="fddContractTemplateFileMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplateFile">
<id property="id" column="ID"/>
<result property="fddTemplateId" column="FDD_TEMPLATE_ID"/>
<result property="fddFileId" column="FDD_FILE_ID"/>
</resultMap>
</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.FddContractTemplateMapper">
<resultMap id="fddContractTemplateMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.FddContractTemplate">
<id property="id" column="ID"/>
<result property="type" column="TYPE"/>
<result property="modifyUploadStatus" column="MODIFY_UPLOAD_STATUS"/>
<result property="province" column="PROVINCE"/>
<result property="city" column="CITY"/>
<result property="overtimeWageFlag" column="OVERTIME_WAGE_FLAG"/>
<result property="fddTemplateId" column="FDD_TEMPLATE_ID"/>
<result property="localName" column="LOCAL_NAME"/>
<result property="signerName" column="SIGNER_NAME"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
<result property="createName" column="CREATE_NAME"/>
</resultMap>
<sql id="Base_Column_List">
a.ID,
a.TYPE,
a.modify_upload_status,
a.province,
a.city,
a.OVERTIME_WAGE_FLAG,
a.FDD_TEMPLATE_ID,
a.LOCAL_NAME,
a.SIGNER_NAME,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME
</sql>
<sql id="fddContractTemplate_where">
<if test="fddContractTemplate != null">
<if test="fddContractTemplate.id != null and fddContractTemplate.id.trim() != ''">
AND a.ID = #{fddContractTemplate.id}
</if>
<if test="fddContractTemplate.localName != null and fddContractTemplate.localName.trim() != ''">
AND a.LOCAL_NAME like CONCAT(#{fddContractTemplate.localName},'%')
</if>
<if test="fddContractTemplate.type != null and fddContractTemplate.type.trim() != ''">
AND a.TYPE = #{fddContractTemplate.type}
</if>
<if test="fddContractTemplate.modifyUploadStatus != null and fddContractTemplate.modifyUploadStatus.trim() != ''">
AND a.modify_upload_status = #{fddContractTemplate.modifyUploadStatus}
</if>
<if test="fddContractTemplate.province != null">
AND a.province = #{fddContractTemplate.province}
</if>
<if test="fddContractTemplate.city != null">
AND a.city = #{fddContractTemplate.city}
</if>
<if test="fddContractTemplate.overtimeWageFlag != null and fddContractTemplate.overtimeWageFlag.trim() != ''">
AND a.OVERTIME_WAGE_FLAG = #{fddContractTemplate.overtimeWageFlag}
</if>
<if test="fddContractTemplate.signerName != null and fddContractTemplate.signerName.trim() != ''">
AND a.SIGNER_NAME = #{fddContractTemplate.signerName}
</if>
<if test="fddContractTemplate.createBy != null and fddContractTemplate.createBy.trim() != ''">
AND a.CREATE_BY = #{fddContractTemplate.createBy}
</if>
<if test="fddContractTemplate.createName != null and fddContractTemplate.createName.trim() != ''">
AND a.CREATE_NAME = #{fddContractTemplate.createName}
</if>
<if test="fddContractTemplate.createTime != null">
AND a.CREATE_TIME = #{fddContractTemplate.createTime}
</if>
<if test="fddContractTemplate.updateBy != null and fddContractTemplate.updateBy.trim() != ''">
AND a.UPDATE_BY = #{fddContractTemplate.updateBy}
</if>
<if test="fddContractTemplate.updateTime != null">
AND a.UPDATE_TIME = #{fddContractTemplate.updateTime}
</if>
</if>
</sql>
<!--fddContractTemplate简单分页查询-->
<select id="getFddContractTemplatePage" resultMap="fddContractTemplateMap">
SELECT
<include refid="Base_Column_List"/>
FROM fdd_contract_template a
<where>
1=1
<include refid="fddContractTemplate_where"/>
</where>
</select>
<update id="updateTeFddTemplateNull">
update fdd_contract_template set FDD_TEMPLATE_ID=null where id=#{id}
</update>
</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.FddGlobalFieldInfoMapper">
<resultMap id="fddGlobalFieldInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.FddGlobalFieldInfo">
<id property="id" column="ID"/>
<result property="filedName" column="FILED_NAME"/>
<result property="remark" column="REMARK"/>
<result property="type" column="TYPE"/>
</resultMap>
</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.FddTemplateFieldInfoMapper">
<resultMap id="fddTemplateFieldInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.FddTemplateFieldInfo">
<id property="id" column="ID"/>
<result property="type" column="TYPE"/>
<result property="filedName" column="FILED_NAME"/>
<result property="templateId" column="TEMPLATE_ID"/>
</resultMap>
</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.TEmpBadRecordMapper">
<resultMap id="tEmpBadRecordMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpBadRecord">
<id property="id" column="ID"/>
<result property="empName" column="EMP_NAME"/>
<result property="empId" column="EMP_ID"/>
<result property="empIdcard" column="EMP_IDCARD"/>
<result property="project" column="PROJECT"/>
<result property="projectCode" column="PROJECT_CODE"/>
<result property="happenTime" column="HAPPEN_TIME"/>
<result property="remark" column="REMARK"/>
<result property="loseFee" column="LOSE_FEE"/>
<result property="loseFeeOther" column="LOSE_FEE_OTHER"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
</mapper>
......@@ -172,7 +172,7 @@ public interface ErrorCodes {
String ARCHIVES_EMP_FAMILY_NAME_EXISTING = "archives.emp.family.name.existing";
/**
* 已存在对应身份证的家庭成员信息
* 无对应身份证的员工信息
*/
String ARCHIVES_EMP_NOT_EXIST = "archives.emp.not.exist";
......@@ -279,4 +279,8 @@ public interface ErrorCodes {
* 申请年份不可为未来年份
*/
String ARCHIVES_EMP_CERTIFICATE_DECLARE_YEAR_ERROR = "archives.emp.certificate.declare.year.error";
/**
* 对应项目编码无项目档案信息,请核实后导入
*/
String ARCHIVES_PROJECT_EMP_NOT_EXIST = "archives.project.emp.not.exist";
}
......@@ -85,6 +85,8 @@ archives.import.emp.leaveReason.must=\u51CF\u6863\u539F\u56E0\u5FC5\u586B
import.file.type.error=\u5BFC\u5165\u7684\u6587\u4EF6\u683C\u5F0F\u4E0D\u6B63\u786E
archives.project.emp.not.exist=\u5BF9\u5E94\u9879\u76EE\u7F16\u7801\u65E0\u9879\u76EE\u6863\u6848\u4FE1\u606F\uFF0C\u8BF7\u6838\u5B9E\u540E\u5BFC\u5165
......
......@@ -77,5 +77,11 @@
<groupId>com.yifu.cloud.plus.v1</groupId>
<artifactId>yifu-common-core</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
package com.yifu.cloud.plus.v1.yifu.common.mybatis.base;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
......@@ -33,6 +34,7 @@ public class BaseEntity implements Serializable {
*/
@Schema(description = "创建人")
@TableField(fill = FieldFill.INSERT)
@ExcelIgnore
private String createBy;
/**
......@@ -48,6 +50,7 @@ public class BaseEntity implements Serializable {
*/
@Schema(description = "更新人")
@TableField(fill = FieldFill.INSERT_UPDATE)
@ExcelIgnore
private String updateBy;
/**
......
......@@ -66,9 +66,9 @@ public class ${className}Controller {
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@GetMapping("/noPage" )
@PostMapping("/noPage" )
//@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_get')" )
public R<List<${className}>> get${className}NoPage(${className} ${classname}) {
public R<List<${className}>> get${className}NoPage(@RequestBody ${className} ${classname}) {
return R.ok(${classname}Service.list(Wrappers.query(${classname})));
}
......@@ -80,7 +80,7 @@ public class ${className}Controller {
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('${moduleName}_${pathName}_get')")
@GetMapping("/{${pk.lowerAttrName}}" )
@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_get')" )
public R<${classname}> getById(@PathVariable("${pk.lowerAttrName}" ) ${pk.attrType} ${pk.lowerAttrName}) {
public R<${className}> getById(@PathVariable("${pk.lowerAttrName}" ) ${pk.attrType} ${pk.lowerAttrName}) {
return R.ok(${classname}Service.getById(${pk.lowerAttrName}));
}
......
......@@ -17,6 +17,7 @@
#set($excludeColumns = ["create_time","update_time","create_by","update_by"])
package ${package}.${moduleName}.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;
......@@ -51,6 +52,7 @@ public class ${className} extends BaseEntity {
#end
@ExcelAttribute(name = "$column.comments"#if($column.isNullable =='NO' && $column.attrType !='LocalDate' && $column.attrType !='LocalDateTime'), isNotEmpty = true,errorInfo = "$column.comments不能为空"#end #if($column.maxLength), maxLength = $column.maxLength #end)
@Schema(description ="$column.comments"#if($column.hidden),hidden=$column.hidden#end)
@ExcelProperty("$column.comments")
private $column.attrType $column.lowerAttrName;
#end
......
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