parent
29540a25a4
commit
bc73746223
104 changed files with 1087 additions and 223 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,47 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
|
||||||
|
<configuration> |
||||||
|
<!--定义日志文件的存储地址,使用绝对路径--> |
||||||
|
<property name="LOG_HOME" value="d:/logs/daqing/hrms_auth"/> |
||||||
|
|
||||||
|
<!-- Console 输出设置 --> |
||||||
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
||||||
|
<encoder> |
||||||
|
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符--> |
||||||
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> |
||||||
|
<charset>utf8</charset> |
||||||
|
</encoder> |
||||||
|
</appender> |
||||||
|
|
||||||
|
<!-- 按照每天生成日志文件 --> |
||||||
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
||||||
|
<!--日志文件输出的文件名--> |
||||||
|
<fileNamePattern>${LOG_HOME}/hrms_auth.%d{yyyy-MM-dd}.log</fileNamePattern> |
||||||
|
</rollingPolicy> |
||||||
|
<encoder> |
||||||
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> |
||||||
|
</encoder> |
||||||
|
</appender> |
||||||
|
|
||||||
|
<!-- 异步输出 --> |
||||||
|
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender"> |
||||||
|
<!-- 不丢失日志.默认的,如果队列的80%已满,则会丢弃TRACT、DEBUG、INFO级别的日志 --> |
||||||
|
<discardingThreshold>0</discardingThreshold> |
||||||
|
<!-- 更改默认的队列的深度,该值会影响性能.默认值为256 --> |
||||||
|
<queueSize>512</queueSize> |
||||||
|
<!-- 添加附加的appender,最多只能添加一个 --> |
||||||
|
<appender-ref ref="FILE"/> |
||||||
|
</appender> |
||||||
|
|
||||||
|
|
||||||
|
<logger name="org.apache.ibatis.cache.decorators.LoggingCache" level="DEBUG" additivity="false"> |
||||||
|
<appender-ref ref="CONSOLE"/> |
||||||
|
</logger> |
||||||
|
<logger name="org.springframework.boot" level="DEBUG"/> |
||||||
|
<root level="info"> |
||||||
|
<!--<appender-ref ref="ASYNC"/>--> |
||||||
|
<appender-ref ref="FILE"/> |
||||||
|
<appender-ref ref="CONSOLE"/> |
||||||
|
</root> |
||||||
|
</configuration> |
@ -0,0 +1,41 @@ |
|||||||
|
<?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="com.daqing.financial.hrauth.dao.UserLoginDao"> |
||||||
|
<!-- 可根据自己的需求,是否要使用 --> |
||||||
|
<resultMap type="com.daqing.framework.domain.hrms.UserEntity" id="userMap"> |
||||||
|
<result property="id" column="id"/> |
||||||
|
<result property="account" column="account"/> |
||||||
|
<result property="phoneAccount" column="phone_account"/> |
||||||
|
<result property="password" column="password"/> |
||||||
|
<result property="loginNum" column="login_num"/> |
||||||
|
<result property="createTime" column="create_time"/> |
||||||
|
<result property="motifyTime" column="motify_time"/> |
||||||
|
</resultMap> |
||||||
|
<update id="updatePasswordByPhoneAccount"> |
||||||
|
update hrms_user set password = #{password} where phone_account = #{phoneAccount} |
||||||
|
</update> |
||||||
|
|
||||||
|
<select id="getUser" parameterType="string" resultType="com.daqing.framework.domain.hrms.UserEntity"> |
||||||
|
SELECT account,password FROM hrms_user WHERE account = #{account} |
||||||
|
</select> |
||||||
|
<select id="selectCount" resultType="java.lang.Integer"> |
||||||
|
select count(1) from hrms_user where phone_account = #{phoneAccount} |
||||||
|
</select> |
||||||
|
|
||||||
|
<select id="login" parameterType="com.daqing.framework.domain.hrms.request.LoginRequest" resultType="com.daqing.framework.domain.hrms.UserEntity"> |
||||||
|
select id,account,phone_account,password,login_num from hrms_user |
||||||
|
where del_or_not = 0 and status = 0 |
||||||
|
<if test="phone != null and phone != '' "> |
||||||
|
and phone_account = #{phone} |
||||||
|
</if> |
||||||
|
<if test="wechatId != null and wechatId != '' "> |
||||||
|
and wechat_id = #{wechatId} |
||||||
|
</if> |
||||||
|
|
||||||
|
</select> |
||||||
|
<select id="selectByPhoneAccount" resultType="com.daqing.framework.domain.hrms.UserEntity"> |
||||||
|
SELECT id,account FROM hrms_user WHERE phone_account = #{phoneAccount} |
||||||
|
</select> |
||||||
|
|
||||||
|
</mapper> |
@ -0,0 +1,12 @@ |
|||||||
|
#security: |
||||||
|
# oauth2: |
||||||
|
# client: |
||||||
|
# client-id: user-client |
||||||
|
# client-secret: user-secret-8888 |
||||||
|
# user-authorization-uri: http://localhost:7000/oauth/authorize |
||||||
|
# access-token-uri: http://localhost:7000/oauth/token |
||||||
|
# resource: |
||||||
|
# id: user-client |
||||||
|
# user-info-uri: user-info |
||||||
|
# authorization: |
||||||
|
# check-token-access: http://localhost:7000/oauth/check_token |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,83 @@ |
|||||||
|
package com.daqing.framework.domain.crms.ext; |
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||||
|
import com.alibaba.excel.metadata.BaseRowModel; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 导出excel模板(企业类型) |
||||||
|
* @auther River |
||||||
|
* @date 2020/10/9 11:38 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class CompanyTemplate extends BaseRowModel implements Serializable { |
||||||
|
/** |
||||||
|
* 客户经理 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "客户经理(请填写本公司存在的员工姓名)",index = 0) |
||||||
|
private String manager; |
||||||
|
/** |
||||||
|
* 客户名称 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "姓名",index = 1) |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 联系地址 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "地址",index = 2) |
||||||
|
private String addr; |
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "电话",index = 3) |
||||||
|
private String phone; |
||||||
|
/** |
||||||
|
* 注册资金 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "注册资金",index = 4) |
||||||
|
private String registeredCapital; |
||||||
|
/** |
||||||
|
* 所属行业 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "所属行业",index = 5) |
||||||
|
private String industry; |
||||||
|
/** |
||||||
|
* 成立年限 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "成立年限",index = 6) |
||||||
|
private Integer years; |
||||||
|
/** |
||||||
|
* 所在区域 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "所在区域",index = 7) |
||||||
|
private String region; |
||||||
|
/** |
||||||
|
* 股东名称 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "股东名称",index = 8) |
||||||
|
private String shareholder; |
||||||
|
/** |
||||||
|
* 关联企业 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "关联企业",index = 9) |
||||||
|
private String affiliatedCompany; |
||||||
|
/** |
||||||
|
* 员工个数 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "员工个数",index = 10) |
||||||
|
private String empNum; |
||||||
|
/** |
||||||
|
* 联系人 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "联系人",index = 11) |
||||||
|
private String linkman; |
||||||
|
/** |
||||||
|
* 业务来源 |
||||||
|
*/ |
||||||
|
@ExcelProperty(value = "业务来源",index = 12) |
||||||
|
private String businessSource; |
||||||
|
} |
@ -1,29 +0,0 @@ |
|||||||
package com.daqing.framework.domain.crms.ext; |
|
||||||
|
|
||||||
import com.daqing.framework.domain.crms.CompanyCustomerEntity; |
|
||||||
import com.daqing.framework.domain.crms.CustomerEntity; |
|
||||||
import io.swagger.annotations.ApiModelProperty; |
|
||||||
import lombok.Data; |
|
||||||
import lombok.ToString; |
|
||||||
|
|
||||||
import java.io.Serializable; |
|
||||||
|
|
||||||
/** |
|
||||||
* @auther River |
|
||||||
* @date 2020/9/15 20:20 |
|
||||||
*/ |
|
||||||
@Data |
|
||||||
@ToString |
|
||||||
public class CustomerCompanyTO implements Serializable { |
|
||||||
|
|
||||||
/** |
|
||||||
* 客户基本信息 |
|
||||||
*/ |
|
||||||
@ApiModelProperty(value = "客户基本信息") |
|
||||||
private CustomerEntity customerEntity; |
|
||||||
/** |
|
||||||
* 企业类型信息 |
|
||||||
*/ |
|
||||||
@ApiModelProperty(value = "客户企业信息") |
|
||||||
private CompanyCustomerEntity companyCustomerEntity; |
|
||||||
} |
|
@ -0,0 +1,107 @@ |
|||||||
|
package com.daqing.framework.domain.crms.ext; |
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import javax.validation.constraints.*; |
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 企业类型客户信息新增 |
||||||
|
* @auther River |
||||||
|
* @date 2020/10/9 10:32 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class CustomerCompanyTOI implements Serializable { |
||||||
|
/** |
||||||
|
* 客户类型:1、企业类型,0:个人类型 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "客户类型格式有误") |
||||||
|
@Max(value = 1,message = "客户类型格式有误") |
||||||
|
@NotNull(message = "客户类型不能为空") |
||||||
|
@ApiModelProperty(value = "客户类型") |
||||||
|
private Integer type; |
||||||
|
/** |
||||||
|
* 客户的经理人id |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户经理人不能为空") |
||||||
|
@ApiModelProperty(value = "客户经理人id") |
||||||
|
private Long manager; |
||||||
|
/** |
||||||
|
* 客户名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户名称不能为空") |
||||||
|
@ApiModelProperty(value = "客户名称") |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 联系地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系地址不能为空") |
||||||
|
@ApiModelProperty(value = "联系地址") |
||||||
|
private String addr; |
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系电话不能为空") |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "联系电话格式错误") |
||||||
|
@ApiModelProperty(value = "联系电话") |
||||||
|
private String phone; |
||||||
|
/** |
||||||
|
* 注册资金 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]+\\.{0,1}[0-9]{0,2}$",message = "注册资金格式有误") |
||||||
|
@NotNull(message = "注册资金不能为空") |
||||||
|
@ApiModelProperty(value = "注册资金") |
||||||
|
private String registeredCapital; |
||||||
|
/** |
||||||
|
* 所属行业 |
||||||
|
*/ |
||||||
|
@NotNull(message = "所属行业不能为空") |
||||||
|
@ApiModelProperty(value = "所属行业") |
||||||
|
private String industry; |
||||||
|
/** |
||||||
|
* 成立年限 |
||||||
|
*/ |
||||||
|
@NotNull(message = "成立年限不能为空") |
||||||
|
@ApiModelProperty(value = "成立年限") |
||||||
|
private Integer years; |
||||||
|
/** |
||||||
|
* 所在区域 |
||||||
|
*/ |
||||||
|
@NotNull(message = "所在区域不能为空") |
||||||
|
@ApiModelProperty(value = "所在区域") |
||||||
|
private String region; |
||||||
|
/** |
||||||
|
* 股东名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "股东名称不能为空") |
||||||
|
@ApiModelProperty(value = "股东名称") |
||||||
|
private String shareholder; |
||||||
|
/** |
||||||
|
* 关联企业 |
||||||
|
*/ |
||||||
|
@NotNull(message = "关联企业不能为空") |
||||||
|
@ApiModelProperty(value = "关联企业") |
||||||
|
private String affiliatedCompany; |
||||||
|
/** |
||||||
|
* 员工个数 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "员工个数格式错误") |
||||||
|
@NotNull(message = "员工个数不能为空") |
||||||
|
@ApiModelProperty(value = "员工个数") |
||||||
|
private String empNum; |
||||||
|
/** |
||||||
|
* 联系人 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系人不能为空") |
||||||
|
@ApiModelProperty(value = "联系人") |
||||||
|
private String linkman; |
||||||
|
/** |
||||||
|
* 业务来源 |
||||||
|
*/ |
||||||
|
@NotNull(message = "业务来源不能为空") |
||||||
|
@ApiModelProperty(value = "业务来源") |
||||||
|
private String businessSource; |
||||||
|
} |
@ -0,0 +1,128 @@ |
|||||||
|
package com.daqing.framework.domain.crms.ext; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||||
|
import com.daqing.framework.domain.crms.CompanyCustomerEntity; |
||||||
|
import com.daqing.framework.domain.crms.CustomerEntity; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import javax.validation.constraints.Max; |
||||||
|
import javax.validation.constraints.Min; |
||||||
|
import javax.validation.constraints.NotNull; |
||||||
|
import javax.validation.constraints.Pattern; |
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 企业类型客户信息更新 |
||||||
|
* @auther River |
||||||
|
* @date 2020/9/15 20:20 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class CustomerCompanyTOU implements Serializable { |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
@NotNull(message = "id不能为空") |
||||||
|
@ApiModelProperty(value = "id") |
||||||
|
@TableId(value = "id", type = IdType.INPUT) |
||||||
|
private Long id; |
||||||
|
/** |
||||||
|
* 客户编号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户编号不能为空") |
||||||
|
@ApiModelProperty(value = "客户编号") |
||||||
|
private String code; |
||||||
|
/** |
||||||
|
* 客户类型:1、企业类型,0:个人类型 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "客户类型格式有误") |
||||||
|
@Max(value = 1,message = "客户类型格式有误") |
||||||
|
@NotNull(message = "客户类型不能为空") |
||||||
|
@ApiModelProperty(value = "客户类型") |
||||||
|
private Integer type; |
||||||
|
/** |
||||||
|
* 客户的经理人id |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户经理人不能为空") |
||||||
|
@ApiModelProperty(value = "客户经理人id") |
||||||
|
private Long manager; |
||||||
|
/** |
||||||
|
* 客户名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户名称不能为空") |
||||||
|
@ApiModelProperty(value = "客户名称") |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 联系地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系地址不能为空") |
||||||
|
@ApiModelProperty(value = "联系地址") |
||||||
|
private String addr; |
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "联系电话格式错误") |
||||||
|
@NotNull(message = "联系电话不能为空") |
||||||
|
@ApiModelProperty(value = "联系电话") |
||||||
|
private String phone; |
||||||
|
/** |
||||||
|
* 注册资金 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]+\\.{0,1}[0-9]{0,2}$",message = "注册资金格式有误") |
||||||
|
@NotNull(message = "注册资金不能为空") |
||||||
|
@ApiModelProperty(value = "注册资金") |
||||||
|
private String registeredCapital; |
||||||
|
/** |
||||||
|
* 所属行业 |
||||||
|
*/ |
||||||
|
@NotNull(message = "所属行业不能为空") |
||||||
|
@ApiModelProperty(value = "所属行业") |
||||||
|
private String industry; |
||||||
|
/** |
||||||
|
* 成立年限 |
||||||
|
*/ |
||||||
|
@NotNull(message = "成立年限不能为空") |
||||||
|
@ApiModelProperty(value = "成立年限") |
||||||
|
private Integer years; |
||||||
|
/** |
||||||
|
* 所在区域 |
||||||
|
*/ |
||||||
|
@NotNull(message = "所在区域不能为空") |
||||||
|
@ApiModelProperty(value = "所在区域") |
||||||
|
private String region; |
||||||
|
/** |
||||||
|
* 股东名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "股东名称不能为空") |
||||||
|
@ApiModelProperty(value = "股东名称") |
||||||
|
private String shareholder; |
||||||
|
/** |
||||||
|
* 关联企业 |
||||||
|
*/ |
||||||
|
@NotNull(message = "关联企业不能为空") |
||||||
|
@ApiModelProperty(value = "关联企业") |
||||||
|
private String affiliatedCompany; |
||||||
|
/** |
||||||
|
* 员工个数 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "员工个数格式错误") |
||||||
|
@NotNull(message = "员工个数不能为空") |
||||||
|
@ApiModelProperty(value = "员工个数") |
||||||
|
private String empNum; |
||||||
|
/** |
||||||
|
* 联系人 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系人不能为空") |
||||||
|
@ApiModelProperty(value = "联系人") |
||||||
|
private String linkman; |
||||||
|
/** |
||||||
|
* 业务来源 |
||||||
|
*/ |
||||||
|
@NotNull(message = "业务来源不能为空") |
||||||
|
@ApiModelProperty(value = "业务来源") |
||||||
|
private String businessSource; |
||||||
|
} |
@ -1,30 +0,0 @@ |
|||||||
package com.daqing.framework.domain.crms.ext; |
|
||||||
|
|
||||||
import com.daqing.framework.domain.crms.CustomerEntity; |
|
||||||
import com.daqing.framework.domain.crms.PersonalCustomerEntity; |
|
||||||
import io.swagger.annotations.ApiModelProperty; |
|
||||||
import lombok.Data; |
|
||||||
import lombok.ToString; |
|
||||||
|
|
||||||
import java.io.Serializable; |
|
||||||
|
|
||||||
/** |
|
||||||
* @auther River |
|
||||||
* @date 2020/9/15 19:57 |
|
||||||
*/ |
|
||||||
@Data |
|
||||||
@ToString |
|
||||||
public class CustomerPersonalTO implements Serializable { |
|
||||||
|
|
||||||
/** |
|
||||||
* 客户基本信息 |
|
||||||
*/ |
|
||||||
@ApiModelProperty(value = "客户基本信息") |
|
||||||
private CustomerEntity customerEntity; |
|
||||||
|
|
||||||
/** |
|
||||||
* 客户个人信息 |
|
||||||
*/ |
|
||||||
@ApiModelProperty(value = "客户个人信息") |
|
||||||
private PersonalCustomerEntity personalCustomerEntity; |
|
||||||
} |
|
@ -0,0 +1,152 @@ |
|||||||
|
package com.daqing.framework.domain.crms.ext; |
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import javax.validation.constraints.Max; |
||||||
|
import javax.validation.constraints.Min; |
||||||
|
import javax.validation.constraints.NotNull; |
||||||
|
import javax.validation.constraints.Pattern; |
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 个人类型客户信息新增 |
||||||
|
* @auther River |
||||||
|
* @date 2020/10/9 10:32 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class CustomerPersonalTOI implements Serializable { |
||||||
|
|
||||||
|
/** |
||||||
|
* 客户类型:1、企业类型,0:个人类型 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "客户类型格式有误") |
||||||
|
@Max(value = 1,message = "客户类型格式有误") |
||||||
|
@NotNull(message = "客户类型不能为空") |
||||||
|
@ApiModelProperty(value = "客户类型") |
||||||
|
private Integer type; |
||||||
|
/** |
||||||
|
* 客户的经理人id |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户经理人不能为空") |
||||||
|
@ApiModelProperty(value = "客户经理人id") |
||||||
|
private Long manager; |
||||||
|
/** |
||||||
|
* 客户名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户名称不能为空") |
||||||
|
@ApiModelProperty(value = "客户名称") |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 联系地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系地址不能为空") |
||||||
|
@ApiModelProperty(value = "联系地址") |
||||||
|
private String addr; |
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "联系电话格式错误") |
||||||
|
@NotNull(message = "联系电话不能为空") |
||||||
|
@ApiModelProperty(value = "联系电话") |
||||||
|
private String phone; |
||||||
|
/** |
||||||
|
* 身份证号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "身份证号不能为空") |
||||||
|
@ApiModelProperty(value = "身份证号") |
||||||
|
private String idCard; |
||||||
|
/** |
||||||
|
* 年龄 |
||||||
|
*/ |
||||||
|
@NotNull(message = "年龄不能为空") |
||||||
|
@ApiModelProperty(value = "年龄") |
||||||
|
private Integer age; |
||||||
|
/** |
||||||
|
* 性别:1、男,0、女 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "性别格式有误") |
||||||
|
@Max(value = 1,message = "性别格式有误") |
||||||
|
@NotNull(message = "性别不能为空") |
||||||
|
@ApiModelProperty(value = "性别") |
||||||
|
private Integer gender; |
||||||
|
/** |
||||||
|
* 婚姻状况,0:未婚,1:已婚,2:离异,3:再婚 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "婚姻状况格式有误") |
||||||
|
@Max(value = 3,message = "婚姻状况格式有误") |
||||||
|
@NotNull(message = "婚姻状况不能为空") |
||||||
|
@ApiModelProperty(value = "婚姻状况") |
||||||
|
private Integer maritalStatus; |
||||||
|
/** |
||||||
|
* 学历,0:本科,1:大专,2:高职,3:中专,4:其他 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "学历格式有误") |
||||||
|
@Max(value = 4,message = "学历格式有误") |
||||||
|
@NotNull(message = "学历不能为空") |
||||||
|
@ApiModelProperty(value = "学历") |
||||||
|
private Integer education; |
||||||
|
/** |
||||||
|
* 工作单位 |
||||||
|
*/ |
||||||
|
@NotNull(message = "工作单位不能为空") |
||||||
|
@ApiModelProperty(value = "工作单位") |
||||||
|
private String employer; |
||||||
|
/** |
||||||
|
* 职务 |
||||||
|
*/ |
||||||
|
@NotNull(message = "职务不能为空") |
||||||
|
@ApiModelProperty(value = "职务") |
||||||
|
private String position; |
||||||
|
/** |
||||||
|
* 工作年限 |
||||||
|
*/ |
||||||
|
@NotNull(message = "工作年限不能为空") |
||||||
|
@ApiModelProperty(value = "工作年限") |
||||||
|
private Integer workingYears; |
||||||
|
/** |
||||||
|
* 社保账号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "社保账号不能为空") |
||||||
|
@ApiModelProperty(value = "社保账号") |
||||||
|
private String socialSecurityNum; |
||||||
|
/** |
||||||
|
* 居住情况 |
||||||
|
*/ |
||||||
|
@NotNull(message = "居住情况不能为空") |
||||||
|
@ApiModelProperty(value = "居住情况") |
||||||
|
private String livingSituation; |
||||||
|
/** |
||||||
|
* 户籍地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "户籍地址不能为空") |
||||||
|
@ApiModelProperty(value = "户籍地址") |
||||||
|
private String residenceAddr; |
||||||
|
/** |
||||||
|
* 业务来源 |
||||||
|
*/ |
||||||
|
@NotNull(message = "业务来源不能为空") |
||||||
|
@ApiModelProperty(value = "业务来源") |
||||||
|
private String businessSource; |
||||||
|
/** |
||||||
|
* 紧急联系人 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人不能为空") |
||||||
|
@ApiModelProperty(value = "紧急联系人") |
||||||
|
private String emergencyLinkman; |
||||||
|
/** |
||||||
|
* 紧急联系人关系 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人关系不能为空") |
||||||
|
@ApiModelProperty(value = "紧急联系人关系") |
||||||
|
private String emergencyLinkmanRelationship; |
||||||
|
/** |
||||||
|
* 紧急联系人电话 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "紧急联系人电话格式错误") |
||||||
|
@NotNull(message = "紧急联系人电话不能为空") |
||||||
|
@ApiModelProperty(value = "紧急联系人电话") |
||||||
|
private String emergencyLinkmanPhone; |
||||||
|
} |
@ -0,0 +1,167 @@ |
|||||||
|
package com.daqing.framework.domain.crms.ext; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType; |
||||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||||
|
import io.swagger.annotations.ApiModelProperty; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import javax.validation.constraints.Max; |
||||||
|
import javax.validation.constraints.Min; |
||||||
|
import javax.validation.constraints.NotNull; |
||||||
|
import javax.validation.constraints.Pattern; |
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 个人类型客户信息更新 |
||||||
|
* @auther River |
||||||
|
* @date 2020/9/15 19:57 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class CustomerPersonalTOU implements Serializable { |
||||||
|
|
||||||
|
/** |
||||||
|
* 主键 |
||||||
|
*/ |
||||||
|
@NotNull(message = "id不能为空") |
||||||
|
@ApiModelProperty(value = "id") |
||||||
|
@TableId(value = "id", type = IdType.INPUT) |
||||||
|
private Long id; |
||||||
|
/** |
||||||
|
* 客户编号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户编号不能为空") |
||||||
|
@ApiModelProperty(value = "客户编号") |
||||||
|
private String code; |
||||||
|
/** |
||||||
|
* 客户类型:1、企业类型,0:个人类型 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "客户类型格式有误") |
||||||
|
@Max(value = 1,message = "客户类型格式有误") |
||||||
|
@NotNull(message = "客户类型不能为空") |
||||||
|
@ApiModelProperty(value = "客户类型") |
||||||
|
private Integer type; |
||||||
|
/** |
||||||
|
* 客户的经理人id |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户经理人不能为空") |
||||||
|
@ApiModelProperty(value = "客户经理人id") |
||||||
|
private Long manager; |
||||||
|
/** |
||||||
|
* 客户名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户名称不能为空") |
||||||
|
@ApiModelProperty(value = "客户名称") |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 联系地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系地址不能为空") |
||||||
|
@ApiModelProperty(value = "联系地址") |
||||||
|
private String addr; |
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "联系电话格式错误") |
||||||
|
@NotNull(message = "联系电话不能为空") |
||||||
|
@ApiModelProperty(value = "联系电话") |
||||||
|
private String phone; |
||||||
|
/** |
||||||
|
* 身份证号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "身份证号不能为空") |
||||||
|
@ApiModelProperty(value = "身份证号") |
||||||
|
private String idCard; |
||||||
|
/** |
||||||
|
* 年龄 |
||||||
|
*/ |
||||||
|
@NotNull(message = "年龄不能为空") |
||||||
|
@ApiModelProperty(value = "年龄") |
||||||
|
private Integer age; |
||||||
|
/** |
||||||
|
* 性别:1、男,0、女 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "性别格式有误") |
||||||
|
@Max(value = 1,message = "性别格式有误") |
||||||
|
@NotNull(message = "性别不能为空") |
||||||
|
@ApiModelProperty(value = "性别") |
||||||
|
private Integer gender; |
||||||
|
/** |
||||||
|
* 婚姻状况,0:未婚,1:已婚,2:离异,3:再婚 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "婚姻状况格式有误") |
||||||
|
@Max(value = 3,message = "婚姻状况格式有误") |
||||||
|
@NotNull(message = "婚姻状况不能为空") |
||||||
|
@ApiModelProperty(value = "婚姻状况") |
||||||
|
private Integer maritalStatus; |
||||||
|
/** |
||||||
|
* 学历,0:本科,1:大专,2:高职,3:中专,4:其他 |
||||||
|
*/ |
||||||
|
@Min(value = 0,message = "学历格式有误") |
||||||
|
@Max(value = 4,message = "学历格式有误") |
||||||
|
@NotNull(message = "学历不能为空") |
||||||
|
@ApiModelProperty(value = "学历") |
||||||
|
private Integer education; |
||||||
|
/** |
||||||
|
* 工作单位 |
||||||
|
*/ |
||||||
|
@NotNull(message = "工作单位不能为空") |
||||||
|
@ApiModelProperty(value = "工作单位") |
||||||
|
private String employer; |
||||||
|
/** |
||||||
|
* 职务 |
||||||
|
*/ |
||||||
|
@NotNull(message = "职务不能为空") |
||||||
|
@ApiModelProperty(value = "职务") |
||||||
|
private String position; |
||||||
|
/** |
||||||
|
* 工作年限 |
||||||
|
*/ |
||||||
|
@NotNull(message = "工作年限不能为空") |
||||||
|
@ApiModelProperty(value = "工作年限") |
||||||
|
private Integer workingYears; |
||||||
|
/** |
||||||
|
* 社保账号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "社保账号不能为空") |
||||||
|
@ApiModelProperty(value = "社保账号") |
||||||
|
private String socialSecurityNum; |
||||||
|
/** |
||||||
|
* 居住情况 |
||||||
|
*/ |
||||||
|
@NotNull(message = "居住情况不能为空") |
||||||
|
@ApiModelProperty(value = "居住情况") |
||||||
|
private String livingSituation; |
||||||
|
/** |
||||||
|
* 户籍地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "户籍地址不能为空") |
||||||
|
@ApiModelProperty(value = "户籍地址") |
||||||
|
private String residenceAddr; |
||||||
|
/** |
||||||
|
* 业务来源 |
||||||
|
*/ |
||||||
|
@NotNull(message = "业务来源不能为空") |
||||||
|
@ApiModelProperty(value = "业务来源") |
||||||
|
private String businessSource; |
||||||
|
/** |
||||||
|
* 紧急联系人 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人不能为空") |
||||||
|
@ApiModelProperty(value = "紧急联系人") |
||||||
|
private String emergencyLinkman; |
||||||
|
/** |
||||||
|
* 紧急联系人关系 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人关系不能为空") |
||||||
|
@ApiModelProperty(value = "紧急联系人关系") |
||||||
|
private String emergencyLinkmanRelationship; |
||||||
|
/** |
||||||
|
* 紧急联系人电话 |
||||||
|
*/ |
||||||
|
@Pattern(regexp = "^[0-9]*$",message = "紧急联系人电话格式错误") |
||||||
|
@NotNull(message = "紧急联系人电话不能为空") |
||||||
|
@ApiModelProperty(value = "紧急联系人电话") |
||||||
|
private String emergencyLinkmanPhone; |
||||||
|
} |
@ -0,0 +1,133 @@ |
|||||||
|
package com.daqing.framework.domain.crms.ext; |
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||||
|
import com.alibaba.excel.metadata.BaseRowModel; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.ToString; |
||||||
|
|
||||||
|
import javax.validation.constraints.NotNull; |
||||||
|
import java.io.Serializable; |
||||||
|
|
||||||
|
/** |
||||||
|
* 导出excel模板(个人类型) |
||||||
|
* @auther River |
||||||
|
* @date 2020/10/9 11:32 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@ToString |
||||||
|
public class PersonalTemplate extends BaseRowModel implements Serializable { |
||||||
|
/** |
||||||
|
* 客户经理 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户经理不能为空") |
||||||
|
@ExcelProperty(value = "客户经理(请填写本公司存在的员工姓名)",index = 0) |
||||||
|
private String manager; |
||||||
|
/** |
||||||
|
* 客户名称 |
||||||
|
*/ |
||||||
|
@NotNull(message = "客户名称不能为空") |
||||||
|
@ExcelProperty(value = "姓名",index = 1) |
||||||
|
private String name; |
||||||
|
/** |
||||||
|
* 联系地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系地址不能为空") |
||||||
|
@ExcelProperty(value = "地址",index = 2) |
||||||
|
private String addr; |
||||||
|
/** |
||||||
|
* 联系电话 |
||||||
|
*/ |
||||||
|
@NotNull(message = "联系电话不能为空") |
||||||
|
@ExcelProperty(value = "电话",index = 3) |
||||||
|
private String phone; |
||||||
|
/** |
||||||
|
* 身份证号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "身份证号不能为空") |
||||||
|
@ExcelProperty(value = "身份证号",index = 4) |
||||||
|
private String idCard; |
||||||
|
/** |
||||||
|
* 年龄 |
||||||
|
*/ |
||||||
|
@NotNull(message = "年龄不能为空") |
||||||
|
@ExcelProperty(value = "年龄",index = 5) |
||||||
|
private Integer age; |
||||||
|
/** |
||||||
|
* 性别:1、男,0、女 |
||||||
|
*/ |
||||||
|
@NotNull(message = "性别不能为空") |
||||||
|
@ExcelProperty(value = "性别(1:男,0:女)",index = 6) |
||||||
|
private Integer gender; |
||||||
|
/** |
||||||
|
* 婚姻状况:1、已婚,0、未婚 |
||||||
|
*/ |
||||||
|
@NotNull(message = "婚姻状况不能为空") |
||||||
|
@ExcelProperty(value = "婚姻状况(0:未婚,1:已婚,2:离异,3:再婚)",index = 7) |
||||||
|
private Integer maritalStatus; |
||||||
|
/** |
||||||
|
* 学历 |
||||||
|
*/ |
||||||
|
@NotNull(message = "学历不能为空") |
||||||
|
@ExcelProperty(value = "学历(0:本科,1:大专,2:高职,3:中专,4:其他)",index = 8) |
||||||
|
private Integer education; |
||||||
|
/** |
||||||
|
* 工作单位 |
||||||
|
*/ |
||||||
|
@NotNull(message = "工作单位不能为空") |
||||||
|
@ExcelProperty(value = "工作单位",index = 9) |
||||||
|
private String employer; |
||||||
|
/** |
||||||
|
* 职务 |
||||||
|
*/ |
||||||
|
@NotNull(message = "职务不能为空") |
||||||
|
@ExcelProperty(value = "职务",index = 10) |
||||||
|
private String position; |
||||||
|
/** |
||||||
|
* 工作年限 |
||||||
|
*/ |
||||||
|
@NotNull(message = "工作年限不能为空") |
||||||
|
@ExcelProperty(value = "工作年限",index = 11) |
||||||
|
private Integer workingYears; |
||||||
|
/** |
||||||
|
* 社保账号 |
||||||
|
*/ |
||||||
|
@NotNull(message = "社保账号不能为空") |
||||||
|
@ExcelProperty(value = "社保账号",index = 12) |
||||||
|
private String socialSecurityNum; |
||||||
|
/** |
||||||
|
* 居住情况 |
||||||
|
*/ |
||||||
|
@NotNull(message = "居住情况不能为空") |
||||||
|
@ExcelProperty(value = "居住情况",index = 13) |
||||||
|
private String livingSituation; |
||||||
|
/** |
||||||
|
* 户籍地址 |
||||||
|
*/ |
||||||
|
@NotNull(message = "户籍地址不能为空") |
||||||
|
@ExcelProperty(value = "户籍地址",index = 14) |
||||||
|
private String residenceAddr; |
||||||
|
/** |
||||||
|
* 业务来源 |
||||||
|
*/ |
||||||
|
@NotNull(message = "业务来源不能为空") |
||||||
|
@ExcelProperty(value = "业务来源",index = 15) |
||||||
|
private String businessSource; |
||||||
|
/** |
||||||
|
* 紧急联系人 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人不能为空") |
||||||
|
@ExcelProperty(value = "紧急联系人",index = 16) |
||||||
|
private String emergencyLinkman; |
||||||
|
/** |
||||||
|
* 紧急联系人关系 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人关系不能为空") |
||||||
|
@ExcelProperty(value = "紧急联系人关系",index = 17) |
||||||
|
private String emergencyLinkmanRelationship; |
||||||
|
/** |
||||||
|
* 紧急联系人电话 |
||||||
|
*/ |
||||||
|
@NotNull(message = "紧急联系人电话不能为空") |
||||||
|
@ExcelProperty(value = "紧急联系人电话",index = 18) |
||||||
|
private String emergencyLinkmanPhone; |
||||||
|
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue