Commit 00ac9b10 authored by chenyuxi's avatar chenyuxi

feat: 瓜子相关代码提交

parent 9355a2ec
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* 瓜子紧急联系人
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Data
@TableName("t_gz_emp_contact_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子紧急联系人")
public class TGzEmpContactInfo extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
@Schema(description = "主键")
private String id;
/**
* 关联瓜子档案ID
*/
@ExcelAttribute(name = "关联瓜子档案ID", isNotEmpty = true, errorInfo = "关联瓜子档案ID不能为空", maxLength = 32)
@NotBlank(message = "关联瓜子档案ID不能为空")
@Length(max = 32, message = "关联瓜子档案ID不能超过32个字符")
@ExcelProperty("关联瓜子档案ID")
@Schema(description = "关联瓜子档案ID")
private String empId;
/**
* 紧急联系人姓名
*/
@ExcelAttribute(name = "紧急联系人姓名", maxLength = 20)
@Length(max = 20, message = "紧急联系人姓名不能超过20个字符")
@ExcelProperty("紧急联系人姓名")
@Schema(description = "紧急联系人姓名")
private String emergName;
/**
* 与本人关系
*/
@ExcelAttribute(name = "与本人关系", maxLength = 50)
@Length(max = 50, message = "与本人关系不能超过50个字符")
@ExcelProperty("与本人关系")
@Schema(description = "与本人关系")
private String emergRelation;
/**
* 联系人住址
*/
@ExcelAttribute(name = "联系人住址", maxLength = 200)
@Length(max = 200, message = "联系人住址不能超过200个字符")
@ExcelProperty("联系人住址")
@Schema(description = "联系人住址")
private String emergAddress;
/**
* 联系电话
*/
@ExcelAttribute(name = "联系电话", maxLength = 20)
@Length(max = 20, message = "联系电话不能超过20个字符")
@ExcelProperty("联系电话")
@Schema(description = "联系电话")
private String emergPhone;
/**
* 是否主要联系人: Y:是,N不是(系统自动推送默认值“是”)
*/
@ExcelAttribute(name = "是否主要联系人: Y:是,N不是(系统自动推送默认值“是”)", maxLength = 1)
@Length(max = 1, message = "是否主要联系人: Y:是,N不是(系统自动推送默认值“是”)不能超过1个字符")
@ExcelProperty("是否主要联系人: Y:是,N不是(系统自动推送默认值“是”)")
@Schema(description = "是否主要联系人: Y:是,N不是(系统自动推送默认值“是”)")
private String primaryNid;
/**
* 删除标记
*/
@ExcelAttribute(name = "删除标记", maxLength = 1)
@Length(max = 1, message = "删除标记不能超过1个字符")
@ExcelProperty("删除标记")
@Schema(description = "删除标记")
@TableLogic
private String delFlag;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import javax.validation.constraints.NotBlank;
/**
* 瓜子教育经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Data
@TableName("t_gz_emp_education")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子教育经历")
public class TGzEmpEducation extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
@Schema(description = "主键")
private String id;
/**
* 关联瓜子档案ID
*/
@ExcelAttribute(name = "关联瓜子档案ID", isNotEmpty = true, errorInfo = "关联瓜子档案ID不能为空", maxLength = 32)
@NotBlank(message = "关联瓜子档案ID不能为空")
@Length(max = 32, message = "关联瓜子档案ID不能超过32个字符")
@ExcelProperty("关联瓜子档案ID")
@Schema(description = "关联瓜子档案ID")
private String empId;
/**
* 删除标记
*/
@ExcelAttribute(name = "删除标记", maxLength = 1)
@Length(max = 1, message = "删除标记不能超过1个字符")
@ExcelProperty("删除标记")
@Schema(description = "删除标记")
@TableLogic
private String delFlag;
/**
* 学历
*/
@ExcelAttribute(name = "学历", maxLength = 2)
@Length(max = 2, message = "学历不能超过2个字符")
@ExcelProperty("学历")
@Schema(description = "学历")
private String eduQual;
/**
* 学位
*/
@ExcelAttribute(name = "学位", maxLength = 2)
@Length(max = 2, message = "学位不能超过2个字符")
@ExcelProperty("学位")
@Schema(description = "学位")
private String eduDegree;
/**
* 教育方式
*/
@ExcelAttribute(name = "教育方式", maxLength = 2)
@Length(max = 2, message = "教育方式不能超过2个字符")
@ExcelProperty("教育方式")
@Schema(description = "教育方式")
private String eduType;
/**
* 院校名称
*/
@ExcelAttribute(name = "院校名称", maxLength = 48)
@Length(max = 48, message = "院校名称不能超过48个字符")
@ExcelProperty("院校名称")
@Schema(description = "院校名称")
private String school;
/**
* 入学日期
*/
@ExcelAttribute(name = "入学日期", isDate = true)
@ExcelProperty("入学日期")
@Schema(description = "入学日期")
private Date eduStartDate;
/**
* 毕业日期
*/
@ExcelAttribute(name = "毕业日期", isDate = true)
@ExcelProperty("毕业日期")
@Schema(description = "毕业日期")
private Date eduEndDate;
/**
* 毕业类型
*/
@ExcelAttribute(name = "毕业类型", maxLength = 2)
@Length(max = 2, message = "毕业类型不能超过2个字符")
@ExcelProperty("毕业类型")
@Schema(description = "毕业类型")
private String gradutionType;
/**
* 专业
*/
@ExcelAttribute(name = "专业", maxLength = 48)
@Length(max = 48, message = "专业不能超过48个字符")
@ExcelProperty("专业")
@Schema(description = "专业")
private String major;
/**
* 是否最高学历 Y:是,N不是(系统默认为“是”)
*/
@ExcelAttribute(name = "是否最高学历 Y:是,N不是(系统默认为“是”)", maxLength = 1)
@Length(max = 1, message = "是否最高学历 Y:是,N不是(系统默认为“是”)不能超过1个字符")
@ExcelProperty("是否最高学历 Y:是,N不是(系统默认为“是”)")
@Schema(description = "是否最高学历 Y:是,N不是(系统默认为“是”)")
private String highEduQualFlag;
/**
* 是否最高学位 Y:是,N不是
*/
@ExcelAttribute(name = "是否最高学位 Y:是,N不是", maxLength = 1)
@Length(max = 1, message = "是否最高学位 Y:是,N不是不能超过1个字符")
@ExcelProperty("是否最高学位 Y:是,N不是")
@Schema(description = "是否最高学位 Y:是,N不是")
private String highEduDegreeFlag;
/**
* 是否第一学历 Y:是,N不是
*/
@ExcelAttribute(name = "是否第一学历 Y:是,N不是", maxLength = 1)
@Length(max = 1, message = "是否第一学历 Y:是,N不是不能超过1个字符")
@ExcelProperty("是否第一学历 Y:是,N不是")
@Schema(description = "是否第一学历 Y:是,N不是")
private String firstDegreeFlag;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* 瓜子家庭成员
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Data
@TableName("t_gz_emp_family")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子家庭成员")
public class TGzEmpFamily extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
@Schema(description = "主键")
private String id;
/**
* 关联瓜子档案ID
*/
@ExcelAttribute(name = "关联瓜子档案ID", isNotEmpty = true, errorInfo = "关联瓜子档案ID不能为空", maxLength = 32)
@NotBlank(message = "关联瓜子档案ID不能为空")
@Length(max = 32, message = "关联瓜子档案ID不能超过32个字符")
@ExcelProperty("关联瓜子档案ID")
@Schema(description = "关联瓜子档案ID")
private String empId;
/**
* 删除标记
*/
@ExcelAttribute(name = "删除标记", maxLength = 1)
@Length(max = 1, message = "删除标记不能超过1个字符")
@ExcelProperty("删除标记")
@Schema(description = "删除标记")
@TableLogic
private String delFlag;
/**
* 与本人关系
*/
@ExcelAttribute(name = "与本人关系", maxLength = 2)
@Length(max = 2, message = "与本人关系不能超过2个字符")
@ExcelProperty("与本人关系")
@Schema(description = "与本人关系")
private String familyRelation;
/**
* 家庭成员姓名
*/
@ExcelAttribute(name = "家庭成员姓名", maxLength = 50)
@Length(max = 50, message = "家庭成员姓名不能超过50个字符")
@ExcelProperty("家庭成员姓名")
@Schema(description = "家庭成员姓名")
private String familyName;
/**
* 联系电话
*/
@ExcelAttribute(name = "联系电话", maxLength = 20)
@Length(max = 20, message = "联系电话不能超过20个字符")
@ExcelProperty("联系电话")
@Schema(description = "联系电话")
private String familyPhone;
/**
* 联系人住址
*/
@ExcelAttribute(name = "联系人住址", maxLength = 55)
@Length(max = 55, message = "联系人住址不能超过55个字符")
@ExcelProperty("联系人住址")
@Schema(description = "联系人住址")
private String familyAddress;
/**
* 成员所在单位名称
*/
@ExcelAttribute(name = "成员所在单位名称", maxLength = 30)
@Length(max = 30, message = "成员所在单位名称不能超过30个字符")
@ExcelProperty("成员所在单位名称")
@Schema(description = "成员所在单位名称")
private String familyCompany;
/**
* 是否客户单位任职: Y:是,N不是
*/
@ExcelAttribute(name = "是否客户单位任职: Y:是,N不是", maxLength = 1)
@Length(max = 1, message = "是否客户单位任职: Y:是,N不是不能超过1个字符")
@ExcelProperty("是否客户单位任职: Y:是,N不是")
@Schema(description = "是否客户单位任职: Y:是,N不是")
private String gzEmeFlag;
/**
* 职务
*/
@ExcelAttribute(name = "职务", maxLength = 30)
@Length(max = 30, message = "职务不能超过30个字符")
@ExcelProperty("职务")
@Schema(description = "职务")
private String jobCode;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import javax.validation.constraints.NotBlank;
/**
* 瓜子技能证书
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Data
@TableName("t_gz_emp_skill")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子技能证书")
public class TGzEmpSkill extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
@Schema(description = "主键")
private String id;
/**
* 关联瓜子档案ID
*/
@ExcelAttribute(name = "关联瓜子档案ID", isNotEmpty = true, errorInfo = "关联瓜子档案ID不能为空", maxLength = 32)
@NotBlank(message = "关联瓜子档案ID不能为空")
@Length(max = 32, message = "关联瓜子档案ID不能超过32个字符")
@ExcelProperty("关联瓜子档案ID")
@Schema(description = "关联瓜子档案ID")
private String empId;
/**
* 删除标记
*/
@ExcelAttribute(name = "删除标记", maxLength = 1)
@Length(max = 1, message = "删除标记不能超过1个字符")
@ExcelProperty("删除标记")
@Schema(description = "删除标记")
@TableLogic
private String delFlag;
/**
* 专业技能名称
*/
@ExcelAttribute(name = "专业技能名称", maxLength = 30)
@Length(max = 30, message = "专业技能名称不能超过30个字符")
@ExcelProperty("专业技能名称")
@Schema(description = "专业技能名称")
private String skillName;
/**
* 获得日期
*/
@ExcelAttribute(name = "获得日期", isDate = true)
@ExcelProperty("获得日期")
@Schema(description = "获得日期")
private Date skillDate;
/**
* 授予单位
*/
@ExcelAttribute(name = "授予单位", maxLength = 30)
@Length(max = 30, message = "授予单位不能超过30个字符")
@ExcelProperty("授予单位")
@Schema(description = "授予单位")
private String skillOrg;
/**
* 技术等级
*/
@ExcelAttribute(name = "技术等级", maxLength = 30)
@Length(max = 30, message = "技术等级不能超过30个字符")
@ExcelProperty("技术等级")
@Schema(description = "技术等级")
private String skillLevel;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import javax.validation.constraints.NotBlank;
/**
* 瓜子工作经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Data
@TableName("t_gz_emp_work")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "瓜子工作经历")
public class TGzEmpWork extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
@Schema(description = "主键")
private String id;
/**
* 关联瓜子档案ID
*/
@ExcelAttribute(name = "关联瓜子档案ID", isNotEmpty = true, errorInfo = "关联瓜子档案ID不能为空", maxLength = 32)
@NotBlank(message = "关联瓜子档案ID不能为空")
@Length(max = 32, message = "关联瓜子档案ID不能超过32个字符")
@ExcelProperty("关联瓜子档案ID")
@Schema(description = "关联瓜子档案ID")
private String empId;
/**
* 删除标记
*/
@ExcelAttribute(name = "删除标记", maxLength = 1)
@Length(max = 1, message = "删除标记不能超过1个字符")
@ExcelProperty("删除标记")
@Schema(description = "删除标记")
@TableLogic
private String delFlag;
/**
* 单位名称
*/
@ExcelAttribute(name = "单位名称", maxLength = 30)
@Length(max = 30, message = "单位名称不能超过30个字符")
@ExcelProperty("单位名称")
@Schema(description = "单位名称")
private String workUnit;
/**
* 开始工作日期
*/
@ExcelAttribute(name = "开始工作日期", isDate = true)
@ExcelProperty("开始工作日期")
@Schema(description = "开始工作日期")
private Date workStartDate;
/**
* 结束工作日期
*/
@ExcelAttribute(name = "结束工作日期", isDate = true)
@ExcelProperty("结束工作日期")
@Schema(description = "结束工作日期")
private Date workEndDate;
/**
* 工作部门
*/
@ExcelAttribute(name = "工作部门", maxLength = 30)
@Length(max = 30, message = "工作部门不能超过30个字符")
@ExcelProperty("工作部门")
@Schema(description = "工作部门")
private String workDept;
/**
* 职务名称
*/
@ExcelAttribute(name = "职务名称", maxLength = 30)
@Length(max = 30, message = "职务名称不能超过30个字符")
@ExcelProperty("职务名称")
@Schema(description = "职务名称")
private String workJob;
/**
* 证明人
*/
@ExcelAttribute(name = "证明人", maxLength = 30)
@Length(max = 30, message = "证明人不能超过30个字符")
@ExcelProperty("证明人")
@Schema(description = "证明人")
private String certifierName;
/**
* 证明人联系电话
*/
@ExcelAttribute(name = "证明人联系电话", maxLength = 20)
@Length(max = 20, message = "证明人联系电话不能超过20个字符")
@ExcelProperty("证明人联系电话")
@Schema(description = "证明人联系电话")
private String certifierPhone;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpContactInfo;
import lombok.Data;
/**
* 瓜子紧急联系人
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Data
public class TGzEmpContactInfoSearchVo extends TGzEmpContactInfo {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpEducation;
import lombok.Data;
/**
* 瓜子教育经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Data
public class TGzEmpEducationSearchVo extends TGzEmpEducation {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpFamily;
import lombok.Data;
/**
* 瓜子家庭成员
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Data
public class TGzEmpFamilySearchVo extends TGzEmpFamily {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo;
import lombok.Data;
/**
* 瓜子档案表
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Data
public class TGzEmpInfoSearchVo extends TGzEmpInfo {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
/**
* @Author fxj
* 查询数据起
**/
private int limitStart;
/**
* @Author fxj
* 查询数据止
**/
private int limitEnd;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpSkill;
import lombok.Data;
/**
* 瓜子技能证书
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Data
public class TGzEmpSkillSearchVo extends TGzEmpSkill {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpWork;
import lombok.Data;
/**
* 瓜子工作经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Data
public class TGzEmpWorkSearchVo extends TGzEmpWork {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
}
/*
* 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.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpContactInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpContactInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpContactInfoSearchVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 瓜子紧急联系人
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzempcontactinfo")
@Tag(name = "瓜子紧急联系人管理")
public class TGzEmpContactInfoController {
private final TGzEmpContactInfoService tGzEmpContactInfoService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzEmpContactInfo 瓜子紧急联系人
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzEmpContactInfo>> getTGzEmpContactInfoPage(Page<TGzEmpContactInfo> page, TGzEmpContactInfoSearchVo tGzEmpContactInfo) {
return new R<>(tGzEmpContactInfoService.getTGzEmpContactInfoPage(page, tGzEmpContactInfo));
}
/**
* 不分页查询
*
* @param tGzEmpContactInfo 瓜子紧急联系人
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzEmpContactInfo>> getTGzEmpContactInfoNoPage(@RequestBody TGzEmpContactInfoSearchVo tGzEmpContactInfo) {
return R.ok(tGzEmpContactInfoService.noPageDiy(tGzEmpContactInfo));
}
/**
* 通过id查询瓜子紧急联系人
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzempcontactinfo_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempcontactinfo_get')")
public R<TGzEmpContactInfo> getById(@PathVariable("id") String id) {
return R.ok(tGzEmpContactInfoService.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.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpEducation;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpEducationService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpEducationSearchVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 瓜子教育经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzempeducation")
@Tag(name = "瓜子教育经历管理")
public class TGzEmpEducationController {
private final TGzEmpEducationService tGzEmpEducationService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzEmpEducation 瓜子教育经历
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzEmpEducation>> getTGzEmpEducationPage(Page<TGzEmpEducation> page, TGzEmpEducationSearchVo tGzEmpEducation) {
return new R<>(tGzEmpEducationService.getTGzEmpEducationPage(page, tGzEmpEducation));
}
/**
* 不分页查询
*
* @param tGzEmpEducation 瓜子教育经历
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzEmpEducation>> getTGzEmpEducationNoPage(@RequestBody TGzEmpEducationSearchVo tGzEmpEducation) {
return R.ok(tGzEmpEducationService.noPageDiy(tGzEmpEducation));
}
/**
* 通过id查询瓜子教育经历
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzempeducation_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempeducation_get')")
public R<TGzEmpEducation> getById(@PathVariable("id") String id) {
return R.ok(tGzEmpEducationService.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.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpFamily;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpFamilyService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpFamilySearchVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 瓜子家庭成员
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzempfamily")
@Tag(name = "瓜子家庭成员管理")
public class TGzEmpFamilyController {
private final TGzEmpFamilyService tGzEmpFamilyService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzEmpFamily 瓜子家庭成员
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzEmpFamily>> getTGzEmpFamilyPage(Page<TGzEmpFamily> page, TGzEmpFamilySearchVo tGzEmpFamily) {
return new R<>(tGzEmpFamilyService.getTGzEmpFamilyPage(page, tGzEmpFamily));
}
/**
* 不分页查询
*
* @param tGzEmpFamily 瓜子家庭成员
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzEmpFamily>> getTGzEmpFamilyNoPage(@RequestBody TGzEmpFamilySearchVo tGzEmpFamily) {
return R.ok(tGzEmpFamilyService.noPageDiy(tGzEmpFamily));
}
/**
* 通过id查询瓜子家庭成员
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzempfamily_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempfamily_get')")
public R<TGzEmpFamily> getById(@PathVariable("id") String id) {
return R.ok(tGzEmpFamilyService.getById(id));
}
/**
* 新增瓜子家庭成员
*
* @param tGzEmpFamily 瓜子家庭成员
* @return R
*/
@Operation(summary = "新增瓜子家庭成员", description = "新增瓜子家庭成员:hasPermission('archives_tgzempfamily_add')")
@SysLog("新增瓜子家庭成员")
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tgzempfamily_add')")
public R<Boolean> save(@RequestBody TGzEmpFamily tGzEmpFamily) {
return R.ok(tGzEmpFamilyService.save(tGzEmpFamily));
}
/**
* 修改瓜子家庭成员
*
* @param tGzEmpFamily 瓜子家庭成员
* @return R
*/
@Operation(summary = "修改瓜子家庭成员", description = "修改瓜子家庭成员:hasPermission('archives_tgzempfamily_edit')")
@SysLog("修改瓜子家庭成员")
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tgzempfamily_edit')")
public R<Boolean> updateById(@RequestBody TGzEmpFamily tGzEmpFamily) {
return R.ok(tGzEmpFamilyService.updateById(tGzEmpFamily));
}
/**
* 通过id删除瓜子家庭成员
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除瓜子家庭成员", description = "通过id删除瓜子家庭成员:hasPermission('archives_tgzempfamily_del')")
@SysLog("通过id删除瓜子家庭成员")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempfamily_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tGzEmpFamilyService.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.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 瓜子档案表
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzempinfo")
@Tag(name = "瓜子档案表管理")
public class TGzEmpInfoController {
private final TGzEmpInfoService tGzEmpInfoService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzEmpInfo 瓜子档案表
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzEmpInfo>> getTGzEmpInfoPage(Page<TGzEmpInfo> page, TGzEmpInfoSearchVo tGzEmpInfo) {
return new R<>(tGzEmpInfoService.getTGzEmpInfoPage(page, tGzEmpInfo));
}
/**
* 不分页查询
*
* @param tGzEmpInfo 瓜子档案表
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzEmpInfo>> getTGzEmpInfoNoPage(@RequestBody TGzEmpInfoSearchVo tGzEmpInfo) {
return R.ok(tGzEmpInfoService.noPageDiy(tGzEmpInfo));
}
/**
* 通过id查询瓜子档案表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzempinfo_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempinfo_get')")
public R<TGzEmpInfo> getById(@PathVariable("id") String id) {
return R.ok(tGzEmpInfoService.getById(id));
}
/**
* 新增瓜子档案表
*
* @param tGzEmpInfo 瓜子档案表
* @return R
*/
@Operation(summary = "新增瓜子档案表", description = "新增瓜子档案表:hasPermission('archives_tgzempinfo_add')")
@SysLog("新增瓜子档案表")
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tgzempinfo_add')")
public R<Boolean> save(@RequestBody TGzEmpInfo tGzEmpInfo) {
return R.ok(tGzEmpInfoService.save(tGzEmpInfo));
}
/**
* 修改瓜子档案表
*
* @param tGzEmpInfo 瓜子档案表
* @return R
*/
@Operation(summary = "修改瓜子档案表", description = "修改瓜子档案表:hasPermission('archives_tgzempinfo_edit')")
@SysLog("修改瓜子档案表")
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tgzempinfo_edit')")
public R<Boolean> updateById(@RequestBody TGzEmpInfo tGzEmpInfo) {
return R.ok(tGzEmpInfoService.updateById(tGzEmpInfo));
}
/**
* 通过id删除瓜子档案表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除瓜子档案表", description = "通过id删除瓜子档案表:hasPermission('archives_tgzempinfo_del')")
@SysLog("通过id删除瓜子档案表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempinfo_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tGzEmpInfoService.removeById(id));
}
/**
* 瓜子档案表 批量导出
*
* @author chenyx
* @date 2025-06-13 15:19:03
**/
@Operation(description = "导出瓜子档案表 hasPermission('archives_tgzempinfo-export')")
@PostMapping("/export")
@PreAuthorize("@pms.hasPermission('archives_tgzempinfo-export')")
public void export(HttpServletResponse response, @RequestBody TGzEmpInfoSearchVo searchVo) {
tGzEmpInfoService.listExport(response, searchVo);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpSkill;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpSkillService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpSkillSearchVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 瓜子技能证书
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzempskill")
@Tag(name = "瓜子技能证书管理")
public class TGzEmpSkillController {
private final TGzEmpSkillService tGzEmpSkillService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzEmpSkill 瓜子技能证书
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzEmpSkill>> getTGzEmpSkillPage(Page<TGzEmpSkill> page, TGzEmpSkillSearchVo tGzEmpSkill) {
return new R<>(tGzEmpSkillService.getTGzEmpSkillPage(page, tGzEmpSkill));
}
/**
* 不分页查询
*
* @param tGzEmpSkill 瓜子技能证书
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzEmpSkill>> getTGzEmpSkillNoPage(@RequestBody TGzEmpSkillSearchVo tGzEmpSkill) {
return R.ok(tGzEmpSkillService.noPageDiy(tGzEmpSkill));
}
/**
* 通过id查询瓜子技能证书
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzempskill_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempskill_get')")
public R<TGzEmpSkill> getById(@PathVariable("id") String id) {
return R.ok(tGzEmpSkillService.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.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpWork;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpWorkService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpWorkSearchVo;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 瓜子工作经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Log4j2
@RestController
@RequiredArgsConstructor
@RequestMapping("/tgzempwork")
@Tag(name = "瓜子工作经历管理")
public class TGzEmpWorkController {
private final TGzEmpWorkService tGzEmpWorkService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tGzEmpWork 瓜子工作经历
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TGzEmpWork>> getTGzEmpWorkPage(Page<TGzEmpWork> page, TGzEmpWorkSearchVo tGzEmpWork) {
return new R<>(tGzEmpWorkService.getTGzEmpWorkPage(page, tGzEmpWork));
}
/**
* 不分页查询
*
* @param tGzEmpWork 瓜子工作经历
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
public R<List<TGzEmpWork>> getTGzEmpWorkNoPage(@RequestBody TGzEmpWorkSearchVo tGzEmpWork) {
return R.ok(tGzEmpWorkService.noPageDiy(tGzEmpWork));
}
/**
* 通过id查询瓜子工作经历
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tgzempwork_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tgzempwork_get')")
public R<TGzEmpWork> getById(@PathVariable("id") String id) {
return R.ok(tGzEmpWorkService.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.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.TGzEmpContactInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子紧急联系人
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Mapper
public interface TGzEmpContactInfoMapper extends BaseMapper<TGzEmpContactInfo> {
/**
* 瓜子紧急联系人简单分页查询
* @param tGzEmpContactInfo 瓜子紧急联系人
* @return
*/
IPage<TGzEmpContactInfo> getTGzEmpContactInfoPage(Page<TGzEmpContactInfo> page, @Param("tGzEmpContactInfo") TGzEmpContactInfo tGzEmpContactInfo);
}
/*
* 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.TGzEmpEducation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子教育经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Mapper
public interface TGzEmpEducationMapper extends BaseMapper<TGzEmpEducation> {
/**
* 瓜子教育经历简单分页查询
* @param tGzEmpEducation 瓜子教育经历
* @return
*/
IPage<TGzEmpEducation> getTGzEmpEducationPage(Page<TGzEmpEducation> page, @Param("tGzEmpEducation") TGzEmpEducation tGzEmpEducation);
}
/*
* 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.TGzEmpFamily;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子家庭成员
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Mapper
public interface TGzEmpFamilyMapper extends BaseMapper<TGzEmpFamily> {
/**
* 瓜子家庭成员简单分页查询
*
* @param tGzEmpFamily 瓜子家庭成员
* @return
*/
IPage<TGzEmpFamily> getTGzEmpFamilyPage(Page<TGzEmpFamily> page, @Param("tGzEmpFamily") TGzEmpFamily tGzEmpFamily);
}
/*
* 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.TGzEmpInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子档案表
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Mapper
public interface TGzEmpInfoMapper extends BaseMapper<TGzEmpInfo> {
/**
* 瓜子档案表简单分页查询
*
* @param tGzEmpInfo 瓜子档案表
* @return
*/
IPage<TGzEmpInfo> getTGzEmpInfoPage(Page<TGzEmpInfo> page, @Param("tGzEmpInfo") TGzEmpInfo tGzEmpInfo);
}
/*
* 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.TGzEmpSkill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子技能证书
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Mapper
public interface TGzEmpSkillMapper extends BaseMapper<TGzEmpSkill> {
/**
* 瓜子技能证书简单分页查询
*
* @param tGzEmpSkill 瓜子技能证书
* @return
*/
IPage<TGzEmpSkill> getTGzEmpSkillPage(Page<TGzEmpSkill> page, @Param("tGzEmpSkill") TGzEmpSkill tGzEmpSkill);
}
/*
* 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.TGzEmpWork;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 瓜子工作经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Mapper
public interface TGzEmpWorkMapper extends BaseMapper<TGzEmpWork> {
/**
* 瓜子工作经历简单分页查询
*
* @param tGzEmpWork 瓜子工作经历
* @return
*/
IPage<TGzEmpWork> getTGzEmpWorkPage(Page<TGzEmpWork> page, @Param("tGzEmpWork") TGzEmpWork tGzEmpWork);
}
/*
* 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.TGzEmpContactInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpContactInfoSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 瓜子紧急联系人
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
public interface TGzEmpContactInfoService extends IService<TGzEmpContactInfo> {
/**
* 瓜子紧急联系人简单分页查询
*
* @param tGzEmpContactInfo 瓜子紧急联系人
* @return
*/
IPage<TGzEmpContactInfo> getTGzEmpContactInfoPage(Page<TGzEmpContactInfo> page, TGzEmpContactInfoSearchVo tGzEmpContactInfo);
List<TGzEmpContactInfo> noPageDiy(TGzEmpContactInfoSearchVo searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpEducation;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpEducationSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 瓜子教育经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
public interface TGzEmpEducationService extends IService<TGzEmpEducation> {
/**
* 瓜子教育经历简单分页查询
*
* @param tGzEmpEducation 瓜子教育经历
* @return
*/
IPage<TGzEmpEducation> getTGzEmpEducationPage(Page<TGzEmpEducation> page, TGzEmpEducationSearchVo tGzEmpEducation);
List<TGzEmpEducation> noPageDiy(TGzEmpEducationSearchVo searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpFamily;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpFamilySearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 瓜子家庭成员
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
public interface TGzEmpFamilyService extends IService<TGzEmpFamily> {
/**
* 瓜子家庭成员简单分页查询
*
* @param tGzEmpFamily 瓜子家庭成员
* @return
*/
IPage<TGzEmpFamily> getTGzEmpFamilyPage(Page<TGzEmpFamily> page, TGzEmpFamilySearchVo tGzEmpFamily);
List<TGzEmpFamily> noPageDiy(TGzEmpFamilySearchVo searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 瓜子档案表
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
public interface TGzEmpInfoService extends IService<TGzEmpInfo> {
/**
* 瓜子档案表简单分页查询
*
* @param tGzEmpInfo 瓜子档案表
* @return
*/
IPage<TGzEmpInfo> getTGzEmpInfoPage(Page<TGzEmpInfo> page, TGzEmpInfoSearchVo tGzEmpInfo);
void listExport(HttpServletResponse response, TGzEmpInfoSearchVo searchVo);
List<TGzEmpInfo> noPageDiy(TGzEmpInfoSearchVo searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpSkill;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpSkillSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 瓜子技能证书
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
public interface TGzEmpSkillService extends IService<TGzEmpSkill> {
/**
* 瓜子技能证书简单分页查询
* @param tGzEmpSkill 瓜子技能证书
* @return
*/
IPage<TGzEmpSkill> getTGzEmpSkillPage(Page<TGzEmpSkill> page, TGzEmpSkillSearchVo tGzEmpSkill);
List<TGzEmpSkill> noPageDiy(TGzEmpSkillSearchVo searchVo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpWork;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpWorkSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 瓜子工作经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
public interface TGzEmpWorkService extends IService<TGzEmpWork> {
/**
* 瓜子工作经历简单分页查询
*
* @param tGzEmpWork 瓜子工作经历
* @return
*/
IPage<TGzEmpWork> getTGzEmpWorkPage(Page<TGzEmpWork> page, TGzEmpWorkSearchVo tGzEmpWork);
List<TGzEmpWork> noPageDiy(TGzEmpWorkSearchVo searchVo);
}
...@@ -20,6 +20,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; ...@@ -20,6 +20,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.LGuaziOfferRecord; import com.yifu.cloud.plus.v1.yifu.archives.entity.LGuaziOfferRecord;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.LGuaziOfferRecordMapper; import com.yifu.cloud.plus.v1.yifu.archives.mapper.LGuaziOfferRecordMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.LGuaziOfferRecordService; import com.yifu.cloud.plus.v1.yifu.archives.service.LGuaziOfferRecordService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
...@@ -33,6 +34,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -33,6 +34,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
*/ */
@Log4j2 @Log4j2
@Service @Service
@RequiredArgsConstructor
public class LGuaziOfferRecordServiceImpl extends ServiceImpl<LGuaziOfferRecordMapper, LGuaziOfferRecord> implements LGuaziOfferRecordService { public class LGuaziOfferRecordServiceImpl extends ServiceImpl<LGuaziOfferRecordMapper, LGuaziOfferRecord> implements LGuaziOfferRecordService {
/** /**
* 瓜子offer操作日志简单分页查询 * 瓜子offer操作日志简单分页查询
......
/*
* 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.TGzEmpContactInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpContactInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpContactInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpContactInfoSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
/**
* 瓜子紧急联系人
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class TGzEmpContactInfoServiceImpl extends ServiceImpl<TGzEmpContactInfoMapper, TGzEmpContactInfo> implements TGzEmpContactInfoService {
/**
* 瓜子紧急联系人简单分页查询
*
* @param tGzEmpContactInfo 瓜子紧急联系人
* @return
*/
@Override
public IPage<TGzEmpContactInfo> getTGzEmpContactInfoPage(Page<TGzEmpContactInfo> page, TGzEmpContactInfoSearchVo tGzEmpContactInfo) {
return baseMapper.getTGzEmpContactInfoPage(page, tGzEmpContactInfo);
}
@Override
public List<TGzEmpContactInfo> noPageDiy(TGzEmpContactInfoSearchVo searchVo) {
LambdaQueryWrapper<TGzEmpContactInfo> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpContactInfo::getId, idList);
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TGzEmpContactInfoSearchVo entity) {
LambdaQueryWrapper<TGzEmpContactInfo> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TGzEmpContactInfo::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
/*
* 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.TGzEmpEducation;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpEducationMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpEducationService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpEducationSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
/**
* 瓜子教育经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class TGzEmpEducationServiceImpl extends ServiceImpl<TGzEmpEducationMapper, TGzEmpEducation> implements TGzEmpEducationService {
/**
* 瓜子教育经历简单分页查询
*
* @param tGzEmpEducation 瓜子教育经历
* @return
*/
@Override
public IPage<TGzEmpEducation> getTGzEmpEducationPage(Page<TGzEmpEducation> page, TGzEmpEducationSearchVo tGzEmpEducation) {
return baseMapper.getTGzEmpEducationPage(page, tGzEmpEducation);
}
@Override
public List<TGzEmpEducation> noPageDiy(TGzEmpEducationSearchVo searchVo) {
LambdaQueryWrapper<TGzEmpEducation> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpEducation::getId, idList);
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TGzEmpEducationSearchVo entity) {
LambdaQueryWrapper<TGzEmpEducation> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TGzEmpEducation::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
/*
* 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.TGzEmpFamily;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpFamilyMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpFamilyService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpFamilySearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
/**
* 瓜子家庭成员
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class TGzEmpFamilyServiceImpl extends ServiceImpl<TGzEmpFamilyMapper, TGzEmpFamily> implements TGzEmpFamilyService {
/**
* 瓜子家庭成员简单分页查询
*
* @param tGzEmpFamily 瓜子家庭成员
* @return
*/
@Override
public IPage<TGzEmpFamily> getTGzEmpFamilyPage(Page<TGzEmpFamily> page, TGzEmpFamilySearchVo tGzEmpFamily) {
return baseMapper.getTGzEmpFamilyPage(page, tGzEmpFamily);
}
@Override
public List<TGzEmpFamily> noPageDiy(TGzEmpFamilySearchVo searchVo) {
LambdaQueryWrapper<TGzEmpFamily> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpFamily::getId, idList);
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TGzEmpFamilySearchVo entity) {
LambdaQueryWrapper<TGzEmpFamily> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TGzEmpFamily::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
/*
* 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.TGzEmpInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpInfoSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
/**
* 瓜子档案表
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class TGzEmpInfoServiceImpl extends ServiceImpl<TGzEmpInfoMapper, TGzEmpInfo> implements TGzEmpInfoService {
/**
* 瓜子档案表简单分页查询
*
* @param tGzEmpInfo 瓜子档案表
* @return
*/
@Override
public IPage<TGzEmpInfo> getTGzEmpInfoPage(Page<TGzEmpInfo> page, TGzEmpInfoSearchVo tGzEmpInfo) {
return baseMapper.getTGzEmpInfoPage(page, tGzEmpInfo);
}
/**
* 瓜子档案表批量导出
*
* @param searchVo 瓜子档案表
* @return
*/
@Override
public void listExport(HttpServletResponse response, TGzEmpInfoSearchVo searchVo) {
String fileName = "瓜子档案表批量导出" + DateUtil.getThisTime() + ".xlsx";
//获取要导出的列表
List<TGzEmpInfo> list = new ArrayList<>();
long count = noPageCountDiy(searchVo);
ServletOutputStream out = null;
try {
out = response.getOutputStream();
response.setContentType(CommonConstants.MULTIPART_FORM_DATA);
response.setCharacterEncoding("utf-8");
response.setHeader(CommonConstants.CONTENT_DISPOSITION, CommonConstants.ATTACHMENT_FILENAME + URLEncoder.encode(fileName, CommonConstants.UTF8));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
//EasyExcel.write(out, TEmpBadRecord.class).sheet("不良记录").doWrite(list);
ExcelWriter excelWriter = EasyExcel.write(out, TGzEmpInfo.class).build();
int index = 0;
if (count > CommonConstants.ZERO_INT) {
for (int i = 0; i <= count; ) {
// 获取实际记录
searchVo.setLimitStart(i);
searchVo.setLimitEnd(CommonConstants.EXCEL_EXPORT_LIMIT);
list = noPageDiy(searchVo);
if (Common.isNotNull(list)) {
ExcelUtil<TGzEmpInfo> util = new ExcelUtil<>(TGzEmpInfo.class);
for (TGzEmpInfo vo : list) {
util.convertEntity(vo, null, null, null);
}
}
if (Common.isNotNull(list)) {
WriteSheet writeSheet = EasyExcel.writerSheet("瓜子档案表" + index).build();
excelWriter.write(list, writeSheet);
index++;
}
i = i + CommonConstants.EXCEL_EXPORT_LIMIT;
if (Common.isNotNull(list)) {
list.clear();
}
}
} else {
WriteSheet writeSheet = EasyExcel.writerSheet("瓜子档案表" + index).build();
excelWriter.write(list, writeSheet);
}
if (Common.isNotNull(list)) {
list.clear();
}
out.flush();
excelWriter.finish();
} catch (Exception e) {
log.error("执行异常", e);
} finally {
try {
if (null != out) {
out.close();
}
} catch (IOException e) {
log.error("执行异常", e);
}
}
}
@Override
public List<TGzEmpInfo> noPageDiy(TGzEmpInfoSearchVo searchVo) {
LambdaQueryWrapper<TGzEmpInfo> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpInfo::getId, idList);
}
if (searchVo.getLimitStart() >= 0 && searchVo.getLimitEnd() > 0) {
wrapper.last(" limit " + searchVo.getLimitStart() + "," + searchVo.getLimitEnd());
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private Long noPageCountDiy(TGzEmpInfoSearchVo searchVo) {
LambdaQueryWrapper<TGzEmpInfo> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpInfo::getId, idList);
}
return baseMapper.selectCount(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TGzEmpInfoSearchVo entity) {
LambdaQueryWrapper<TGzEmpInfo> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TGzEmpInfo::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
/*
* 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.TGzEmpSkill;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpSkillMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpSkillService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpSkillSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ArrayUtil;
import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.excel.read.metadata.holder.ReadRowHolder;
import com.alibaba.excel.util.ListUtils;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
/**
* 瓜子技能证书
*
* @author chenyx
* @date 2025-06-13 15:19:03
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class TGzEmpSkillServiceImpl extends ServiceImpl<TGzEmpSkillMapper, TGzEmpSkill> implements TGzEmpSkillService {
/**
* 瓜子技能证书简单分页查询
*
* @param tGzEmpSkill 瓜子技能证书
* @return
*/
@Override
public IPage<TGzEmpSkill> getTGzEmpSkillPage(Page<TGzEmpSkill> page, TGzEmpSkillSearchVo tGzEmpSkill) {
return baseMapper.getTGzEmpSkillPage(page, tGzEmpSkill);
}
@Override
public List<TGzEmpSkill> noPageDiy(TGzEmpSkillSearchVo searchVo) {
LambdaQueryWrapper<TGzEmpSkill> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpSkill::getId, idList);
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TGzEmpSkillSearchVo entity) {
LambdaQueryWrapper<TGzEmpSkill> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TGzEmpSkill::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
/*
* 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.TGzEmpWork;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzEmpWorkMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzEmpWorkService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TGzEmpWorkSearchVo;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.*;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
/**
* 瓜子工作经历
*
* @author chenyx
* @date 2025-06-13 15:19:04
*/
@Log4j2
@Service
@RequiredArgsConstructor
public class TGzEmpWorkServiceImpl extends ServiceImpl<TGzEmpWorkMapper, TGzEmpWork> implements TGzEmpWorkService {
/**
* 瓜子工作经历简单分页查询
*
* @param tGzEmpWork 瓜子工作经历
* @return
*/
@Override
public IPage<TGzEmpWork> getTGzEmpWorkPage(Page<TGzEmpWork> page, TGzEmpWorkSearchVo tGzEmpWork) {
return baseMapper.getTGzEmpWorkPage(page, tGzEmpWork);
}
@Override
public List<TGzEmpWork> noPageDiy(TGzEmpWorkSearchVo searchVo) {
LambdaQueryWrapper<TGzEmpWork> wrapper = buildQueryWrapper(searchVo);
List<String> idList = Common.getList(searchVo.getIds());
if (Common.isNotNull(idList)) {
wrapper.in(TGzEmpWork::getId, idList);
}
wrapper.orderByDesc(BaseEntity::getCreateTime);
return baseMapper.selectList(wrapper);
}
private LambdaQueryWrapper buildQueryWrapper(TGzEmpWorkSearchVo entity) {
LambdaQueryWrapper<TGzEmpWork> wrapper = Wrappers.lambdaQuery();
if (Common.isNotNull(entity.getCreateName())) {
wrapper.eq(TGzEmpWork::getCreateName, entity.getCreateName());
}
return wrapper;
}
}
...@@ -20,6 +20,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; ...@@ -20,6 +20,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzOfferInfo; import com.yifu.cloud.plus.v1.yifu.archives.entity.TGzOfferInfo;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzOfferInfoMapper; import com.yifu.cloud.plus.v1.yifu.archives.mapper.TGzOfferInfoMapper;
import com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService; import com.yifu.cloud.plus.v1.yifu.archives.service.TGzOfferInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
...@@ -33,6 +34,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; ...@@ -33,6 +34,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
*/ */
@Log4j2 @Log4j2
@Service @Service
@RequiredArgsConstructor
public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGzOfferInfo> implements TGzOfferInfoService { public class TGzOfferInfoServiceImpl extends ServiceImpl<TGzOfferInfoMapper, TGzOfferInfo> implements TGzOfferInfoService {
/** /**
* 瓜子offer信息接收表简单分页查询 * 瓜子offer信息接收表简单分页查询
......
<?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.TGzEmpContactInfoMapper">
<resultMap id="tGzEmpContactInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpContactInfo">
<id property="id" column="id"/>
<result property="empId" column="emp_id"/>
<result property="emergName" column="emerg_name"/>
<result property="emergRelation" column="emerg_relation"/>
<result property="emergAddress" column="emerg_address"/>
<result property="emergPhone" column="emerg_phone"/>
<result property="primaryNid" column="primary_nid"/>
<result property="delFlag" column="del_flag"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.emp_id,
a.emerg_name,
a.emerg_relation,
a.emerg_address,
a.emerg_phone,
a.primary_nid,
a.del_flag,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time
</sql>
<sql id="tGzEmpContactInfo_where">
<if test="tGzEmpContactInfo != null">
<if test="tGzEmpContactInfo.id != null and tGzEmpContactInfo.id.trim() != ''">
AND a.id = #{tGzEmpContactInfo.id}
</if>
<if test="tGzEmpContactInfo.empId != null and tGzEmpContactInfo.empId.trim() != ''">
AND a.emp_id = #{tGzEmpContactInfo.empId}
</if>
<if test="tGzEmpContactInfo.emergName != null and tGzEmpContactInfo.emergName.trim() != ''">
AND a.emerg_name = #{tGzEmpContactInfo.emergName}
</if>
<if test="tGzEmpContactInfo.emergRelation != null and tGzEmpContactInfo.emergRelation.trim() != ''">
AND a.emerg_relation = #{tGzEmpContactInfo.emergRelation}
</if>
<if test="tGzEmpContactInfo.emergAddress != null and tGzEmpContactInfo.emergAddress.trim() != ''">
AND a.emerg_address = #{tGzEmpContactInfo.emergAddress}
</if>
<if test="tGzEmpContactInfo.emergPhone != null and tGzEmpContactInfo.emergPhone.trim() != ''">
AND a.emerg_phone = #{tGzEmpContactInfo.emergPhone}
</if>
<if test="tGzEmpContactInfo.primaryNid != null and tGzEmpContactInfo.primaryNid.trim() != ''">
AND a.primary_nid = #{tGzEmpContactInfo.primaryNid}
</if>
<if test="tGzEmpContactInfo.delFlag != null and tGzEmpContactInfo.delFlag.trim() != ''">
AND a.del_flag = #{tGzEmpContactInfo.delFlag}
</if>
<if test="tGzEmpContactInfo.createTime != null">
AND a.create_time = #{tGzEmpContactInfo.createTime}
</if>
<if test="tGzEmpContactInfo.createBy != null and tGzEmpContactInfo.createBy.trim() != ''">
AND a.create_by = #{tGzEmpContactInfo.createBy}
</if>
<if test="tGzEmpContactInfo.createName != null and tGzEmpContactInfo.createName.trim() != ''">
AND a.create_name = #{tGzEmpContactInfo.createName}
</if>
<if test="tGzEmpContactInfo.updateBy != null and tGzEmpContactInfo.updateBy.trim() != ''">
AND a.update_by = #{tGzEmpContactInfo.updateBy}
</if>
<if test="tGzEmpContactInfo.updateTime != null">
AND a.update_time = #{tGzEmpContactInfo.updateTime}
</if>
</if>
</sql>
<!--tGzEmpContactInfo简单分页查询-->
<select id="getTGzEmpContactInfoPage" resultMap="tGzEmpContactInfoMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_contact_info a
<where>
1=1
<include refid="tGzEmpContactInfo_where"/>
</where>
</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.TGzEmpEducationMapper">
<resultMap id="tGzEmpEducationMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpEducation">
<id property="id" column="id"/>
<result property="empId" column="emp_id"/>
<result property="delFlag" column="del_flag"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="eduQual" column="edu_qual"/>
<result property="eduDegree" column="edu_degree"/>
<result property="eduType" column="edu_type"/>
<result property="school" column="school"/>
<result property="eduStartDate" column="edu_start_date"/>
<result property="eduEndDate" column="edu_end_date"/>
<result property="gradutionType" column="gradution_type"/>
<result property="major" column="major"/>
<result property="highEduQualFlag" column="high_edu_qual_flag"/>
<result property="highEduDegreeFlag" column="high_edu_degree_flag"/>
<result property="firstDegreeFlag" column="first_degree_flag"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.emp_id,
a.del_flag,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time,
a.edu_qual,
a.edu_degree,
a.edu_type,
a.school,
a.edu_start_date,
a.edu_end_date,
a.gradution_type,
a.major,
a.high_edu_qual_flag,
a.high_edu_degree_flag,
a.first_degree_flag
</sql>
<sql id="tGzEmpEducation_where">
<if test="tGzEmpEducation != null">
<if test="tGzEmpEducation.id != null and tGzEmpEducation.id.trim() != ''">
AND a.id = #{tGzEmpEducation.id}
</if>
<if test="tGzEmpEducation.empId != null and tGzEmpEducation.empId.trim() != ''">
AND a.emp_id = #{tGzEmpEducation.empId}
</if>
<if test="tGzEmpEducation.delFlag != null and tGzEmpEducation.delFlag.trim() != ''">
AND a.del_flag = #{tGzEmpEducation.delFlag}
</if>
<if test="tGzEmpEducation.createTime != null">
AND a.create_time = #{tGzEmpEducation.createTime}
</if>
<if test="tGzEmpEducation.createBy != null and tGzEmpEducation.createBy.trim() != ''">
AND a.create_by = #{tGzEmpEducation.createBy}
</if>
<if test="tGzEmpEducation.createName != null and tGzEmpEducation.createName.trim() != ''">
AND a.create_name = #{tGzEmpEducation.createName}
</if>
<if test="tGzEmpEducation.updateBy != null and tGzEmpEducation.updateBy.trim() != ''">
AND a.update_by = #{tGzEmpEducation.updateBy}
</if>
<if test="tGzEmpEducation.updateTime != null">
AND a.update_time = #{tGzEmpEducation.updateTime}
</if>
<if test="tGzEmpEducation.eduQual != null and tGzEmpEducation.eduQual.trim() != ''">
AND a.edu_qual = #{tGzEmpEducation.eduQual}
</if>
<if test="tGzEmpEducation.eduDegree != null and tGzEmpEducation.eduDegree.trim() != ''">
AND a.edu_degree = #{tGzEmpEducation.eduDegree}
</if>
<if test="tGzEmpEducation.eduType != null and tGzEmpEducation.eduType.trim() != ''">
AND a.edu_type = #{tGzEmpEducation.eduType}
</if>
<if test="tGzEmpEducation.school != null and tGzEmpEducation.school.trim() != ''">
AND a.school = #{tGzEmpEducation.school}
</if>
<if test="tGzEmpEducation.eduStartDate != null">
AND a.edu_start_date = #{tGzEmpEducation.eduStartDate}
</if>
<if test="tGzEmpEducation.eduEndDate != null">
AND a.edu_end_date = #{tGzEmpEducation.eduEndDate}
</if>
<if test="tGzEmpEducation.gradutionType != null and tGzEmpEducation.gradutionType.trim() != ''">
AND a.gradution_type = #{tGzEmpEducation.gradutionType}
</if>
<if test="tGzEmpEducation.major != null and tGzEmpEducation.major.trim() != ''">
AND a.major = #{tGzEmpEducation.major}
</if>
<if test="tGzEmpEducation.highEduQualFlag != null and tGzEmpEducation.highEduQualFlag.trim() != ''">
AND a.high_edu_qual_flag = #{tGzEmpEducation.highEduQualFlag}
</if>
<if test="tGzEmpEducation.highEduDegreeFlag != null and tGzEmpEducation.highEduDegreeFlag.trim() != ''">
AND a.high_edu_degree_flag = #{tGzEmpEducation.highEduDegreeFlag}
</if>
<if test="tGzEmpEducation.firstDegreeFlag != null and tGzEmpEducation.firstDegreeFlag.trim() != ''">
AND a.first_degree_flag = #{tGzEmpEducation.firstDegreeFlag}
</if>
</if>
</sql>
<!--tGzEmpEducation简单分页查询-->
<select id="getTGzEmpEducationPage" resultMap="tGzEmpEducationMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_education a
<where>
1=1
<include refid="tGzEmpEducation_where"/>
</where>
</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.TGzEmpFamilyMapper">
<resultMap id="tGzEmpFamilyMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpFamily">
<id property="id" column="id"/>
<result property="empId" column="emp_id"/>
<result property="delFlag" column="del_flag"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="familyRelation" column="family_relation"/>
<result property="familyName" column="family_name"/>
<result property="familyPhone" column="family_phone"/>
<result property="familyAddress" column="family_address"/>
<result property="familyCompany" column="family_company"/>
<result property="gzEmeFlag" column="gz_eme_flag"/>
<result property="jobCode" column="job_code"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.emp_id,
a.del_flag,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time,
a.family_relation,
a.family_name,
a.family_phone,
a.family_address,
a.family_company,
a.gz_eme_flag,
a.job_code
</sql>
<sql id="tGzEmpFamily_where">
<if test="tGzEmpFamily != null">
<if test="tGzEmpFamily.id != null and tGzEmpFamily.id.trim() != ''">
AND a.id = #{tGzEmpFamily.id}
</if>
<if test="tGzEmpFamily.empId != null and tGzEmpFamily.empId.trim() != ''">
AND a.emp_id = #{tGzEmpFamily.empId}
</if>
<if test="tGzEmpFamily.delFlag != null and tGzEmpFamily.delFlag.trim() != ''">
AND a.del_flag = #{tGzEmpFamily.delFlag}
</if>
<if test="tGzEmpFamily.createTime != null">
AND a.create_time = #{tGzEmpFamily.createTime}
</if>
<if test="tGzEmpFamily.createBy != null and tGzEmpFamily.createBy.trim() != ''">
AND a.create_by = #{tGzEmpFamily.createBy}
</if>
<if test="tGzEmpFamily.createName != null and tGzEmpFamily.createName.trim() != ''">
AND a.create_name = #{tGzEmpFamily.createName}
</if>
<if test="tGzEmpFamily.updateBy != null and tGzEmpFamily.updateBy.trim() != ''">
AND a.update_by = #{tGzEmpFamily.updateBy}
</if>
<if test="tGzEmpFamily.updateTime != null">
AND a.update_time = #{tGzEmpFamily.updateTime}
</if>
<if test="tGzEmpFamily.familyRelation != null and tGzEmpFamily.familyRelation.trim() != ''">
AND a.family_relation = #{tGzEmpFamily.familyRelation}
</if>
<if test="tGzEmpFamily.familyName != null and tGzEmpFamily.familyName.trim() != ''">
AND a.family_name = #{tGzEmpFamily.familyName}
</if>
<if test="tGzEmpFamily.familyPhone != null and tGzEmpFamily.familyPhone.trim() != ''">
AND a.family_phone = #{tGzEmpFamily.familyPhone}
</if>
<if test="tGzEmpFamily.familyAddress != null and tGzEmpFamily.familyAddress.trim() != ''">
AND a.family_address = #{tGzEmpFamily.familyAddress}
</if>
<if test="tGzEmpFamily.familyCompany != null and tGzEmpFamily.familyCompany.trim() != ''">
AND a.family_company = #{tGzEmpFamily.familyCompany}
</if>
<if test="tGzEmpFamily.gzEmeFlag != null and tGzEmpFamily.gzEmeFlag.trim() != ''">
AND a.gz_eme_flag = #{tGzEmpFamily.gzEmeFlag}
</if>
<if test="tGzEmpFamily.jobCode != null and tGzEmpFamily.jobCode.trim() != ''">
AND a.job_code = #{tGzEmpFamily.jobCode}
</if>
</if>
</sql>
<!--tGzEmpFamily简单分页查询-->
<select id="getTGzEmpFamilyPage" resultMap="tGzEmpFamilyMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_family a
<where>
1=1
<include refid="tGzEmpFamily_where"/>
</where>
</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.TGzEmpSkillMapper">
<resultMap id="tGzEmpSkillMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpSkill">
<id property="id" column="id"/>
<result property="empId" column="emp_id"/>
<result property="delFlag" column="del_flag"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="skillName" column="skill_name"/>
<result property="skillDate" column="skill_date"/>
<result property="skillOrg" column="skill_org"/>
<result property="skillLevel" column="skill_level"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.emp_id,
a.del_flag,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time,
a.skill_name,
a.skill_date,
a.skill_org,
a.skill_level
</sql>
<sql id="tGzEmpSkill_where">
<if test="tGzEmpSkill != null">
<if test="tGzEmpSkill.id != null and tGzEmpSkill.id.trim() != ''">
AND a.id = #{tGzEmpSkill.id}
</if>
<if test="tGzEmpSkill.empId != null and tGzEmpSkill.empId.trim() != ''">
AND a.emp_id = #{tGzEmpSkill.empId}
</if>
<if test="tGzEmpSkill.delFlag != null and tGzEmpSkill.delFlag.trim() != ''">
AND a.del_flag = #{tGzEmpSkill.delFlag}
</if>
<if test="tGzEmpSkill.createTime != null">
AND a.create_time = #{tGzEmpSkill.createTime}
</if>
<if test="tGzEmpSkill.createBy != null and tGzEmpSkill.createBy.trim() != ''">
AND a.create_by = #{tGzEmpSkill.createBy}
</if>
<if test="tGzEmpSkill.createName != null and tGzEmpSkill.createName.trim() != ''">
AND a.create_name = #{tGzEmpSkill.createName}
</if>
<if test="tGzEmpSkill.updateBy != null and tGzEmpSkill.updateBy.trim() != ''">
AND a.update_by = #{tGzEmpSkill.updateBy}
</if>
<if test="tGzEmpSkill.updateTime != null">
AND a.update_time = #{tGzEmpSkill.updateTime}
</if>
<if test="tGzEmpSkill.skillName != null and tGzEmpSkill.skillName.trim() != ''">
AND a.skill_name = #{tGzEmpSkill.skillName}
</if>
<if test="tGzEmpSkill.skillDate != null">
AND a.skill_date = #{tGzEmpSkill.skillDate}
</if>
<if test="tGzEmpSkill.skillOrg != null and tGzEmpSkill.skillOrg.trim() != ''">
AND a.skill_org = #{tGzEmpSkill.skillOrg}
</if>
<if test="tGzEmpSkill.skillLevel != null and tGzEmpSkill.skillLevel.trim() != ''">
AND a.skill_level = #{tGzEmpSkill.skillLevel}
</if>
</if>
</sql>
<!--tGzEmpSkill简单分页查询-->
<select id="getTGzEmpSkillPage" resultMap="tGzEmpSkillMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_skill a
<where>
1=1
<include refid="tGzEmpSkill_where"/>
</where>
</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.TGzEmpWorkMapper">
<resultMap id="tGzEmpWorkMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TGzEmpWork">
<id property="id" column="id"/>
<result property="empId" column="emp_id"/>
<result property="delFlag" column="del_flag"/>
<result property="createTime" column="create_time"/>
<result property="createBy" column="create_by"/>
<result property="createName" column="create_name"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="workUnit" column="work_unit"/>
<result property="workStartDate" column="work_start_date"/>
<result property="workEndDate" column="work_end_date"/>
<result property="workDept" column="work_dept"/>
<result property="workJob" column="work_job"/>
<result property="certifierName" column="certifier_name"/>
<result property="certifierPhone" column="certifier_phone"/>
</resultMap>
<sql id="Base_Column_List">
a.id,
a.emp_id,
a.del_flag,
a.create_time,
a.create_by,
a.create_name,
a.update_by,
a.update_time,
a.work_unit,
a.work_start_date,
a.work_end_date,
a.work_dept,
a.work_job,
a.certifier_name,
a.certifier_phone
</sql>
<sql id="tGzEmpWork_where">
<if test="tGzEmpWork != null">
<if test="tGzEmpWork.id != null and tGzEmpWork.id.trim() != ''">
AND a.id = #{tGzEmpWork.id}
</if>
<if test="tGzEmpWork.empId != null and tGzEmpWork.empId.trim() != ''">
AND a.emp_id = #{tGzEmpWork.empId}
</if>
<if test="tGzEmpWork.delFlag != null and tGzEmpWork.delFlag.trim() != ''">
AND a.del_flag = #{tGzEmpWork.delFlag}
</if>
<if test="tGzEmpWork.createTime != null">
AND a.create_time = #{tGzEmpWork.createTime}
</if>
<if test="tGzEmpWork.createBy != null and tGzEmpWork.createBy.trim() != ''">
AND a.create_by = #{tGzEmpWork.createBy}
</if>
<if test="tGzEmpWork.createName != null and tGzEmpWork.createName.trim() != ''">
AND a.create_name = #{tGzEmpWork.createName}
</if>
<if test="tGzEmpWork.updateBy != null and tGzEmpWork.updateBy.trim() != ''">
AND a.update_by = #{tGzEmpWork.updateBy}
</if>
<if test="tGzEmpWork.updateTime != null">
AND a.update_time = #{tGzEmpWork.updateTime}
</if>
<if test="tGzEmpWork.workUnit != null and tGzEmpWork.workUnit.trim() != ''">
AND a.work_unit = #{tGzEmpWork.workUnit}
</if>
<if test="tGzEmpWork.workStartDate != null">
AND a.work_start_date = #{tGzEmpWork.workStartDate}
</if>
<if test="tGzEmpWork.workEndDate != null">
AND a.work_end_date = #{tGzEmpWork.workEndDate}
</if>
<if test="tGzEmpWork.workDept != null and tGzEmpWork.workDept.trim() != ''">
AND a.work_dept = #{tGzEmpWork.workDept}
</if>
<if test="tGzEmpWork.workJob != null and tGzEmpWork.workJob.trim() != ''">
AND a.work_job = #{tGzEmpWork.workJob}
</if>
<if test="tGzEmpWork.certifierName != null and tGzEmpWork.certifierName.trim() != ''">
AND a.certifier_name = #{tGzEmpWork.certifierName}
</if>
<if test="tGzEmpWork.certifierPhone != null and tGzEmpWork.certifierPhone.trim() != ''">
AND a.certifier_phone = #{tGzEmpWork.certifierPhone}
</if>
</if>
</sql>
<!--tGzEmpWork简单分页查询-->
<select id="getTGzEmpWorkPage" resultMap="tGzEmpWorkMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_gz_emp_work a
<where>
1=1
<include refid="tGzEmpWork_where"/>
</where>
</select>
</mapper>
...@@ -116,4 +116,7 @@ public class SysDictItem extends BaseEntity { ...@@ -116,4 +116,7 @@ public class SysDictItem extends BaseEntity {
@Schema(description = "上级字典项标签") @Schema(description = "上级字典项标签")
private String parentLabelOfValue; private String parentLabelOfValue;
@Schema(description = "客户端标识")
private String clientId;
} }
...@@ -46,6 +46,10 @@ public class SysOutEmpCategorizeFormInfo extends BaseEntity { ...@@ -46,6 +46,10 @@ public class SysOutEmpCategorizeFormInfo extends BaseEntity {
@TableId(type = IdType.ASSIGN_ID) @TableId(type = IdType.ASSIGN_ID)
@Schema(description = "主键") @Schema(description = "主键")
private String id; private String id;
@Schema(description = "附属信息分类标识")
private String fieldName;
/** /**
* 分类名称 * 分类名称
*/ */
......
package com.yifu.cloud.plus.v1.yifu.admin.api.vo;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.List;
/**
* 瓜子采集配置(前端用配置进行展示)
*
* @author chenyx
* @date 2025-06-11 15:57:30
*/
@Data
public class SysOutEmpCategorizeFormInfoVo extends SysOutEmpCategorizeFormInfo {
@Schema(description = "字段配置")
private List<SysOutEmpFormInfo> sysOutEmpFormInfoList;
}
...@@ -20,6 +20,7 @@ import cn.hutool.core.lang.tree.Tree; ...@@ -20,6 +20,7 @@ import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.google.common.collect.Maps;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDict; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDict;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDictItem; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDictItem;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysDictItemService; import com.yifu.cloud.plus.v1.yifu.admin.service.SysDictItemService;
...@@ -39,6 +40,7 @@ import org.springframework.security.access.prepost.PreAuthorize; ...@@ -39,6 +40,7 @@ import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -361,4 +363,18 @@ public class DictController { ...@@ -361,4 +363,18 @@ public class DictController {
.eq(SysDictItem::getDisable,CommonConstants.ZERO_STRING)); .eq(SysDictItem::getDisable,CommonConstants.ZERO_STRING));
return new R<>(allList); return new R<>(allList);
} }
/**
* 获取指定端下的字典列表
* @param clientId 客户端标识
* @author chenyx
* @date 2025-06-11 15:57:30
* @since 1.7.12
**/
@GetMapping("/getDictListByClientId")
public R<Map<String,List<SysDictItem>>> getDictMapByClientId(@RequestParam String clientId) {
return new R<>(sysDictService.getDictMapByClientId(clientId));
}
} }
...@@ -44,7 +44,6 @@ public class SysOutEmpCategorizeFormInfoController { ...@@ -44,7 +44,6 @@ public class SysOutEmpCategorizeFormInfoController {
private final SysOutEmpCategorizeFormInfoService sysOutEmpCategorizeFormInfoService; private final SysOutEmpCategorizeFormInfoService sysOutEmpCategorizeFormInfoService;
/** /**
* 简单分页查询 * 简单分页查询
* @param page 分页对象 * @param page 分页对象
......
...@@ -19,7 +19,9 @@ package com.yifu.cloud.plus.v1.yifu.admin.controller; ...@@ -19,7 +19,9 @@ package com.yifu.cloud.plus.v1.yifu.admin.controller;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpFormInfoVo; import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpFormInfoVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R; import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog; import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
...@@ -48,6 +50,17 @@ public class SysOutEmpFormInfoController { ...@@ -48,6 +50,17 @@ public class SysOutEmpFormInfoController {
private final SysOutEmpFormInfoService sysOutEmpFormInfoService; private final SysOutEmpFormInfoService sysOutEmpFormInfoService;
/**
* 瓜子采集配置列表
* @param isLookToc C端:0
* @return List<SysOutEmpCategorizeFormInfoVo>
*/
@Operation(description = "瓜子采集配置列表")
@GetMapping("/configList")
public R<List<SysOutEmpCategorizeFormInfoVo>> getConfigList(@RequestParam String isLookToc) {
return new R<>(sysOutEmpFormInfoService.getConfigList(isLookToc));
}
/** /**
* 简单分页查询 * 简单分页查询
* @param page 分页对象 * @param page 分页对象
......
...@@ -21,9 +21,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; ...@@ -21,9 +21,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List;
/** /**
* 瓜子采集表单信息分类表 * 瓜子采集表单信息分类表
* *
...@@ -39,4 +42,7 @@ public interface SysOutEmpCategorizeFormInfoMapper extends BaseMapper<SysOutEmpC ...@@ -39,4 +42,7 @@ public interface SysOutEmpCategorizeFormInfoMapper extends BaseMapper<SysOutEmpC
* @return * @return
*/ */
IPage<SysOutEmpCategorizeFormInfo> getSysOutEmpCategorizeFormInfoPage(Page<SysOutEmpCategorizeFormInfo> page, @Param("sysOutEmpCategorizeFormInfo") SysOutEmpCategorizeFormInfo sysOutEmpCategorizeFormInfo); IPage<SysOutEmpCategorizeFormInfo> getSysOutEmpCategorizeFormInfoPage(Page<SysOutEmpCategorizeFormInfo> page, @Param("sysOutEmpCategorizeFormInfo") SysOutEmpCategorizeFormInfo sysOutEmpCategorizeFormInfo);
List<SysOutEmpCategorizeFormInfoVo> getCategorizeVoList(@Param("isLookToc") String isLookToc);
} }
...@@ -23,6 +23,7 @@ import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDictItem; ...@@ -23,6 +23,7 @@ import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDictItem;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.DictRedisVo; import com.yifu.cloud.plus.v1.yifu.admin.api.vo.DictRedisVo;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 字典表 * 字典表
...@@ -61,4 +62,6 @@ public interface SysDictService extends IService<SysDict> { ...@@ -61,4 +62,6 @@ public interface SysDictService extends IService<SysDict> {
List<SysDictItem> findDetailsByItemType(String itemType); List<SysDictItem> findDetailsByItemType(String itemType);
Map<String,List<SysDictItem>> getDictMapByClientId(String clientId);
} }
...@@ -21,6 +21,9 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -21,6 +21,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo;
import java.util.List;
/** /**
* 瓜子采集表单信息分类表 * 瓜子采集表单信息分类表
...@@ -37,5 +40,6 @@ public interface SysOutEmpCategorizeFormInfoService extends IService<SysOutEmpCa ...@@ -37,5 +40,6 @@ public interface SysOutEmpCategorizeFormInfoService extends IService<SysOutEmpCa
*/ */
IPage<SysOutEmpCategorizeFormInfo> getSysOutEmpCategorizeFormInfoPage(Page<SysOutEmpCategorizeFormInfo> page, SysOutEmpCategorizeFormInfo sysOutEmpCategorizeFormInfo); IPage<SysOutEmpCategorizeFormInfo> getSysOutEmpCategorizeFormInfoPage(Page<SysOutEmpCategorizeFormInfo> page, SysOutEmpCategorizeFormInfo sysOutEmpCategorizeFormInfo);
List<SysOutEmpCategorizeFormInfoVo> getCategorizeVoList(String isLookToc);
} }
...@@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpFormInfoVo; import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpFormInfoVo;
import java.util.List; import java.util.List;
...@@ -31,6 +32,13 @@ import java.util.List; ...@@ -31,6 +32,13 @@ import java.util.List;
* @date 2025-06-11 15:57:30 * @date 2025-06-11 15:57:30
*/ */
public interface SysOutEmpFormInfoService extends IService<SysOutEmpFormInfo> { public interface SysOutEmpFormInfoService extends IService<SysOutEmpFormInfo> {
/**
* 瓜子C端采集配置列表
* @return List<SysOutEmpCategorizeFormInfoVo>
*/
List<SysOutEmpCategorizeFormInfoVo> getConfigList(String isLookToc);
/** /**
* 瓜子采集字段配置表(前端用配置进行展示)简单分页查询 * 瓜子采集字段配置表(前端用配置进行展示)简单分页查询
* @param sysOutEmpFormInfo 瓜子采集字段配置表(前端用配置进行展示) * @param sysOutEmpFormInfo 瓜子采集字段配置表(前端用配置进行展示)
......
...@@ -28,8 +28,10 @@ import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysDictItemMapper; ...@@ -28,8 +28,10 @@ import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysDictItemMapper;
import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysDictMapper; import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysDictMapper;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysDictService; import com.yifu.cloud.plus.v1.yifu.admin.service.SysDictService;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants; import com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.enums.DictTypeEnum; import com.yifu.cloud.plus.v1.yifu.common.core.constant.enums.DictTypeEnum;
import com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes; import com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes;
import com.yifu.cloud.plus.v1.yifu.common.core.util.Common;
import com.yifu.cloud.plus.v1.yifu.common.core.util.MsgUtils; import com.yifu.cloud.plus.v1.yifu.common.core.util.MsgUtils;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity; import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
...@@ -38,7 +40,10 @@ import org.springframework.stereotype.Service; ...@@ -38,7 +40,10 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 字典表 * 字典表
...@@ -151,4 +156,33 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl ...@@ -151,4 +156,33 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
return dictItemMapper.selectList(Wrappers.<SysDictItem>query().lambda() return dictItemMapper.selectList(Wrappers.<SysDictItem>query().lambda()
.eq(SysDictItem::getType,itemType)); .eq(SysDictItem::getType,itemType));
} }
@Override
public Map<String, List<SysDictItem>> getDictMapByClientId(String clientId) {
Map<String,List<SysDictItem>> dictMap = new HashMap<>();
List<SysDictItem> sysDictList = dictItemMapper.selectList(Wrappers.<SysDictItem>query().lambda()
.eq(SysDictItem::getDelFlag, CommonConstants.ZERO_STRING)
.eq(SysDictItem::getDisable, CommonConstants.ZERO_STRING)
.eq(SysDictItem::getClientId,clientId)
.orderByAsc(SysDictItem::getSortOrder).orderByAsc(SysDictItem::getId)
);
if(Common.isEmpty(sysDictList)){
return dictMap;
}
for(SysDictItem dictInfo : sysDictList){
// 获取指定分类下的配置字段
List<SysDictItem> dictListByCategorize = dictMap.get(dictInfo.getType());
if(Common.isEmpty(dictListByCategorize)) {
// 关联的模块列表
dictListByCategorize = new ArrayList<>();
}
dictListByCategorize.add(dictInfo);
dictMap.put(dictInfo.getType(), dictListByCategorize);
}
return dictMap;
}
} }
...@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.admin.service.impl; ...@@ -18,6 +18,7 @@ package com.yifu.cloud.plus.v1.yifu.admin.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo;
import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysOutEmpCategorizeFormInfoMapper; import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysOutEmpCategorizeFormInfoMapper;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysOutEmpCategorizeFormInfoService; import com.yifu.cloud.plus.v1.yifu.admin.service.SysOutEmpCategorizeFormInfoService;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
...@@ -25,6 +26,8 @@ import org.springframework.stereotype.Service; ...@@ -25,6 +26,8 @@ import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
/** /**
* 瓜子采集表单信息分类表 * 瓜子采集表单信息分类表
...@@ -46,4 +49,8 @@ public class SysOutEmpCategorizeFormInfoServiceImpl extends ServiceImpl<SysOutEm ...@@ -46,4 +49,8 @@ public class SysOutEmpCategorizeFormInfoServiceImpl extends ServiceImpl<SysOutEm
return baseMapper.getSysOutEmpCategorizeFormInfoPage(page, sysOutEmpCategorizeFormInfo); return baseMapper.getSysOutEmpCategorizeFormInfoPage(page, sysOutEmpCategorizeFormInfo);
} }
@Override
public List<SysOutEmpCategorizeFormInfoVo> getCategorizeVoList(String isLookToc) {
return baseMapper.getCategorizeVoList(isLookToc);
}
} }
...@@ -17,13 +17,19 @@ ...@@ -17,13 +17,19 @@
package com.yifu.cloud.plus.v1.yifu.admin.service.impl; package com.yifu.cloud.plus.v1.yifu.admin.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpFormInfo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpFormInfoVo; import com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpFormInfoVo;
import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysOutEmpFormInfoMapper; import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysOutEmpFormInfoMapper;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysOutEmpCategorizeFormInfoService;
import com.yifu.cloud.plus.v1.yifu.admin.service.SysOutEmpFormInfoService; import com.yifu.cloud.plus.v1.yifu.admin.service.SysOutEmpFormInfoService;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
import java.util.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
...@@ -41,7 +47,54 @@ import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity; ...@@ -41,7 +47,54 @@ import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
*/ */
@Log4j2 @Log4j2
@Service @Service
@RequiredArgsConstructor
public class SysOutEmpFormInfoServiceImpl extends ServiceImpl<SysOutEmpFormInfoMapper, SysOutEmpFormInfo> implements SysOutEmpFormInfoService { public class SysOutEmpFormInfoServiceImpl extends ServiceImpl<SysOutEmpFormInfoMapper, SysOutEmpFormInfo> implements SysOutEmpFormInfoService {
private final SysOutEmpCategorizeFormInfoService categorizeFormInfoService;
/**
* 瓜子C端采集配置列表
*
* @return List<SysOutEmpCategorizeFormInfoVo>
*/
@Override
public List<SysOutEmpCategorizeFormInfoVo> getConfigList(String isLookToc) {
List<SysOutEmpCategorizeFormInfoVo> categorizeFormInfoVoList = categorizeFormInfoService.getCategorizeVoList(isLookToc);
if(Common.isEmpty(categorizeFormInfoVoList)){
return categorizeFormInfoVoList;
}
Map<String,List<SysOutEmpFormInfo>> formListMap = new HashMap<>();
LambdaQueryWrapper<SysOutEmpFormInfo> formQuery = Wrappers.<SysOutEmpFormInfo>lambdaQuery()
.eq(SysOutEmpFormInfo::getDelFlag, CommonConstants.ZERO_STRING)
.orderByAsc(SysOutEmpFormInfo::getSort).orderByDesc(SysOutEmpFormInfo::getId);
List<SysOutEmpFormInfo> formInfoList = this.list(formQuery);
if(Common.isEmpty(formInfoList)){
return categorizeFormInfoVoList;
}
for(SysOutEmpFormInfo formInfo : formInfoList){
// 获取指定分类下的配置字段
List<SysOutEmpFormInfo> formInfoListByCategorize = formListMap.get(formInfo.getCategorizeId());
if(Common.isEmpty(formInfoListByCategorize)) {
// 关联的模块列表
formInfoListByCategorize = new ArrayList<>();
}
formInfoListByCategorize.add(formInfo);
formListMap.put(formInfo.getCategorizeId(), formInfoListByCategorize);
}
for(SysOutEmpCategorizeFormInfoVo categorizeFormInfoVo : categorizeFormInfoVoList){
if(Common.isNotNull(formListMap.get(categorizeFormInfoVo.getId()))){
categorizeFormInfoVo.setSysOutEmpFormInfoList(formListMap.get(categorizeFormInfoVo.getId()));
}
}
return categorizeFormInfoVoList;
}
/** /**
* 瓜子采集字段配置表(前端用配置进行展示)简单分页查询 * 瓜子采集字段配置表(前端用配置进行展示)简单分页查询
* *
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<resultMap id="sysOutEmpCategorizeFormInfoMap" <resultMap id="sysOutEmpCategorizeFormInfoMap"
type="com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo"> type="com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysOutEmpCategorizeFormInfo">
<id property="id" column="id"/> <id property="id" column="id"/>
<result property="fieldName" column="field_name"/>
<result property="name" column="name"/> <result property="name" column="name"/>
<result property="sort" column="sort"/> <result property="sort" column="sort"/>
<result property="groupType" column="group_type"/> <result property="groupType" column="group_type"/>
...@@ -39,6 +40,7 @@ ...@@ -39,6 +40,7 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
a.id, a.id,
a.field_name,
a.name, a.name,
a.sort, a.sort,
a.group_type, a.group_type,
...@@ -97,4 +99,17 @@ ...@@ -97,4 +99,17 @@
<include refid="sysOutEmpCategorizeFormInfo_where"/> <include refid="sysOutEmpCategorizeFormInfo_where"/>
</where> </where>
</select> </select>
<select id="getCategorizeVoList" resultType="com.yifu.cloud.plus.v1.yifu.admin.api.vo.SysOutEmpCategorizeFormInfoVo">
SELECT
<include refid="Base_Column_List"/>
FROM sys_out_emp_categorize_form_info a
<where>
a.del_flag = '0'
<if test="isLookToc != null and isLookToc.trim() != ''">
AND a.is_look_toc = #{isLookToc}
</if>
</where>
order by a.sort,a.id desc
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment