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
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1034 additions
and
8 deletions
+1034
-8
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
+14
-2
yd-api/src/main/java/com/yd/dal/mapper/practitioner/AclPractitionerMapper.java
+18
-0
yd-api/src/main/resources/mapper/customer/AclFileUploadMapper.xml
+215
-6
yd-api/src/main/resources/mapper/practitioner/AclPractitionerMapper.xml
+491
-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
;
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclFileUpload
;
import
com.yd.dal.entity.customer.CustomerFileUpload
;
import
com.yd.dal.entity.customer.CustomerFileUpload
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclFileUploadMapper
{
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"
?>
<?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"
>
<!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"
>
<mapper
namespace=
"com.yd.dal.mapper.customer.AclFileUploadMapper"
>
<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"
>
<resultMap
id=
"file_upload_map"
type=
"com.yd.dal.entity.customer.CustomerFileUpload"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"id"
property=
"id"
/>
<result
column=
"fileName"
property=
"fileName"
/>
<result
column=
"fileName"
property=
"fileName"
/>
...
@@ -21,7 +234,4 @@
...
@@ -21,7 +234,4 @@
and u.target_id = #{practitionerId}
and u.target_id = #{practitionerId}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/practitioner/AclPractitionerMapper.xml
0 → 100644
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">
<mapper
namespace=
"com.yd.dal.mapper.practitioner.AclPractitionerMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.practitioner.AclPractitionerInfo"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"insurer_id"
jdbcType=
"BIGINT"
property=
"insurerId"
/>
<result
column=
"insurer_branch_id"
jdbcType=
"BIGINT"
property=
"insurerBranchId"
/>
<result
column=
"dept_id"
jdbcType=
"BIGINT"
property=
"deptId"
/>
<result
column=
"subordinate_system_id"
jdbcType=
"BIGINT"
property=
"subordinateSystemId"
/>
<result
column=
"practitioner_code"
jdbcType=
"VARCHAR"
property=
"practitionerCode"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"mobile_no"
jdbcType=
"VARCHAR"
property=
"mobileNo"
/>
<result
column=
"id_type_id"
jdbcType=
"BIGINT"
property=
"idTypeId"
/>
<result
column=
"id_type"
jdbcType=
"VARCHAR"
property=
"idType"
/>
<result
column=
"id_no"
jdbcType=
"VARCHAR"
property=
"idNo"
/>
<result
column=
"practitioner_birthdate"
jdbcType=
"DATE"
property=
"practitionerBirthdate"
/>
<result
column=
"practitioner_reg_no"
jdbcType=
"VARCHAR"
property=
"practitionerRegNo"
/>
<result
column=
"practitioner_reg_company"
jdbcType=
"VARCHAR"
property=
"practitionerRegCompany"
/>
<result
column=
"effective_start_date"
jdbcType=
"DATE"
property=
"effectiveStartDate"
/>
<result
column=
"effective_end_date"
jdbcType=
"DATE"
property=
"effectiveEndDate"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"customer_id"
jdbcType=
"BIGINT"
property=
"customerId"
/>
<result
column=
"employee_no"
jdbcType=
"VARCHAR"
property=
"employeeNo"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
<result
column=
"province_id"
jdbcType=
"BIGINT"
property=
"provinceId"
/>
<result
column=
"province_name"
jdbcType=
"VARCHAR"
property=
"provinceName"
/>
<result
column=
"city_id"
jdbcType=
"BIGINT"
property=
"cityId"
/>
<result
column=
"city_name"
jdbcType=
"VARCHAR"
property=
"cityName"
/>
<result
column=
"cert_list"
jdbcType=
"VARCHAR"
property=
"certList"
/>
<result
column=
"bio_intro"
jdbcType=
"VARCHAR"
property=
"bioIntro"
/>
<result
column=
"wechat_id"
jdbcType=
"VARCHAR"
property=
"wechatId"
/>
<result
column=
"qq_id"
jdbcType=
"VARCHAR"
property=
"qqId"
/>
<result
column=
"is_profile_show"
jdbcType=
"INTEGER"
property=
"isProfileShow"
/>
<result
column=
"is_name_show"
jdbcType=
"INTEGER"
property=
"isNameShow"
/>
<result
column=
"is_mobile_show"
jdbcType=
"INTEGER"
property=
"isMobileShow"
/>
<result
column=
"education_level"
jdbcType=
"VARCHAR"
property=
"educationLevel"
/>
<result
column=
"mentor_id"
jdbcType=
"BIGINT"
property=
"mentorId"
/>
<result
column=
"introducer_id"
jdbcType=
"BIGINT"
property=
"introducerId"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, insurer_id, insurer_branch_id, dept_id, subordinate_system_id, practitioner_code,
`name`, mobile_no, id_type_id, id_type, id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date, effective_end_date, remark, customer_id,
employee_no, is_active, created_at, created_by, updated_at, updated_by, province_id,
province_name, city_id, city_name, cert_list, bio_intro, wechat_id, qq_id, is_profile_show,
is_name_show, is_mobile_show, education_level, mentor_id, introducer_id, gender
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_practitioner
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.practitioner.AclPractitionerInfo"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner (insurer_id, insurer_branch_id, dept_id,
subordinate_system_id, practitioner_code, `name`,
mobile_no, id_type_id, id_type,
id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date,
effective_end_date, remark, customer_id,
employee_no, is_active, created_at,
created_by, updated_at, updated_by,
province_id, province_name, city_id,
city_name, cert_list, bio_intro,
wechat_id, qq_id, is_profile_show,
is_name_show, is_mobile_show, education_level,
mentor_id, introducer_id, gender
)
values (#{insurerId,jdbcType=BIGINT}, #{insurerBranchId,jdbcType=BIGINT}, #{deptId,jdbcType=BIGINT},
#{subordinateSystemId,jdbcType=BIGINT}, #{practitionerCode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{mobileNo,jdbcType=VARCHAR}, #{idTypeId,jdbcType=BIGINT}, #{idType,jdbcType=VARCHAR},
#{idNo,jdbcType=VARCHAR}, #{practitionerBirthdate,jdbcType=DATE}, #{practitionerRegNo,jdbcType=VARCHAR},
#{practitionerRegCompany,jdbcType=VARCHAR}, #{effectiveStartDate,jdbcType=DATE},
#{effectiveEndDate,jdbcType=DATE}, #{remark,jdbcType=VARCHAR}, #{customerId,jdbcType=BIGINT},
#{employeeNo,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT},
#{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR}, #{cityId,jdbcType=BIGINT},
#{cityName,jdbcType=VARCHAR}, #{certList,jdbcType=VARCHAR}, #{bioIntro,jdbcType=VARCHAR},
#{wechatId,jdbcType=VARCHAR}, #{qqId,jdbcType=VARCHAR}, #{isProfileShow,jdbcType=INTEGER},
#{isNameShow,jdbcType=INTEGER}, #{isMobileShow,jdbcType=INTEGER}, #{educationLevel,jdbcType=VARCHAR},
#{mentorId,jdbcType=BIGINT}, #{introducerId,jdbcType=BIGINT}, #{gender,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.practitioner.AclPractitionerInfo"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"insurerId != null"
>
insurer_id,
</if>
<if
test=
"insurerBranchId != null"
>
insurer_branch_id,
</if>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"subordinateSystemId != null"
>
subordinate_system_id,
</if>
<if
test=
"practitionerCode != null"
>
practitioner_code,
</if>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"mobileNo != null"
>
mobile_no,
</if>
<if
test=
"idTypeId != null"
>
id_type_id,
</if>
<if
test=
"idType != null"
>
id_type,
</if>
<if
test=
"idNo != null"
>
id_no,
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate,
</if>
<if
test=
"practitionerRegNo != null"
>
practitioner_reg_no,
</if>
<if
test=
"practitionerRegCompany != null"
>
practitioner_reg_company,
</if>
<if
test=
"effectiveStartDate != null"
>
effective_start_date,
</if>
<if
test=
"effectiveEndDate != null"
>
effective_end_date,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"customerId != null"
>
customer_id,
</if>
<if
test=
"employeeNo != null"
>
employee_no,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
<if
test=
"provinceId != null"
>
province_id,
</if>
<if
test=
"provinceName != null"
>
province_name,
</if>
<if
test=
"cityId != null"
>
city_id,
</if>
<if
test=
"cityName != null"
>
city_name,
</if>
<if
test=
"certList != null"
>
cert_list,
</if>
<if
test=
"bioIntro != null"
>
bio_intro,
</if>
<if
test=
"wechatId != null"
>
wechat_id,
</if>
<if
test=
"qqId != null"
>
qq_id,
</if>
<if
test=
"isProfileShow != null"
>
is_profile_show,
</if>
<if
test=
"isNameShow != null"
>
is_name_show,
</if>
<if
test=
"isMobileShow != null"
>
is_mobile_show,
</if>
<if
test=
"educationLevel != null"
>
education_level,
</if>
<if
test=
"mentorId != null"
>
mentor_id,
</if>
<if
test=
"introducerId != null"
>
introducer_id,
</if>
<if
test=
"gender != null"
>
gender,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"insurerId != null"
>
#{insurerId,jdbcType=BIGINT},
</if>
<if
test=
"insurerBranchId != null"
>
#{insurerBranchId,jdbcType=BIGINT},
</if>
<if
test=
"deptId != null"
>
#{deptId,jdbcType=BIGINT},
</if>
<if
test=
"subordinateSystemId != null"
>
#{subordinateSystemId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerCode != null"
>
#{practitionerCode,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"mobileNo != null"
>
#{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"idTypeId != null"
>
#{idTypeId,jdbcType=BIGINT},
</if>
<if
test=
"idType != null"
>
#{idType,jdbcType=VARCHAR},
</if>
<if
test=
"idNo != null"
>
#{idNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerBirthdate != null"
>
#{practitionerBirthdate,jdbcType=DATE},
</if>
<if
test=
"practitionerRegNo != null"
>
#{practitionerRegNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegCompany != null"
>
#{practitionerRegCompany,jdbcType=VARCHAR},
</if>
<if
test=
"effectiveStartDate != null"
>
#{effectiveStartDate,jdbcType=DATE},
</if>
<if
test=
"effectiveEndDate != null"
>
#{effectiveEndDate,jdbcType=DATE},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"customerId != null"
>
#{customerId,jdbcType=BIGINT},
</if>
<if
test=
"employeeNo != null"
>
#{employeeNo,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"provinceId != null"
>
#{provinceId,jdbcType=BIGINT},
</if>
<if
test=
"provinceName != null"
>
#{provinceName,jdbcType=VARCHAR},
</if>
<if
test=
"cityId != null"
>
#{cityId,jdbcType=BIGINT},
</if>
<if
test=
"cityName != null"
>
#{cityName,jdbcType=VARCHAR},
</if>
<if
test=
"certList != null"
>
#{certList,jdbcType=VARCHAR},
</if>
<if
test=
"bioIntro != null"
>
#{bioIntro,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
#{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"qqId != null"
>
#{qqId,jdbcType=VARCHAR},
</if>
<if
test=
"isProfileShow != null"
>
#{isProfileShow,jdbcType=INTEGER},
</if>
<if
test=
"isNameShow != null"
>
#{isNameShow,jdbcType=INTEGER},
</if>
<if
test=
"isMobileShow != null"
>
#{isMobileShow,jdbcType=INTEGER},
</if>
<if
test=
"educationLevel != null"
>
#{educationLevel,jdbcType=VARCHAR},
</if>
<if
test=
"mentorId != null"
>
#{mentorId,jdbcType=BIGINT},
</if>
<if
test=
"introducerId != null"
>
#{introducerId,jdbcType=BIGINT},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.practitioner.AclPractitionerInfo"
>
update ag_acl_practitioner
<set>
<if
test=
"insurerId != null"
>
insurer_id = #{insurerId,jdbcType=BIGINT},
</if>
<if
test=
"insurerBranchId != null"
>
insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT},
</if>
<if
test=
"deptId != null"
>
dept_id = #{deptId,jdbcType=BIGINT},
</if>
<if
test=
"subordinateSystemId != null"
>
subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerCode != null"
>
practitioner_code = #{practitionerCode,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"mobileNo != null"
>
mobile_no = #{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"idTypeId != null"
>
id_type_id = #{idTypeId,jdbcType=BIGINT},
</if>
<if
test=
"idType != null"
>
id_type = #{idType,jdbcType=VARCHAR},
</if>
<if
test=
"idNo != null"
>
id_no = #{idNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
</if>
<if
test=
"practitionerRegNo != null"
>
practitioner_reg_no = #{practitionerRegNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegCompany != null"
>
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
</if>
<if
test=
"effectiveStartDate != null"
>
effective_start_date = #{effectiveStartDate,jdbcType=DATE},
</if>
<if
test=
"effectiveEndDate != null"
>
effective_end_date = #{effectiveEndDate,jdbcType=DATE},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId,jdbcType=BIGINT},
</if>
<if
test=
"employeeNo != null"
>
employee_no = #{employeeNo,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"provinceId != null"
>
province_id = #{provinceId,jdbcType=BIGINT},
</if>
<if
test=
"provinceName != null"
>
province_name = #{provinceName,jdbcType=VARCHAR},
</if>
<if
test=
"cityId != null"
>
city_id = #{cityId,jdbcType=BIGINT},
</if>
<if
test=
"cityName != null"
>
city_name = #{cityName,jdbcType=VARCHAR},
</if>
<if
test=
"certList != null"
>
cert_list = #{certList,jdbcType=VARCHAR},
</if>
<if
test=
"bioIntro != null"
>
bio_intro = #{bioIntro,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"qqId != null"
>
qq_id = #{qqId,jdbcType=VARCHAR},
</if>
<if
test=
"isProfileShow != null"
>
is_profile_show = #{isProfileShow,jdbcType=INTEGER},
</if>
<if
test=
"isNameShow != null"
>
is_name_show = #{isNameShow,jdbcType=INTEGER},
</if>
<if
test=
"isMobileShow != null"
>
is_mobile_show = #{isMobileShow,jdbcType=INTEGER},
</if>
<if
test=
"educationLevel != null"
>
education_level = #{educationLevel,jdbcType=VARCHAR},
</if>
<if
test=
"mentorId != null"
>
mentor_id = #{mentorId,jdbcType=BIGINT},
</if>
<if
test=
"introducerId != null"
>
introducer_id = #{introducerId,jdbcType=BIGINT},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.practitioner.AclPractitionerInfo"
>
update ag_acl_practitioner
set insurer_id = #{insurerId,jdbcType=BIGINT},
insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT},
dept_id = #{deptId,jdbcType=BIGINT},
subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT},
practitioner_code = #{practitionerCode,jdbcType=VARCHAR},
`name` = #{name,jdbcType=VARCHAR},
mobile_no = #{mobileNo,jdbcType=VARCHAR},
id_type_id = #{idTypeId,jdbcType=BIGINT},
id_type = #{idType,jdbcType=VARCHAR},
id_no = #{idNo,jdbcType=VARCHAR},
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
practitioner_reg_no = #{practitionerRegNo,jdbcType=VARCHAR},
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
effective_start_date = #{effectiveStartDate,jdbcType=DATE},
effective_end_date = #{effectiveEndDate,jdbcType=DATE},
remark = #{remark,jdbcType=VARCHAR},
customer_id = #{customerId,jdbcType=BIGINT},
employee_no = #{employeeNo,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT},
province_id = #{provinceId,jdbcType=BIGINT},
province_name = #{provinceName,jdbcType=VARCHAR},
city_id = #{cityId,jdbcType=BIGINT},
city_name = #{cityName,jdbcType=VARCHAR},
cert_list = #{certList,jdbcType=VARCHAR},
bio_intro = #{bioIntro,jdbcType=VARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
qq_id = #{qqId,jdbcType=VARCHAR},
is_profile_show = #{isProfileShow,jdbcType=INTEGER},
is_name_show = #{isNameShow,jdbcType=INTEGER},
is_mobile_show = #{isMobileShow,jdbcType=INTEGER},
education_level = #{educationLevel,jdbcType=VARCHAR},
mentor_id = #{mentorId,jdbcType=BIGINT},
introducer_id = #{introducerId,jdbcType=BIGINT},
gender = #{gender,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
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