Commit 09697b0e authored by hongguangwu's avatar hongguangwu

社保-基数配置-初次

parent 60002c76
......@@ -539,9 +539,10 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
// 记录变更日志
tEmployeeLogService.saveModificationRecord(CommonConstants.dingleDigitIntArray[0], canDeleteList.get(i).getId(), "", deleteOldList.get(i), canDeleteList.get(i));
}
}
errorMessageList.clear();
return R.ok();
}
}
@Override
public R<String> minusEmployee(String id, String leaveReason, String leaveRemark) {
......
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
/**
* 社保、公积金基数配置
*
* @author hgw
* @date 2022-07-11 18:13:22
*/
@Data
@TableName("sys_base_set_info")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "社保、公积金基数配置")
public class SysBaseSetInfo extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelAttribute(name = "主键")
@Schema(description = "主键")
@ExcelProperty("主键")
private String id;
/**
* 缴纳地-省(社保或公积金)
*/
@ExcelAttribute(name = "缴纳地-省(社保或公积金)")
@Schema(description = "缴纳地-省(社保或公积金)")
@ExcelProperty("缴纳地-省(社保或公积金)")
private Integer province;
/**
* 缴纳地-市(社保或公积金)
*/
@ExcelAttribute(name = "缴纳地-市(社保或公积金)")
@Schema(description = "缴纳地-市(社保或公积金)")
@ExcelProperty("缴纳地-市(社保或公积金)")
private Integer city;
/**
* 缴纳地-县(社保或公积金)
*/
@ExcelAttribute(name = "缴纳地-县(社保或公积金)")
@Schema(description = "缴纳地-县(社保或公积金)")
@ExcelProperty("缴纳地-县(社保或公积金)")
private Integer town;
/**
* 适用周期-开始时间(社保或公积金)
*/
@ExcelAttribute(name = "适用周期-开始时间(社保或公积金)")
@Schema(description = "适用周期-开始时间(社保或公积金)")
@ExcelProperty("适用周期-开始时间(社保或公积金)")
private Date applyStartDate;
/**
* 适用周期-结束时间(社保或公积金)
*/
@ExcelAttribute(name = "适用周期-结束时间(社保或公积金)")
@Schema(description = "适用周期-结束时间(社保或公积金)")
@ExcelProperty("适用周期-结束时间(社保或公积金)")
private Date applyEndDate;
/**
* 基数上限(社保或公积金)
*/
@ExcelAttribute(name = "基数上限(社保或公积金)")
@Schema(description = "基数上限(社保或公积金)")
@ExcelProperty("基数上限(社保或公积金)")
private BigDecimal upperLimit;
/**
* 基数下限(社保或公积金)
*/
@ExcelAttribute(name = "基数下限(社保或公积金)")
@Schema(description = "基数下限(社保或公积金)")
@ExcelProperty("基数下限(社保或公积金)")
private BigDecimal lowerLimit;
/**
* 补缴政策(社保或公积金)
*/
@ExcelAttribute(name = "补缴政策(社保或公积金)")
@Schema(description = "补缴政策(社保或公积金)")
@ExcelProperty("补缴政策(社保或公积金)")
private String payPolicy;
/**
* 0.社保 1.公积金
*/
@ExcelAttribute(name = "0.社保 1.公积金")
@Schema(description = "0.社保 1.公积金")
@ExcelProperty("0.社保 1.公积金")
private String baseType;
/**
* 单位养老缴纳比例
*/
@ExcelAttribute(name = "单位养老缴纳比例")
@Schema(description = "单位养老缴纳比例")
@ExcelProperty("单位养老缴纳比例")
private BigDecimal unitPersionPro;
/**
* 单位医疗缴纳比例
*/
@ExcelAttribute(name = "单位医疗缴纳比例")
@Schema(description = "单位医疗缴纳比例")
@ExcelProperty("单位医疗缴纳比例")
private BigDecimal unitMedicalPro;
/**
* 单位失业缴纳比例
*/
@ExcelAttribute(name = "单位失业缴纳比例")
@Schema(description = "单位失业缴纳比例")
@ExcelProperty("单位失业缴纳比例")
private BigDecimal unitUnemploymentPro;
/**
* 单位工伤缴纳比例
*/
@ExcelAttribute(name = "单位工伤缴纳比例")
@Schema(description = "单位工伤缴纳比例")
@ExcelProperty("单位工伤缴纳比例")
private BigDecimal unitInjuryPro;
/**
* 单位生育缴纳比例-已删除
*/
@ExcelAttribute(name = "单位生育缴纳比例-已删除")
@Schema(description = "单位生育缴纳比例-已删除")
@ExcelProperty("单位生育缴纳比例-已删除")
private BigDecimal unitBirthPro;
/**
* 单位比例合计
*/
@ExcelAttribute(name = "单位比例合计")
@Schema(description = "单位比例合计")
@ExcelProperty("单位比例合计")
private BigDecimal unitProSum;
/**
* 个人养老比例
*/
@ExcelAttribute(name = "个人养老比例")
@Schema(description = "个人养老比例")
@ExcelProperty("个人养老比例")
private BigDecimal personalPersionPro;
/**
* 个人医疗比例
*/
@ExcelAttribute(name = "个人医疗比例")
@Schema(description = "个人医疗比例")
@ExcelProperty("个人医疗比例")
private BigDecimal personalMedicalPro;
/**
* 个人失业比例
*/
@ExcelAttribute(name = "个人失业比例")
@Schema(description = "个人失业比例")
@ExcelProperty("个人失业比例")
private BigDecimal personalUnemploymentPro;
/**
* 个人比例合计
*/
@ExcelAttribute(name = "个人比例合计")
@Schema(description = "个人比例合计")
@ExcelProperty("个人比例合计")
private BigDecimal personalProSum;
/**
* 是否大病: 1.是 2.否
*/
@ExcelAttribute(name = "是否大病: 1.是 2.否")
@Schema(description = "是否大病: 1.是 2.否")
@ExcelProperty("是否大病: 1.是 2.否")
private String isIllness;
/**
* 收费模式:新员工入职是否收费 1.是 2.否
*/
@ExcelAttribute(name = "收费模式:新员工入职是否收费 1.是 2.否")
@Schema(description = "收费模式:新员工入职是否收费 1.是 2.否")
@ExcelProperty("收费模式:新员工入职是否收费 1.是 2.否")
private String isChargePersonal;
/**
* 单位大病金额(元/人)--按定值
*/
@ExcelAttribute(name = "单位大病金额(元/人)--按定值")
@Schema(description = "单位大病金额(元/人)--按定值")
@ExcelProperty("单位大病金额(元/人)--按定值")
private BigDecimal chargeCompany;
/**
* 个人大病金额(元/人)--按定值
*/
@ExcelAttribute(name = "个人大病金额(元/人)--按定值")
@Schema(description = "个人大病金额(元/人)--按定值")
@ExcelProperty("个人大病金额(元/人)--按定值")
private BigDecimal chargePersonal;
/**
* 大病缴纳周期:收取方式 1.年 2.月
*/
@ExcelAttribute(name = "大病缴纳周期:收取方式 1.年 2.月")
@Schema(description = "大病缴纳周期:收取方式 1.年 2.月")
@ExcelProperty("大病缴纳周期:收取方式 1.年 2.月")
private String collectType;
/**
* 大病单位缴纳金额--按比例
*/
@ExcelAttribute(name = "大病单位缴纳金额--按比例")
@Schema(description = "大病单位缴纳金额--按比例")
@ExcelProperty("大病单位缴纳金额--按比例")
private BigDecimal payCompany;
/**
* 单位大病比例
*/
@ExcelAttribute(name = "单位大病比例")
@Schema(description = "单位大病比例")
@ExcelProperty("单位大病比例")
private BigDecimal payCompanyPro;
/**
* 大病个人缴纳金额--按比例
*/
@ExcelAttribute(name = "大病个人缴纳金额--按比例")
@Schema(description = "大病个人缴纳金额--按比例")
@ExcelProperty("大病个人缴纳金额--按比例")
private BigDecimal payPersonal;
/**
* 个人大病比例
*/
@ExcelAttribute(name = "个人大病比例")
@Schema(description = "个人大病比例")
@ExcelProperty("个人大病比例")
private BigDecimal payPersonalPro;
/**
* 缴纳月份:周期为年--收取月份 1到12月份
*/
@ExcelAttribute(name = "缴纳月份:周期为年--收取月份 1到12月份")
@Schema(description = "缴纳月份:周期为年--收取月份 1到12月份")
@ExcelProperty("缴纳月份:周期为年--收取月份 1到12月份")
private Integer collectMoth;
/**
* 单边缴费额度下--公积金
*/
@ExcelAttribute(name = "单边缴费额度下--公积金")
@Schema(description = "单边缴费额度下--公积金")
@ExcelProperty("单边缴费额度下--公积金")
private BigDecimal fundPayLowerLimit;
/**
* 单边缴费额度上限--公积金
*/
@ExcelAttribute(name = "单边缴费额度上限--公积金")
@Schema(description = "单边缴费额度上限--公积金")
@ExcelProperty("单边缴费额度上限--公积金")
private BigDecimal fundPayUpperLimit;
/**
* 单边小数点:公积金
*/
@ExcelAttribute(name = "单边小数点:公积金")
@Schema(description = "单边小数点:公积金")
@ExcelProperty("单边小数点:公积金")
private Integer fundPayPoint;
/**
* 公积金类型 1.市直 2. 省直
*/
@ExcelAttribute(name = "公积金类型 1.市直 2. 省直")
@Schema(description = "公积金类型 1.市直 2. 省直")
@ExcelProperty("公积金类型 1.市直 2. 省直")
private Integer fundPayType;
/**
* 单位公积金比例
*/
@ExcelAttribute(name = "单位公积金比例")
@Schema(description = "单位公积金比例")
@ExcelProperty("单位公积金比例")
private BigDecimal housingFundCompamyPro;
/**
* 个人公积金比例
*/
@ExcelAttribute(name = "个人公积金比例")
@Schema(description = "个人公积金比例")
@ExcelProperty("个人公积金比例")
private BigDecimal housingFundPersonalPro;
/**
* 部门关联ID
*/
@ExcelAttribute(name = "部门关联ID")
@Schema(description = "部门关联ID")
@ExcelProperty("部门关联ID")
private String departId;
/**
* 0.在用1.终止2过期
*/
@ExcelAttribute(name = "0.在用1.终止2过期")
@Schema(description = "0.在用1.终止2过期")
@ExcelProperty("0.在用1.终止2过期")
private Integer status;
/**
* 缴纳方式:周期为月--取值方式 0.按定值1比例
*/
@ExcelAttribute(name = "缴纳方式:周期为月--取值方式 0.按定值1比例")
@Schema(description = "缴纳方式:周期为月--取值方式 0.按定值1比例")
@ExcelProperty("缴纳方式:周期为月--取值方式 0.按定值1比例")
private String valueType;
/**
* 是否可以补缴: 0:是,1:否
*/
@ExcelAttribute(name = "是否可以补缴: 0:是,1:否")
@Schema(description = "是否可以补缴: 0:是,1:否")
@ExcelProperty("是否可以补缴: 0:是,1:否")
private String canOverpay;
/**
* 最大补缴期限
*/
@ExcelAttribute(name = "最大补缴期限")
@Schema(description = "最大补缴期限")
@ExcelProperty("最大补缴期限")
private Integer overpayNumber;
/**
* 是否含起缴当月: 0:是,1:否
*/
@ExcelAttribute(name = "是否含起缴当月: 0:是,1:否")
@Schema(description = "是否含起缴当月: 0:是,1:否")
@ExcelProperty("是否含起缴当月: 0:是,1:否")
private String haveThisMonth;
/**
* 补缴险种-是否能补缴养老0是1否
*/
@ExcelAttribute(name = "补缴险种-是否能补缴养老0是1否")
@Schema(description = "补缴险种-是否能补缴养老0是1否")
@ExcelProperty("补缴险种-是否能补缴养老0是1否")
private String insurancePension;
/**
* 补缴险种-是否能补缴医疗0是1否
*/
@ExcelAttribute(name = "补缴险种-是否能补缴医疗0是1否")
@Schema(description = "补缴险种-是否能补缴医疗0是1否")
@ExcelProperty("补缴险种-是否能补缴医疗0是1否")
private String insuranceMedical;
/**
* 补缴险种-是否能补缴失业0是1否
*/
@ExcelAttribute(name = "补缴险种-是否能补缴失业0是1否")
@Schema(description = "补缴险种-是否能补缴失业0是1否")
@ExcelProperty("补缴险种-是否能补缴失业0是1否")
private String insuranceUnemployment;
/**
* 补缴险种-是否能补缴工伤0是1否
*/
@ExcelAttribute(name = "补缴险种-是否能补缴工伤0是1否")
@Schema(description = "补缴险种-是否能补缴工伤0是1否")
@ExcelProperty("补缴险种-是否能补缴工伤0是1否")
private String insuranceInjury;
/**
* 补缴险种-是否能补缴生育0是1否
*/
@ExcelAttribute(name = "补缴险种-是否能补缴生育0是1否")
@Schema(description = "补缴险种-是否能补缴生育0是1否")
@ExcelProperty("补缴险种-是否能补缴生育0是1否")
private String insuranceBirth;
/**
* 补缴险种-是否能补缴大病0是1否
*/
@ExcelAttribute(name = "补缴险种-是否能补缴大病0是1否")
@Schema(description = "补缴险种-是否能补缴大病0是1否")
@ExcelProperty("补缴险种-是否能补缴大病0是1否")
private String insuranceBigailment;
/**
* 补缴险种-补缴是否采用最新基数0是1否
*/
@ExcelAttribute(name = "补缴险种-补缴是否采用最新基数0是1否")
@Schema(description = "补缴险种-补缴是否采用最新基数0是1否")
@ExcelProperty("补缴险种-补缴是否采用最新基数0是1否")
private String insuranceIsLatestCardinality;
/**
* 删除标志0正常1删除
*/
@ExcelAttribute(name = "删除标志0正常1删除")
@Schema(description = "删除标志0正常1删除")
@ExcelProperty("删除标志0正常1删除")
private String deleteFlag;
/**
* 社保户名称
*/
@ExcelAttribute(name = "社保户名称")
@Schema(description = "社保户名称")
@ExcelProperty("社保户名称")
private String departName;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.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;
/**
* 公积金政策对应的缴费比例表
*
* @author hgw
* @date 2022-07-11 18:13:22
*/
@Data
@TableName("sys_pay_proportion")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "公积金政策对应的缴费比例表")
public class SysPayProportion extends BaseEntity {
/**
* id
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelAttribute(name = "id" )
@Schema(description ="id")
@ExcelProperty("id")
private String id;
/**
* 住房公积金公司缴纳比例
*/
@ExcelAttribute(name = "住房公积金公司缴纳比例" )
@Schema(description ="住房公积金公司缴纳比例")
@ExcelProperty("住房公积金公司缴纳比例")
private Double companyPro;
/**
* 公积金住房个人缴纳比例
*/
@ExcelAttribute(name = "公积金住房个人缴纳比例" )
@Schema(description ="公积金住房个人缴纳比例")
@ExcelProperty("公积金住房个人缴纳比例")
private Double personalPro;
/**
* 关联公积金政策基数设置表ID
*/
@ExcelAttribute(name = "关联公积金政策基数设置表ID" )
@Schema(description ="关联公积金政策基数设置表ID")
@ExcelProperty("关联公积金政策基数设置表ID")
private String sysBaseSetId;
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.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;
/**
* 社保变更记录表
*
* @author hgw
* @date 2022-07-11 18:13:21
*/
@Data
@TableName("t_social_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "社保变更记录表")
public class TSocialLog extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelAttribute(name = "主键")
@Schema(description = "主键")
@ExcelProperty("主键")
private String id;
/**
* 类型:1社保基数配置;2公积金基数配置
*/
@ExcelAttribute(name = "类型:1社保基数配置;2公积金基数配置")
@Schema(description = "类型:1社保基数配置;2公积金基数配置")
@ExcelProperty("类型:1社保基数配置;2公积金基数配置")
private Integer type;
/**
* 主表id
*/
@ExcelAttribute(name = "主表id")
@Schema(description = "主表id")
@ExcelProperty("主表id")
private String mainId;
/**
* 原来的信息
*/
@ExcelAttribute(name = "原来的信息")
@Schema(description = "原来的信息")
@ExcelProperty("原来的信息")
private String oldInfo;
/**
* 新的信息
*/
@ExcelAttribute(name = "新的信息")
@Schema(description = "新的信息")
@ExcelProperty("新的信息")
private String newInfo;
/**
* 差异的信息(属性名称,逗号隔开)
*/
@ExcelAttribute(name = "差异的信息(属性名称,逗号隔开)")
@Schema(description = "差异的信息(属性名称,逗号隔开)")
@ExcelProperty("差异的信息(属性名称,逗号隔开)")
private String differenceInfo;
}
......@@ -27,6 +27,11 @@
<groupId>com.yifu.cloud.plus.v1</groupId>
<artifactId>yifu-common-seata</artifactId>
</dependency>
<dependency>
<groupId>com.yifu.cloud.plus.v1</groupId>
<artifactId>yifu-social-api</artifactId>
<version>1.0.0</version>
</dependency>
<!--必备: 依赖api模块-->
<dependency>
<groupId>com.yifu.cloud.plus.v1</groupId>
......
package com.yifu.cloud.plus.v1.yifu.demo.controller;
\ No newline at end of file
package com.yifu.cloud.plus.v1.yifu.demo.service;
\ No newline at end of file
package com.yifu.cloud.plus.v1.yifu.demo;
package com.yifu.cloud.plus.v1.yifu.social;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.EnableYifuResourceServer;
import org.springframework.boot.SpringApplication;
......
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo;
import com.yifu.cloud.plus.v1.yifu.social.service.SysBaseSetInfoService;
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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 基数设置表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/sysbasesetinfo")
@Tag(name = "基数设置表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class SysBaseSetInfoController {
private final SysBaseSetInfoService sysBaseSetInfoService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param sysBaseSetInfo 基数设置表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page")
public R<IPage<SysBaseSetInfo>> getSysBaseSetInfoPage(Page<SysBaseSetInfo> page, SysBaseSetInfo sysBaseSetInfo) {
return new R<>(sysBaseSetInfoService.getSysBaseSetInfoPage(page, sysBaseSetInfo));
}
/**
* 不分页查询
*
* @param sysBaseSetInfo 基数设置表
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('social_sysbasesetinfo_get')" )
public R<List<SysBaseSetInfo>> getSysBaseSetInfoNoPage(@RequestBody SysBaseSetInfo sysBaseSetInfo) {
return R.ok(sysBaseSetInfoService.list(Wrappers.query(sysBaseSetInfo).orderByDesc(CommonConstants.CREATE_TIME)));
}
/**
* 通过id查询基数设置表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('social_sysbasesetinfo_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_sysbasesetinfo_get')")
public R<SysBaseSetInfo> getById(@PathVariable("id") String id) {
return R.ok(sysBaseSetInfoService.getById(id));
}
/**
* 新增基数设置表
*
* @param sysBaseSetInfo 基数设置表
* @return R
*/
@Operation(summary = "新增基数设置表", description = "新增基数设置表:hasPermission('social_sysbasesetinfo_add')")
@SysLog("新增基数设置表")
@PostMapping
@PreAuthorize("@pms.hasPermission('social_sysbasesetinfo_add')")
public R<Boolean> save(@RequestBody SysBaseSetInfo sysBaseSetInfo) {
return R.ok(sysBaseSetInfoService.save(sysBaseSetInfo));
}
/**
* 修改基数设置表
*
* @param sysBaseSetInfo 基数设置表
* @return R
*/
@Operation(summary = "修改基数设置表", description = "修改基数设置表:hasPermission('social_sysbasesetinfo_edit')")
@SysLog("修改基数设置表")
@PutMapping
@PreAuthorize("@pms.hasPermission('social_sysbasesetinfo_edit')")
public R<Boolean> updateById(@RequestBody SysBaseSetInfo sysBaseSetInfo) {
return R.ok(sysBaseSetInfoService.updateById(sysBaseSetInfo));
}
/**
* 通过id删除基数设置表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除基数设置表", description = "通过id删除基数设置表:hasPermission('social_sysbasesetinfo_del')")
@SysLog("通过id删除基数设置表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_sysbasesetinfo_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(sysBaseSetInfoService.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.social.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.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion;
import com.yifu.cloud.plus.v1.yifu.social.service.SysPayProportionService;
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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 公积金政策对应的缴费比例表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/syspayproportion")
@Tag(name = "公积金政策对应的缴费比例表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class SysPayProportionController {
private final SysPayProportionService sysPayProportionService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page")
public R<IPage<SysPayProportion>> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion) {
return new R<>(sysPayProportionService.getSysPayProportionPage(page, sysPayProportion));
}
/**
* 不分页查询
*
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('social_syspayproportion_get')" )
public R<List<SysPayProportion>> getSysPayProportionNoPage(@RequestBody SysPayProportion sysPayProportion) {
return R.ok(sysPayProportionService.list(Wrappers.query(sysPayProportion).orderByDesc(CommonConstants.CREATE_TIME)));
}
/**
* 通过id查询公积金政策对应的缴费比例表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('social_syspayproportion_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_syspayproportion_get')")
public R<SysPayProportion> getById(@PathVariable("id") String id) {
return R.ok(sysPayProportionService.getById(id));
}
/**
* 新增公积金政策对应的缴费比例表
*
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return R
*/
@Operation(summary = "新增公积金政策对应的缴费比例表", description = "新增公积金政策对应的缴费比例表:hasPermission('social_syspayproportion_add')")
@SysLog("新增公积金政策对应的缴费比例表")
@PostMapping
@PreAuthorize("@pms.hasPermission('social_syspayproportion_add')")
public R<Boolean> save(@RequestBody SysPayProportion sysPayProportion) {
return R.ok(sysPayProportionService.save(sysPayProportion));
}
/**
* 修改公积金政策对应的缴费比例表
*
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return R
*/
@Operation(summary = "修改公积金政策对应的缴费比例表", description = "修改公积金政策对应的缴费比例表:hasPermission('social_syspayproportion_edit')")
@SysLog("修改公积金政策对应的缴费比例表")
@PutMapping
@PreAuthorize("@pms.hasPermission('social_syspayproportion_edit')")
public R<Boolean> updateById(@RequestBody SysPayProportion sysPayProportion) {
return R.ok(sysPayProportionService.updateById(sysPayProportion));
}
/**
* 通过id删除公积金政策对应的缴费比例表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除公积金政策对应的缴费比例表", description = "通过id删除公积金政策对应的缴费比例表:hasPermission('social_syspayproportion_del')")
@SysLog("通过id删除公积金政策对应的缴费比例表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_syspayproportion_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(sysPayProportionService.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.social.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.constant.CommonConstants;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialLog;
import com.yifu.cloud.plus.v1.yifu.social.service.TSocialLogService;
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.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 社保变更记录表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tsociallog")
@Tag(name = "社保变更记录表管理")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class TSocialLogController {
private final TSocialLogService tSocialLogService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tSocialLog 社保变更记录表
* @return
*/
@Operation(summary = "分页查询", description = "分页查询")
@GetMapping("/page")
public R<IPage<TSocialLog>> getTSocialLogPage(Page<TSocialLog> page, TSocialLog tSocialLog) {
return new R<>(tSocialLogService.getTSocialLogPage(page, tSocialLog));
}
/**
* 不分页查询
*
* @param tSocialLog 社保变更记录表
* @return
*/
@Operation(summary = "不分页查询", description = "不分页查询")
@PostMapping("/noPage")
//@PreAuthorize("@pms.hasPermission('social_tsociallog_get')" )
public R<List<TSocialLog>> getTSocialLogNoPage(@RequestBody TSocialLog tSocialLog) {
return R.ok(tSocialLogService.list(Wrappers.query(tSocialLog).orderByDesc(CommonConstants.CREATE_TIME)));
}
/**
* 通过id查询社保变更记录表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id查询", description = "通过id查询:hasPermission('social_tsociallog_get')")
@GetMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_tsociallog_get')")
public R<TSocialLog> getById(@PathVariable("id") String id) {
return R.ok(tSocialLogService.getById(id));
}
/**
* 新增社保变更记录表
*
* @param tSocialLog 社保变更记录表
* @return R
*/
@Operation(summary = "新增社保变更记录表", description = "新增社保变更记录表:hasPermission('social_tsociallog_add')")
@SysLog("新增社保变更记录表")
@PostMapping
@PreAuthorize("@pms.hasPermission('social_tsociallog_add')")
public R<Boolean> save(@RequestBody TSocialLog tSocialLog) {
return R.ok(tSocialLogService.save(tSocialLog));
}
/**
* 修改社保变更记录表
*
* @param tSocialLog 社保变更记录表
* @return R
*/
@Operation(summary = "修改社保变更记录表", description = "修改社保变更记录表:hasPermission('social_tsociallog_edit')")
@SysLog("修改社保变更记录表")
@PutMapping
@PreAuthorize("@pms.hasPermission('social_tsociallog_edit')")
public R<Boolean> updateById(@RequestBody TSocialLog tSocialLog) {
return R.ok(tSocialLogService.updateById(tSocialLog));
}
/**
* 通过id删除社保变更记录表
*
* @param id id
* @return R
*/
@Operation(summary = "通过id删除社保变更记录表", description = "通过id删除社保变更记录表:hasPermission('social_tsociallog_del')")
@SysLog("通过id删除社保变更记录表")
@DeleteMapping("/{id}")
@PreAuthorize("@pms.hasPermission('social_tsociallog_del')")
public R<Boolean> removeById(@PathVariable String id) {
return R.ok(tSocialLogService.removeById(id));
}
}
package com.yifu.cloud.plus.v1.yifu.social.controller;
\ No newline at end of file
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 基数设置表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@Mapper
public interface SysBaseSetInfoMapper extends BaseMapper<SysBaseSetInfo> {
/**
* 基数设置表简单分页查询
*
* @param sysBaseSetInfo 基数设置表
* @return
*/
IPage<SysBaseSetInfo> getSysBaseSetInfoPage(Page<SysBaseSetInfo> page, @Param("sysBaseSetInfo") SysBaseSetInfo sysBaseSetInfo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 公积金政策对应的缴费比例表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@Mapper
public interface SysPayProportionMapper extends BaseMapper<SysPayProportion> {
/**
* 公积金政策对应的缴费比例表简单分页查询
*
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return
*/
IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, @Param("sysPayProportion") SysPayProportion sysPayProportion);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 社保变更记录表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@Mapper
public interface TSocialLogMapper extends BaseMapper<TSocialLog> {
/**
* 社保变更记录表简单分页查询
*
* @param tSocialLog 社保变更记录表
* @return
*/
IPage<TSocialLog> getTSocialLogPage(Page<TSocialLog> page, @Param("tSocialLog") TSocialLog tSocialLog);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo;
/**
* 基数设置表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
public interface SysBaseSetInfoService extends IService<SysBaseSetInfo> {
/**
* 基数设置表简单分页查询
*
* @param sysBaseSetInfo 基数设置表
* @return
*/
IPage<SysBaseSetInfo> getSysBaseSetInfoPage(Page<SysBaseSetInfo> page, SysBaseSetInfo sysBaseSetInfo);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion;
/**
* 公积金政策对应的缴费比例表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
public interface SysPayProportionService extends IService<SysPayProportion> {
/**
* 公积金政策对应的缴费比例表简单分页查询
*
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return
*/
IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialLog;
/**
* 社保变更记录表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
public interface TSocialLogService extends IService<TSocialLog> {
/**
* 社保变更记录表简单分页查询
*
* @param tSocialLog 社保变更记录表
* @return
*/
IPage<TSocialLog> getTSocialLogPage(Page<TSocialLog> page, TSocialLog tSocialLog);
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo;
import com.yifu.cloud.plus.v1.yifu.social.mapper.SysBaseSetInfoMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.SysBaseSetInfoService;
import org.springframework.stereotype.Service;
/**
* 基数设置表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@Service
public class SysBaseSetInfoServiceImpl extends ServiceImpl<SysBaseSetInfoMapper, SysBaseSetInfo> implements SysBaseSetInfoService {
/**
* 基数设置表简单分页查询
*
* @param sysBaseSetInfo 基数设置表
* @return
*/
@Override
public IPage<SysBaseSetInfo> getSysBaseSetInfoPage(Page<SysBaseSetInfo> page, SysBaseSetInfo sysBaseSetInfo) {
return baseMapper.getSysBaseSetInfoPage(page, sysBaseSetInfo);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion;
import com.yifu.cloud.plus.v1.yifu.social.mapper.SysPayProportionMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.SysPayProportionService;
import org.springframework.stereotype.Service;
/**
* 公积金政策对应的缴费比例表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@Service
public class SysPayProportionServiceImpl extends ServiceImpl<SysPayProportionMapper, SysPayProportion> implements SysPayProportionService {
/**
* 公积金政策对应的缴费比例表简单分页查询
*
* @param sysPayProportion 公积金政策对应的缴费比例表
* @return
*/
@Override
public IPage<SysPayProportion> getSysPayProportionPage(Page<SysPayProportion> page, SysPayProportion sysPayProportion) {
return baseMapper.getSysPayProportionPage(page, sysPayProportion);
}
}
/*
* Copyright (c) 2018-2025, lengleng All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the yifu4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
package com.yifu.cloud.plus.v1.yifu.social.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.social.entity.TSocialLog;
import com.yifu.cloud.plus.v1.yifu.social.mapper.TSocialLogMapper;
import com.yifu.cloud.plus.v1.yifu.social.service.TSocialLogService;
import org.springframework.stereotype.Service;
/**
* 社保变更记录表
*
* @author hgw
* @date 2022-07-11 18:21:23
*/
@Service
public class TSocialLogServiceImpl extends ServiceImpl<TSocialLogMapper, TSocialLog> implements TSocialLogService {
/**
* 社保变更记录表简单分页查询
*
* @param tSocialLog 社保变更记录表
* @return
*/
@Override
public IPage<TSocialLog> getTSocialLogPage(Page<TSocialLog> page, TSocialLog tSocialLog) {
return baseMapper.getTSocialLogPage(page, tSocialLog);
}
}
package com.yifu.cloud.plus.v1.yifu.social.service;
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.social.mapper.SysBaseSetInfoMapper">
<resultMap id="sysBaseSetInfoMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.SysBaseSetInfo">
<id property="id" column="ID"/>
<result property="province" column="PROVINCE"/>
<result property="city" column="CITY"/>
<result property="town" column="TOWN"/>
<result property="applyStartDate" column="APPLY_START_DATE"/>
<result property="applyEndDate" column="APPLY_END_DATE"/>
<result property="upperLimit" column="UPPER_LIMIT"/>
<result property="lowerLimit" column="LOWER_LIMIT"/>
<result property="payPolicy" column="PAY_POLICY"/>
<result property="baseType" column="BASE_TYPE"/>
<result property="unitPersionPro" column="UNIT_PERSION_PRO"/>
<result property="unitMedicalPro" column="UNIT_MEDICAL_PRO"/>
<result property="unitUnemploymentPro" column="UNIT_UNEMPLOYMENT_PRO"/>
<result property="unitInjuryPro" column="UNIT_INJURY_PRO"/>
<result property="unitBirthPro" column="UNIT_BIRTH_PRO"/>
<result property="unitProSum" column="UNIT_PRO_SUM"/>
<result property="personalPersionPro" column="PERSONAL_PERSION_PRO"/>
<result property="personalMedicalPro" column="PERSONAL_MEDICAL_PRO"/>
<result property="personalUnemploymentPro" column="PERSONAL_UNEMPLOYMENT_PRO"/>
<result property="personalProSum" column="PERSONAL_PRO_SUM"/>
<result property="isIllness" column="IS_ILLNESS"/>
<result property="isChargePersonal" column="IS_CHARGE_PERSONAL"/>
<result property="chargeCompany" column="CHARGE_COMPANY"/>
<result property="chargePersonal" column="CHARGE_PERSONAL"/>
<result property="collectType" column="COLLECT_TYPE"/>
<result property="payCompany" column="PAY_COMPANY"/>
<result property="payCompanyPro" column="PAY_COMPANY_PRO"/>
<result property="payPersonal" column="PAY_PERSONAL"/>
<result property="payPersonalPro" column="PAY_PERSONAL_PRO"/>
<result property="collectMoth" column="COLLECT_MOTH"/>
<result property="fundPayLowerLimit" column="FUND_PAY_LOWER_LIMIT"/>
<result property="fundPayUpperLimit" column="FUND_PAY_UPPER_LIMIT"/>
<result property="fundPayPoint" column="FUND_PAY_POINT"/>
<result property="fundPayType" column="FUND_PAY_TYPE"/>
<result property="housingFundCompamyPro" column="HOUSING_FUND_COMPAMY_PRO"/>
<result property="housingFundPersonalPro" column="HOUSING_FUND_PERSONAL_PRO"/>
<result property="departId" column="DEPART_ID"/>
<result property="status" column="STATUS"/>
<result property="valueType" column="VALUE_TYPE"/>
<result property="canOverpay" column="CAN_OVERPAY"/>
<result property="overpayNumber" column="OVERPAY_NUMBER"/>
<result property="haveThisMonth" column="HAVE_THIS_MONTH"/>
<result property="insurancePension" column="INSURANCE_PENSION"/>
<result property="insuranceMedical" column="INSURANCE_MEDICAL"/>
<result property="insuranceUnemployment" column="INSURANCE_UNEMPLOYMENT"/>
<result property="insuranceInjury" column="INSURANCE_INJURY"/>
<result property="insuranceBirth" column="INSURANCE_BIRTH"/>
<result property="insuranceBigailment" column="INSURANCE_BIGAILMENT"/>
<result property="insuranceIsLatestCardinality" column="INSURANCE_IS_LATEST_CARDINALITY"/>
<result property="deleteFlag" column="DELETE_FLAG"/>
<result property="departName" column="DEPART_NAME"/>
<result property="createBy" column="CREATE_BY"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateTime" column="UPDATE_TIME"/>
</resultMap>
<sql id="Base_Column_List">
a
.
ID
,
a.PROVINCE,
a.CITY,
a.TOWN,
a.APPLY_START_DATE,
a.APPLY_END_DATE,
a.UPPER_LIMIT,
a.LOWER_LIMIT,
a.PAY_POLICY,
a.BASE_TYPE,
a.UNIT_PERSION_PRO,
a.UNIT_MEDICAL_PRO,
a.UNIT_UNEMPLOYMENT_PRO,
a.UNIT_INJURY_PRO,
a.UNIT_BIRTH_PRO,
a.UNIT_PRO_SUM,
a.PERSONAL_PERSION_PRO,
a.PERSONAL_MEDICAL_PRO,
a.PERSONAL_UNEMPLOYMENT_PRO,
a.PERSONAL_PRO_SUM,
a.IS_ILLNESS,
a.IS_CHARGE_PERSONAL,
a.CHARGE_COMPANY,
a.CHARGE_PERSONAL,
a.COLLECT_TYPE,
a.PAY_COMPANY,
a.PAY_COMPANY_PRO,
a.PAY_PERSONAL,
a.PAY_PERSONAL_PRO,
a.COLLECT_MOTH,
a.FUND_PAY_LOWER_LIMIT,
a.FUND_PAY_UPPER_LIMIT,
a.FUND_PAY_POINT,
a.FUND_PAY_TYPE,
a.HOUSING_FUND_COMPAMY_PRO,
a.HOUSING_FUND_PERSONAL_PRO,
a.DEPART_ID,
a.STATUS,
a.VALUE_TYPE,
a.CAN_OVERPAY,
a.OVERPAY_NUMBER,
a.HAVE_THIS_MONTH,
a.INSURANCE_PENSION,
a.INSURANCE_MEDICAL,
a.INSURANCE_UNEMPLOYMENT,
a.INSURANCE_INJURY,
a.INSURANCE_BIRTH,
a.INSURANCE_BIGAILMENT,
a.INSURANCE_IS_LATEST_CARDINALITY,
a.DELETE_FLAG,
a.DEPART_NAME,
a.CREATE_BY,
a.UPDATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_TIME
</sql>
<sql id="sysBaseSetInfo_where">
<if test="sysBaseSetInfo != null">
<if test="sysBaseSetInfo.id != null and sysBaseSetInfo.id.trim() != ''">
AND a.ID = #{sysBaseSetInfo.id}
</if>
<if test="sysBaseSetInfo.province != null">
AND a.PROVINCE = #{sysBaseSetInfo.province}
</if>
<if test="sysBaseSetInfo.city != null">
AND a.CITY = #{sysBaseSetInfo.city}
</if>
<if test="sysBaseSetInfo.town != null">
AND a.TOWN = #{sysBaseSetInfo.town}
</if>
<if test="sysBaseSetInfo.applyStartDate != null">
AND a.APPLY_START_DATE = #{sysBaseSetInfo.applyStartDate}
</if>
<if test="sysBaseSetInfo.applyEndDate != null">
AND a.APPLY_END_DATE = #{sysBaseSetInfo.applyEndDate}
</if>
<if test="sysBaseSetInfo.upperLimit != null">
AND a.UPPER_LIMIT = #{sysBaseSetInfo.upperLimit}
</if>
<if test="sysBaseSetInfo.lowerLimit != null">
AND a.LOWER_LIMIT = #{sysBaseSetInfo.lowerLimit}
</if>
<if test="sysBaseSetInfo.payPolicy != null and sysBaseSetInfo.payPolicy.trim() != ''">
AND a.PAY_POLICY = #{sysBaseSetInfo.payPolicy}
</if>
<if test="sysBaseSetInfo.baseType != null and sysBaseSetInfo.baseType.trim() != ''">
AND a.BASE_TYPE = #{sysBaseSetInfo.baseType}
</if>
<if test="sysBaseSetInfo.unitPersionPro != null">
AND a.UNIT_PERSION_PRO = #{sysBaseSetInfo.unitPersionPro}
</if>
<if test="sysBaseSetInfo.unitMedicalPro != null">
AND a.UNIT_MEDICAL_PRO = #{sysBaseSetInfo.unitMedicalPro}
</if>
<if test="sysBaseSetInfo.unitUnemploymentPro != null">
AND a.UNIT_UNEMPLOYMENT_PRO = #{sysBaseSetInfo.unitUnemploymentPro}
</if>
<if test="sysBaseSetInfo.unitInjuryPro != null">
AND a.UNIT_INJURY_PRO = #{sysBaseSetInfo.unitInjuryPro}
</if>
<if test="sysBaseSetInfo.unitBirthPro != null">
AND a.UNIT_BIRTH_PRO = #{sysBaseSetInfo.unitBirthPro}
</if>
<if test="sysBaseSetInfo.unitProSum != null">
AND a.UNIT_PRO_SUM = #{sysBaseSetInfo.unitProSum}
</if>
<if test="sysBaseSetInfo.personalPersionPro != null">
AND a.PERSONAL_PERSION_PRO = #{sysBaseSetInfo.personalPersionPro}
</if>
<if test="sysBaseSetInfo.personalMedicalPro != null">
AND a.PERSONAL_MEDICAL_PRO = #{sysBaseSetInfo.personalMedicalPro}
</if>
<if test="sysBaseSetInfo.personalUnemploymentPro != null">
AND a.PERSONAL_UNEMPLOYMENT_PRO = #{sysBaseSetInfo.personalUnemploymentPro}
</if>
<if test="sysBaseSetInfo.personalProSum != null">
AND a.PERSONAL_PRO_SUM = #{sysBaseSetInfo.personalProSum}
</if>
<if test="sysBaseSetInfo.isIllness != null and sysBaseSetInfo.isIllness.trim() != ''">
AND a.IS_ILLNESS = #{sysBaseSetInfo.isIllness}
</if>
<if test="sysBaseSetInfo.isChargePersonal != null and sysBaseSetInfo.isChargePersonal.trim() != ''">
AND a.IS_CHARGE_PERSONAL = #{sysBaseSetInfo.isChargePersonal}
</if>
<if test="sysBaseSetInfo.chargeCompany != null">
AND a.CHARGE_COMPANY = #{sysBaseSetInfo.chargeCompany}
</if>
<if test="sysBaseSetInfo.chargePersonal != null">
AND a.CHARGE_PERSONAL = #{sysBaseSetInfo.chargePersonal}
</if>
<if test="sysBaseSetInfo.collectType != null and sysBaseSetInfo.collectType.trim() != ''">
AND a.COLLECT_TYPE = #{sysBaseSetInfo.collectType}
</if>
<if test="sysBaseSetInfo.payCompany != null">
AND a.PAY_COMPANY = #{sysBaseSetInfo.payCompany}
</if>
<if test="sysBaseSetInfo.payCompanyPro != null">
AND a.PAY_COMPANY_PRO = #{sysBaseSetInfo.payCompanyPro}
</if>
<if test="sysBaseSetInfo.payPersonal != null">
AND a.PAY_PERSONAL = #{sysBaseSetInfo.payPersonal}
</if>
<if test="sysBaseSetInfo.payPersonalPro != null">
AND a.PAY_PERSONAL_PRO = #{sysBaseSetInfo.payPersonalPro}
</if>
<if test="sysBaseSetInfo.collectMoth != null">
AND a.COLLECT_MOTH = #{sysBaseSetInfo.collectMoth}
</if>
<if test="sysBaseSetInfo.fundPayLowerLimit != null">
AND a.FUND_PAY_LOWER_LIMIT = #{sysBaseSetInfo.fundPayLowerLimit}
</if>
<if test="sysBaseSetInfo.fundPayUpperLimit != null">
AND a.FUND_PAY_UPPER_LIMIT = #{sysBaseSetInfo.fundPayUpperLimit}
</if>
<if test="sysBaseSetInfo.fundPayPoint != null">
AND a.FUND_PAY_POINT = #{sysBaseSetInfo.fundPayPoint}
</if>
<if test="sysBaseSetInfo.fundPayType != null">
AND a.FUND_PAY_TYPE = #{sysBaseSetInfo.fundPayType}
</if>
<if test="sysBaseSetInfo.housingFundCompamyPro != null">
AND a.HOUSING_FUND_COMPAMY_PRO = #{sysBaseSetInfo.housingFundCompamyPro}
</if>
<if test="sysBaseSetInfo.housingFundPersonalPro != null">
AND a.HOUSING_FUND_PERSONAL_PRO = #{sysBaseSetInfo.housingFundPersonalPro}
</if>
<if test="sysBaseSetInfo.departId != null and sysBaseSetInfo.departId.trim() != ''">
AND a.DEPART_ID = #{sysBaseSetInfo.departId}
</if>
<if test="sysBaseSetInfo.status != null">
AND a.STATUS = #{sysBaseSetInfo.status}
</if>
<if test="sysBaseSetInfo.valueType != null and sysBaseSetInfo.valueType.trim() != ''">
AND a.VALUE_TYPE = #{sysBaseSetInfo.valueType}
</if>
<if test="sysBaseSetInfo.canOverpay != null and sysBaseSetInfo.canOverpay.trim() != ''">
AND a.CAN_OVERPAY = #{sysBaseSetInfo.canOverpay}
</if>
<if test="sysBaseSetInfo.overpayNumber != null">
AND a.OVERPAY_NUMBER = #{sysBaseSetInfo.overpayNumber}
</if>
<if test="sysBaseSetInfo.haveThisMonth != null and sysBaseSetInfo.haveThisMonth.trim() != ''">
AND a.HAVE_THIS_MONTH = #{sysBaseSetInfo.haveThisMonth}
</if>
<if test="sysBaseSetInfo.insurancePension != null and sysBaseSetInfo.insurancePension.trim() != ''">
AND a.INSURANCE_PENSION = #{sysBaseSetInfo.insurancePension}
</if>
<if test="sysBaseSetInfo.insuranceMedical != null and sysBaseSetInfo.insuranceMedical.trim() != ''">
AND a.INSURANCE_MEDICAL = #{sysBaseSetInfo.insuranceMedical}
</if>
<if test="sysBaseSetInfo.insuranceUnemployment != null and sysBaseSetInfo.insuranceUnemployment.trim() != ''">
AND a.INSURANCE_UNEMPLOYMENT = #{sysBaseSetInfo.insuranceUnemployment}
</if>
<if test="sysBaseSetInfo.insuranceInjury != null and sysBaseSetInfo.insuranceInjury.trim() != ''">
AND a.INSURANCE_INJURY = #{sysBaseSetInfo.insuranceInjury}
</if>
<if test="sysBaseSetInfo.insuranceBirth != null and sysBaseSetInfo.insuranceBirth.trim() != ''">
AND a.INSURANCE_BIRTH = #{sysBaseSetInfo.insuranceBirth}
</if>
<if test="sysBaseSetInfo.insuranceBigailment != null and sysBaseSetInfo.insuranceBigailment.trim() != ''">
AND a.INSURANCE_BIGAILMENT = #{sysBaseSetInfo.insuranceBigailment}
</if>
<if test="sysBaseSetInfo.insuranceIsLatestCardinality != null and sysBaseSetInfo.insuranceIsLatestCardinality.trim() != ''">
AND a.INSURANCE_IS_LATEST_CARDINALITY = #{sysBaseSetInfo.insuranceIsLatestCardinality}
</if>
<if test="sysBaseSetInfo.deleteFlag != null and sysBaseSetInfo.deleteFlag.trim() != ''">
AND a.DELETE_FLAG = #{sysBaseSetInfo.deleteFlag}
</if>
<if test="sysBaseSetInfo.departName != null and sysBaseSetInfo.departName.trim() != ''">
AND a.DEPART_NAME = #{sysBaseSetInfo.departName}
</if>
<if test="sysBaseSetInfo.createBy != null and sysBaseSetInfo.createBy.trim() != ''">
AND a.CREATE_BY = #{sysBaseSetInfo.createBy}
</if>
<if test="sysBaseSetInfo.updateBy != null and sysBaseSetInfo.updateBy.trim() != ''">
AND a.UPDATE_BY = #{sysBaseSetInfo.updateBy}
</if>
<if test="sysBaseSetInfo.createName != null and sysBaseSetInfo.createName.trim() != ''">
AND a.CREATE_NAME = #{sysBaseSetInfo.createName}
</if>
<if test="sysBaseSetInfo.createTime != null">
AND a.CREATE_TIME = #{sysBaseSetInfo.createTime}
</if>
<if test="sysBaseSetInfo.updateTime != null">
AND a.UPDATE_TIME = #{sysBaseSetInfo.updateTime}
</if>
</if>
</sql>
<!--sysBaseSetInfo简单分页查询-->
<select id="getSysBaseSetInfoPage" resultMap="sysBaseSetInfoMap">
SELECT
<include refid="Base_Column_List"/>
FROM sys_base_set_info a
<where>
1=1
<include refid="sysBaseSetInfo_where"/>
</where>
order by a.CREATE_TIME desc
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!--
~
~ Copyright (c) 2018-2025, lengleng All rights reserved.
~
~ Redistribution and use in source and binary forms, with or without
~ modification, are permitted provided that the following conditions are met:
~
~ Redistributions of source code must retain the above copyright notice,
~ this list of conditions and the following disclaimer.
~ Redistributions in binary form must reproduce the above copyright
~ notice, this list of conditions and the following disclaimer in the
~ documentation and/or other materials provided with the distribution.
~ Neither the name of the yifu4cloud.com developer nor the names of its
~ contributors may be used to endorse or promote products derived from
~ this software without specific prior written permission.
~ Author: lengleng (wangiegie@gmail.com)
~
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yifu.cloud.plus.v1.yifu.social.mapper.SysPayProportionMapper">
<resultMap id="sysPayProportionMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.SysPayProportion">
<id property="id" column="ID"/>
<result property="companyPro" column="COMPANY_PRO"/>
<result property="personalPro" column="PERSONAL_PRO"/>
<result property="sysBaseSetId" column="SYS_BASE_SET_ID"/>
</resultMap>
<sql id="Base_Column_List">
a
.
ID
,
a.COMPANY_PRO,
a.PERSONAL_PRO,
a.SYS_BASE_SET_ID
</sql>
<sql id="sysPayProportion_where">
<if test="sysPayProportion != null">
<if test="sysPayProportion.id != null and sysPayProportion.id.trim() != ''">
AND a.ID = #{sysPayProportion.id}
</if>
<if test="sysPayProportion.companyPro != null">
AND a.COMPANY_PRO = #{sysPayProportion.companyPro}
</if>
<if test="sysPayProportion.personalPro != null">
AND a.PERSONAL_PRO = #{sysPayProportion.personalPro}
</if>
<if test="sysPayProportion.sysBaseSetId != null and sysPayProportion.sysBaseSetId.trim() != ''">
AND a.SYS_BASE_SET_ID = #{sysPayProportion.sysBaseSetId}
</if>
</if>
</sql>
<!--sysPayProportion简单分页查询-->
<select id="getSysPayProportionPage" resultMap="sysPayProportionMap">
SELECT
<include refid="Base_Column_List"/>
FROM sys_pay_proportion a
<where>
1=1
<include refid="sysPayProportion_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.social.mapper.TSocialLogMapper">
<resultMap id="tSocialLogMap" type="com.yifu.cloud.plus.v1.yifu.social.entity.TSocialLog">
<id property="id" column="ID"/>
<result property="type" column="TYPE"/>
<result property="mainId" column="MAIN_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"/>
<result property="oldInfo" column="OLD_INFO"/>
<result property="newInfo" column="NEW_INFO"/>
<result property="differenceInfo" column="DIFFERENCE_INFO"/>
</resultMap>
<sql id="Base_Column_List">
a
.
ID
,
a.TYPE,
a.MAIN_ID,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME,
a.OLD_INFO,
a.NEW_INFO,
a.DIFFERENCE_INFO
</sql>
<sql id="tSocialLog_where">
<if test="tSocialLog != null">
<if test="tSocialLog.id != null and tSocialLog.id.trim() != ''">
AND a.ID = #{tSocialLog.id}
</if>
<if test="tSocialLog.type != null">
AND a.TYPE = #{tSocialLog.type}
</if>
<if test="tSocialLog.mainId != null and tSocialLog.mainId.trim() != ''">
AND a.MAIN_ID = #{tSocialLog.mainId}
</if>
<if test="tSocialLog.createBy != null and tSocialLog.createBy.trim() != ''">
AND a.CREATE_BY = #{tSocialLog.createBy}
</if>
<if test="tSocialLog.createName != null and tSocialLog.createName.trim() != ''">
AND a.CREATE_NAME = #{tSocialLog.createName}
</if>
<if test="tSocialLog.createTime != null">
AND a.CREATE_TIME = #{tSocialLog.createTime}
</if>
<if test="tSocialLog.updateBy != null and tSocialLog.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tSocialLog.updateBy}
</if>
<if test="tSocialLog.updateTime != null">
AND a.UPDATE_TIME = #{tSocialLog.updateTime}
</if>
<if test="tSocialLog.oldInfo != null and tSocialLog.oldInfo.trim() != ''">
AND a.OLD_INFO = #{tSocialLog.oldInfo}
</if>
<if test="tSocialLog.newInfo != null and tSocialLog.newInfo.trim() != ''">
AND a.NEW_INFO = #{tSocialLog.newInfo}
</if>
<if test="tSocialLog.differenceInfo != null and tSocialLog.differenceInfo.trim() != ''">
AND a.DIFFERENCE_INFO = #{tSocialLog.differenceInfo}
</if>
</if>
</sql>
<!--tSocialLog简单分页查询-->
<select id="getTSocialLogPage" resultMap="tSocialLogMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_social_log a
<where>
1=1
<include refid="tSocialLog_where"/>
</where>
order by a.CREATE_TIME desc
</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