Commit 20a40491 authored by hongguangwu's avatar hongguangwu

MVP1.7.17-商险续签待办

parent e97e2cb9
package com.yifu.cloud.plus.v1.yifu.insurances.entity; package com.yifu.cloud.plus.v1.yifu.insurances.entity;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute;
import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity; import com.yifu.cloud.plus.v1.yifu.common.mybatis.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.LocalDateTime;
/** /**
...@@ -224,5 +228,19 @@ public class TInsuranceAlert extends BaseEntity { ...@@ -224,5 +228,19 @@ public class TInsuranceAlert extends BaseEntity {
@Schema(description = "距离到期剩余工作日") @Schema(description = "距离到期剩余工作日")
private String haveWorkDay; private String haveWorkDay;
//@Schema(description = "本表的ID就是商险ID")
@TableField(exist = false)
@Schema(description = "状态,0待确认,1待派单,2派单失败,3待投保,4投保中,5投保退回,6已投保")
private String processStatus;
@TableField(exist = false)
@Schema(description = "失败原因")
private String errorInfo;
@TableField(exist = false)
@Schema(description = "失败时间")
private LocalDateTime errorTime;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ 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.insurances.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;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* 商险续签待办
*
* @author hgw
* @date 2025-11-11 16:33:49
*/
@Data
@TableName("t_insurance_pre_renew_detail")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商险续签待办")
public class TInsurancePreRenewDetail extends BaseEntity {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
@ExcelProperty("主键")
@Schema(description = "主键")
private String id;
/**
* 商险ID
*/
@ExcelAttribute(name = "商险ID", isNotEmpty = true, errorInfo = "商险ID不能为空", maxLength = 32)
@NotBlank(message = "商险ID不能为空")
@Length(max = 32, message = "商险ID不能超过32个字符")
@ExcelProperty("商险ID")
@Schema(description = "商险ID")
private String insurancesId;
/**
* 结算主体名称
*/
@ExcelAttribute(name = "结算主体名称", maxLength = 50)
@Length(max = 50, message = "结算主体名称不能超过50个字符")
@ExcelProperty("结算主体名称")
@Schema(description = "结算主体名称")
private String deptName;
/**
* 项目编码
*/
@ExcelAttribute(name = "项目编码", maxLength = 30)
@Length(max = 30, message = "项目编码不能超过30个字符")
@ExcelProperty("项目编码")
@Schema(description = "项目编码")
private String deptNo;
/**
* 姓名
*/
@ExcelAttribute(name = "姓名", maxLength = 32)
@Length(max = 32, message = "姓名不能超过32个字符")
@ExcelProperty("姓名")
@Schema(description = "姓名")
private String empName;
/**
* 身份证号
*/
@ExcelAttribute(name = "身份证号", isNotEmpty = true, errorInfo = "身份证号不能为空", maxLength = 32)
@NotBlank(message = "身份证号不能为空")
@Length(max = 32, message = "身份证号不能超过32个字符")
@ExcelProperty("身份证号")
@Schema(description = "身份证号")
private String empIdcardNo;
/**
* 岗位
*/
@ExcelAttribute(name = "岗位", maxLength = 32)
@Length(max = 32, message = "岗位不能超过32个字符")
@ExcelProperty("岗位")
@Schema(description = "岗位")
private String post;
/**
* 原购买类型, 1新增、3批增、4替换
*/
@ExcelAttribute(name = "原购买类型, 1新增、3批增、4替换")
@ExcelProperty("原购买类型, 1新增、3批增、4替换")
@Schema(description = "原购买类型, 1新增、3批增、4替换")
private Integer buyTypeOld;
/**
* 原商险购买地省
*/
@ExcelAttribute(name = "原商险购买地省", maxLength = 32)
@Length(max = 32, message = "原商险购买地省不能超过32个字符")
@ExcelProperty("原商险购买地省")
@Schema(description = "原商险购买地省")
private String insuranceProvinceNameOld;
/**
* 原商险购买地市
*/
@ExcelAttribute(name = "原商险购买地市", maxLength = 32)
@Length(max = 32, message = "原商险购买地市不能超过32个字符")
@ExcelProperty("原商险购买地市")
@Schema(description = "原商险购买地市")
private String insuranceCityNameOld;
/**
* 原保险公司名称
*/
@ExcelAttribute(name = "原保险公司名称", maxLength = 60)
@Length(max = 60, message = "原保险公司名称不能超过60个字符")
@ExcelProperty("原保险公司名称")
@Schema(description = "原保险公司名称")
private String insuranceCompanyNameOld;
/**
* 原险种名称
*/
@ExcelAttribute(name = "原险种名称", maxLength = 50)
@Length(max = 50, message = "原险种名称不能超过50个字符")
@ExcelProperty("原险种名称")
@Schema(description = "原险种名称")
private String insuranceTypeNameOld;
/**
* 原保单生效日期
*/
@ExcelAttribute(name = "原保单生效日期", isDate = true)
@ExcelProperty("原保单生效日期")
@Schema(description = "原保单生效日期")
private LocalDate policyEffectOld;
/**
* 原保单开始时间
*/
@ExcelAttribute(name = "原保单开始时间", isDate = true)
@ExcelProperty("原保单开始时间")
@Schema(description = "原保单开始时间")
private LocalDate policyStartOld;
/**
* 原保单结束时间
*/
@ExcelAttribute(name = "原保单结束时间", isDate = true)
@ExcelProperty("原保单结束时间")
@Schema(description = "原保单结束时间")
private LocalDate policyEndOld;
/**
* 投保类型: 1新增、3批增、4替换
*/
@ExcelAttribute(name = "投保类型: 1新增、3批增、4替换")
@ExcelProperty("投保类型: 1新增、3批增、4替换")
@Schema(description = "投保类型: 1新增、3批增、4替换")
private Integer buyType;
/**
* 配置id
*/
@ExcelAttribute(name = "配置id", maxLength = 36)
@Length(max = 36, message = "配置id不能超过36个字符")
@ExcelProperty("配置id")
@Schema(description = "配置id")
private String configId;
/**
* 配置名称
*/
@ExcelAttribute(name = "配置名称", maxLength = 50)
@Length(max = 50, message = "配置名称不能超过50个字符")
@ExcelProperty("配置名称")
@Schema(description = "配置名称")
private String configName;
/**
* 保险公司名称
*/
@ExcelAttribute(name = "保险公司名称", maxLength = 60)
@Length(max = 60, message = "保险公司名称不能超过60个字符")
@ExcelProperty("保险公司名称")
@Schema(description = "保险公司名称")
private String insuranceCompanyName;
/**
* 险种名称
*/
@ExcelAttribute(name = "险种名称", maxLength = 50)
@Length(max = 50, message = "险种名称不能超过50个字符")
@ExcelProperty("险种名称")
@Schema(description = "险种名称")
private String insuranceTypeName;
/**
* 购买标准
*/
@ExcelAttribute(name = "购买标准", maxLength = 32)
@Length(max = 32, message = "购买标准不能超过32个字符")
@ExcelProperty("购买标准")
@Schema(description = "购买标准")
private String buyStandard;
/**
* 商险购买地省
*/
@ExcelAttribute(name = "商险购买地省", maxLength = 32)
@Length(max = 32, message = "商险购买地省不能超过32个字符")
@ExcelProperty("商险购买地省")
@Schema(description = "商险购买地省")
private String insuranceProvinceName;
/**
* 商险购买地市
*/
@ExcelAttribute(name = "商险购买地市", maxLength = 32)
@Length(max = 32, message = "商险购买地市不能超过32个字符")
@ExcelProperty("商险购买地市")
@Schema(description = "商险购买地市")
private String insuranceCityName;
/**
* 保单开始时间
*/
@ExcelAttribute(name = "保单开始时间", isDate = true)
@ExcelProperty("保单开始时间")
@Schema(description = "保单开始时间")
private LocalDate policyStart;
/**
* 保单结束时间
*/
@ExcelAttribute(name = "保单结束时间", isDate = true)
@ExcelProperty("保单结束时间")
@Schema(description = "保单结束时间")
private LocalDate policyEnd;
/**
* 预计保单生效日期
*/
@ExcelAttribute(name = "预计保单生效日期", isDate = true)
@ExcelProperty("预计保单生效日期")
@Schema(description = "预计保单生效日期")
private LocalDate policyEffect;
/**
* 预计派单时间
*/
//@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
@ExcelAttribute(name = "预计派单时间", isDate = true)
@ExcelProperty("预计派单时间")
@Schema(description = "预计派单时间")
private LocalDateTime expectedCollectionTime;
/**
* 客户名称
*/
@ExcelAttribute(name = "客户名称", maxLength = 50)
@Length(max = 50, message = "客户名称不能超过50个字符")
@ExcelProperty("客户名称")
@Schema(description = "客户名称")
private String unitName;
/**
* 客户编码
*/
@ExcelAttribute(name = "客户编码", maxLength = 32)
@Length(max = 32, message = "客户编码不能超过32个字符")
@ExcelProperty("客户编码")
@Schema(description = "客户编码")
private String unitNo;
/**
* 是否地市自购0是 1 否
*/
@ExcelAttribute(name = "是否地市自购0是 1 否", maxLength = 1)
@Length(max = 1, message = "是否地市自购0是 1 否不能超过1个字符")
@ExcelProperty("是否地市自购0是 1 否")
@Schema(description = "是否地市自购0是 1 否")
private String isAdress;
/**
* 失败原因
*/
@ExcelAttribute(name = "失败原因", maxLength = 200)
@Length(max = 200, message = "失败原因不能超过200个字符")
@ExcelProperty("失败原因")
@Schema(description = "失败原因")
private String errorInfo;
/**
* 失败时间
*/
@ExcelAttribute(name = "失败时间", isDate = true)
@ExcelProperty("失败时间")
@Schema(description = "失败时间")
private LocalDateTime errorTime;
/**
* 保单号
*/
@ExcelAttribute(name = "保单号", maxLength = 50)
@Length(max = 50, message = "保单号不能超过50个字符")
@ExcelProperty("保单号")
@Schema(description = "保单号")
private String policyNo;
/**
* 替换员工姓名
*/
@ExcelAttribute(name = "替换员工姓名", maxLength = 30)
@Length(max = 30, message = "替换员工姓名不能超过30个字符")
@ExcelProperty("替换员工姓名")
@Schema(description = "替换员工姓名")
private String replaceEmployeeName;
/**
* 替换身份证号
*/
@ExcelAttribute(name = "替换身份证号", maxLength = 18)
@Length(max = 18, message = "替换身份证号不能超过18个字符")
@ExcelProperty("替换身份证号")
@Schema(description = "替换身份证号")
private String replaceEmpIdcard;
/**
* 替换项目编码
*/
@ExcelAttribute(name = "替换项目编码", maxLength = 30)
@Length(max = 30, message = "替换项目编码不能超过30个字符")
@ExcelProperty("替换项目编码")
@Schema(description = "替换项目编码")
private String replaceDeptNo;
/**
* 状态,0待确认,1待派单,2派单失败,3待投保,4投保中,5投保退回,6已投保
*/
@ExcelAttribute(name = "状态,0待确认,1待派单,2派单失败,3待投保,4投保中,5投保退回,6已投保", maxLength = 1)
@Length(max = 1, message = "状态,0待确认,1待派单,2派单失败,3待投保,4投保中,5投保退回,6已投保不能超过1个字符")
@ExcelProperty("状态,0待确认,1待派单,2派单失败,3待投保,4投保中,5投保退回,6已投保")
@Schema(description = "状态,0待确认,1待派单,2派单失败,3待投保,4投保中,5投保退回,6已投保")
private String processStatus;
}
package com.yifu.cloud.plus.v1.yifu.insurances.vo; package com.yifu.cloud.plus.v1.yifu.insurances.vo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import java.time.LocalDate;
import java.util.List; import java.util.List;
/** /**
...@@ -21,6 +23,15 @@ public class InsuranceSearchVo extends TBusinessInsuranceVo{ ...@@ -21,6 +23,15 @@ public class InsuranceSearchVo extends TBusinessInsuranceVo{
private List<String> idList; private List<String> idList;
@Schema(description = "保单结束时间起")
private LocalDate policyEndStart;
@Schema(description = "保单结束时间止")
private LocalDate policyEndEnd;
@Schema(description = "状态多个")
@TableField(exist = false)
private String[] processStatusArray;
/** /**
* @Author fxj * @Author fxj
* 查询数据起 * 查询数据起
......
/*
* 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.insurances.vo;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDate;
/**
* 商险到期提醒明细表
*
* @author hgw
* @date 2025-11-11 11:49:48
*/
@Data
public class TInsuranceAlertSearchVo extends TInsuranceAlert {
/**
* 多选导出或删除等操作
*/
@Schema(description = "选中ID,多个逗号分割")
private String ids;
/**
* @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.insurances.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.Common;
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.insurances.entity.TInsurancePreRenewDetail;
import com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsurancePreRenewDetailService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
/**
* 商险续签待办
*
* @author hgw
* @date 2025-11-11 16:33:49
*/
@RestController
@RequiredArgsConstructor
@RequestMapping("/tinsuranceprerenewdetail")
@Tag(name = "商险续签待办管理")
public class TInsurancePreRenewDetailController {
private final TInsurancePreRenewDetailService tInsurancePreRenewDetailService;
/**
* 简单分页查询
*
* @param page 分页对象
* @param tInsurancePreRenewDetail 商险续签待办
* @return
*/
@Operation(description = "简单分页查询")
@GetMapping("/page")
public R<IPage<TInsurancePreRenewDetail>> getTInsurancePreRenewDetailPage(Page<TInsurancePreRenewDetail> page, TInsurancePreRenewDetail tInsurancePreRenewDetail) {
return new R<>(tInsurancePreRenewDetailService.getTInsurancePreRenewDetailPage(page, tInsurancePreRenewDetail));
}
/**
* 通过insurancesId查询商险续签待办
*
* @return R
*/
@Operation(summary = "通过insurancesId查询", description = "通过insurancesId查询")
@GetMapping("/getByInsurancesId")
public R<TInsurancePreRenewDetail> getByInsurancesId(@RequestParam String insurancesId) {
TInsurancePreRenewDetail tInsurancePreRenewDetail = tInsurancePreRenewDetailService
.getOne(Wrappers.<TInsurancePreRenewDetail>lambdaQuery()
.eq(TInsurancePreRenewDetail::getInsurancesId, insurancesId)
.last(CommonConstants.LAST_ONE_SQL));
return R.ok(tInsurancePreRenewDetail);
}
/**
* 修改商险续签待办
*
* @param tInsurancePreRenewDetail 商险续签待办
* @return R
*/
@Operation(summary = "单个确认-商险续签待办", description = "单个确认-商险续签待办")
@SysLog("单个确认-商险续签待办")
@PostMapping("/doSure")
public R<Boolean> doSure(@RequestBody TInsurancePreRenewDetail tInsurancePreRenewDetail) {
if (tInsurancePreRenewDetail != null && Common.isNotNull(tInsurancePreRenewDetail.getId())) {
TInsurancePreRenewDetail old = tInsurancePreRenewDetailService.getById(tInsurancePreRenewDetail.getId());
if (old == null || Common.isEmpty(old.getId()) || Common.isEmpty(old.getProcessStatus())) {
return R.failed("根据ID未找到续签待办信息");
}
if (!CommonConstants.ZERO_STRING.equals(old.getProcessStatus())) {
return R.failed("状态非待确认,请检查");
}
} else {
return R.failed("请传参ID");
}
tInsurancePreRenewDetail.setProcessStatus(CommonConstants.ONE_STRING);
return R.ok(tInsurancePreRenewDetailService.updateById(tInsurancePreRenewDetail));
}
/**
* 修改商险续签待办
*
* @param tInsurancePreRenewDetail 商险续签待办
* @return R
*/
@Operation(summary = "编辑商险续签待办", description = "编辑商险续签待办")
@SysLog("编辑商险续签待办")
@PutMapping
public R<Boolean> updateById(@RequestBody TInsurancePreRenewDetail tInsurancePreRenewDetail) {
if (tInsurancePreRenewDetail != null && Common.isNotNull(tInsurancePreRenewDetail.getId())) {
TInsurancePreRenewDetail old = tInsurancePreRenewDetailService.getById(tInsurancePreRenewDetail.getId());
if (old == null || Common.isEmpty(old.getId()) || Common.isEmpty(old.getProcessStatus())) {
return R.failed("根据ID未找到续签待办信息");
}
if (!(CommonConstants.ONE_STRING.equals(old.getProcessStatus())
|| CommonConstants.TWO_STRING.equals(old.getProcessStatus())
|| CommonConstants.FIVE_STRING.equals(old.getProcessStatus()))) {
return R.failed("该状态不可编辑,请刷新后重试");
}
if (Common.isNotNull(tInsurancePreRenewDetail.getProcessStatus())
&& !old.getProcessStatus().equals(tInsurancePreRenewDetail.getProcessStatus())) {
return R.failed("状态在编辑保存前发生改变,请刷新后重试");
}
} else {
return R.failed("请传参ID");
}
return R.ok(tInsurancePreRenewDetailService.updateById(tInsurancePreRenewDetail));
}
}
...@@ -7,6 +7,7 @@ import com.yifu.cloud.plus.v1.yifu.common.core.util.ErrorMessage; ...@@ -7,6 +7,7 @@ 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.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog; import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner; import com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert;
import com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceDetailService; import com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceDetailService;
import com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceWarnService; import com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsuranceWarnService;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.BatchIgnoreVo; import com.yifu.cloud.plus.v1.yifu.insurances.vo.BatchIgnoreVo;
...@@ -42,6 +43,12 @@ public class TInsurancesWarnController { ...@@ -42,6 +43,12 @@ public class TInsurancesWarnController {
@Resource @Resource
private TInsuranceWarnService insuranceWarnService; private TInsuranceWarnService insuranceWarnService;
@Operation(description = "商险待续保列表查询")
@GetMapping("/getTInsuranceAlertPage")
public R<IPage<TInsuranceAlert>> getTInsuranceAlertPage(Page<TInsuranceAlert> page, InsuranceSearchVo tInsuranceAlert) {
return R.ok(insuranceWarnService.getTInsuranceAlertPage(page, tInsuranceAlert));
}
/** /**
* @Author fxj * @Author fxj
* @Description 商险到期提醒分页查询 * @Description 商险到期提醒分页查询
......
/*
* 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.insurances.mapper.insurances;
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.insurances.entity.TInsurancePreRenewDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 商险续签待办
*
* @author hgw
* @date 2025-11-11 16:33:49
*/
@Mapper
public interface TInsurancePreRenewDetailMapper extends BaseMapper<TInsurancePreRenewDetail> {
/**
* 商险续签待办简单分页查询
* @param tInsurancePreRenewDetail 商险续签待办
* @return
*/
IPage<TInsurancePreRenewDetail> getTInsurancePreRenewDetailPage(Page<TInsurancePreRenewDetail> page
, @Param("tInsurancePreRenewDetail") TInsurancePreRenewDetail tInsurancePreRenewDetail);
}
...@@ -2,9 +2,13 @@ package com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances; ...@@ -2,9 +2,13 @@ package com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert; import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAlertWx; import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAlertWx;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceSearchVo;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
...@@ -16,6 +20,8 @@ import java.util.List; ...@@ -16,6 +20,8 @@ import java.util.List;
@Mapper @Mapper
public interface TInsuranceWarnMapper extends BaseMapper<TInsuranceAlert> { public interface TInsuranceWarnMapper extends BaseMapper<TInsuranceAlert> {
IPage<TInsuranceAlert> getTInsuranceAlertPage(Page<TInsuranceAlert> page, @Param("tInsuranceAlert") InsuranceSearchVo tInsuranceAlert);
/** /**
* 查询商险到期提醒信息 * 查询商险到期提醒信息
* *
......
/*
* 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.insurances.service.insurance;
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.insurances.entity.TInsurancePreRenewDetail;
/**
* 商险续签待办
*
* @author hgw
* @date 2025-11-11 16:33:49
*/
public interface TInsurancePreRenewDetailService extends IService<TInsurancePreRenewDetail> {
/**
* 商险续签待办简单分页查询
*
* @param tInsurancePreRenewDetail 商险续签待办
* @return
*/
IPage<TInsurancePreRenewDetail> getTInsurancePreRenewDetailPage(Page<TInsurancePreRenewDetail> page, TInsurancePreRenewDetail tInsurancePreRenewDetail);
}
package com.yifu.cloud.plus.v1.yifu.insurances.service.insurance; package com.yifu.cloud.plus.v1.yifu.insurances.service.insurance;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert; import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceSearchVo;
/** /**
* @author huych * @author huych
...@@ -11,6 +14,8 @@ import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert; ...@@ -11,6 +14,8 @@ import com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsuranceAlert;
*/ */
public interface TInsuranceWarnService extends IService<TInsuranceAlert> { public interface TInsuranceWarnService extends IService<TInsuranceAlert> {
IPage<TInsuranceAlert> getTInsuranceAlertPage(Page<TInsuranceAlert> page, InsuranceSearchVo tInsuranceAlert);
void createInsuranceAlert(); void createInsuranceAlert();
void pushInsuranceAlertToWx(); void pushInsuranceAlertToWx();
......
/*
* 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.insurances.service.insurance.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.insurances.entity.TInsurancePreRenewDetail;
import com.yifu.cloud.plus.v1.yifu.insurances.mapper.insurances.TInsurancePreRenewDetailMapper;
import com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.TInsurancePreRenewDetailService;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
/**
* 商险续签待办
*
* @author hgw
* @date 2025-11-11 16:33:49
*/
@Log4j2
@Service
public class TInsurancePreRenewDetailServiceImpl extends ServiceImpl<TInsurancePreRenewDetailMapper, TInsurancePreRenewDetail> implements TInsurancePreRenewDetailService {
/**
* 商险续签待办简单分页查询
*
* @param tInsurancePreRenewDetail 商险续签待办
* @return
*/
@Override
public IPage<TInsurancePreRenewDetail> getTInsurancePreRenewDetailPage(Page<TInsurancePreRenewDetail> page, TInsurancePreRenewDetail tInsurancePreRenewDetail) {
return baseMapper.getTInsurancePreRenewDetailPage(page, tInsurancePreRenewDetail);
}
}
package com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.impl; package com.yifu.cloud.plus.v1.yifu.insurances.service.insurance.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.csp.entity.EmployeeRegistration; import com.yifu.cloud.plus.v1.csp.entity.EmployeeRegistration;
import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysUser; import com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysUser;
...@@ -29,6 +31,7 @@ import com.yifu.cloud.plus.v1.yifu.insurances.util.LocalDateUtil; ...@@ -29,6 +31,7 @@ import com.yifu.cloud.plus.v1.yifu.insurances.util.LocalDateUtil;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.HolidayListVO; import com.yifu.cloud.plus.v1.yifu.insurances.vo.HolidayListVO;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAlertWx; import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAlertWx;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAlertWxVo; import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceAlertWxVo;
import com.yifu.cloud.plus.v1.yifu.insurances.vo.InsuranceSearchVo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
...@@ -57,6 +60,12 @@ public class TInsuranceWarnServiceImpl extends ServiceImpl<TInsuranceWarnMapper, ...@@ -57,6 +60,12 @@ public class TInsuranceWarnServiceImpl extends ServiceImpl<TInsuranceWarnMapper,
private SysConfigMapper sysConfigMapper; private SysConfigMapper sysConfigMapper;
@Autowired @Autowired
private WxConfig wxConfig; private WxConfig wxConfig;
@Override
public IPage<TInsuranceAlert> getTInsuranceAlertPage(Page<TInsuranceAlert> page, InsuranceSearchVo tInsuranceAlert) {
return baseMapper.getTInsuranceAlertPage(page, tInsuranceAlert);
}
@Override @Override
public void createInsuranceAlert() { public void createInsuranceAlert() {
//批量删除所有未忽略的提醒数据 //批量删除所有未忽略的提醒数据
...@@ -136,6 +145,9 @@ public class TInsuranceWarnServiceImpl extends ServiceImpl<TInsuranceWarnMapper, ...@@ -136,6 +145,9 @@ public class TInsuranceWarnServiceImpl extends ServiceImpl<TInsuranceWarnMapper,
} }
} }
} }
// TODO - 生成续签待办数据:
// TInsurancePreRenewDetail
} catch (Exception e) { } catch (Exception e) {
log.error("商险到期提醒获取工作日异常:",e); log.error("商险到期提醒获取工作日异常:",e);
} }
......
<?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.insurances.mapper.insurances.TInsurancePreRenewDetailMapper">
<resultMap id="tInsurancePreRenewDetailMap" type="com.yifu.cloud.plus.v1.yifu.insurances.entity.TInsurancePreRenewDetail">
<id property="id" column="ID"/>
<result property="insurancesId" column="INSURANCES_ID"/>
<result property="deptName" column="DEPT_NAME"/>
<result property="deptNo" column="DEPT_NO"/>
<result property="empName" column="EMP_NAME"/>
<result property="empIdcardNo" column="EMP_IDCARD_NO"/>
<result property="post" column="POST"/>
<result property="buyTypeOld" column="BUY_TYPE_OLD"/>
<result property="insuranceProvinceNameOld" column="INSURANCE_PROVINCE_NAME_OLD"/>
<result property="insuranceCityNameOld" column="INSURANCE_CITY_NAME_OLD"/>
<result property="insuranceCompanyNameOld" column="INSURANCE_COMPANY_NAME_OLD"/>
<result property="insuranceTypeNameOld" column="INSURANCE_TYPE_NAME_OLD"/>
<result property="policyEffectOld" column="POLICY_EFFECT_OLD"/>
<result property="policyStartOld" column="POLICY_START_OLD"/>
<result property="policyEndOld" column="POLICY_END_OLD"/>
<result property="buyType" column="BUY_TYPE"/>
<result property="configId" column="CONFIG_ID"/>
<result property="configName" column="CONFIG_NAME"/>
<result property="insuranceCompanyName" column="INSURANCE_COMPANY_NAME"/>
<result property="insuranceTypeName" column="INSURANCE_TYPE_NAME"/>
<result property="buyStandard" column="BUY_STANDARD"/>
<result property="insuranceProvinceName" column="INSURANCE_PROVINCE_NAME"/>
<result property="insuranceCityName" column="INSURANCE_CITY_NAME"/>
<result property="policyStart" column="POLICY_START"/>
<result property="policyEnd" column="POLICY_END"/>
<result property="policyEffect" column="POLICY_EFFECT"/>
<result property="expectedCollectionTime" column="expected_collection_time"/>
<result property="createBy" column="CREATE_BY"/>
<result property="createName" column="CREATE_NAME"/>
<result property="createTime" column="CREATE_TIME"/>
<result property="updateBy" column="UPDATE_BY"/>
<result property="updateTime" column="UPDATE_TIME"/>
<result property="unitName" column="UNIT_NAME"/>
<result property="unitNo" column="UNIT_NO"/>
<result property="isAdress" column="IS_ADRESS"/>
<result property="errorInfo" column="error_info"/>
<result property="errorTime" column="error_time"/>
<result property="policyNo" column="policy_no"/>
<result property="replaceEmployeeName" column="replace_employee_name"/>
<result property="replaceEmpIdcard" column="replace_emp_idcard"/>
<result property="replaceDeptNo" column="replace_dept_no"/>
<result property="processStatus" column="process_status"/>
</resultMap>
<sql id="Base_Column_List">
a.ID,
a.INSURANCES_ID,
a.DEPT_NAME,
a.DEPT_NO,
a.EMP_NAME,
a.EMP_IDCARD_NO,
a.POST,
a.BUY_TYPE_OLD,
a.INSURANCE_PROVINCE_NAME_OLD,
a.INSURANCE_CITY_NAME_OLD,
a.INSURANCE_COMPANY_NAME_OLD,
a.INSURANCE_TYPE_NAME_OLD,
a.POLICY_EFFECT_OLD,
a.POLICY_START_OLD,
a.POLICY_END_OLD,
a.BUY_TYPE,
a.CONFIG_ID,
a.CONFIG_NAME,
a.INSURANCE_COMPANY_NAME,
a.INSURANCE_TYPE_NAME,
a.BUY_STANDARD,
a.INSURANCE_PROVINCE_NAME,
a.INSURANCE_CITY_NAME,
a.POLICY_START,
a.POLICY_END,
a.POLICY_EFFECT,
a.expected_collection_time,
a.CREATE_BY,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME,
a.UNIT_NAME,
a.UNIT_NO,
a.IS_ADRESS,
a.error_info,
a.error_time,
a.policy_no,
a.replace_employee_name,
a.replace_emp_idcard,
a.replace_dept_no,
a.process_status
</sql>
<sql id="tInsurancePreRenewDetail_where">
<if test="tInsurancePreRenewDetail != null">
<if test="tInsurancePreRenewDetail.id != null and tInsurancePreRenewDetail.id.trim() != ''">
AND a.ID = #{tInsurancePreRenewDetail.id}
</if>
<if test="tInsurancePreRenewDetail.insurancesId != null and tInsurancePreRenewDetail.insurancesId.trim() != ''">
AND a.INSURANCES_ID = #{tInsurancePreRenewDetail.insurancesId}
</if>
<if test="tInsurancePreRenewDetail.deptName != null and tInsurancePreRenewDetail.deptName.trim() != ''">
AND a.DEPT_NAME = #{tInsurancePreRenewDetail.deptName}
</if>
<if test="tInsurancePreRenewDetail.deptNo != null and tInsurancePreRenewDetail.deptNo.trim() != ''">
AND a.DEPT_NO = #{tInsurancePreRenewDetail.deptNo}
</if>
<if test="tInsurancePreRenewDetail.empName != null and tInsurancePreRenewDetail.empName.trim() != ''">
AND a.EMP_NAME = #{tInsurancePreRenewDetail.empName}
</if>
<if test="tInsurancePreRenewDetail.empIdcardNo != null and tInsurancePreRenewDetail.empIdcardNo.trim() != ''">
AND a.EMP_IDCARD_NO = #{tInsurancePreRenewDetail.empIdcardNo}
</if>
<if test="tInsurancePreRenewDetail.post != null and tInsurancePreRenewDetail.post.trim() != ''">
AND a.POST = #{tInsurancePreRenewDetail.post}
</if>
<if test="tInsurancePreRenewDetail.buyTypeOld != null">
AND a.BUY_TYPE_OLD = #{tInsurancePreRenewDetail.buyTypeOld}
</if>
<if test="tInsurancePreRenewDetail.insuranceProvinceNameOld != null and tInsurancePreRenewDetail.insuranceProvinceNameOld.trim() != ''">
AND a.INSURANCE_PROVINCE_NAME_OLD = #{tInsurancePreRenewDetail.insuranceProvinceNameOld}
</if>
<if test="tInsurancePreRenewDetail.insuranceCityNameOld != null and tInsurancePreRenewDetail.insuranceCityNameOld.trim() != ''">
AND a.INSURANCE_CITY_NAME_OLD = #{tInsurancePreRenewDetail.insuranceCityNameOld}
</if>
<if test="tInsurancePreRenewDetail.insuranceCompanyNameOld != null and tInsurancePreRenewDetail.insuranceCompanyNameOld.trim() != ''">
AND a.INSURANCE_COMPANY_NAME_OLD = #{tInsurancePreRenewDetail.insuranceCompanyNameOld}
</if>
<if test="tInsurancePreRenewDetail.insuranceTypeNameOld != null and tInsurancePreRenewDetail.insuranceTypeNameOld.trim() != ''">
AND a.INSURANCE_TYPE_NAME_OLD = #{tInsurancePreRenewDetail.insuranceTypeNameOld}
</if>
<if test="tInsurancePreRenewDetail.policyEffectOld != null">
AND a.POLICY_EFFECT_OLD = #{tInsurancePreRenewDetail.policyEffectOld}
</if>
<if test="tInsurancePreRenewDetail.policyStartOld != null">
AND a.POLICY_START_OLD = #{tInsurancePreRenewDetail.policyStartOld}
</if>
<if test="tInsurancePreRenewDetail.policyEndOld != null">
AND a.POLICY_END_OLD = #{tInsurancePreRenewDetail.policyEndOld}
</if>
<if test="tInsurancePreRenewDetail.buyType != null">
AND a.BUY_TYPE = #{tInsurancePreRenewDetail.buyType}
</if>
<if test="tInsurancePreRenewDetail.configId != null and tInsurancePreRenewDetail.configId.trim() != ''">
AND a.CONFIG_ID = #{tInsurancePreRenewDetail.configId}
</if>
<if test="tInsurancePreRenewDetail.configName != null and tInsurancePreRenewDetail.configName.trim() != ''">
AND a.CONFIG_NAME = #{tInsurancePreRenewDetail.configName}
</if>
<if test="tInsurancePreRenewDetail.insuranceCompanyName != null and tInsurancePreRenewDetail.insuranceCompanyName.trim() != ''">
AND a.INSURANCE_COMPANY_NAME = #{tInsurancePreRenewDetail.insuranceCompanyName}
</if>
<if test="tInsurancePreRenewDetail.insuranceTypeName != null and tInsurancePreRenewDetail.insuranceTypeName.trim() != ''">
AND a.INSURANCE_TYPE_NAME = #{tInsurancePreRenewDetail.insuranceTypeName}
</if>
<if test="tInsurancePreRenewDetail.buyStandard != null and tInsurancePreRenewDetail.buyStandard.trim() != ''">
AND a.BUY_STANDARD = #{tInsurancePreRenewDetail.buyStandard}
</if>
<if test="tInsurancePreRenewDetail.insuranceProvinceName != null and tInsurancePreRenewDetail.insuranceProvinceName.trim() != ''">
AND a.INSURANCE_PROVINCE_NAME = #{tInsurancePreRenewDetail.insuranceProvinceName}
</if>
<if test="tInsurancePreRenewDetail.insuranceCityName != null and tInsurancePreRenewDetail.insuranceCityName.trim() != ''">
AND a.INSURANCE_CITY_NAME = #{tInsurancePreRenewDetail.insuranceCityName}
</if>
<if test="tInsurancePreRenewDetail.policyStart != null">
AND a.POLICY_START = #{tInsurancePreRenewDetail.policyStart}
</if>
<if test="tInsurancePreRenewDetail.policyEnd != null">
AND a.POLICY_END = #{tInsurancePreRenewDetail.policyEnd}
</if>
<if test="tInsurancePreRenewDetail.policyEffect != null">
AND a.POLICY_EFFECT = #{tInsurancePreRenewDetail.policyEffect}
</if>
<if test="tInsurancePreRenewDetail.expectedCollectionTime != null">
AND a.expected_collection_time = #{tInsurancePreRenewDetail.expectedCollectionTime}
</if>
<if test="tInsurancePreRenewDetail.createBy != null and tInsurancePreRenewDetail.createBy.trim() != ''">
AND a.CREATE_BY = #{tInsurancePreRenewDetail.createBy}
</if>
<if test="tInsurancePreRenewDetail.createName != null and tInsurancePreRenewDetail.createName.trim() != ''">
AND a.CREATE_NAME = #{tInsurancePreRenewDetail.createName}
</if>
<if test="tInsurancePreRenewDetail.createTime != null">
AND a.CREATE_TIME = #{tInsurancePreRenewDetail.createTime}
</if>
<if test="tInsurancePreRenewDetail.updateBy != null and tInsurancePreRenewDetail.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tInsurancePreRenewDetail.updateBy}
</if>
<if test="tInsurancePreRenewDetail.updateTime != null">
AND a.UPDATE_TIME = #{tInsurancePreRenewDetail.updateTime}
</if>
<if test="tInsurancePreRenewDetail.unitName != null and tInsurancePreRenewDetail.unitName.trim() != ''">
AND a.UNIT_NAME = #{tInsurancePreRenewDetail.unitName}
</if>
<if test="tInsurancePreRenewDetail.unitNo != null and tInsurancePreRenewDetail.unitNo.trim() != ''">
AND a.UNIT_NO = #{tInsurancePreRenewDetail.unitNo}
</if>
<if test="tInsurancePreRenewDetail.isAdress != null and tInsurancePreRenewDetail.isAdress.trim() != ''">
AND a.IS_ADRESS = #{tInsurancePreRenewDetail.isAdress}
</if>
<if test="tInsurancePreRenewDetail.errorInfo != null and tInsurancePreRenewDetail.errorInfo.trim() != ''">
AND a.error_info = #{tInsurancePreRenewDetail.errorInfo}
</if>
<if test="tInsurancePreRenewDetail.errorTime != null">
AND a.error_time = #{tInsurancePreRenewDetail.errorTime}
</if>
<if test="tInsurancePreRenewDetail.policyNo != null and tInsurancePreRenewDetail.policyNo.trim() != ''">
AND a.policy_no = #{tInsurancePreRenewDetail.policyNo}
</if>
<if test="tInsurancePreRenewDetail.replaceEmployeeName != null and tInsurancePreRenewDetail.replaceEmployeeName.trim() != ''">
AND a.replace_employee_name = #{tInsurancePreRenewDetail.replaceEmployeeName}
</if>
<if test="tInsurancePreRenewDetail.replaceEmpIdcard != null and tInsurancePreRenewDetail.replaceEmpIdcard.trim() != ''">
AND a.replace_emp_idcard = #{tInsurancePreRenewDetail.replaceEmpIdcard}
</if>
<if test="tInsurancePreRenewDetail.replaceDeptNo != null and tInsurancePreRenewDetail.replaceDeptNo.trim() != ''">
AND a.replace_dept_no = #{tInsurancePreRenewDetail.replaceDeptNo}
</if>
<if test="tInsurancePreRenewDetail.processStatus != null and tInsurancePreRenewDetail.processStatus.trim() != ''">
AND a.process_status = #{tInsurancePreRenewDetail.processStatus}
</if>
</if>
</sql>
<!--tInsurancePreRenewDetail简单分页查询-->
<select id="getTInsurancePreRenewDetailPage" resultMap="tInsurancePreRenewDetailMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_insurance_pre_renew_detail a
<where>
1=1
<include refid="tInsurancePreRenewDetail_where"/>
</where>
</select>
</mapper>
...@@ -46,8 +46,218 @@ ...@@ -46,8 +46,218 @@
<result property="alerter" column="ALERTER" jdbcType="VARCHAR"/> <result property="alerter" column="ALERTER" jdbcType="VARCHAR"/>
<result property="alertId" column="ALERT_ID" jdbcType="VARCHAR"/> <result property="alertId" column="ALERT_ID" jdbcType="VARCHAR"/>
<result property="haveWorkDay" column="HAVE_WORK_DAY" jdbcType="VARCHAR"/> <result property="haveWorkDay" column="HAVE_WORK_DAY" jdbcType="VARCHAR"/>
<result property="processStatus" column="process_status" jdbcType="VARCHAR"/>
<result property="errorInfo" column="error_info" jdbcType="VARCHAR"/>
<result property="errorTime" column="error_time" jdbcType="DATE"/>
</resultMap> </resultMap>
<!-- 商险续签待办专用 -->
<sql id="Alert_Column_List">
a.ID,
a.EMP_NAME,
a.EMP_IDCARD_NO,
a.DEPT_NO,
a.POST,
a.INSURANCE_COMPANY_NAME,
a.INSURANCE_TYPE_NAME,
a.INSURANCE_CITY_NAME,
a.INSURANCE_HANDLE_CITY_NAME,
a.INSURANCE_HANDLE_PROVINCE_NAME,
a.INSURANCE_PROVINCE_NAME,
a.BUY_STANDARD,
a.UNIT_NAME,
a.UNIT_NO,
a.SETTLE_TYPE,
a.POLICY_EFFECT,
a.EXPIRE_REMARK,
a.EXPIRE_IGNORE_FLAG,
a.SETTLE_MONTH,
a.POLICY_START,
a.POLICY_END,
a.ACTUAL_PREMIUM,
a.ESTIMATE_PREMIUM,
a.INVOICE_NO,
a.MEDICAL_QUOTA,
a.DIE_DISABLE_QUOTA,
a.DEPT_NAME,
a.POLICY_NO,
a.IS_OVERDUE,
a.REMARK,
a.CREATE_BY,
a.DELETE_FLAG,
a.CREATE_NAME,
a.CREATE_TIME,
a.UPDATE_BY,
a.UPDATE_TIME,
a.CREATE_USER_DEPT_NAME,
a.IS_EFFECT,
a.BUY_HANDLE_STATUS,
a.ALERTER,
a.ALERT_ID,
a.HAVE_WORK_DAY,
a.INSURANCES_ID,
b.process_status,
b.error_info,
b.error_time
</sql>
<sql id="tInsuranceAlert_where">
<if test="tInsuranceAlert != null">
<if test="tInsuranceAlert.id != null and tInsuranceAlert.id.trim() != ''">
AND a.ID = #{tInsuranceAlert.id}
</if>
<if test="tInsuranceAlert.empName != null and tInsuranceAlert.empName.trim() != ''">
AND a.EMP_NAME like concat('%', #{tInsuranceAlert.empName}, '%')
</if>
<if test="tInsuranceAlert.empIdcardNo != null and tInsuranceAlert.empIdcardNo.trim() != ''">
AND a.EMP_IDCARD_NO like concat('%', #{tInsuranceAlert.empIdcardNo}, '%')
</if>
<if test="tInsuranceAlert.deptNo != null and tInsuranceAlert.deptNo.trim() != ''">
AND a.DEPT_NO like concat('%', #{tInsuranceAlert.deptNo}, '%')
</if>
<if test="tInsuranceAlert.post != null and tInsuranceAlert.post.trim() != ''">
AND a.POST = #{tInsuranceAlert.post}
</if>
<if test="tInsuranceAlert.insuranceCompanyName != null and tInsuranceAlert.insuranceCompanyName.trim() != ''">
AND a.INSURANCE_COMPANY_NAME like concat('%', #{tInsuranceAlert.insuranceCompanyName}, '%')
</if>
<if test="tInsuranceAlert.insuranceTypeName != null and tInsuranceAlert.insuranceTypeName.trim() != ''">
AND a.INSURANCE_TYPE_NAME like concat('%', #{tInsuranceAlert.insuranceTypeName}, '%')
</if>
<if test="tInsuranceAlert.insuranceCityName != null and tInsuranceAlert.insuranceCityName.trim() != ''">
AND a.INSURANCE_CITY_NAME like concat('%', #{tInsuranceAlert.insuranceCityName}, '%')
</if>
<if test="tInsuranceAlert.insuranceHandleCityName != null and tInsuranceAlert.insuranceHandleCityName.trim() != ''">
AND a.INSURANCE_HANDLE_CITY_NAME like concat('%', #{tInsuranceAlert.insuranceHandleCityName}, '%')
</if>
<if test="tInsuranceAlert.insuranceHandleProvinceName != null and tInsuranceAlert.insuranceHandleProvinceName.trim() != ''">
AND a.INSURANCE_HANDLE_PROVINCE_NAME = #{tInsuranceAlert.insuranceHandleProvinceName}
</if>
<if test="tInsuranceAlert.insuranceProvinceName != null and tInsuranceAlert.insuranceProvinceName.trim() != ''">
AND a.INSURANCE_PROVINCE_NAME = #{tInsuranceAlert.insuranceProvinceName}
</if>
<if test="tInsuranceAlert.buyStandard != null and tInsuranceAlert.buyStandard.trim() != ''">
AND a.BUY_STANDARD = #{tInsuranceAlert.buyStandard}
</if>
<if test="tInsuranceAlert.unitName != null and tInsuranceAlert.unitName.trim() != ''">
AND a.UNIT_NAME = #{tInsuranceAlert.unitName}
</if>
<if test="tInsuranceAlert.unitNo != null and tInsuranceAlert.unitNo.trim() != ''">
AND a.UNIT_NO = #{tInsuranceAlert.unitNo}
</if>
<if test="tInsuranceAlert.settleType != null">
AND a.SETTLE_TYPE = #{tInsuranceAlert.settleType}
</if>
<if test="tInsuranceAlert.policyEffect != null">
AND a.POLICY_EFFECT = #{tInsuranceAlert.policyEffect}
</if>
<if test="tInsuranceAlert.expireRemark != null and tInsuranceAlert.expireRemark.trim() != ''">
AND a.EXPIRE_REMARK = #{tInsuranceAlert.expireRemark}
</if>
<if test="tInsuranceAlert.expireIgnoreFlag != null and tInsuranceAlert.expireIgnoreFlag.trim() != ''">
AND a.EXPIRE_IGNORE_FLAG = #{tInsuranceAlert.expireIgnoreFlag}
</if>
<if test="tInsuranceAlert.settleMonth != null and tInsuranceAlert.settleMonth.trim() != ''">
AND a.SETTLE_MONTH = #{tInsuranceAlert.settleMonth}
</if>
<if test="tInsuranceAlert.policyStart != null">
AND a.POLICY_START = #{tInsuranceAlert.policyStart}
</if>
<if test="tInsuranceAlert.policyEnd != null">
AND a.POLICY_END = #{tInsuranceAlert.policyEnd}
</if>
<if test="tInsuranceAlert.policyEndStart != null">
AND a.POLICY_END >= #{tInsuranceAlert.policyEndStart}
</if>
<if test="tInsuranceAlert.policyEndEnd != null">
AND a.POLICY_END <![CDATA[<=]]> #{tInsuranceAlert.policyEndEnd}
</if>
<if test="tInsuranceAlert.actualPremium != null">
AND a.ACTUAL_PREMIUM = #{tInsuranceAlert.actualPremium}
</if>
<if test="tInsuranceAlert.estimatePremium != null">
AND a.ESTIMATE_PREMIUM = #{tInsuranceAlert.estimatePremium}
</if>
<if test="tInsuranceAlert.invoiceNo != null and tInsuranceAlert.invoiceNo.trim() != ''">
AND a.INVOICE_NO = #{tInsuranceAlert.invoiceNo}
</if>
<if test="tInsuranceAlert.medicalQuota != null and tInsuranceAlert.medicalQuota.trim() != ''">
AND a.MEDICAL_QUOTA = #{tInsuranceAlert.medicalQuota}
</if>
<if test="tInsuranceAlert.dieDisableQuota != null and tInsuranceAlert.dieDisableQuota.trim() != ''">
AND a.DIE_DISABLE_QUOTA = #{tInsuranceAlert.dieDisableQuota}
</if>
<if test="tInsuranceAlert.deptName != null and tInsuranceAlert.deptName.trim() != ''">
AND a.DEPT_NAME like concat('%', #{tInsuranceAlert.deptName}, '%')
</if>
<if test="tInsuranceAlert.policyNo != null and tInsuranceAlert.policyNo.trim() != ''">
AND a.POLICY_NO = #{tInsuranceAlert.policyNo}
</if>
<if test="tInsuranceAlert.isOverdue != null">
AND a.IS_OVERDUE = #{tInsuranceAlert.isOverdue}
</if>
<if test="tInsuranceAlert.remark != null and tInsuranceAlert.remark.trim() != ''">
AND a.REMARK = #{tInsuranceAlert.remark}
</if>
<if test="tInsuranceAlert.createBy != null and tInsuranceAlert.createBy.trim() != ''">
AND a.CREATE_BY = #{tInsuranceAlert.createBy}
</if>
<if test="tInsuranceAlert.deleteFlag != null">
AND a.DELETE_FLAG = #{tInsuranceAlert.deleteFlag}
</if>
<if test="tInsuranceAlert.createName != null and tInsuranceAlert.createName.trim() != ''">
AND a.CREATE_NAME = #{tInsuranceAlert.createName}
</if>
<if test="tInsuranceAlert.createTime != null">
AND a.CREATE_TIME = #{tInsuranceAlert.createTime}
</if>
<if test="tInsuranceAlert.updateBy != null and tInsuranceAlert.updateBy.trim() != ''">
AND a.UPDATE_BY = #{tInsuranceAlert.updateBy}
</if>
<if test="tInsuranceAlert.updateTime != null">
AND a.UPDATE_TIME = #{tInsuranceAlert.updateTime}
</if>
<if test="tInsuranceAlert.createUserDeptName != null and tInsuranceAlert.createUserDeptName.trim() != ''">
AND a.CREATE_USER_DEPT_NAME = #{tInsuranceAlert.createUserDeptName}
</if>
<if test="tInsuranceAlert.isEffect != null">
AND a.IS_EFFECT = #{tInsuranceAlert.isEffect}
</if>
<if test="tInsuranceAlert.buyHandleStatus != null">
AND a.BUY_HANDLE_STATUS = #{tInsuranceAlert.buyHandleStatus}
</if>
<if test="tInsuranceAlert.alerter != null and tInsuranceAlert.alerter.trim() != ''">
AND a.ALERTER = #{tInsuranceAlert.alerter}
</if>
<if test="tInsuranceAlert.alertId != null and tInsuranceAlert.alertId.trim() != ''">
AND a.ALERT_ID = #{tInsuranceAlert.alertId}
</if>
<if test="tInsuranceAlert.haveWorkDay != null and tInsuranceAlert.haveWorkDay.trim() != ''">
AND a.HAVE_WORK_DAY = #{tInsuranceAlert.haveWorkDay}
</if>
</if>
</sql>
<!--tInsuranceAlert简单分页查询-->
<select id="getTInsuranceAlertPage" resultMap="BaseResultMap">
SELECT
<include refid="Alert_Column_List"/>
FROM t_insurance_alert a
LEFT JOIN t_insurance_pre_renew_detail b ON a.ID = b.INSURANCES_ID
<where>
1=1
<include refid="tInsuranceAlert_where"/>
<if test="tInsuranceAlert != null">
<if test="tInsuranceAlert.processStatusArray != null and tInsuranceAlert.processStatusArray.length > 0">
AND b.PROCESS_STATUS in
<foreach item="statusStr" index="index" collection="tInsuranceAlert.processStatusArray" open="("
separator="," close=")">
#{statusStr}
</foreach>
</if>
</if>
</where>
</select>
<select id="selectInsuranceAlert" resultMap="BaseResultMap"> <select id="selectInsuranceAlert" resultMap="BaseResultMap">
SELECT SELECT
......
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