Commit b1236e7c authored by fangxinjiang's avatar fangxinjiang

社保自动化配置-fxj

parent 412436e5
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* 社保购买规则主表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Data
@TableName("t_auto_social_rule_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "社保购买规则主表")
public class TAutoSocialRuleInfo extends BaseEntity {
/**
* 主键ID
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键ID")
@Schema(description = "主键ID")
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 mainId;
/**
* 是否自动触发派增(字典:0自动触发派增,1:手动派增)
*/
@ExcelAttribute(name = "是否自动触发派增(字典:0自动触发派增,1:手动派增)", isNotEmpty = true, errorInfo = "是否自动触发派增(字典:0自动触发派增,1:手动派增)不能为空", maxLength = 1)
@NotBlank(message = "是否自动触发派增(字典:0自动触发派增,1:手动派增)不能为空")
@Length(max = 1, message = "是否自动触发派增(字典:0自动触发派增,1:手动派增)不能超过1个字符")
@ExcelProperty("是否自动触发派增(字典:0自动触发派增,1:手动派增)")
@Schema(description = "是否自动触发派增(字典:0自动触发派增,1:手动派增)")
private String autoFlag;
/**
* 派单发起时间(字典::0:入职满1个月...入职满6个月)
*/
@ExcelAttribute(name = "派单发起时间(字典::0:入职满1个月...入职满6个月)", maxLength = 2)
@Length(max = 2, message = "派单发起时间(字典::0:入职满1个月...入职满6个月)不能超过2个字符")
@ExcelProperty("派单发起时间(字典::0:入职满1个月...入职满6个月)")
@Schema(description = "派单发起时间(字典::0:入职满1个月...入职满6个月)")
private String startPeriod;
/**
* 派单发起具体时间字典:0:15:20
*/
@ExcelAttribute(name = "派单发起具体时间字典:0:15:20", maxLength = 10)
@Length(max = 10, message = "派单发起具体时间字典:0:15:20不能超过10个字符")
@ExcelProperty("派单发起具体时间字典:0:15:20")
@Schema(description = "派单发起具体时间字典:0:15:20")
private String startTime;
/**
* 派单确认时间,字典:0:派单发起当日
*/
@ExcelAttribute(name = "派单确认时间,字典:0:派单发起当日", maxLength = 50)
@Length(max = 50, message = "派单确认时间,字典:0:派单发起当日不能超过50个字符")
@ExcelProperty("派单确认时间,字典:0:派单发起当日")
@Schema(description = "派单确认时间,字典:0:派单发起当日")
private String confirmPeriod;
/**
* 派单确认具体时间
*/
@ExcelAttribute(name = "派单确认具体时间", maxLength = 10)
@Length(max = 10, message = "派单确认具体时间不能超过10个字符")
@ExcelProperty("派单确认具体时间")
@Schema(description = "派单确认具体时间")
private String confirmTime;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码", maxLength = 50)
@Length(max = 50, message = "项目编码不能超过50个字符")
@ExcelProperty("项目编码")
@Schema(description = "项目编码")
private String deptNo;
/**
* 项目ID
*/
@ExcelAttribute(name = "项目ID", maxLength = 50)
@Length(max = 50, message = "项目ID不能超过50个字符")
@ExcelProperty("项目ID")
@Schema(description = "项目ID")
private String deptId;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* 社保购买规则明细表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Data
@TableName("t_auto_social_rule_rel")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "社保购买规则明细表")
public class TAutoSocialRuleRel extends BaseEntity {
/**
* 主键ID
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键ID")
@Schema(description = "主键ID")
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 mainId;
/**
* 配置名称
*/
@ExcelAttribute(name = "配置名称", isNotEmpty = true, errorInfo = "配置名称不能为空", maxLength = 50)
@NotBlank(message = "配置名称不能为空")
@Length(max = 50, message = "配置名称不能超过50个字符")
@ExcelProperty("配置名称")
@Schema(description = "配置名称")
private String configName;
/**
* 社保户ID
*/
@ExcelAttribute(name = "社保户ID", maxLength = 50)
@Length(max = 50, message = "社保户ID不能超过50个字符")
@ExcelProperty("社保户ID")
@Schema(description = "社保户ID")
private String configHouseId;
/**
* 社保起缴日期是否一致(0-是,1-否)
*/
@ExcelAttribute(name = "社保起缴日期是否一致(0-是,1-否)", maxLength = 1)
@Length(max = 1, message = "社保起缴日期是否一致(0-是,1-否)不能超过1个字符")
@ExcelProperty("社保起缴日期是否一致(0-是,1-否)")
@Schema(description = "社保起缴日期是否一致(0-是,1-否)")
private String socialDateFlag;
/**
* 起缴日期:0 入职日期
*/
@ExcelAttribute(name = "起缴日期:0 入职日期", maxLength = 2)
@Length(max = 2, message = "起缴日期:0 入职日期不能超过2个字符")
@ExcelProperty("起缴日期:0 入职日期")
@Schema(description = "起缴日期:0 入职日期")
private String socialDateType;
/**
* 缴纳类型:0最低、1自定义、2最高
*/
@ExcelAttribute(name = "缴纳类型:0最低、1自定义、2最高", maxLength = 2)
@Length(max = 2, message = "缴纳类型:0最低、1自定义、2最高不能超过2个字符")
@ExcelProperty("缴纳类型:0最低、1自定义、2最高")
@Schema(description = "缴纳类型:0最低、1自定义、2最高")
private String paymentType;
/**
* 备案基数类型:0固定值1自定义
*/
@ExcelAttribute(name = "备案基数类型:0固定值1自定义", maxLength = 2)
@Length(max = 2, message = "备案基数类型:0固定值1自定义不能超过2个字符")
@ExcelProperty("备案基数类型:0固定值1自定义")
@Schema(description = "备案基数类型:0固定值1自定义")
private String recordBaseType;
/**
* 备案基数
*/
@ExcelAttribute(name = "备案基数", maxLength = 30)
@Length(max = 30, message = "备案基数不能超过30个字符")
@ExcelProperty("备案基数")
@Schema(description = "备案基数")
private String recordBase;
/**
* 委托备注(字典值)
*/
@ExcelAttribute(name = "委托备注(字典值)", maxLength = 100)
@Length(max = 100, message = "委托备注(字典值)不能超过100个字符")
@ExcelProperty("委托备注(字典值)")
@Schema(description = "委托备注(字典值)")
private String remarkDict;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码不能为空", maxLength = 50)
@NotBlank(message = "项目编码不能为空")
@Length(max = 50, message = "项目编码不能超过50个字符")
@ExcelProperty("项目编码")
@Schema(description = "项目编码")
private String deptNo;
/**
* 项目ID
*/
@ExcelAttribute(name = "项目ID", isNotEmpty = true, errorInfo = "项目ID不能为空", maxLength = 50)
@NotBlank(message = "项目ID不能为空")
@Length(max = 50, message = "项目ID不能超过50个字符")
@ExcelProperty("项目ID")
@Schema(description = "项目ID")
private String deptId;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TAutoSocialRuleInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 社保购买规则主表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Data
public class TAutoSocialRuleInfoSearchVo extends TAutoSocialRuleInfo{
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema(description = "创建时间区间")
private LocalDateTime[] createTimes;
/**
* @Author fxj
* 查询数据起
**/
@Schema(description = "查询limit 开始")
private int limitStart;
/**
* @Author fxj
* 查询数据止
**/
@Schema(description = "查询limit 数据条数")
private int limitEnd;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
* 社保购买规则主表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Data
public class TAutoSocialRuleInfoVo extends RowIndex implements Serializable {
/**
* 主键ID
*/
@TableId(type = IdType.ASSIGN_ID)
@NotBlank(message = "主键ID 不能为空")
@Length(max = 32, message = "主键ID 不能超过32 个字符")
@ExcelAttribute(name = "主键ID", isNotEmpty = true, errorInfo = "主键ID 不能为空", maxLength = 32)
@Schema(description = "主键ID")
@ExcelProperty("主键ID")
private String id;
/**
* 项目配置ID
*/
@NotBlank(message = "项目配置ID 不能为空")
@Length(max = 32, message = "项目配置ID 不能超过32 个字符")
@ExcelAttribute(name = "项目配置ID", isNotEmpty = true, errorInfo = "项目配置ID 不能为空", maxLength = 32)
@Schema(description = "项目配置ID")
@ExcelProperty("项目配置ID")
private String mainId;
/**
* 是否自动触发派增(字典:0自动触发派增,1:手动派增)
*/
@NotBlank(message = "是否自动触发派增(字典:0自动触发派增,1:手动派增) 不能为空")
@Length(max = 1, message = "是否自动触发派增(字典:0自动触发派增,1:手动派增) 不能超过1 个字符")
@ExcelAttribute(name = "是否自动触发派增(字典:0自动触发派增,1:手动派增)", isNotEmpty = true, errorInfo = "是否自动触发派增(字典:0自动触发派增,1:手动派增) 不能为空", maxLength = 1)
@Schema(description = "是否自动触发派增(字典:0自动触发派增,1:手动派增)")
@ExcelProperty("是否自动触发派增(字典:0自动触发派增,1:手动派增)")
private String autoFlag;
/**
* 派单发起时间(字典::0:入职满1个月...入职满6个月)
*/
@Length(max = 2, message = "派单发起时间(字典::0:入职满1个月...入职满6个月) 不能超过2 个字符")
@ExcelAttribute(name = "派单发起时间(字典::0:入职满1个月...入职满6个月)", maxLength = 2)
@Schema(description = "派单发起时间(字典::0:入职满1个月...入职满6个月)")
@ExcelProperty("派单发起时间(字典::0:入职满1个月...入职满6个月)")
private String startPeriod;
/**
* 派单发起具体时间字典:0:15:20
*/
@Length(max = 10, message = "派单发起具体时间字典:0:15:20 不能超过10 个字符")
@ExcelAttribute(name = "派单发起具体时间字典:0:15:20", maxLength = 10)
@Schema(description = "派单发起具体时间字典:0:15:20")
@ExcelProperty("派单发起具体时间字典:0:15:20")
private String startTime;
/**
* 派单确认时间,字典:0:派单发起当日
*/
@Length(max = 50, message = "派单确认时间,字典:0:派单发起当日 不能超过50 个字符")
@ExcelAttribute(name = "派单确认时间,字典:0:派单发起当日", maxLength = 50)
@Schema(description = "派单确认时间,字典:0:派单发起当日")
@ExcelProperty("派单确认时间,字典:0:派单发起当日")
private String confirmPeriod;
/**
* 派单确认具体时间
*/
@Length(max = 10, message = "派单确认具体时间 不能超过10 个字符")
@ExcelAttribute(name = "派单确认具体时间", maxLength = 10)
@Schema(description = "派单确认具体时间")
@ExcelProperty("派单确认具体时间")
private String confirmTime;
/**
* 项目编码
*/
@Length(max = 50, message = "项目编码 不能超过50 个字符")
@ExcelAttribute(name = "项目编码", maxLength = 50)
@Schema(description = "项目编码")
@ExcelProperty("项目编码")
private String deptNo;
/**
* 项目ID
*/
@Length(max = 50, message = "项目ID 不能超过50 个字符")
@ExcelAttribute(name = "项目ID", maxLength = 50)
@Schema(description = "项目ID")
@ExcelProperty("项目ID")
private String deptId;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TAutoSocialRuleRel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
/**
* 社保购买规则明细表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Data
public class TAutoSocialRuleRelSearchVo extends TAutoSocialRuleRel {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
/**
* 创建时间区间 [开始时间,结束时间]
*/
@Schema(description = "创建时间区间")
private LocalDateTime[] createTimes;
/**
* @Author fxj
* 查询数据起
**/
@Schema(description = "查询limit 开始")
private int limitStart;
/**
* @Author fxj
* 查询数据止
**/
@Schema(description = "查询limit 数据条数")
private int limitEnd;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.vo;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.RowIndex;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
* 社保购买规则明细表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Data
public class TAutoSocialRuleRelVo extends RowIndex implements Serializable {
/**
* 主键ID
*/
@TableId(type = IdType.ASSIGN_ID)
@NotBlank(message = "主键ID 不能为空")
@Length(max = 32, message = "主键ID 不能超过32 个字符")
@ExcelAttribute(name = "主键ID", isNotEmpty = true, errorInfo = "主键ID 不能为空", maxLength = 32)
@Schema(description = "主键ID")
@ExcelProperty("主键ID")
private String id;
/**
* 社保配置ID
*/
@NotBlank(message = "社保配置ID 不能为空")
@Length(max = 32, message = "社保配置ID 不能超过32 个字符")
@ExcelAttribute(name = "社保配置ID", isNotEmpty = true, errorInfo = "社保配置ID 不能为空", maxLength = 32)
@Schema(description = "社保配置ID")
@ExcelProperty("社保配置ID")
private String mainId;
/**
* 配置名称
*/
@NotBlank(message = "配置名称 不能为空")
@Length(max = 50, message = "配置名称 不能超过50 个字符")
@ExcelAttribute(name = "配置名称", isNotEmpty = true, errorInfo = "配置名称 不能为空", maxLength = 50)
@Schema(description = "配置名称")
@ExcelProperty("配置名称")
private String configName;
/**
* 社保户ID
*/
@Length(max = 50, message = "社保户ID 不能超过50 个字符")
@ExcelAttribute(name = "社保户ID", maxLength = 50)
@Schema(description = "社保户ID")
@ExcelProperty("社保户ID")
private String configHouseId;
/**
* 社保起缴日期是否一致(0-是,1-否)
*/
@Length(max = 1, message = "社保起缴日期是否一致(0-是,1-否) 不能超过1 个字符")
@ExcelAttribute(name = "社保起缴日期是否一致(0-是,1-否)", maxLength = 1)
@Schema(description = "社保起缴日期是否一致(0-是,1-否)")
@ExcelProperty("社保起缴日期是否一致(0-是,1-否)")
private String socialDateFlag;
/**
* 起缴日期:0 入职日期
*/
@Length(max = 2, message = "起缴日期:0 入职日期 不能超过2 个字符")
@ExcelAttribute(name = "起缴日期:0 入职日期", maxLength = 2)
@Schema(description = "起缴日期:0 入职日期")
@ExcelProperty("起缴日期:0 入职日期")
private String socialDateType;
/**
* 缴纳类型:0最低、1自定义、2最高
*/
@Length(max = 2, message = "缴纳类型:0最低、1自定义、2最高 不能超过2 个字符")
@ExcelAttribute(name = "缴纳类型:0最低、1自定义、2最高", maxLength = 2)
@Schema(description = "缴纳类型:0最低、1自定义、2最高")
@ExcelProperty("缴纳类型:0最低、1自定义、2最高")
private String paymentType;
/**
* 备案基数类型:0固定值1自定义
*/
@Length(max = 2, message = "备案基数类型:0固定值1自定义 不能超过2 个字符")
@ExcelAttribute(name = "备案基数类型:0固定值1自定义", maxLength = 2)
@Schema(description = "备案基数类型:0固定值1自定义")
@ExcelProperty("备案基数类型:0固定值1自定义")
private String recordBaseType;
/**
* 备案基数
*/
@Length(max = 30, message = "备案基数 不能超过30 个字符")
@ExcelAttribute(name = "备案基数", maxLength = 30)
@Schema(description = "备案基数")
@ExcelProperty("备案基数")
private String recordBase;
/**
* 委托备注(字典值)
*/
@Length(max = 100, message = "委托备注(字典值) 不能超过100 个字符")
@ExcelAttribute(name = "委托备注(字典值)", maxLength = 100)
@Schema(description = "委托备注(字典值)")
@ExcelProperty("委托备注(字典值)")
private String remarkDict;
/**
* 项目编码
*/
@NotBlank(message = "项目编码 不能为空")
@Length(max = 50, message = "项目编码 不能超过50 个字符")
@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码 不能为空", maxLength = 50)
@Schema(description = "项目编码")
@ExcelProperty("项目编码")
private String deptNo;
/**
* 项目ID
*/
@NotBlank(message = "项目ID 不能为空")
@Length(max = 50, message = "项目ID 不能超过50 个字符")
@ExcelAttribute(name = "项目ID", isNotEmpty = true, errorInfo = "项目ID 不能为空", maxLength = 50)
@Schema(description = "项目ID")
@ExcelProperty("项目ID")
private String deptId;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.archives.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TAutoSocialRuleInfo;
import com.yifu.cloud.plus.v1.yifu.archives.service.TAutoSocialRuleInfoService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TAutoSocialRuleInfoSearchVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 社保购买规则主表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tautosocialruleinfo")
@Tag(name = "社保购买规则主表管理")
public class TAutoSocialRuleInfoController {
private final TAutoSocialRuleInfoService tAutoSocialRuleInfoService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tAutoSocialRuleInfo 社保购买规则主表
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TAutoSocialRuleInfo>> getTAutoSocialRuleInfoPage(Page<TAutoSocialRuleInfo> page, TAutoSocialRuleInfoSearchVo tAutoSocialRuleInfo) {
return new R<>(tAutoSocialRuleInfoService.getTAutoSocialRuleInfoPage(page, tAutoSocialRuleInfo));
}
/**
* 不分页查询
*
* @param tAutoSocialRuleInfo 社保购买规则主表
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo_get')" )
public R<List<TAutoSocialRuleInfo>> getTAutoSocialRuleInfoNoPage(@RequestBody TAutoSocialRuleInfoSearchVo tAutoSocialRuleInfo) {
return R.ok(tAutoSocialRuleInfoService.noPageDiy(tAutoSocialRuleInfo));
}
/**
* 通过id查询社保购买规则主表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tautosocialruleinfo_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo_get')")
public R<TAutoSocialRuleInfo> getById(@PathVariable("id") String id) {
return R.ok(tAutoSocialRuleInfoService.getById(id));
}
/**
* 新增社保购买规则主表
*
* @param tAutoSocialRuleInfo 社保购买规则主表
* @return R
*/
@Operation(summary = "新增社保购买规则主表", description = "新增社保购买规则主表:hasPermission('archives_tautosocialruleinfo_add')")
@SysLog("新增社保购买规则主表")
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo_add')")
public R<Boolean> save(@RequestBody TAutoSocialRuleInfo tAutoSocialRuleInfo) {
return R.ok(tAutoSocialRuleInfoService.save(tAutoSocialRuleInfo));
}
/**
* 修改社保购买规则主表
*
* @param tAutoSocialRuleInfo 社保购买规则主表
* @return R
*/
@Operation(summary = "修改社保购买规则主表", description = "修改社保购买规则主表:hasPermission('archives_tautosocialruleinfo_edit')")
@SysLog("修改社保购买规则主表")
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo_edit')")
public R<Boolean> updateById(@RequestBody TAutoSocialRuleInfo tAutoSocialRuleInfo) {
return R.ok(tAutoSocialRuleInfoService.updateById(tAutoSocialRuleInfo));
}
/**
* 通过id删除社保购买规则主表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除社保购买规则主表", description = "通过id删除社保购买规则主表:hasPermission('archives_tautosocialruleinfo_del')")
@SysLog("通过id删除社保购买规则主表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tAutoSocialRuleInfoService.removeById(id));
}
/**
* 社保购买规则主表 批量导入
*
* @author fxj
* @date 2025-10-09 11:13:18
**/
@SneakyThrows
@Operation(description = "批量新增社保购买规则主表 hasPermission('archives_tautosocialruleinfo-batch-import')")
@SysLog("批量新增社保购买规则主表")
@PostMapping("/importListAdd")
@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo-batch-import')")
public R<List<ErrorMessage>> importListAdd(@RequestBody MultipartFile file) {
return tAutoSocialRuleInfoService.importDiy(file.getInputStream());
}
/**
* 社保购买规则主表 批量导出
*
* @author fxj
* @date 2025-10-09 11:13:18
**/
@Operation(description = "导出社保购买规则主表 hasPermission('archives_tautosocialruleinfo-export')")
@PostMapping("/export")
@PreAuthorize("@pms.hasPermission('archives_tautosocialruleinfo-export')")
public void export(HttpServletResponse response, @RequestBody TAutoSocialRuleInfoSearchVo searchVo) {
tAutoSocialRuleInfoService.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.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.archives.entity.TAutoSocialRuleRel;
import com.yifu.cloud.plus.v1.yifu.archives.service.TAutoSocialRuleRelService;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TAutoSocialRuleRelVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.TAutoSocialRuleRelSearchVo;
import lombok.SneakyThrows;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 社保购买规则明细表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tautosocialrulerel")
@Tag(name = "社保购买规则明细表管理")
public class TAutoSocialRuleRelController {
private final TAutoSocialRuleRelService tAutoSocialRuleRelService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tAutoSocialRuleRel 社保购买规则明细表
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TAutoSocialRuleRel>> getTAutoSocialRuleRelPage(Page<TAutoSocialRuleRel> page, TAutoSocialRuleRelSearchVo tAutoSocialRuleRel) {
return new R<>(tAutoSocialRuleRelService.getTAutoSocialRuleRelPage(page, tAutoSocialRuleRel));
}
/**
* 不分页查询
*
* @param tAutoSocialRuleRel 社保购买规则明细表
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel_get')" )
public R<List<TAutoSocialRuleRel>> getTAutoSocialRuleRelNoPage(@RequestBody TAutoSocialRuleRelSearchVo tAutoSocialRuleRel) {
return R.ok(tAutoSocialRuleRelService.noPageDiy(tAutoSocialRuleRel));
}
/**
* 通过id查询社保购买规则明细表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('archives_tautosocialrulerel_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel_get')")
public R<TAutoSocialRuleRel> getById(@PathVariable("id") String id) {
return R.ok(tAutoSocialRuleRelService.getById(id));
}
/**
* 新增社保购买规则明细表
*
* @param tAutoSocialRuleRel 社保购买规则明细表
* @return R
*/
@Operation(summary = "新增社保购买规则明细表", description = "新增社保购买规则明细表:hasPermission('archives_tautosocialrulerel_add')")
@SysLog("新增社保购买规则明细表")
@PostMapping
@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel_add')")
public R<Boolean> save(@RequestBody TAutoSocialRuleRel tAutoSocialRuleRel) {
return R.ok(tAutoSocialRuleRelService.save(tAutoSocialRuleRel));
}
/**
* 修改社保购买规则明细表
*
* @param tAutoSocialRuleRel 社保购买规则明细表
* @return R
*/
@Operation(summary = "修改社保购买规则明细表", description = "修改社保购买规则明细表:hasPermission('archives_tautosocialrulerel_edit')")
@SysLog("修改社保购买规则明细表")
@PutMapping
@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel_edit')")
public R<Boolean> updateById(@RequestBody TAutoSocialRuleRel tAutoSocialRuleRel) {
return R.ok(tAutoSocialRuleRelService.updateById(tAutoSocialRuleRel));
}
/**
* 通过id删除社保购买规则明细表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除社保购买规则明细表", description = "通过id删除社保购买规则明细表:hasPermission('archives_tautosocialrulerel_del')")
@SysLog("通过id删除社保购买规则明细表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tAutoSocialRuleRelService.removeById(id));
}
/**
* 社保购买规则明细表 批量导入
*
* @author fxj
* @date 2025-10-09 11:13:18
**/
@SneakyThrows
@Operation(description = "批量新增社保购买规则明细表 hasPermission('archives_tautosocialrulerel-batch-import')")
@SysLog("批量新增社保购买规则明细表")
@PostMapping("/importListAdd")
@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel-batch-import')")
public R<List<ErrorMessage>> importListAdd(@RequestBody MultipartFile file) {
return tAutoSocialRuleRelService.importDiy(file.getInputStream());
}
/**
* 社保购买规则明细表 批量导出
*
* @author fxj
* @date 2025-10-09 11:13:18
**/
@Operation(description = "导出社保购买规则明细表 hasPermission('archives_tautosocialrulerel-export')")
@PostMapping("/export")
@PreAuthorize("@pms.hasPermission('archives_tautosocialrulerel-export')")
public void export(HttpServletResponse response, @RequestBody TAutoSocialRuleRelSearchVo searchVo) {
tAutoSocialRuleRelService.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.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.TAutoSocialRuleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 社保购买规则主表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Mapper
public interface TAutoSocialRuleInfoMapper extends BaseMapper<TAutoSocialRuleInfo> {
/**
* 社保购买规则主表简单分页查询
*
* @param tAutoSocialRuleInfo 社保购买规则主表
* @return
*/
IPage<TAutoSocialRuleInfo> getTAutoSocialRuleInfoPage(Page<TAutoSocialRuleInfo> page, @Param("tAutoSocialRuleInfo") TAutoSocialRuleInfo tAutoSocialRuleInfo);
}
/*
* 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.TAutoSocialRuleRel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 社保购买规则明细表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
@Mapper
public interface TAutoSocialRuleRelMapper extends BaseMapper<TAutoSocialRuleRel> {
/**
* 社保购买规则明细表简单分页查询
*
* @param tAutoSocialRuleRel 社保购买规则明细表
* @return
*/
IPage<TAutoSocialRuleRel> getTAutoSocialRuleRelPage(Page<TAutoSocialRuleRel> page, @Param("tAutoSocialRuleRel") TAutoSocialRuleRel tAutoSocialRuleRel);
}
/*
* 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.TAutoSocialRuleInfo;
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.TAutoSocialRuleInfoSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 社保购买规则主表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
public interface TAutoSocialRuleInfoService extends IService<TAutoSocialRuleInfo> {
/**
* 社保购买规则主表简单分页查询
* @param tAutoSocialRuleInfo 社保购买规则主表
* @return
*/
IPage<TAutoSocialRuleInfo> getTAutoSocialRuleInfoPage(Page<TAutoSocialRuleInfo> page, TAutoSocialRuleInfoSearchVo tAutoSocialRuleInfo);
R<List<ErrorMessage>> importDiy(InputStream inputStream);
void listExport(HttpServletResponse response, TAutoSocialRuleInfoSearchVo searchVo);
List<TAutoSocialRuleInfo> noPageDiy(TAutoSocialRuleInfoSearchVo 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.TAutoSocialRuleRel;
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.TAutoSocialRuleRelSearchVo;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.List;
/**
* 社保购买规则明细表
*
* @author fxj
* @date 2025-10-09 11:13:18
*/
public interface TAutoSocialRuleRelService extends IService<TAutoSocialRuleRel> {
/**
* 社保购买规则明细表简单分页查询
* @param tAutoSocialRuleRel 社保购买规则明细表
* @return
*/
IPage<TAutoSocialRuleRel> getTAutoSocialRuleRelPage(Page<TAutoSocialRuleRel> page, TAutoSocialRuleRelSearchVo tAutoSocialRuleRel);
R<List<ErrorMessage>> importDiy(InputStream inputStream);
void listExport(HttpServletResponse response, TAutoSocialRuleRelSearchVo searchVo);
List<TAutoSocialRuleRel> noPageDiy(TAutoSocialRuleRelSearchVo searchVo);
}
<?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.TAutoSocialRuleInfoMapper">
<resultMap id="tAutoSocialRuleInfoMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TAutoSocialRuleInfo">
<id property="id" column="ID"/>
<result property="mainId" column="MAIN_ID"/>
<result property="autoFlag" column="AUTO_FLAG"/>
<result property="startPeriod" column="START_PERIOD"/>
<result property="startTime" column="START_TIME"/>
<result property="confirmPeriod" column="CONFIRM_PERIOD"/>
<result property="confirmTime" column="CONFIRM_TIME"/>
<result property="deptNo" column="DEPT_NO"/>
<result property="deptId" column="DEPT_ID"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
</resultMap>
<sql id="Base_Column_List">
a.ID,
a.MAIN_ID,
a.AUTO_FLAG,
a.START_PERIOD,
a.START_TIME,
a.CONFIRM_PERIOD,
a.CONFIRM_TIME,
a.DEPT_NO,
a.DEPT_ID,
a.CREATE_TIME,
a.UPDATE_TIME,
a.CREATE_BY,
a.UPDATE_BY,
a.CREATE_NAME,
a.UPDATE_NAME
</sql>
<sql id="tAutoSocialRuleInfo_where">
<if test="tAutoSocialRuleInfo != null">
<if test="tAutoSocialRuleInfo.id != null and tAutoSocialRuleInfo.id.trim() != ''">
AND a.ID = #{tAutoSocialRuleInfo.id}
</if>
<if test="tAutoSocialRuleInfo.mainId != null and tAutoSocialRuleInfo.mainId.trim() != ''">
AND a.MAIN_ID = #{tAutoSocialRuleInfo.mainId}
</if>
<if test="tAutoSocialRuleInfo.autoFlag != null and tAutoSocialRuleInfo.autoFlag.trim() != ''">
AND a.AUTO_FLAG = #{tAutoSocialRuleInfo.autoFlag}
</if>
<if test="tAutoSocialRuleInfo.startPeriod != null and tAutoSocialRuleInfo.startPeriod.trim() != ''">
AND a.START_PERIOD = #{tAutoSocialRuleInfo.startPeriod}
</if>
<if test="tAutoSocialRuleInfo.startTime != null and tAutoSocialRuleInfo.startTime.trim() != ''">
AND a.START_TIME = #{tAutoSocialRuleInfo.startTime}
</if>
<if test="tAutoSocialRuleInfo.confirmPeriod != null and tAutoSocialRuleInfo.confirmPeriod.trim() != ''">
AND a.CONFIRM_PERIOD = #{tAutoSocialRuleInfo.confirmPeriod}
</if>
<if test="tAutoSocialRuleInfo.confirmTime != null and tAutoSocialRuleInfo.confirmTime.trim() != ''">
AND a.CONFIRM_TIME = #{tAutoSocialRuleInfo.confirmTime}
</if>
<if test="tAutoSocialRuleInfo.deptNo != null and tAutoSocialRuleInfo.deptNo.trim() != ''">
AND a.DEPT_NO = #{tAutoSocialRuleInfo.deptNo}
</if>
<if test="tAutoSocialRuleInfo.deptId != null and tAutoSocialRuleInfo.deptId.trim() != ''">
AND a.DEPT_ID = #{tAutoSocialRuleInfo.deptId}
</if>
<if test="tAutoSocialRuleInfo.createTime != null">
AND a.CREATE_TIME = #{tAutoSocialRuleInfo.createTime}
</if>
<if test="tAutoSocialRuleInfo.updateTime != null">
AND a.UPDATE_TIME = #{tAutoSocialRuleInfo.updateTime}
</if>
<if test="tAutoSocialRuleInfo.createBy != null and tAutoSocialRuleInfo.createBy.trim() != ''">
AND a.CREATE_BY = #{tAutoSocialRuleInfo.createBy}
</if>
<if test="tAutoSocialRuleInfo.updateBy != null and tAutoSocialRuleInfo.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tAutoSocialRuleInfo.updateBy}
</if>
<if test="tAutoSocialRuleInfo.createName != null and tAutoSocialRuleInfo.createName.trim() != ''">
AND a.CREATE_NAME = #{tAutoSocialRuleInfo.createName}
</if>
<if test="tAutoSocialRuleInfo.updateName != null and tAutoSocialRuleInfo.updateName.trim() != ''">
AND a.UPDATE_NAME = #{tAutoSocialRuleInfo.updateName}
</if>
</if>
</sql>
<!--tAutoSocialRuleInfo简单分页查询-->
<select id="getTAutoSocialRuleInfoPage" resultMap="tAutoSocialRuleInfoMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_auto_social_rule_info a
<where>
1=1
<include refid="tAutoSocialRuleInfo_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.TAutoSocialRuleRelMapper">
<resultMap id="tAutoSocialRuleRelMap" type="com.yifu.cloud.plus.v1.yifu.archives.entity.TAutoSocialRuleRel">
<id property="id" column="ID"/>
<result property="mainId" column="MAIN_ID"/>
<result property="configName" column="CONFIG_NAME"/>
<result property="configHouseId" column="CONFIG_HOUSE_ID"/>
<result property="socialDateFlag" column="SOCIAL_DATE_FLAG"/>
<result property="socialDateType" column="SOCIAL_DATE_TYPE"/>
<result property="paymentType" column="PAYMENT_TYPE"/>
<result property="recordBaseType" column="RECORD_BASE_TYPE"/>
<result property="recordBase" column="RECORD_BASE"/>
<result property="remarkDict" column="REMARK_DICT"/>
<result property="deptNo" column="DEPT_NO"/>
<result property="deptId" column="DEPT_ID"/>
<result property="createBy" column="CREATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
<sql id="Base_Column_List">
a.ID,
a.MAIN_ID,
a.CONFIG_NAME,
a.CONFIG_HOUSE_ID,
a.SOCIAL_DATE_FLAG,
a.SOCIAL_DATE_TYPE,
a.PAYMENT_TYPE,
a.RECORD_BASE_TYPE,
a.RECORD_BASE,
a.REMARK_DICT,
a.DEPT_NO,
a.DEPT_ID,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_NAME,
a.UPDATE_TIME
</sql>
<sql id="tAutoSocialRuleRel_where">
<if test="tAutoSocialRuleRel != null">
<if test="tAutoSocialRuleRel.id != null and tAutoSocialRuleRel.id.trim() != ''">
AND a.ID = #{tAutoSocialRuleRel.id}
</if>
<if test="tAutoSocialRuleRel.mainId != null and tAutoSocialRuleRel.mainId.trim() != ''">
AND a.MAIN_ID = #{tAutoSocialRuleRel.mainId}
</if>
<if test="tAutoSocialRuleRel.configName != null and tAutoSocialRuleRel.configName.trim() != ''">
AND a.CONFIG_NAME = #{tAutoSocialRuleRel.configName}
</if>
<if test="tAutoSocialRuleRel.configHouseId != null and tAutoSocialRuleRel.configHouseId.trim() != ''">
AND a.CONFIG_HOUSE_ID = #{tAutoSocialRuleRel.configHouseId}
</if>
<if test="tAutoSocialRuleRel.socialDateFlag != null and tAutoSocialRuleRel.socialDateFlag.trim() != ''">
AND a.SOCIAL_DATE_FLAG = #{tAutoSocialRuleRel.socialDateFlag}
</if>
<if test="tAutoSocialRuleRel.socialDateType != null and tAutoSocialRuleRel.socialDateType.trim() != ''">
AND a.SOCIAL_DATE_TYPE = #{tAutoSocialRuleRel.socialDateType}
</if>
<if test="tAutoSocialRuleRel.paymentType != null and tAutoSocialRuleRel.paymentType.trim() != ''">
AND a.PAYMENT_TYPE = #{tAutoSocialRuleRel.paymentType}
</if>
<if test="tAutoSocialRuleRel.recordBaseType != null and tAutoSocialRuleRel.recordBaseType.trim() != ''">
AND a.RECORD_BASE_TYPE = #{tAutoSocialRuleRel.recordBaseType}
</if>
<if test="tAutoSocialRuleRel.recordBase != null and tAutoSocialRuleRel.recordBase.trim() != ''">
AND a.RECORD_BASE = #{tAutoSocialRuleRel.recordBase}
</if>
<if test="tAutoSocialRuleRel.remarkDict != null and tAutoSocialRuleRel.remarkDict.trim() != ''">
AND a.REMARK_DICT = #{tAutoSocialRuleRel.remarkDict}
</if>
<if test="tAutoSocialRuleRel.deptNo != null and tAutoSocialRuleRel.deptNo.trim() != ''">
AND a.DEPT_NO = #{tAutoSocialRuleRel.deptNo}
</if>
<if test="tAutoSocialRuleRel.deptId != null and tAutoSocialRuleRel.deptId.trim() != ''">
AND a.DEPT_ID = #{tAutoSocialRuleRel.deptId}
</if>
<if test="tAutoSocialRuleRel.createBy != null and tAutoSocialRuleRel.createBy.trim() != ''">
AND a.CREATE_BY = #{tAutoSocialRuleRel.createBy}
</if>
<if test="tAutoSocialRuleRel.createName != null and tAutoSocialRuleRel.createName.trim() != ''">
AND a.CREATE_NAME = #{tAutoSocialRuleRel.createName}
</if>
<if test="tAutoSocialRuleRel.createTime != null">
AND a.CREATE_TIME = #{tAutoSocialRuleRel.createTime}
</if>
<if test="tAutoSocialRuleRel.updateBy != null and tAutoSocialRuleRel.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tAutoSocialRuleRel.updateBy}
</if>
<if test="tAutoSocialRuleRel.updateName != null and tAutoSocialRuleRel.updateName.trim() != ''">
AND a.UPDATE_NAME = #{tAutoSocialRuleRel.updateName}
</if>
<if test="tAutoSocialRuleRel.updateTime != null">
AND a.UPDATE_TIME = #{tAutoSocialRuleRel.updateTime}
</if>
</if>
</sql>
<!--tAutoSocialRuleRel简单分页查询-->
<select id="getTAutoSocialRuleRelPage" resultMap="tAutoSocialRuleRelMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_auto_social_rule_rel a
<where>
1=1
<include refid="tAutoSocialRuleRel_where"/>
</where>
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment