Commit 976322ac by 翁国栋 Committed by 284718418@qq.com

保单批量投保接口

运营后台
parent c819a187
package cn.timer.api.bean.adminaccount;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Table;
import java.util.Date;
/**
* 管理员列表
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-14 18:24:20
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "admin_account")
@ApiModel("APP更新记录")
public class AdminAccount extends Model<AdminAccount> {
private static final long serialVersionUID = 1L;
/**
*
*/
private Integer id;
/**
* 姓名
*/
private String realname;
/**
* 电话
*/
private String tel;
/**
* 级别 1超级管理员 2普通管理员
*/
private Integer types;
/**
* 创建者id,0表示系统创建
*/
private Integer createrid;
/**
* 创建日期
*/
private Date createtime;
/**
* 所属部门
*/
private String department;
/**
* 分组
*/
private Integer groupid;
/**
* 状态 1 正常 0 禁用
*/
private Integer statu;
/**
* 标注
*/
private String mark;
/**
* 帐号,首次注册手机号码
*/
private String account;
/**
* 登录密码
*/
private String pwd;
/**
* 头像名称,访问地址需要拼接
*/
private String avatar;
/**
* 1 内部(优领) 2外部(分销商)
*/
private Integer category;
/**
* 登录密码错误次数,大于5次将禁用
*/
private Integer lfc;
/**
* 禁用时间
*/
private Date prohibittime;
/**
* 登录ip
*/
private String ip;
/**
* 登录时间
*/
private Date logintime;
/**
* 更新时间
*/
private Date updatetime;
/**
* 设置:
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取:
*/
public Integer getId() {
return id;
}
/**
* 设置:姓名
*/
public void setRealname(String realname) {
this.realname = realname;
}
/**
* 获取:姓名
*/
public String getRealname() {
return realname;
}
/**
* 设置:电话
*/
public void setTel(String tel) {
this.tel = tel;
}
/**
* 获取:电话
*/
public String getTel() {
return tel;
}
/**
* 设置:级别 1超级管理员 2普通管理员
*/
public void setTypes(Integer types) {
this.types = types;
}
/**
* 获取:级别 1超级管理员 2普通管理员
*/
public Integer getTypes() {
return types;
}
/**
* 设置:创建者id,0表示系统创建
*/
public void setCreaterid(Integer createrid) {
this.createrid = createrid;
}
/**
* 获取:创建者id,0表示系统创建
*/
public Integer getCreaterid() {
return createrid;
}
/**
* 设置:创建日期
*/
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
/**
* 获取:创建日期
*/
public Date getCreatetime() {
return createtime;
}
/**
* 设置:所属部门
*/
public void setDepartment(String department) {
this.department = department;
}
/**
* 获取:所属部门
*/
public String getDepartment() {
return department;
}
/**
* 设置:分组
*/
public void setGroupid(Integer groupid) {
this.groupid = groupid;
}
/**
* 获取:分组
*/
public Integer getGroupid() {
return groupid;
}
/**
* 设置:状态 1 正常 0 禁用
*/
public void setStatu(Integer statu) {
this.statu = statu;
}
/**
* 获取:状态 1 正常 0 禁用
*/
public Integer getStatu() {
return statu;
}
/**
* 设置:标注
*/
public void setMark(String mark) {
this.mark = mark;
}
/**
* 获取:标注
*/
public String getMark() {
return mark;
}
/**
* 设置:帐号,首次注册手机号码
*/
public void setAccount(String account) {
this.account = account;
}
/**
* 获取:帐号,首次注册手机号码
*/
public String getAccount() {
return account;
}
/**
* 设置:登录密码
*/
public void setPwd(String pwd) {
this.pwd = pwd;
}
/**
* 获取:登录密码
*/
public String getPwd() {
return pwd;
}
/**
* 设置:头像名称,访问地址需要拼接
*/
public void setAvatar(String avatar) {
this.avatar = avatar;
}
/**
* 获取:头像名称,访问地址需要拼接
*/
public String getAvatar() {
return avatar;
}
/**
* 设置:1 内部(优领) 2外部(分销商)
*/
public void setCategory(Integer category) {
this.category = category;
}
/**
* 获取:1 内部(优领) 2外部(分销商)
*/
public Integer getCategory() {
return category;
}
/**
* 设置:登录密码错误次数,大于5次将禁用
*/
public void setLfc(Integer lfc) {
this.lfc = lfc;
}
/**
* 获取:登录密码错误次数,大于5次将禁用
*/
public Integer getLfc() {
return lfc;
}
/**
* 设置:禁用时间
*/
public void setProhibittime(Date prohibittime) {
this.prohibittime = prohibittime;
}
/**
* 获取:禁用时间
*/
public Date getProhibittime() {
return prohibittime;
}
/**
* 设置:登录ip
*/
public void setIp(String ip) {
this.ip = ip;
}
/**
* 获取:登录ip
*/
public String getIp() {
return ip;
}
/**
* 设置:登录时间
*/
public void setLogintime(Date logintime) {
this.logintime = logintime;
}
/**
* 获取:登录时间
*/
public Date getLogintime() {
return logintime;
}
/**
* 设置:更新时间
*/
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
/**
* 获取:更新时间
*/
public Date getUpdatetime() {
return updatetime;
}
}
package cn.timer.api.bean.insure;
import lombok.Data;
import java.io.Serializable;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/3 8:48
*/
@Data
public class CallBack implements Serializable {
private static final long serialVersionUID = 61499950876094044L;
private String status;
private String policy_status;
private String err_msg;
private String policy_no;
private String serial_number;
private String quote_trans_id;
private String serial_no;
private String policy_file;
private String total_expenditure;
}
package cn.timer.api.bean.insure;
import cn.timer.api.bean.htzz.HtzzAssoZztx;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* 投保人
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-08 16:05:26
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "insure_applicant")
@ApiModel("投保人")
public class InsureApplicant extends Model<InsureApplicant> {
private static final long serialVersionUID = 1L;
/**
* id
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "编号")
private Integer id;
/**
* 企业/网点名称
*/
@ApiModelProperty(value = "目录名称")
private String applicantEName;
/**
* 企业/网点地址
*/
@ApiModelProperty(value = "企业/网点地址")
private String applicantEAddress;
/**
* 人员清单
*/
@ApiModelProperty(value = "人员清单")
private String applicantEmployeeList;
/**
* 企业授权操作人姓名
*/
@ApiModelProperty(value = "企业授权操作人姓名")
private String applicantEContacts;
/**
* 操作人的联系电话
*/
@ApiModelProperty(value = "操作人的联系电话")
private String applicantEPhone;
/**
* 企业证件类型:3646、统一社会信用代码 3924、组织机构代码
*/
@ApiModelProperty(value = "企业证件类型")
private String applicantENoType;
/**
* 企业证件号码
*/
@ApiModelProperty(value = "企业证件号码")
private String applicantENo;
/**
* 企业邮箱
*/
@ApiModelProperty(value = "企业邮箱")
private String applicantEMail;
/**
* 省市区
*/
@ApiModelProperty(value = "省市区")
private String applicantProvinceCity;
/**
* 发票收件地址
*/
@ApiModelProperty(value = "发票收件地址")
private String applicantInvoiceReceivingAddress;
/**
* 发票开票电话
*/
@ApiModelProperty(value = "发票开票电话")
private String applicantInvoiceBillingPhone;
/**
* 企业开户行名称
*/
@ApiModelProperty(value = "企业开户行名称")
private String applicantBusinessBankName;
/**
* 保单号
*/
@ApiModelProperty(value = "保单号")
private String policyNo;
/**
* 投保类型:1个人 2 企业
*/
@ApiModelProperty(value = "投保类型")
private String applicantType;
/**
* 报价请求流水号
*/
@ApiModelProperty(value = "报价请求流水号")
private String transId;
/**
* 报价号
*/
@ApiModelProperty(value = "报价号")
private String currency;
/**
* 发票开票金额
*/
@ApiModelProperty(value = "发票开票金额")
private String applicantInvoicedAmount;
@ApiModelProperty(value = "企业id", example = "")
private Integer orgCode;
/**
* 设置:id
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 设置:企业/网点名称
*/
public void setApplicantEName(String applicantEName) {
this.applicantEName = applicantEName;
}
/**
* 获取:企业/网点名称
*/
public String getApplicantEName() {
return applicantEName;
}
/**
* 设置:企业/网点地址
*/
public void setApplicantEAddress(String applicantEAddress) {
this.applicantEAddress = applicantEAddress;
}
/**
* 获取:企业/网点地址
*/
public String getApplicantEAddress() {
return applicantEAddress;
}
/**
* 设置:人员清单
*/
public void setApplicantEmployeeList(String applicantEmployeeList) {
this.applicantEmployeeList = applicantEmployeeList;
}
/**
* 获取:人员清单
*/
public String getApplicantEmployeeList() {
return applicantEmployeeList;
}
/**
* 设置:企业授权操作人姓名
*/
public void setApplicantEContacts(String applicantEContacts) {
this.applicantEContacts = applicantEContacts;
}
/**
* 获取:企业授权操作人姓名
*/
public String getApplicantEContacts() {
return applicantEContacts;
}
/**
* 设置:操作人的联系电话
*/
public void setApplicantEPhone(String applicantEPhone) {
this.applicantEPhone = applicantEPhone;
}
/**
* 获取:操作人的联系电话
*/
public String getApplicantEPhone() {
return applicantEPhone;
}
/**
* 设置:企业证件类型:3646、统一社会信用代码 3924、组织机构代码
*/
public void setApplicantENoType(String applicantENoType) {
this.applicantENoType = applicantENoType;
}
/**
* 获取:企业证件类型:3646、统一社会信用代码 3924、组织机构代码
*/
public String getApplicantENoType() {
return applicantENoType;
}
/**
* 设置:企业证件号码
*/
public void setApplicantENo(String applicantENo) {
this.applicantENo = applicantENo;
}
/**
* 获取:企业证件号码
*/
public String getApplicantENo() {
return applicantENo;
}
/**
* 设置:企业邮箱
*/
public void setApplicantEMail(String applicantEMail) {
this.applicantEMail = applicantEMail;
}
/**
* 获取:企业邮箱
*/
public String getApplicantEMail() {
return applicantEMail;
}
/**
* 设置:省市区
*/
public void setApplicantProvinceCity(String applicantProvinceCity) {
this.applicantProvinceCity = applicantProvinceCity;
}
/**
* 获取:省市区
*/
public String getApplicantProvinceCity() {
return applicantProvinceCity;
}
/**
* 设置:发票收件地址
*/
public void setApplicantInvoiceReceivingAddress(String applicantInvoiceReceivingAddress) {
this.applicantInvoiceReceivingAddress = applicantInvoiceReceivingAddress;
}
/**
* 获取:发票收件地址
*/
public String getApplicantInvoiceReceivingAddress() {
return applicantInvoiceReceivingAddress;
}
/**
* 设置:发票开票电话
*/
public void setApplicantInvoiceBillingPhone(String applicantInvoiceBillingPhone) {
this.applicantInvoiceBillingPhone = applicantInvoiceBillingPhone;
}
/**
* 获取:发票开票电话
*/
public String getApplicantInvoiceBillingPhone() {
return applicantInvoiceBillingPhone;
}
/**
* 设置:企业开户行名称
*/
public void setApplicantBusinessBankName(String applicantBusinessBankName) {
this.applicantBusinessBankName = applicantBusinessBankName;
}
/**
* 获取:企业开户行名称
*/
public String getApplicantBusinessBankName() {
return applicantBusinessBankName;
}
/**
* 设置:保单号
*/
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
/**
* 获取:保单号
*/
public String getPolicyNo() {
return policyNo;
}
/**
* 设置:投保类型:1个人 2 企业
*/
public void setApplicantType(String applicantType) {
this.applicantType = applicantType;
}
/**
* 获取:投保类型:1个人 2 企业
*/
public String getApplicantType() {
return applicantType;
}
/**
* 设置:报价请求流水号
*/
public void setTransId(String transId) {
this.transId = transId;
}
/**
* 获取:报价请求流水号
*/
public String getTransId() {
return transId;
}
/**
* 设置:报价号
*/
public void setCurrency(String currency) {
this.currency = currency;
}
/**
* 获取:报价号
*/
public String getCurrency() {
return currency;
}
/**
* 设置:发票开票金额
*/
public void setApplicantInvoicedAmount(String applicantInvoicedAmount) {
this.applicantInvoicedAmount = applicantInvoicedAmount;
}
/**
* 获取:发票开票金额
*/
public String getApplicantInvoicedAmount() {
return applicantInvoicedAmount;
}
public Integer getOrgCode() {
return orgCode;
}
public void setOrgCode(Integer orgCode) {
this.orgCode = orgCode;
}
}
package cn.timer.api.bean.insure;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* 保单信息
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-14 08:53:04
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "insure_policy")
@ApiModel("保单信息")
public class InsurePolicy extends Model<InsurePolicy> {
private static final long serialVersionUID = 1L;
/**
*
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "编号")
private Integer id;
/**
* 方案名称(必选)
*/
private String schemeName;
/**
* 保单生效日
*/
private Date policyDateStart;
/**
* 保单终止日
*/
private Date policyDateEnd;
/**
* 产品代码
*/
private String productCodeId;
/**
* 计划代码
*/
private String planCodeId;
/**
* 分销商pid
*/
private String partnerPid;
/**
* 保单号
*/
private String policyNo;
/**
* 保单类型:1、年单 2、月单
*/
private Integer type;
/**
* 5-人民币,其他币种请参见全局数据字典
*/
private String currency;
/**
* 总保费
*/
private String totalPremium;
/**
* 1-正常
*/
private String status;
/**
* 电子保单
*/
private String policyFile;
/**
* 保单kit的地址
*/
private String kitUrl;
/**
* 投保人id
*/
private Integer insureApplicantId;
/**
* 企业id
*/
private Integer orgCode;
/**
* 投保时间
*/
private Date createTime;
/**
* 最近操作时间
*/
private Date updateTime;
/**
* 设置:
*/
public void setId(Integer id) {
this.id = id;
}
/**
* 获取:
*/
public Integer getId() {
return id;
}
/**
* 设置:方案名称(必选)
*/
public void setSchemeName(String schemeName) {
this.schemeName = schemeName;
}
/**
* 获取:方案名称(必选)
*/
public String getSchemeName() {
return schemeName;
}
/**
* 设置:保单生效日
*/
public void setPolicyDateStart(Date policyDateStart) {
this.policyDateStart = policyDateStart;
}
/**
* 获取:保单生效日
*/
public Date getPolicyDateStart() {
return policyDateStart;
}
/**
* 设置:保单终止日
*/
public void setPolicyDateEnd(Date policyDateEnd) {
this.policyDateEnd = policyDateEnd;
}
/**
* 获取:保单终止日
*/
public Date getPolicyDateEnd() {
return policyDateEnd;
}
/**
* 设置:产品代码
*/
public void setProductCodeId(String productCodeId) {
this.productCodeId = productCodeId;
}
/**
* 获取:产品代码
*/
public String getProductCodeId() {
return productCodeId;
}
/**
* 设置:计划代码
*/
public void setPlanCodeId(String planCodeId) {
this.planCodeId = planCodeId;
}
/**
* 获取:计划代码
*/
public String getPlanCodeId() {
return planCodeId;
}
/**
* 设置:分销商pid
*/
public void setPartnerPid(String partnerPid) {
this.partnerPid = partnerPid;
}
/**
* 获取:分销商pid
*/
public String getPartnerPid() {
return partnerPid;
}
/**
* 设置:保单号
*/
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
/**
* 获取:保单号
*/
public String getPolicyNo() {
return policyNo;
}
/**
* 设置:保单类型:1、年单 2、月单
*/
public void setType(Integer type) {
this.type = type;
}
/**
* 获取:保单类型:1、年单 2、月单
*/
public Integer getType() {
return type;
}
/**
* 设置:5-人民币,其他币种请参见全局数据字典
*/
public void setCurrency(String currency) {
this.currency = currency;
}
/**
* 获取:5-人民币,其他币种请参见全局数据字典
*/
public String getCurrency() {
return currency;
}
/**
* 设置:总保费
*/
public void setTotalPremium(String totalPremium) {
this.totalPremium = totalPremium;
}
/**
* 获取:总保费
*/
public String getTotalPremium() {
return totalPremium;
}
/**
* 设置:1-正常
*/
public void setStatus(String status) {
this.status = status;
}
/**
* 获取:1-正常
*/
public String getStatus() {
return status;
}
/**
* 设置:电子保单
*/
public void setPolicyFile(String policyFile) {
this.policyFile = policyFile;
}
/**
* 获取:电子保单
*/
public String getPolicyFile() {
return policyFile;
}
/**
* 设置:保单kit的地址
*/
public void setKitUrl(String kitUrl) {
this.kitUrl = kitUrl;
}
/**
* 获取:保单kit的地址
*/
public String getKitUrl() {
return kitUrl;
}
/**
* 设置:投保人id
*/
public void setInsureApplicantId(Integer insureApplicantId) {
this.insureApplicantId = insureApplicantId;
}
/**
* 获取:投保人id
*/
public Integer getInsureApplicantId() {
return insureApplicantId;
}
/**
* 设置:企业id
*/
public void setOrgCode(Integer orgCode) {
this.orgCode = orgCode;
}
/**
* 获取:企业id
*/
public Integer getOrgCode() {
return orgCode;
}
/**
* 设置:投保时间
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* 获取:投保时间
*/
public Date getCreateTime() {
return createTime;
}
}
package cn.timer.api.bean.insure;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Transient;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* 被保人
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-11 09:06:53
*/
@Entity
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "insure_user")
@ApiModel("被保人")
public class InsureUser extends Model<InsureUser> {
private static final long serialVersionUID = 1L;
/**
* id
*/
@Id
@GeneratedValue
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "编号")
private Integer id;
/**
* 被保险人请求流水号
*/
@ApiModelProperty(value = "被保险人请求流水号")
private String transId;
/**
* 批次核算保费
*/
@ApiModelProperty(value = "批次核算保费")
private String price;
/**
* 姓名
*/
@ApiModelProperty(value = "姓名")
private String insuredName;
/**
* 被保险人批次号
*/
@ApiModelProperty(value = "被保险人批次号")
private String batchNo;
/**
* 保单批次保费
*/
@ApiModelProperty(value = "保单批次保费")
private String premium;
/**
* 被保险人联系电话
*/
@ApiModelProperty(value = "被保险人联系电话")
private String insuredMobile;
/**
* 证件号码
*/
@ApiModelProperty(value = "证件号码")
private String insuredNo;
/**
* 联系人姓名
*/
@ApiModelProperty(value = "联系人姓名")
private String insuredEContact;
/**
* 基础计划 30万雇主/3万医疗 36968,50万雇主/5万医疗 36969,80万雇主/10万医疗 36970,80万雇主/20万医疗 36971,100万雇主/10万医疗 36972
*/
@ApiModelProperty(value = "基础计划")
private String benefitBasicPlan;
/**
* 职业类别 A类 63119 B类 63120 C类 63121
*/
@ApiModelProperty(value = "职业类别")
private String benefitOccupationCategory;
/**
* 参保人数
*/
@ApiModelProperty(value = "参保人数")
private String benefitElEmployeeNumberT;
/**
* 二、三轮车车架号(必选)
*/
@ApiModelProperty(value = "二、三轮车车架号")
private String tricycleFrameNumber;
/**
* 保单号
*/
@ApiModelProperty(value = "保单号")
private String policyNo;
/**
* 参保状态:1参保中 2已失效
*/
@ApiModelProperty(value = "参保状态")
private String status;
/**
* 被保人类型:1个人 2企业
*/
@ApiModelProperty(value = "被保人类型")
private Integer type;
/**
* 企业id
*/
@ApiModelProperty(value = "企业id")
private Integer orgCode;
/**
* 个人id
*/
@ApiModelProperty(value = "个人id")
private Integer userId;
/**
* 人员清单
*/
@ApiModelProperty(value = "人员清单")
private String applicantEmployeeList;
@ApiModelProperty(value = "生效日期")
private Date policyDateStart;
@ApiModelProperty(value = "失效日期")
private Date policyDateEnd;
@Transient
private String[] userIds;
}
package cn.timer.api.bean.insure;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/3 18:01
*/
import java.io.Serializable;
/**
* 投保订单详情
*/
public class InsuredOrderDetail implements Serializable {
private static final long serialVersionUID = -1695869258491138853L;
private String is_ss;
/**
*
*/
private String transId;
private String serialNumber;
}
...@@ -51,7 +51,9 @@ public class RedisSessionInterceptor implements HandlerInterceptor { ...@@ -51,7 +51,9 @@ public class RedisSessionInterceptor implements HandlerInterceptor {
*/ */
// 无论访问的地址是不是正确的,都进行登录验证,登录成功后的访问再进行分发,404的访问自然会进入到错误控制器中 // 无论访问的地址是不是正确的,都进行登录验证,登录成功后的访问再进行分发,404的访问自然会进入到错误控制器中
HttpSession session = request.getSession(); HttpSession session = request.getSession();
if(session.getAttribute("ui")==null) { Object ai = session.getAttribute("ai");
Object ui = session.getAttribute("ui");
if(session.getAttribute("ui")==null&&session.getAttribute("ai")==null) {
response401(response); response401(response);
return false; return false;
} }
......
package cn.timer.api.controller.insure;
import cn.timer.api.bean.insure.CallBack;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import javax.security.auth.callback.Callback;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/3 8:45
*/
@Api(tags = "8.0回调接口")
@RestController
@Transactional
@RequestMapping(value = "/callBack/policy", produces = {"application/json"})
public class CallBackContorll {
private static final Logger log = LoggerFactory.getLogger(CallBackContorll.class);
@PostMapping(value = "/insuredCallBack")
@ApiOperation(value = "6.投保申请回调", httpMethod = "Post", notes = "投保申请回调")
@ApiOperationSupport(order = 2)
private Integer callBack(@RequestParam String pid, @RequestParam String sign, @RequestParam String timestamp, @RequestBody CallBack callBack){
log.info(String.valueOf(callBack));
return 1;
}
}
package cn.timer.api.controller.insure;
import java.io.IOException;
import java.util.Map;
import java.util.Optional;
import java.util.Random;
import cn.timer.api.bean.insure.InsureApplicant;
import cn.timer.api.config.annotation.CurrentUser;
import cn.timer.api.config.annotation.UserBean;
import cn.timer.api.dao.insure.InsureApplicantMapper;
import cn.timer.api.dto.insure.InsureDto;
import cn.timer.api.utils.HttpUtils;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import com.alibaba.druid.util.Base64;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.google.common.collect.Maps;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import org.apache.commons.codec.digest.DigestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
/**
* 投保人
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-07 17:02:46
*/
@Api(tags = "23.0保险列表")
@RestController
@Transactional
@RequestMapping(value = "/insureApplicant", produces = {"application/json"})
public class InsureApplicantController {
private static final Logger log = LoggerFactory.getLogger(InsureApplicantController.class);
@Autowired
private InsureApplicantMapper insureApplicantMapper;
@Value("insure.type.test.appid")
private String appid;
@Value("insure.type.test.secret")
private String secret;
@Value("insure.type.test.appidq")
private String appidq;
@Value("insure.type.test.secretq")
private String secretq;
@Value("insure.type.test.uploadUrl")
private String uploadUrl;
@Value("insure.type.test.insuredUrl")
private String insuredUrl;
@Value("insure.type.test.uploadUrlq")
private String uploadUrl2;
@PostMapping("/insureApplicationSetting")
@ApiOperation(value = "设置投保人", httpMethod = "POST", notes = "投保申请")
private Result<Object> insureApplicationSetting(@CurrentUser UserBean userBean, @RequestBody InsureApplicant params) {
InsureApplicant insureApplicant = InsureApplicant.builder().build().selectOne(new QueryWrapper<InsureApplicant>().lambda().eq(InsureApplicant::getOrgCode,userBean.getOrgCode()));
if(insureApplicant==null){
params.insert();
return ResultUtil.data(params);
}
BeanUtils.copyProperties(params,insureApplicant);
insureApplicant.updateById();
return ResultUtil.data(insureApplicant);
}
@PostMapping("/getApplicant")
@ApiOperation(value = "获取投保人", httpMethod = "POST", notes = "获取投保人")
private Result<Object> getApplicant(@CurrentUser UserBean userBean) {
InsureApplicant insureApplicant = InsureApplicant.builder().build().selectOne(new QueryWrapper<InsureApplicant>().lambda().eq(InsureApplicant::getOrgCode,userBean.getOrgCode()));
if(insureApplicant==null){
return ResultUtil.data(null);
}
return ResultUtil.data(insureApplicant);
}
/**
* 设置链接参数
*
* @param sign
* @return
*/
private Map setParams(String sign) {
/*当前时间戳*/
long timestamp = System.currentTimeMillis()/1000;
log.info("时间戳" + timestamp);
Map paramsMap = Maps.newHashMap();
paramsMap.put("pid", appidq);
paramsMap.put("timestamp", String.valueOf(timestamp));
paramsMap.put("trace_id", appidq + timestamp + new Random().nextInt((9999 - 100) + 1) + 10);
// paramsMap.put("sign",Md5.md5(appid+secret+timestamp+sign.trim()));
String value = appidq + secretq + timestamp + sign;
log.info("body参数======" + sign);
paramsMap.put("sign", DigestUtils.md5Hex(value));
log.info("params参数======" + JSONObject.toJSONString(paramsMap));
return paramsMap;
}
/**
* 设置返回信息
*
* @param data
* @return
*/
private Object message(String data) {
Map<String, Object> dataMap = JSONObject.parseObject(data);
if (dataMap.get("errcode").toString().equals("suc")) {
return dataMap.get("data");
}
return dataMap.get("errmsg");
}
}
package cn.timer.api.controller.insure;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
/**
* 被保人
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-11 09:06:53
*/
@RestController
@RequestMapping("insureuser")
public class InsureUserController{
}
package cn.timer.api.controller.insure.bean;
import lombok.Data;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/10 14:28
*/
@Data
public class ExcelBean {
private String id;
private String name;
private String idType;
private String idNumber;
private String schemeName;
private String dateStart;
private String branch;
private String tricycleFrameNumber;
private String benefitOccupationCategory;
}
package cn.timer.api.controller.superadmin;
import cn.timer.api.bean.adminaccount.AdminAccount;
import cn.timer.api.bean.qyzx.QyzxEmpLogin;
import cn.timer.api.dto.qyzx.EntRegisterDto;
import cn.timer.api.utils.Md5;
import cn.timer.api.utils.Result;
import cn.timer.api.utils.ResultUtil;
import cn.timer.api.utils.UserIp;
import cn.timer.api.utils.redis.RedisConfig;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/14 18:14
*/
@RestController
@Api(tags = "33.0运营后台登录")
@Transactional
@RequestMapping(value = "/superLogin", produces = { "application/json" })
public class SuperLoginController {
@Autowired
private HttpSession session;
@PostMapping(value = "/adminLogin")
@ApiOperation(value = "运营后台登录", httpMethod = "POST", notes = "接口发布说明")
public Result<AdminAccount> adminLogin(@RequestBody EntRegisterDto entRegisterDto, HttpServletRequest request){
String ip = UserIp.getIpAddr(request);
AdminAccount adminAccount = AdminAccount.builder().build().selectOne(new QueryWrapper<AdminAccount>().lambda()
.eq(AdminAccount::getAccount,entRegisterDto.getPhone())
.eq(AdminAccount::getPwd,Md5.md5(entRegisterDto.getPw())));
if(adminAccount==null){
return ResultUtil.error("用户不存在或密码错误");
}
session=request.getSession();
session.setAttribute("ai", adminAccount);
System.err.println(session.getId());
return ResultUtil.data(adminAccount);
};
@PostMapping(value = "/adminOutLogin")
@ApiOperation(value = "运营后台退出", httpMethod = "POST", notes = "接口发布说明")
public Result<String> adminOutLogin(HttpServletRequest request){
session= request.getSession();
session.removeAttribute("ai");
return ResultUtil.data("退出成功");
}
}
package cn.timer.api.dao.adminaccount;
import cn.timer.api.bean.adminaccount.AdminAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* 管理员列表
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-14 18:24:20
*/
@Repository
public interface AdminAccountMapper extends BaseMapper<AdminAccount> {
}
package cn.timer.api.dao.insure;
import cn.timer.api.bean.insure.InsureApplicant;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* 投保人
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-07 17:02:46
*/
@Repository
public interface InsureApplicantMapper extends BaseMapper<InsureApplicant> {
}
package cn.timer.api.dao.insure;
import cn.timer.api.bean.insure.InsurePolicy;
import cn.timer.api.dto.insure.PolicyDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 保单信息
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-14 08:53:04
*/
@Repository
public interface InsurePolicyMapper extends BaseMapper<InsurePolicy> {
public List<PolicyDto> policyList();
}
package cn.timer.api.dao.insure;
import cn.timer.api.bean.insure.InsureUser;
import cn.timer.api.dto.insure.PolicyDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 被保人
*
* @author wgd
* @email 862422848@qq.com
* @date 2022-03-11 09:06:53
*/
@Repository
public interface InsureUserMapper extends BaseMapper<InsureUser> {
public List<PolicyDto> selectPolicyList(String id);
}
...@@ -131,4 +131,6 @@ public interface YgglMainEmpMapper extends BaseMapper<YgglMainEmp> { ...@@ -131,4 +131,6 @@ public interface YgglMainEmpMapper extends BaseMapper<YgglMainEmp> {
IPage<YgglMainEmp> selectME(Page<YgglMainEmp> page,@Param("param") EmpQuery empQuery); IPage<YgglMainEmp> selectME(Page<YgglMainEmp> page,@Param("param") EmpQuery empQuery);
List<DepartmentStaffDto> DepartmentStaff(Integer orgcode,Integer upid); List<DepartmentStaffDto> DepartmentStaff(Integer orgcode,Integer upid);
List<YgglMainEmp> selectListByIds(@Param("array")String[] ids);
} }
package cn.timer.api.dto.insure;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import sun.dc.pr.PRError;
import java.util.Date;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/7 18:15
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InsureDto {
private String orgCode;/*劳动合同*/
private String companyName;/*用工单位实际工作单位*/
private String[] userIds;
private String policyDateStart;
private String policyDateEnd;
private String benefitBasicPlan;/*方案名称*/
private String benefitOccupationCategory;
private String tricycleFrameNumber;
// private String
}
package cn.timer.api.dto.insure;
import lombok.Data;
import java.util.Date;
/**
* @Description TODO
* @Author wgd
* @Date 2022/3/14 11:01
*/
@Data
public class PolicyDto {
private long id;
private String name;
private Integer zjType;
private String zjNum;
private String policyNo;
private String status;
private String schemeName;
private String policyDateStart;
private String policyDateEnd;
private String createTime;
private Integer type;
private Integer totaPolicy;
private Integer totalCompany;
private Integer totalUser;
private Double totalPremium;
private Date updateTime;
private String insuredName;
private String benefitBasicPlan;
private String price;
}
package cn.timer.api.utils; package cn.timer.api.utils;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger; import java.math.BigInteger;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.Base64;
//import org.apache.shiro.crypto.hash.SimpleHash; //import org.apache.shiro.crypto.hash.SimpleHash;
/** /**
...@@ -29,7 +33,8 @@ public class Md5 { ...@@ -29,7 +33,8 @@ public class Md5 {
// 生成一个MD5加密计算摘要 // 生成一个MD5加密计算摘要
MessageDigest md = MessageDigest.getInstance("MD5"); MessageDigest md = MessageDigest.getInstance("MD5");
// 对字符串进行加密 // 对字符串进行加密
md.update(plainText.getBytes()); secretBytes=plainText.getBytes(StandardCharsets.ISO_8859_1);
md.update(secretBytes);
// 获得加密后的数据 // 获得加密后的数据
secretBytes = md.digest(); secretBytes = md.digest();
} catch (NoSuchAlgorithmException e) { } catch (NoSuchAlgorithmException e) {
...@@ -43,7 +48,6 @@ public class Md5 { ...@@ -43,7 +48,6 @@ public class Md5 {
} }
return md5code; return md5code;
} }
public static void main(String[] args) { public static void main(String[] args) {
} }
......
/*
Navicat MySQL Data Transfer
Source Server : 120.78.162.177
Source Server Type : MySQL
Source Server Version : 50734
Source Host : 120.78.162.177:3306
Source Schema : timer_test
Target Server Type : MySQL
Target Server Version : 50734
File Encoding : 65001
Date: 05/03/2022 11:40:47
*/
SET NAMES utf8mb4;
SET
FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for insure_applicant
-- ----------------------------
DROP TABLE IF EXISTS `insure_applicant`;
CREATE TABLE `insure_applicant`
(
`id` int(11) NOT NULL COMMENT 'id',
`applicant_e_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业/网点名称',
`applicant_e_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业/网点地址',
`applicant_employee_list` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '人员清单',
`applicant_e_contacts` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业授权操作人姓名',
`applicant_e_phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作人的联系电话',
`applicant_e_no_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业证件类型:3646、统一社会信用代码 3924、组织机构代码',
`applicant_e_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业证件号码',
`applicant_e_mail` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业邮箱',
`applicant_province_city` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '省市区',
`applicant_invoice_receiving_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发票收件地址',
`applicant_corporate_bank_account` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发票开票电话',
`applicant_business_bank_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '企业开户行名称',
`policy_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单号',
`applicant_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '投保类型:1个人 2 企业',
`trans_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报价请求流水号',
`currency` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '报价号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '投保人' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for insure_policy
-- ----------------------------
DROP TABLE IF EXISTS `insure_policy`;
CREATE TABLE `insure_policy`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`Scheme_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '方案名称(必选)',
`policy_date_start` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单生效日',
`policy_date_end` datetime NULL DEFAULT NULL COMMENT '保单终止日',
`product_code_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品代码',
`plan_code_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '计划代码',
`partner_pid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分销商pid',
`policy_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单号',
`type` int(11) NULL DEFAULT NULL COMMENT '保单类型:1、年单 2、月单',
`currency` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '5-人民币,其他币种请参见全局数据字典',
`total_premium` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '总保费\r\n\r\n',
`status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '1-正常',
`policy_file` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单',
`kit_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单kit的地址',
`insure_applicant_id` int(11) NULL DEFAULT NULL COMMENT '投保人id',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_polivy_no`(`policy_no`) USING BTREE COMMENT '保单唯一索引'
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '保单信息' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for insure_province
-- ----------------------------
DROP TABLE IF EXISTS `insure_province`;
CREATE TABLE `insure_province`
(
`id` int(11) NOT NULL AUTO_INCREMENT,
`value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '值',
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名字',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '省市区' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for insure_user
-- ----------------------------
DROP TABLE IF EXISTS `insure_user`;
CREATE TABLE `insure_user`
(
`id` int(11) NOT NULL COMMENT 'id',
`trans_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被保险人请求流水号',
`price` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '批次核算保费',
`insured_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '姓名',
`insured_applicant_relations` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他526、同投保人36960、本人 59、其他详见数据字典',
`insured_no_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '15-身份证,其他详见数据字典',
`batch_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被保险人批次号',
`premium` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单批次保费',
`insured_mobile` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被保险人联系电话',
`insured_no` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '证件号码',
`insured_e_contact` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系人姓名',
`benefit_basic_plan` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '基础计划\r\n30万雇主/3万医疗 36968,50万雇主/5万医疗 36969,80万雇主/10万医疗 36970,80万雇主/20万医疗 36971,100万雇主/10万医疗 36972\r\n',
`benefit_occupation_category` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '职业类别\r\nA类 63119\r\nB类 63120\r\nC类 63121\r\n',
`benefit_EL_employee_number_t` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参保人数',
`Tricycle_frame_number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '二、三轮车车架号(必选)',
`status` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '人员状态',
`policy_no` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保单号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
SET
FOREIGN_KEY_CHECKS = 1;
ALTER TABLE `timer_test`.`yggl_main_emp`
ADD COLUMN `is_insure` int(11) NULL DEFAULT 0 COMMENT '是否已投保:0否 1是' AFTER `custom_num`;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.timer.api.dao.adminaccount.AdminAccountMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.adminaccount.AdminAccount" id="adminAccountMap">
<result property="id" column="id"/>
<result property="realname" column="realname"/>
<result property="tel" column="tel"/>
<result property="types" column="types"/>
<result property="createrid" column="createrid"/>
<result property="createtime" column="createtime"/>
<result property="department" column="department"/>
<result property="groupid" column="groupid"/>
<result property="statu" column="statu"/>
<result property="mark" column="mark"/>
<result property="account" column="account"/>
<result property="pwd" column="pwd"/>
<result property="avatar" column="avatar"/>
<result property="category" column="category"/>
<result property="lfc" column="lfc"/>
<result property="prohibittime" column="prohibittime"/>
<result property="ip" column="ip"/>
<result property="logintime" column="logintime"/>
<result property="updatetime" column="updatetime"/>
</resultMap>
<select id="queryObject" resultType="cn.timer.api.bean.adminaccount.AdminAccount">
select *
from admin_account
where id = #{value}
</select>
<select id="queryList" resultType="cn.timer.api.bean.adminaccount.AdminAccount">
select * from admin_account
<where>
<if test="realname != null and realname != ''">AND `realname` = #{realname}</if>
<if test="tel != null and tel != ''">AND `tel` = #{tel}</if>
<if test="types != null and types != ''">AND `types` = #{types}</if>
<if test="createrid != null and createrid != ''">AND `createrid` = #{createrid}</if>
<if test="createtime != null and createtime != ''">AND `createtime` = #{createtime}</if>
<if test="department != null and department != ''">AND `department` = #{department}</if>
<if test="groupid != null and groupid != ''">AND `groupid` = #{groupid}</if>
<if test="statu != null and statu != ''">AND `statu` = #{statu}</if>
<if test="mark != null and mark != ''">AND `mark` = #{mark}</if>
<if test="account != null and account != ''">AND `account` = #{account}</if>
<if test="pwd != null and pwd != ''">AND `pwd` = #{pwd}</if>
<if test="avatar != null and avatar != ''">AND `avatar` = #{avatar}</if>
<if test="category != null and category != ''">AND `category` = #{category}</if>
<if test="lfc != null and lfc != ''">AND `lfc` = #{lfc}</if>
<if test="prohibittime != null and prohibittime != ''">AND `prohibittime` = #{prohibittime}</if>
<if test="ip != null and ip != ''">AND `ip` = #{ip}</if>
<if test="logintime != null and logintime != ''">AND `logintime` = #{logintime}</if>
<if test="updatetime != null and updatetime != ''">AND `updatetime` = #{updatetime}</if>
</where>
<choose>
<when test="sidx != null and sidx.trim() != ''">
order by ${sidx} ${order}
</when>
<otherwise>
order by id desc
</otherwise>
</choose>
<if test="offset != null and limit != null">
limit #{offset}, #{limit}
</if>
</select>
<select id="queryTotal" resultType="int">
select count(*) from admin_account
<where>
<if test="realname != null and realname != ''">AND `realname` = #{realname}</if>
<if test="tel != null and tel != ''">AND `tel` = #{tel}</if>
<if test="types != null and types != ''">AND `types` = #{types}</if>
<if test="createrid != null and createrid != ''">AND `createrid` = #{createrid}</if>
<if test="createtime != null and createtime != ''">AND `createtime` = #{createtime}</if>
<if test="department != null and department != ''">AND `department` = #{department}</if>
<if test="groupid != null and groupid != ''">AND `groupid` = #{groupid}</if>
<if test="statu != null and statu != ''">AND `statu` = #{statu}</if>
<if test="mark != null and mark != ''">AND `mark` = #{mark}</if>
<if test="account != null and account != ''">AND `account` = #{account}</if>
<if test="pwd != null and pwd != ''">AND `pwd` = #{pwd}</if>
<if test="avatar != null and avatar != ''">AND `avatar` = #{avatar}</if>
<if test="category != null and category != ''">AND `category` = #{category}</if>
<if test="lfc != null and lfc != ''">AND `lfc` = #{lfc}</if>
<if test="prohibittime != null and prohibittime != ''">AND `prohibittime` = #{prohibittime}</if>
<if test="ip != null and ip != ''">AND `ip` = #{ip}</if>
<if test="logintime != null and logintime != ''">AND `logintime` = #{logintime}</if>
<if test="updatetime != null and updatetime != ''">AND `updatetime` = #{updatetime}</if>
</where>
</select>
<insert id="save" parameterType="cn.timer.api.bean.adminaccount.AdminAccount" useGeneratedKeys="true" keyProperty="id">
insert into admin_account
(`realname`,
`tel`,
`types`,
`createrid`,
`createtime`,
`department`,
`groupid`,
`statu`,
`mark`,
`account`,
`pwd`,
`avatar`,
`category`,
`lfc`,
`prohibittime`,
`ip`,
`logintime`,
`updatetime`)
values (#{realname},
#{tel},
#{types},
#{createrid},
#{createtime},
#{department},
#{groupid},
#{statu},
#{mark},
#{account},
#{pwd},
#{avatar},
#{category},
#{lfc},
#{prohibittime},
#{ip},
#{logintime},
#{updatetime})
</insert>
<insert id="saveSelective" parameterType="cn.timer.api.bean.adminaccount.AdminAccount" useGeneratedKeys="true"
keyProperty="id">
insert into admin_account
(
<if test="realname != null">,`realname`</if>
<if test="tel != null">,`tel`</if>
<if test="types != null">,`types`</if>
<if test="createrid != null">,`createrid`</if>
<if test="createtime != null">,`createtime`</if>
<if test="department != null">,`department`</if>
<if test="groupid != null">,`groupid`</if>
<if test="statu != null">,`statu`</if>
<if test="mark != null">,`mark`</if>
<if test="account != null">,`account`</if>
<if test="pwd != null">,`pwd`</if>
<if test="avatar != null">,`avatar`</if>
<if test="category != null">,`category`</if>
<if test="lfc != null">,`lfc`</if>
<if test="prohibittime != null">,`prohibittime`</if>
<if test="ip != null">,`ip`</if>
<if test="logintime != null">,`logintime`</if>
<if test="updatetime != null">,`updatetime`</if>
)
values
(
<if test="realname != null">,#{realname}</if>
<if test="tel != null">,#{tel}</if>
<if test="types != null">,#{types}</if>
<if test="createrid != null">,#{createrid}</if>
<if test="createtime != null">,#{createtime}</if>
<if test="department != null">,#{department}</if>
<if test="groupid != null">,#{groupid}</if>
<if test="statu != null">,#{statu}</if>
<if test="mark != null">,#{mark}</if>
<if test="account != null">,#{account}</if>
<if test="pwd != null">,#{pwd}</if>
<if test="avatar != null">,#{avatar}</if>
<if test="category != null">,#{category}</if>
<if test="lfc != null">,#{lfc}</if>
<if test="prohibittime != null">,#{prohibittime}</if>
<if test="ip != null">,#{ip}</if>
<if test="logintime != null">,#{logintime}</if>
<if test="updatetime != null">,#{updatetime}</if>
)
</insert>
<insert id="saveList" parameterType="cn.timer.api.bean.adminaccount.AdminAccount" useGeneratedKeys="true"
keyProperty="id">
insert into admin_account
(
`realname`,
`tel`,
`types`,
`createrid`,
`createtime`,
`department`,
`groupid`,
`statu`,
`mark`,
`account`,
`pwd`,
`avatar`,
`category`,
`lfc`,
`prohibittime`,
`ip`,
`logintime`,
`updatetime`
)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.realname},
#{item.tel},
#{item.types},
#{item.createrid},
#{item.createtime},
#{item.department},
#{item.groupid},
#{item.statu},
#{item.mark},
#{item.account},
#{item.pwd},
#{item.avatar},
#{item.category},
#{item.lfc},
#{item.prohibittime},
#{item.ip},
#{item.logintime},
#{item.updatetime}
)
</foreach>
</insert>
<update id="update" parameterType="cn.timer.api.bean.adminaccount.AdminAccount">
update admin_account
<set>
<if test="realname != null">`realname` = #{realname},</if>
<if test="tel != null">`tel` = #{tel},</if>
<if test="types != null">`types` = #{types},</if>
<if test="createrid != null">`createrid` = #{createrid},</if>
<if test="createtime != null">`createtime` = #{createtime},</if>
<if test="department != null">`department` = #{department},</if>
<if test="groupid != null">`groupid` = #{groupid},</if>
<if test="statu != null">`statu` = #{statu},</if>
<if test="mark != null">`mark` = #{mark},</if>
<if test="account != null">`account` = #{account},</if>
<if test="pwd != null">`pwd` = #{pwd},</if>
<if test="avatar != null">`avatar` = #{avatar},</if>
<if test="category != null">`category` = #{category},</if>
<if test="lfc != null">`lfc` = #{lfc},</if>
<if test="prohibittime != null">`prohibittime` = #{prohibittime},</if>
<if test="ip != null">`ip` = #{ip},</if>
<if test="logintime != null">`logintime` = #{logintime},</if>
<if test="updatetime != null">`updatetime` = #{updatetime}</if>
</set>
where id = #{id}
</update>
<delete id="delete">
delete
from admin_account
where id = #{value}
</delete>
<delete id="deleteBatch">
delete from admin_account where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.timer.api.dao.insure.InsureApplicantMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.insure.InsureApplicant" id="insureApplicantMap">
<result property="id" column="id"/>
<result property="applicantEName" column="applicant_e_name"/>
<result property="applicantEAddress" column="applicant_e_address"/>
<result property="applicantEmployeeList" column="applicant_employee_list"/>
<result property="applicantEContacts" column="applicant_e_contacts"/>
<result property="applicantEPhone" column="applicant_e_phone"/>
<result property="applicantENoType" column="applicant_e_no_type"/>
<result property="applicantENo" column="applicant_e_no"/>
<result property="applicantEMail" column="applicant_e_mail"/>
<result property="applicantProvinceCity" column="applicant_province_city"/>
<result property="applicantInvoiceReceivingAddress" column="applicant_invoice_receiving_address"/>
<result property="applicantInvoiceBillingPhone" column="applicant_invoice_billing_phone"/>
<result property="applicantBusinessBankName" column="applicant_business_bank_name"/>
<result property="policyNo" column="policy_no"/>
<result property="applicantType" column="applicant_type"/>
<result property="transId" column="trans_id"/>
<result property="currency" column="currency"/>
<result property="applicantInvoicedAmount" column="applicant_invoiced_amount"/>
</resultMap>
<select id="queryObject" resultType="cn.timer.api.bean.insure.InsureApplicant">
select *
from insure_applicant
where id = #{value}
</select>
<select id="queryList" resultType="cn.timer.api.bean.insure.InsureApplicant">
select * from insure_applicant
<where>
<if test="applicantEName != null and applicantEName != ''">AND `applicant_e_name` = #{applicantEName}</if>
<if test="applicantEAddress != null and applicantEAddress != ''">AND `applicant_e_address` =
#{applicantEAddress}
</if>
<if test="applicantEmployeeList != null and applicantEmployeeList != ''">AND `applicant_employee_list` =
#{applicantEmployeeList}
</if>
<if test="applicantEContacts != null and applicantEContacts != ''">AND `applicant_e_contacts` =
#{applicantEContacts}
</if>
<if test="applicantEPhone != null and applicantEPhone != ''">AND `applicant_e_phone` = #{applicantEPhone}
</if>
<if test="applicantENoType != null and applicantENoType != ''">AND `applicant_e_no_type` =
#{applicantENoType}
</if>
<if test="applicantENo != null and applicantENo != ''">AND `applicant_e_no` = #{applicantENo}</if>
<if test="applicantEMail != null and applicantEMail != ''">AND `applicant_e_mail` = #{applicantEMail}</if>
<if test="applicantProvinceCity != null and applicantProvinceCity != ''">AND `applicant_province_city` =
#{applicantProvinceCity}
</if>
<if test="applicantInvoiceReceivingAddress != null and applicantInvoiceReceivingAddress != ''">AND
`applicant_invoice_receiving_address` = #{applicantInvoiceReceivingAddress}
</if>
<if test="applicantInvoiceBillingPhone != null and applicantInvoiceBillingPhone != ''">AND
`applicant_invoice_billing_phone` = #{applicantInvoiceBillingPhone}
</if>
<if test="applicantBusinessBankName != null and applicantBusinessBankName != ''">AND
`applicant_business_bank_name` = #{applicantBusinessBankName}
</if>
<if test="policyNo != null and policyNo != ''">AND `policy_no` = #{policyNo}</if>
<if test="applicantType != null and applicantType != ''">AND `applicant_type` = #{applicantType}</if>
<if test="transId != null and transId != ''">AND `trans_id` = #{transId}</if>
<if test="currency != null and currency != ''">AND `currency` = #{currency}</if>
<if test="applicantInvoicedAmount != null and applicantInvoicedAmount != ''">AND `applicant_invoiced_amount`
= #{applicantInvoicedAmount}
</if>
</where>
<choose>
<when test="sidx != null and sidx.trim() != ''">
order by ${sidx} ${order}
</when>
<otherwise>
order by id desc
</otherwise>
</choose>
<if test="offset != null and limit != null">
limit #{offset}, #{limit}
</if>
</select>
<select id="queryTotal" resultType="int">
select count(*) from insure_applicant
<where>
<if test="applicantEName != null and applicantEName != ''">AND `applicant_e_name` = #{applicantEName}</if>
<if test="applicantEAddress != null and applicantEAddress != ''">AND `applicant_e_address` =
#{applicantEAddress}
</if>
<if test="applicantEmployeeList != null and applicantEmployeeList != ''">AND `applicant_employee_list` =
#{applicantEmployeeList}
</if>
<if test="applicantEContacts != null and applicantEContacts != ''">AND `applicant_e_contacts` =
#{applicantEContacts}
</if>
<if test="applicantEPhone != null and applicantEPhone != ''">AND `applicant_e_phone` = #{applicantEPhone}
</if>
<if test="applicantENoType != null and applicantENoType != ''">AND `applicant_e_no_type` =
#{applicantENoType}
</if>
<if test="applicantENo != null and applicantENo != ''">AND `applicant_e_no` = #{applicantENo}</if>
<if test="applicantEMail != null and applicantEMail != ''">AND `applicant_e_mail` = #{applicantEMail}</if>
<if test="applicantProvinceCity != null and applicantProvinceCity != ''">AND `applicant_province_city` =
#{applicantProvinceCity}
</if>
<if test="applicantInvoiceReceivingAddress != null and applicantInvoiceReceivingAddress != ''">AND
`applicant_invoice_receiving_address` = #{applicantInvoiceReceivingAddress}
</if>
<if test="applicantInvoiceBillingPhone != null and applicantInvoiceBillingPhone != ''">AND
`applicant_invoice_billing_phone` = #{applicantInvoiceBillingPhone}
</if>
<if test="applicantBusinessBankName != null and applicantBusinessBankName != ''">AND
`applicant_business_bank_name` = #{applicantBusinessBankName}
</if>
<if test="policyNo != null and policyNo != ''">AND `policy_no` = #{policyNo}</if>
<if test="applicantType != null and applicantType != ''">AND `applicant_type` = #{applicantType}</if>
<if test="transId != null and transId != ''">AND `trans_id` = #{transId}</if>
<if test="currency != null and currency != ''">AND `currency` = #{currency}</if>
<if test="applicantInvoicedAmount != null and applicantInvoicedAmount != ''">AND `applicant_invoiced_amount`
= #{applicantInvoicedAmount}
</if>
</where>
</select>
<insert id="save" parameterType="cn.timer.api.bean.insure.InsureApplicant" useGeneratedKeys="true"
keyProperty="id">
insert into insure_applicant
(`applicant_e_name`,
`applicant_e_address`,
`applicant_employee_list`,
`applicant_e_contacts`,
`applicant_e_phone`,
`applicant_e_no_type`,
`applicant_e_no`,
`applicant_e_mail`,
`applicant_province_city`,
`applicant_invoice_receiving_address`,
`applicant_invoice_billing_phone`,
`applicant_business_bank_name`,
`policy_no`,
`applicant_type`,
`trans_id`,
`currency`,
`applicant_invoiced_amount`)
values (#{applicantEName},
#{applicantEAddress},
#{applicantEmployeeList},
#{applicantEContacts},
#{applicantEPhone},
#{applicantENoType},
#{applicantENo},
#{applicantEMail},
#{applicantProvinceCity},
#{applicantInvoiceReceivingAddress},
#{applicantInvoiceBillingPhone},
#{applicantBusinessBankName},
#{policyNo},
#{applicantType},
#{transId},
#{currency},
#{applicantInvoicedAmount})
</insert>
<insert id="saveSelective" parameterType="cn.timer.api.bean.insure.InsureApplicant" useGeneratedKeys="true"
keyProperty="id">
insert into insure_applicant
(
<if test="applicantEName != null">,`applicant_e_name`</if>
<if test="applicantEAddress != null">,`applicant_e_address`</if>
<if test="applicantEmployeeList != null">,`applicant_employee_list`</if>
<if test="applicantEContacts != null">,`applicant_e_contacts`</if>
<if test="applicantEPhone != null">,`applicant_e_phone`</if>
<if test="applicantENoType != null">,`applicant_e_no_type`</if>
<if test="applicantENo != null">,`applicant_e_no`</if>
<if test="applicantEMail != null">,`applicant_e_mail`</if>
<if test="applicantProvinceCity != null">,`applicant_province_city`</if>
<if test="applicantInvoiceReceivingAddress != null">,`applicant_invoice_receiving_address`</if>
<if test="applicantInvoiceBillingPhone != null">,`applicant_invoice_billing_phone`</if>
<if test="applicantBusinessBankName != null">,`applicant_business_bank_name`</if>
<if test="policyNo != null">,`policy_no`</if>
<if test="applicantType != null">,`applicant_type`</if>
<if test="transId != null">,`trans_id`</if>
<if test="currency != null">,`currency`</if>
<if test="applicantInvoicedAmount != null">,`applicant_invoiced_amount`</if>
)
values
(
<if test="applicantEName != null">,#{applicantEName}</if>
<if test="applicantEAddress != null">,#{applicantEAddress}</if>
<if test="applicantEmployeeList != null">,#{applicantEmployeeList}</if>
<if test="applicantEContacts != null">,#{applicantEContacts}</if>
<if test="applicantEPhone != null">,#{applicantEPhone}</if>
<if test="applicantENoType != null">,#{applicantENoType}</if>
<if test="applicantENo != null">,#{applicantENo}</if>
<if test="applicantEMail != null">,#{applicantEMail}</if>
<if test="applicantProvinceCity != null">,#{applicantProvinceCity}</if>
<if test="applicantInvoiceReceivingAddress != null">,#{applicantInvoiceReceivingAddress}</if>
<if test="applicantInvoiceBillingPhone != null">,#{applicantInvoiceBillingPhone}</if>
<if test="applicantBusinessBankName != null">,#{applicantBusinessBankName}</if>
<if test="policyNo != null">,#{policyNo}</if>
<if test="applicantType != null">,#{applicantType}</if>
<if test="transId != null">,#{transId}</if>
<if test="currency != null">,#{currency}</if>
<if test="applicantInvoicedAmount != null">,#{applicantInvoicedAmount}</if>
)
</insert>
<insert id="saveList" parameterType="cn.timer.api.bean.insure.InsureApplicant" useGeneratedKeys="true"
keyProperty="id">
insert into insure_applicant
(
`applicant_e_name`,
`applicant_e_address`,
`applicant_employee_list`,
`applicant_e_contacts`,
`applicant_e_phone`,
`applicant_e_no_type`,
`applicant_e_no`,
`applicant_e_mail`,
`applicant_province_city`,
`applicant_invoice_receiving_address`,
`applicant_invoice_billing_phone`,
`applicant_business_bank_name`,
`policy_no`,
`applicant_type`,
`trans_id`,
`currency`,
`applicant_invoiced_amount`
)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.applicantEName},
#{item.applicantEAddress},
#{item.applicantEmployeeList},
#{item.applicantEContacts},
#{item.applicantEPhone},
#{item.applicantENoType},
#{item.applicantENo},
#{item.applicantEMail},
#{item.applicantProvinceCity},
#{item.applicantInvoiceReceivingAddress},
#{item.applicantInvoiceBillingPhone},
#{item.applicantBusinessBankName},
#{item.policyNo},
#{item.applicantType},
#{item.transId},
#{item.currency},
#{item.applicantInvoicedAmount}
)
</foreach>
</insert>
<update id="update" parameterType="cn.timer.api.bean.insure.InsureApplicant">
update insure_applicant
<set>
<if test="applicantEName != null">`applicant_e_name` = #{applicantEName},</if>
<if test="applicantEAddress != null">`applicant_e_address` = #{applicantEAddress},</if>
<if test="applicantEmployeeList != null">`applicant_employee_list` = #{applicantEmployeeList},</if>
<if test="applicantEContacts != null">`applicant_e_contacts` = #{applicantEContacts},</if>
<if test="applicantEPhone != null">`applicant_e_phone` = #{applicantEPhone},</if>
<if test="applicantENoType != null">`applicant_e_no_type` = #{applicantENoType},</if>
<if test="applicantENo != null">`applicant_e_no` = #{applicantENo},</if>
<if test="applicantEMail != null">`applicant_e_mail` = #{applicantEMail},</if>
<if test="applicantProvinceCity != null">`applicant_province_city` = #{applicantProvinceCity},</if>
<if test="applicantInvoiceReceivingAddress != null">`applicant_invoice_receiving_address` =
#{applicantInvoiceReceivingAddress},
</if>
<if test="applicantInvoiceBillingPhone != null">`applicant_invoice_billing_phone` =
#{applicantInvoiceBillingPhone},
</if>
<if test="applicantBusinessBankName != null">`applicant_business_bank_name` =
#{applicantBusinessBankName},
</if>
<if test="policyNo != null">`policy_no` = #{policyNo},</if>
<if test="applicantType != null">`applicant_type` = #{applicantType},</if>
<if test="transId != null">`trans_id` = #{transId},</if>
<if test="currency != null">`currency` = #{currency},</if>
<if test="applicantInvoicedAmount != null">`applicant_invoiced_amount` = #{applicantInvoicedAmount}</if>
</set>
where id = #{id}
</update>
<delete id="delete">
delete
from insure_applicant
where id = #{value}
</delete>
<delete id="deleteBatch">
delete from insure_applicant where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.timer.api.dao.insure.InsurePolicyMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.insure.InsurePolicy" id="insurePolicyMap">
<result property="id" column="id"/>
<result property="schemeName" column="scheme_name"/>
<result property="policyDateStart" column="policy_date_start"/>
<result property="policyDateEnd" column="policy_date_end"/>
<result property="productCodeId" column="product_code_id"/>
<result property="planCodeId" column="plan_code_id"/>
<result property="partnerPid" column="partner_pid"/>
<result property="policyNo" column="policy_no"/>
<result property="type" column="type"/>
<result property="currency" column="currency"/>
<result property="totalPremium" column="total_premium"/>
<result property="status" column="status"/>
<result property="policyFile" column="policy_file"/>
<result property="kitUrl" column="kit_url"/>
<result property="insureApplicantId" column="insure_applicant_id"/>
<result property="orgCode" column="org_code"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<select id="queryObject" resultType="cn.timer.api.bean.insure.InsurePolicy">
select *
from insure_policy
where id = #{value}
</select>
<select id="queryList" resultType="cn.timer.api.bean.insure.InsurePolicy">
select * from insure_policy
<where>
<if test="schemeName != null and schemeName != ''">AND `scheme_name` = #{schemeName}</if>
<if test="policyDateStart != null and policyDateStart != ''">AND `policy_date_start` = #{policyDateStart}
</if>
<if test="policyDateEnd != null and policyDateEnd != ''">AND `policy_date_end` = #{policyDateEnd}</if>
<if test="productCodeId != null and productCodeId != ''">AND `product_code_id` = #{productCodeId}</if>
<if test="planCodeId != null and planCodeId != ''">AND `plan_code_id` = #{planCodeId}</if>
<if test="partnerPid != null and partnerPid != ''">AND `partner_pid` = #{partnerPid}</if>
<if test="policyNo != null and policyNo != ''">AND `policy_no` = #{policyNo}</if>
<if test="type != null and type != ''">AND `type` = #{type}</if>
<if test="currency != null and currency != ''">AND `currency` = #{currency}</if>
<if test="totalPremium != null and totalPremium != ''">AND `total_premium` = #{totalPremium}</if>
<if test="status != null and status != ''">AND `status` = #{status}</if>
<if test="policyFile != null and policyFile != ''">AND `policy_file` = #{policyFile}</if>
<if test="kitUrl != null and kitUrl != ''">AND `kit_url` = #{kitUrl}</if>
<if test="insureApplicantId != null and insureApplicantId != ''">AND `insure_applicant_id` =
#{insureApplicantId}
</if>
<if test="orgCode != null and orgCode != ''">AND `org_code` = #{orgCode}</if>
<if test="createTime != null and createTime != ''">AND `create_time` = #{createTime}</if>
<if test="updateTime != null and updateTime != ''">AND `update_time` = #{updateTime}</if>
</where>
<choose>
<when test="sidx != null and sidx.trim() != ''">
order by ${sidx} ${order}
</when>
<otherwise>
order by id desc
</otherwise>
</choose>
<if test="offset != null and limit != null">
limit #{offset}, #{limit}
</if>
</select>
<select id="queryTotal" resultType="int">
select count(*) from insure_policy
<where>
<if test="schemeName != null and schemeName != ''">AND `scheme_name` = #{schemeName}</if>
<if test="policyDateStart != null and policyDateStart != ''">AND `policy_date_start` = #{policyDateStart}
</if>
<if test="policyDateEnd != null and policyDateEnd != ''">AND `policy_date_end` = #{policyDateEnd}</if>
<if test="productCodeId != null and productCodeId != ''">AND `product_code_id` = #{productCodeId}</if>
<if test="planCodeId != null and planCodeId != ''">AND `plan_code_id` = #{planCodeId}</if>
<if test="partnerPid != null and partnerPid != ''">AND `partner_pid` = #{partnerPid}</if>
<if test="policyNo != null and policyNo != ''">AND `policy_no` = #{policyNo}</if>
<if test="type != null and type != ''">AND `type` = #{type}</if>
<if test="currency != null and currency != ''">AND `currency` = #{currency}</if>
<if test="totalPremium != null and totalPremium != ''">AND `total_premium` = #{totalPremium}</if>
<if test="status != null and status != ''">AND `status` = #{status}</if>
<if test="policyFile != null and policyFile != ''">AND `policy_file` = #{policyFile}</if>
<if test="kitUrl != null and kitUrl != ''">AND `kit_url` = #{kitUrl}</if>
<if test="insureApplicantId != null and insureApplicantId != ''">AND `insure_applicant_id` =
#{insureApplicantId}
</if>
<if test="orgCode != null and orgCode != ''">AND `org_code` = #{orgCode}</if>
<if test="createTime != null and createTime != ''">AND `create_time` = #{createTime}</if>
<if test="updateTime != null and updateTime != ''">AND `update_time` = #{updateTime}</if>
</where>
</select>
<insert id="save" parameterType="cn.timer.api.bean.insure.InsurePolicy" useGeneratedKeys="true" keyProperty="id">
insert into insure_policy
(`scheme_name`,
`policy_date_start`,
`policy_date_end`,
`product_code_id`,
`plan_code_id`,
`partner_pid`,
`policy_no`,
`type`,
`currency`,
`total_premium`,
`status`,
`policy_file`,
`kit_url`,
`insure_applicant_id`,
`org_code`,
`create_time`,
`update_time`)
values (#{schemeName},
#{policyDateStart},
#{policyDateEnd},
#{productCodeId},
#{planCodeId},
#{partnerPid},
#{policyNo},
#{type},
#{currency},
#{totalPremium},
#{status},
#{policyFile},
#{kitUrl},
#{insureApplicantId},
#{orgCode},
#{createTime},
#{updateTime})
</insert>
<insert id="saveSelective" parameterType="cn.timer.api.bean.insure.InsurePolicy" useGeneratedKeys="true"
keyProperty="id">
insert into insure_policy
(
<if test="schemeName != null">,`scheme_name`</if>
<if test="policyDateStart != null">,`policy_date_start`</if>
<if test="policyDateEnd != null">,`policy_date_end`</if>
<if test="productCodeId != null">,`product_code_id`</if>
<if test="planCodeId != null">,`plan_code_id`</if>
<if test="partnerPid != null">,`partner_pid`</if>
<if test="policyNo != null">,`policy_no`</if>
<if test="type != null">,`type`</if>
<if test="currency != null">,`currency`</if>
<if test="totalPremium != null">,`total_premium`</if>
<if test="status != null">,`status`</if>
<if test="policyFile != null">,`policy_file`</if>
<if test="kitUrl != null">,`kit_url`</if>
<if test="insureApplicantId != null">,`insure_applicant_id`</if>
<if test="orgCode != null">,`org_code`</if>
<if test="createTime != null">,`create_time`</if>
<if test="updateTime != null">,`update_time`</if>
)
values
(
<if test="schemeName != null">,#{schemeName}</if>
<if test="policyDateStart != null">,#{policyDateStart}</if>
<if test="policyDateEnd != null">,#{policyDateEnd}</if>
<if test="productCodeId != null">,#{productCodeId}</if>
<if test="planCodeId != null">,#{planCodeId}</if>
<if test="partnerPid != null">,#{partnerPid}</if>
<if test="policyNo != null">,#{policyNo}</if>
<if test="type != null">,#{type}</if>
<if test="currency != null">,#{currency}</if>
<if test="totalPremium != null">,#{totalPremium}</if>
<if test="status != null">,#{status}</if>
<if test="policyFile != null">,#{policyFile}</if>
<if test="kitUrl != null">,#{kitUrl}</if>
<if test="insureApplicantId != null">,#{insureApplicantId}</if>
<if test="orgCode != null">,#{orgCode}</if>
<if test="createTime != null">,#{createTime}</if>
<if test="updateTime != null">,#{update_time}</if>
)
</insert>
<insert id="saveList" parameterType="cn.timer.api.bean.insure.InsurePolicy" useGeneratedKeys="true"
keyProperty="id">
insert into insure_policy
(
`scheme_name`,
`policy_date_start`,
`policy_date_end`,
`product_code_id`,
`plan_code_id`,
`partner_pid`,
`policy_no`,
`type`,
`currency`,
`total_premium`,
`status`,
`policy_file`,
`kit_url`,
`insure_applicant_id`,
`org_code`,
`create_time`,
`update_time`
)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.schemeName},
#{item.policyDateStart},
#{item.policyDateEnd},
#{item.productCodeId},
#{item.planCodeId},
#{item.partnerPid},
#{item.policyNo},
#{item.type},
#{item.currency},
#{item.totalPremium},
#{item.status},
#{item.policyFile},
#{item.kitUrl},
#{item.insureApplicantId},
#{item.orgCode},
#{item.createTime},
#{item.updateTime}
)
</foreach>
</insert>
<update id="update" parameterType="cn.timer.api.bean.insure.InsurePolicy">
update insure_policy
<set>
<if test="schemeName != null">`scheme_name` = #{schemeName},</if>
<if test="policyDateStart != null">`policy_date_start` = #{policyDateStart},</if>
<if test="policyDateEnd != null">`policy_date_end` = #{policyDateEnd},</if>
<if test="productCodeId != null">`product_code_id` = #{productCodeId},</if>
<if test="planCodeId != null">`plan_code_id` = #{planCodeId},</if>
<if test="partnerPid != null">`partner_pid` = #{partnerPid},</if>
<if test="policyNo != null">`policy_no` = #{policyNo},</if>
<if test="type != null">`type` = #{type},</if>
<if test="currency != null">`currency` = #{currency},</if>
<if test="totalPremium != null">`total_premium` = #{totalPremium},</if>
<if test="status != null">`status` = #{status},</if>
<if test="policyFile != null">`policy_file` = #{policyFile},</if>
<if test="kitUrl != null">`kit_url` = #{kitUrl},</if>
<if test="insureApplicantId != null">`insure_applicant_id` = #{insureApplicantId},</if>
<if test="orgCode != null">`org_code` = #{orgCode},</if>
<if test="createTime != null">`create_time` = #{createTime}</if>
<if test="updateTime != null">`update_time` = #{updateTime}</if>
</set>
where id = #{id}
</update>
<delete id="delete">
delete
from insure_policy
where id = #{value}
</delete>
<delete id="deleteBatch">
delete from insure_policy where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="policyList" resultType="cn.timer.api.dto.insure.PolicyDto">
select ip.id AS id, ip.scheme_name AS schemeName, ip.type AS type, count(iu.id) AS totaPolicy,
count(iu.org_code) AS totalCompany, count(iu.id) AS totalUser, ip.total_premium AS totalPremium,
ip.update_time AS updateTime
from insure_policy ip
LEFT JOIN insure_user iu on iu.policy_no = ip.policy_no
GROUP BY ip.policy_no
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.timer.api.dao.insure.InsureUserMapper">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="cn.timer.api.bean.insure.InsureUser" id="insureUserMap">
<result property="id" column="id"/>
<result property="transId" column="trans_id"/>
<result property="price" column="price"/>
<result property="insuredName" column="insured_name"/>
<result property="batchNo" column="batch_no"/>
<result property="premium" column="premium"/>
<result property="insuredMobile" column="insured_mobile"/>
<result property="insuredNo" column="insured_no"/>
<result property="insuredEContact" column="insured_e_contact"/>
<result property="benefitBasicPlan" column="benefit_basic_plan"/>
<result property="benefitOccupationCategory" column="benefit_occupation_category"/>
<result property="benefitElEmployeeNumberT" column="benefit_EL_employee_number_t"/>
<result property="tricycleFrameNumber" column="Tricycle_frame_number"/>
<result property="policyNo" column="policy_no"/>
<result property="status" column="status"/>
<result property="type" column="type"/>
<result property="orgCode" column="org_code"/>
<result property="userId" column="user_id"/>
<result property="applicantEmployeeList" column="applicant_employee_list"/>
<result property="policyDateStart" column="policy_date_start"/>
<result property="policyDateEnd" column="policy_date_end"/>
</resultMap>
<select id="queryObject" resultType="cn.timer.api.bean.insure.InsureUser">
select *
from insure_user
where id = #{value}
</select>
<select id="queryList" resultType="cn.timer.api.bean.insure.InsureUser">
select * from insure_user
<where>
<if test="transId != null and transId != ''">AND `trans_id` = #{transId}</if>
<if test="price != null and price != ''">AND `price` = #{price}</if>
<if test="insuredName != null and insuredName != ''">AND `insured_name` = #{insuredName}</if>
<if test="batchNo != null and batchNo != ''">AND `batch_no` = #{batchNo}</if>
<if test="premium != null and premium != ''">AND `premium` = #{premium}</if>
<if test="insuredMobile != null and insuredMobile != ''">AND `insured_mobile` = #{insuredMobile}</if>
<if test="insuredNo != null and insuredNo != ''">AND `insured_no` = #{insuredNo}</if>
<if test="insuredEContact != null and insuredEContact != ''">AND `insured_e_contact` = #{insuredEContact}
</if>
<if test="benefitBasicPlan != null and benefitBasicPlan != ''">AND `benefit_basic_plan` =
#{benefitBasicPlan}
</if>
<if test="benefitOccupationCategory != null and benefitOccupationCategory != ''">AND
`benefit_occupation_category` = #{benefitOccupationCategory}
</if>
<if test="benefitElEmployeeNumberT != null and benefitElEmployeeNumberT != ''">AND
`benefit_EL_employee_number_t` = #{benefitElEmployeeNumberT}
</if>
<if test="tricycleFrameNumber != null and tricycleFrameNumber != ''">AND `Tricycle_frame_number` =
#{tricycleFrameNumber}
</if>
<if test="policyNo != null and policyNo != ''">AND `policy_no` = #{policyNo}</if>
<if test="status != null and status != ''">AND `status` = #{status}</if>
<if test="type != null and type != ''">AND `type` = #{type}</if>
<if test="orgCode != null and orgCode != ''">AND `org_code` = #{orgCode}</if>
<if test="userId != null and userId != ''">AND `user_id` = #{userId}</if>
<if test="applicantEmployeeList != null and applicantEmployeeList != ''">AND `applicant_employee_list` =
#{applicantEmployeeList}
</if>
</where>
<choose>
<when test="sidx != null and sidx.trim() != ''">
order by ${sidx} ${order}
</when>
<otherwise>
order by id desc
</otherwise>
</choose>
<if test="offset != null and limit != null">
limit #{offset}, #{limit}
</if>
</select>
<select id="queryTotal" resultType="int">
select count(*) from insure_user
<where>
<if test="transId != null and transId != ''">AND `trans_id` = #{transId}</if>
<if test="price != null and price != ''">AND `price` = #{price}</if>
<if test="insuredName != null and insuredName != ''">AND `insured_name` = #{insuredName}</if>
<if test="batchNo != null and batchNo != ''">AND `batch_no` = #{batchNo}</if>
<if test="premium != null and premium != ''">AND `premium` = #{premium}</if>
<if test="insuredMobile != null and insuredMobile != ''">AND `insured_mobile` = #{insuredMobile}</if>
<if test="insuredNo != null and insuredNo != ''">AND `insured_no` = #{insuredNo}</if>
<if test="insuredEContact != null and insuredEContact != ''">AND `insured_e_contact` = #{insuredEContact}
</if>
<if test="benefitBasicPlan != null and benefitBasicPlan != ''">AND `benefit_basic_plan` =
#{benefitBasicPlan}
</if>
<if test="benefitOccupationCategory != null and benefitOccupationCategory != ''">AND
`benefit_occupation_category` = #{benefitOccupationCategory}
</if>
<if test="benefitElEmployeeNumberT != null and benefitElEmployeeNumberT != ''">AND
`benefit_EL_employee_number_t` = #{benefitElEmployeeNumberT}
</if>
<if test="tricycleFrameNumber != null and tricycleFrameNumber != ''">AND `Tricycle_frame_number` =
#{tricycleFrameNumber}
</if>
<if test="policyNo != null and policyNo != ''">AND `policy_no` = #{policyNo}</if>
<if test="status != null and status != ''">AND `status` = #{status}</if>
<if test="type != null and type != ''">AND `type` = #{type}</if>
<if test="orgCode != null and orgCode != ''">AND `org_code` = #{orgCode}</if>
<if test="userId != null and userId != ''">AND `user_id` = #{userId}</if>
<if test="applicantEmployeeList != null and applicantEmployeeList != ''">AND `applicant_employee_list` =
#{applicantEmployeeList}
</if>
</where>
</select>
<insert id="save" parameterType="cn.timer.api.bean.insure.InsureUser" useGeneratedKeys="true" keyProperty="id">
insert into insure_user
(`trans_id`,
`price`,
`insured_name`,
`batch_no`,
`premium`,
`insured_mobile`,
`insured_no`,
`insured_e_contact`,
`benefit_basic_plan`,
`benefit_occupation_category`,
`benefit_EL_employee_number_t`,
`Tricycle_frame_number`,
`policy_no`,
`status`,
`type`,
`org_code`,
`user_id`,
`applicant_employee_list`)
values (#{transId},
#{price},
#{insuredName},
#{batchNo},
#{premium},
#{insuredMobile},
#{insuredNo},
#{insuredEContact},
#{benefitBasicPlan},
#{benefitOccupationCategory},
#{benefitElEmployeeNumberT},
#{tricycleFrameNumber},
#{policyNo},
#{status},
#{type},
#{orgCode},
#{userId},
#{applicantEmployeeList})
</insert>
<insert id="saveSelective" parameterType="cn.timer.api.bean.insure.InsureUser" useGeneratedKeys="true"
keyProperty="id">
insert into insure_user
(
<if test="transId != null">,`trans_id`</if>
<if test="price != null">,`price`</if>
<if test="insuredName != null">,`insured_name`</if>
<if test="batchNo != null">,`batch_no`</if>
<if test="premium != null">,`premium`</if>
<if test="insuredMobile != null">,`insured_mobile`</if>
<if test="insuredNo != null">,`insured_no`</if>
<if test="insuredEContact != null">,`insured_e_contact`</if>
<if test="benefitBasicPlan != null">,`benefit_basic_plan`</if>
<if test="benefitOccupationCategory != null">,`benefit_occupation_category`</if>
<if test="benefitElEmployeeNumberT != null">,`benefit_EL_employee_number_t`</if>
<if test="tricycleFrameNumber != null">,`Tricycle_frame_number`</if>
<if test="policyNo != null">,`policy_no`</if>
<if test="status != null">,`status`</if>
<if test="type != null">,`type`</if>
<if test="orgCode != null">,`org_code`</if>
<if test="userId != null">,`user_id`</if>
<if test="applicantEmployeeList != null">,`applicant_employee_list`</if>
)
values
(
<if test="transId != null">,#{transId}</if>
<if test="price != null">,#{price}</if>
<if test="insuredName != null">,#{insuredName}</if>
<if test="batchNo != null">,#{batchNo}</if>
<if test="premium != null">,#{premium}</if>
<if test="insuredMobile != null">,#{insuredMobile}</if>
<if test="insuredNo != null">,#{insuredNo}</if>
<if test="insuredEContact != null">,#{insuredEContact}</if>
<if test="benefitBasicPlan != null">,#{benefitBasicPlan}</if>
<if test="benefitOccupationCategory != null">,#{benefitOccupationCategory}</if>
<if test="benefitElEmployeeNumberT != null">,#{benefitElEmployeeNumberT}</if>
<if test="tricycleFrameNumber != null">,#{tricycleFrameNumber}</if>
<if test="policyNo != null">,#{policyNo}</if>
<if test="status != null">,#{status}</if>
<if test="type != null">,#{type}</if>
<if test="orgCode != null">,#{orgCode}</if>
<if test="userId != null">,#{userId}</if>
<if test="applicantEmployeeList != null">,#{applicantEmployeeList}</if>
)
</insert>
<insert id="saveList" parameterType="cn.timer.api.bean.insure.InsureUser" useGeneratedKeys="true" keyProperty="id">
insert into insure_user
(
`trans_id`,
`price`,
`insured_name`,
`batch_no`,
`premium`,
`insured_mobile`,
`insured_no`,
`insured_e_contact`,
`benefit_basic_plan`,
`benefit_occupation_category`,
`benefit_EL_employee_number_t`,
`Tricycle_frame_number`,
`policy_no`,
`status`,
`type`,
`org_code`,
`user_id`,
`applicant_employee_list`
)
values
<foreach collection="list" item="item" index="index" separator=",">
(
#{item.transId},
#{item.price},
#{item.insuredName},
#{item.batchNo},
#{item.premium},
#{item.insuredMobile},
#{item.insuredNo},
#{item.insuredEContact},
#{item.benefitBasicPlan},
#{item.benefitOccupationCategory},
#{item.benefitElEmployeeNumberT},
#{item.tricycleFrameNumber},
#{item.policyNo},
#{item.status},
#{item.type},
#{item.orgCode},
#{item.userId},
#{item.applicantEmployeeList}
)
</foreach>
</insert>
<update id="update" parameterType="cn.timer.api.bean.insure.InsureUser">
update insure_user
<set>
<if test="transId != null">`trans_id` = #{transId},</if>
<if test="price != null">`price` = #{price},</if>
<if test="insuredName != null">`insured_name` = #{insuredName},</if>
<if test="batchNo != null">`batch_no` = #{batchNo},</if>
<if test="premium != null">`premium` = #{premium},</if>
<if test="insuredMobile != null">`insured_mobile` = #{insuredMobile},</if>
<if test="insuredNo != null">`insured_no` = #{insuredNo},</if>
<if test="insuredEContact != null">`insured_e_contact` = #{insuredEContact},</if>
<if test="benefitBasicPlan != null">`benefit_basic_plan` = #{benefitBasicPlan},</if>
<if test="benefitOccupationCategory != null">`benefit_occupation_category` = #{benefitOccupationCategory},
</if>
<if test="benefitElEmployeeNumberT != null">`benefit_EL_employee_number_t` = #{benefitElEmployeeNumberT},
</if>
<if test="tricycleFrameNumber != null">`Tricycle_frame_number` = #{tricycleFrameNumber},</if>
<if test="policyNo != null">`policy_no` = #{policyNo},</if>
<if test="status != null">`status` = #{status},</if>
<if test="type != null">`type` = #{type},</if>
<if test="orgCode != null">`org_code` = #{orgCode},</if>
<if test="userId != null">`user_id` = #{userId},</if>
<if test="applicantEmployeeList != null">`applicant_employee_list` = #{applicantEmployeeList}</if>
</set>
where id = #{id}
</update>
<delete id="delete">
delete
from insure_user
where id = #{value}
</delete>
<delete id="deleteBatch">
delete from insure_user where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
<select id="selectPolicyList" resultType="cn.timer.api.dto.insure.PolicyDto">
select iu.id,yme.`name`,yme.zj_type,yme.zj_num,iu.policy_no,iu.`status`,ip.scheme_name,iu.policy_date_start,
iu.policy_date_end,ip.create_time,iu.insured_name,iu.benefit_basic_plan AS benefitBasicPlan,iu.price AS price from insure_user iu
LEFT JOIN yggl_main_emp yme on yme.id=iu.user_id
LEFT JOIN insure_policy ip on ip.policy_no=iu.policy_no
where yme.org_code = 3
<if test="id !=null and id !=''">
and ip.id=#{id}
</if>
</select>
</mapper>
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
<result column="openid" property="openid" /> <result column="openid" property="openid" />
<result column="mpopenid" property="mpopenid" /> <result column="mpopenid" property="mpopenid" />
<result column="appopenid" property="appopenid" /> <result column="appopenid" property="appopenid" />
<result column="is_insure" property="isInsure"/>
</resultMap> </resultMap>
<resultMap id="Bintu" type="cn.timer.api.dto.yggl.YgbintuDto" > <resultMap id="Bintu" type="cn.timer.api.dto.yggl.YgbintuDto" >
...@@ -126,7 +127,8 @@ ...@@ -126,7 +127,8 @@
openid, openid,
mpopenid, mpopenid,
appopenid, appopenid,
custom_num custom_num,
is_insure
</sql> </sql>
<sql id="Base_Column_List_a"> <sql id="Base_Column_List_a">
...@@ -148,7 +150,8 @@ ...@@ -148,7 +150,8 @@
a.zj_num, a.zj_num,
a.syq, a.syq,
a.zz_time, a.zz_time,
a.custom_num a.custom_num,
a.is_insure
</sql> </sql>
...@@ -393,4 +396,15 @@ ...@@ -393,4 +396,15 @@
]]> ]]>
</select> </select>
<!--根据id数组查询员工-->
<select id="selectListByIds" resultType="cn.timer.api.bean.yggl.YgglMainEmp">
SELECT
<include refid="Base_Column_List"/>
FROM yggl_main_emp
WHERE id IN
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment