Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
a9f0831c
Commit
a9f0831c
authored
Apr 25, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加-fileUpload和practitionPojo类
parent
ac6392ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
553 additions
and
16 deletions
+553
-16
yd-api/src/main/java/com/yd/dal/entity/customer/AclFileUpload.java
+89
-0
yd-api/src/main/java/com/yd/dal/entity/practitioner/AclPractitionerInfo.java
+207
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclFileUploadMapper.java
+15
-3
yd-api/src/main/java/com/yd/dal/mapper/practitioner/AclPractitionerMapper.java
+18
-0
yd-api/src/main/resources/mapper/customer/AclFileUploadMapper.xml
+224
-13
yd-api/src/main/resources/mapper/practitioner/AclPractitionerMapper.xml
+0
-0
No files found.
yd-api/src/main/java/com/yd/dal/entity/customer/AclFileUpload.java
0 → 100644
View file @
a9f0831c
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_file_upload
* @author
*/
@Data
public
class
AclFileUpload
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* 1=从业人员practioner表, 2=员工user表, 3=客户customer表, 4=渠道客户channel表
*/
private
Integer
targetType
;
/**
* 对应每种功能表的 id
*/
private
Long
targetId
;
/**
* 对应每种功能表代表编号
*/
private
String
targetNo
;
/**
* 文件用途 1=头像 2=生活照 3=证照 4=毕业证书 5=营业登记证 6.咨询定制方案 7.客户身份证正面照片 8.客户身份证反面照片9.个人微信二维码
*/
private
Integer
targetUseFor
;
/**
* 文件排列顺序
*/
private
Integer
targetSeq
;
/**
* 1.PDF 2.DOC 3.PPT 4.JPEG
*/
private
String
fileType
;
/**
* 檔案名称
*/
private
String
fileName
;
/**
* 檔案路径
*/
private
String
filePath
;
/**
* 备注
*/
private
String
remark
;
/**
* 檔案大小
*/
private
String
fileSize
;
/**
* OSS KEY
*/
private
String
ossKey
;
/**
* 是否有效/展示 0=N0, 1=Yes
*/
private
Integer
isActive
;
private
Long
orderId
;
/**
* 上传时间
*/
private
Date
uploadedAt
;
private
Long
uploadedBy
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/practitioner/AclPractitionerInfo.java
0 → 100644
View file @
a9f0831c
package
com
.
yd
.
dal
.
entity
.
practitioner
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_practitioner
* @author
*/
@Data
public
class
AclPractitionerInfo
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_insurer.id
*/
private
Long
insurerId
;
/**
* FK ag_acl_insurer_branch.id
*/
private
Long
insurerBranchId
;
/**
* FK ag_acl_insurer_branch_dept.id 所属部门id
*/
private
Long
deptId
;
/**
* FK ag_acl_practitioner_subordinate_system.id 所属部门id
*/
private
Long
subordinateSystemId
;
/**
* 从业人员编号
*/
private
String
practitionerCode
;
/**
* 从业人员姓名
*/
private
String
name
;
/**
* 从业人员电话
*/
private
String
mobileNo
;
/**
* FK ag_md_id_type.id
*/
private
Long
idTypeId
;
/**
* 从业人员证件类型
*/
private
String
idType
;
/**
* 从业人员证件号
*/
private
String
idNo
;
/**
* 从业人员生日
*/
private
Date
practitionerBirthdate
;
/**
* 从业人员执业证编号
*/
private
String
practitionerRegNo
;
/**
* 从业人员所属公司
*/
private
String
practitionerRegCompany
;
/**
* 有效起日
*/
private
Date
effectiveStartDate
;
/**
* 有效终日
*/
private
Date
effectiveEndDate
;
/**
* 备注
*/
private
String
remark
;
/**
* FK ag_acl_customer.id
*/
private
Long
customerId
;
/**
* 公司员工编码
*/
private
String
employeeNo
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
/**
* 从业人员所属区域-省份 FK ag_md_province.id
*/
private
Long
provinceId
;
/**
* 所属区域省份名
*/
private
String
provinceName
;
/**
* 从业人员所属区域-城市 FK ag_md_city.id
*/
private
Long
cityId
;
/**
* 所属区域城市名
*/
private
String
cityName
;
/**
* 从业人员证照/荣誉列 FK ag_md_certificate.id
*/
private
String
certList
;
/**
* 从业人员自我简介
*/
private
String
bioIntro
;
/**
* 从业人员微信号
*/
private
String
wechatId
;
/**
* 从业人员QQ号
*/
private
String
qqId
;
/**
* 查询是否显示 0=No=不显示 1=Yes=显示
*/
private
Integer
isProfileShow
;
/**
* 姓名是否显示 0=No=不显示 1=Yes=显示
*/
private
Integer
isNameShow
;
/**
* 电话是否显示 0=No=不显示 1=Yes=显示
*/
private
Integer
isMobileShow
;
/**
* 教育程度
*/
private
String
educationLevel
;
/**
* FK ag_acl_practitioner.id 辅导人
*/
private
Long
mentorId
;
/**
* FK ag_acl_practitioner.id 介绍人
*/
private
Long
introducerId
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclFileUploadMapper.java
View file @
a9f0831c
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclFileUpload
;
import
com.yd.dal.entity.customer.CustomerFileUpload
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclFileUploadMapper
{
int
deleteByPrimaryKey
(
Long
id
);
CustomerFileUpload
findByTargetTypeAndTargetUseForAndTargetId
(
@Param
(
"targetType"
)
Integer
targetType
,
@Param
(
"targetUseFor"
)
Integer
targetUseFor
,
@Param
(
"practitionerId"
)
Long
practitionerId
);
}
int
insert
(
AclFileUpload
record
);
int
insertSelective
(
AclFileUpload
record
);
AclFileUpload
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclFileUpload
record
);
int
updateByPrimaryKey
(
AclFileUpload
record
);
CustomerFileUpload
findByTargetTypeAndTargetUseForAndTargetId
(
Integer
targetType
,
Integer
targetUseFor
,
Long
practitionerId
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/practitioner/AclPractitionerMapper.java
0 → 100644
View file @
a9f0831c
package
com
.
yd
.
dal
.
mapper
.
practitioner
;
import
com.yd.dal.entity.practitioner.AclPractitionerInfo
;
public
interface
AclPractitionerMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerInfo
record
);
int
insertSelective
(
AclPractitionerInfo
record
);
AclPractitionerInfo
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerInfo
record
);
int
updateByPrimaryKey
(
AclPractitionerInfo
record
);
}
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclFileUploadMapper.xml
View file @
a9f0831c
<?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"
>
<?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.yd.dal.mapper.customer.AclFileUploadMapper"
>
<resultMap
id=
"file_upload_map"
type=
"com.yd.dal.entity.customer.CustomerFileUpload"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"fileName"
property=
"fileName"
/>
<result
column=
"filePath"
property=
"filePath"
/>
<result
column=
"remark"
property=
"remark"
/>
</resultMap>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclFileUpload"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"target_type"
jdbcType=
"INTEGER"
property=
"targetType"
/>
<result
column=
"target_id"
jdbcType=
"BIGINT"
property=
"targetId"
/>
<result
column=
"target_no"
jdbcType=
"VARCHAR"
property=
"targetNo"
/>
<result
column=
"target_use_for"
jdbcType=
"INTEGER"
property=
"targetUseFor"
/>
<result
column=
"target_seq"
jdbcType=
"INTEGER"
property=
"targetSeq"
/>
<result
column=
"file_type"
jdbcType=
"VARCHAR"
property=
"fileType"
/>
<result
column=
"file_name"
jdbcType=
"VARCHAR"
property=
"fileName"
/>
<result
column=
"file_path"
jdbcType=
"VARCHAR"
property=
"filePath"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"file_size"
jdbcType=
"VARCHAR"
property=
"fileSize"
/>
<result
column=
"oss_key"
jdbcType=
"VARCHAR"
property=
"ossKey"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"order_id"
jdbcType=
"BIGINT"
property=
"orderId"
/>
<result
column=
"uploaded_at"
jdbcType=
"TIMESTAMP"
property=
"uploadedAt"
/>
<result
column=
"uploaded_by"
jdbcType=
"BIGINT"
property=
"uploadedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, target_type, target_id, target_no, target_use_for, target_seq, file_type, file_name,
file_path, remark, file_size, oss_key, is_active, order_id, uploaded_at, uploaded_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_file_upload
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_file_upload
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclFileUpload"
useGeneratedKeys=
"true"
>
insert into ag_acl_file_upload (target_type, target_id, target_no,
target_use_for, target_seq, file_type,
file_name, file_path, remark,
file_size, oss_key, is_active,
order_id, uploaded_at, uploaded_by
)
values (#{targetType,jdbcType=INTEGER}, #{targetId,jdbcType=BIGINT}, #{targetNo,jdbcType=VARCHAR},
#{targetUseFor,jdbcType=INTEGER}, #{targetSeq,jdbcType=INTEGER}, #{fileType,jdbcType=VARCHAR},
#{fileName,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{fileSize,jdbcType=VARCHAR}, #{ossKey,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{orderId,jdbcType=BIGINT}, #{uploadedAt,jdbcType=TIMESTAMP}, #{uploadedBy,jdbcType=BIGINT}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclFileUpload"
useGeneratedKeys=
"true"
>
insert into ag_acl_file_upload
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"targetType != null"
>
target_type,
</if>
<if
test=
"targetId != null"
>
target_id,
</if>
<if
test=
"targetNo != null"
>
target_no,
</if>
<if
test=
"targetUseFor != null"
>
target_use_for,
</if>
<if
test=
"targetSeq != null"
>
target_seq,
</if>
<if
test=
"fileType != null"
>
file_type,
</if>
<if
test=
"fileName != null"
>
file_name,
</if>
<if
test=
"filePath != null"
>
file_path,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"fileSize != null"
>
file_size,
</if>
<if
test=
"ossKey != null"
>
oss_key,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"orderId != null"
>
order_id,
</if>
<if
test=
"uploadedAt != null"
>
uploaded_at,
</if>
<if
test=
"uploadedBy != null"
>
uploaded_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"targetType != null"
>
#{targetType,jdbcType=INTEGER},
</if>
<if
test=
"targetId != null"
>
#{targetId,jdbcType=BIGINT},
</if>
<if
test=
"targetNo != null"
>
#{targetNo,jdbcType=VARCHAR},
</if>
<if
test=
"targetUseFor != null"
>
#{targetUseFor,jdbcType=INTEGER},
</if>
<if
test=
"targetSeq != null"
>
#{targetSeq,jdbcType=INTEGER},
</if>
<if
test=
"fileType != null"
>
#{fileType,jdbcType=VARCHAR},
</if>
<if
test=
"fileName != null"
>
#{fileName,jdbcType=VARCHAR},
</if>
<if
test=
"filePath != null"
>
#{filePath,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"fileSize != null"
>
#{fileSize,jdbcType=VARCHAR},
</if>
<if
test=
"ossKey != null"
>
#{ossKey,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"orderId != null"
>
#{orderId,jdbcType=BIGINT},
</if>
<if
test=
"uploadedAt != null"
>
#{uploadedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"uploadedBy != null"
>
#{uploadedBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclFileUpload"
>
update ag_acl_file_upload
<set>
<if
test=
"targetType != null"
>
target_type = #{targetType,jdbcType=INTEGER},
</if>
<if
test=
"targetId != null"
>
target_id = #{targetId,jdbcType=BIGINT},
</if>
<if
test=
"targetNo != null"
>
target_no = #{targetNo,jdbcType=VARCHAR},
</if>
<if
test=
"targetUseFor != null"
>
target_use_for = #{targetUseFor,jdbcType=INTEGER},
</if>
<if
test=
"targetSeq != null"
>
target_seq = #{targetSeq,jdbcType=INTEGER},
</if>
<if
test=
"fileType != null"
>
file_type = #{fileType,jdbcType=VARCHAR},
</if>
<if
test=
"fileName != null"
>
file_name = #{fileName,jdbcType=VARCHAR},
</if>
<if
test=
"filePath != null"
>
file_path = #{filePath,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"fileSize != null"
>
file_size = #{fileSize,jdbcType=VARCHAR},
</if>
<if
test=
"ossKey != null"
>
oss_key = #{ossKey,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"orderId != null"
>
order_id = #{orderId,jdbcType=BIGINT},
</if>
<if
test=
"uploadedAt != null"
>
uploaded_at = #{uploadedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"uploadedBy != null"
>
uploaded_by = #{uploadedBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclFileUpload"
>
update ag_acl_file_upload
set target_type = #{targetType,jdbcType=INTEGER},
target_id = #{targetId,jdbcType=BIGINT},
target_no = #{targetNo,jdbcType=VARCHAR},
target_use_for = #{targetUseFor,jdbcType=INTEGER},
target_seq = #{targetSeq,jdbcType=INTEGER},
file_type = #{fileType,jdbcType=VARCHAR},
file_name = #{fileName,jdbcType=VARCHAR},
file_path = #{filePath,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
file_size = #{fileSize,jdbcType=VARCHAR},
oss_key = #{ossKey,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
order_id = #{orderId,jdbcType=BIGINT},
uploaded_at = #{uploadedAt,jdbcType=TIMESTAMP},
uploaded_by = #{uploadedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"file_upload_map"
type=
"com.yd.dal.entity.customer.CustomerFileUpload"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"fileName"
property=
"fileName"
/>
<result
column=
"filePath"
property=
"filePath"
/>
<result
column=
"remark"
property=
"remark"
/>
</resultMap>
<select
id=
"findByTargetTypeAndTargetUseForAndTargetId"
resultMap=
"file_upload_map"
>
<select
id=
"findByTargetTypeAndTargetUseForAndTargetId"
resultMap=
"file_upload_map"
>
SELECT
u.id as id,
u.file_name as fileName,
...
...
@@ -21,7 +234,4 @@
and u.target_id = #{practitionerId}
</select>
</mapper>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/practitioner/AclPractitionerMapper.xml
0 → 100644
View file @
a9f0831c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment