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
e2286beb
Commit
e2286beb
authored
Dec 09, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新加表pojo,mapper
parent
2577504d
Hide whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
4100 additions
and
0 deletions
+4100
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringApproveRecords.java
+68
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringBasicInfo.java
+163
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringContractTermsConfirms.java
+53
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringMembership.java
+103
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringPersonalStatements.java
+58
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringWorkingExperience.java
+68
-0
yd-api/src/main/java/com/yd/dal/entity/meta/MdPractitionerHiringApproveSteps.java
+58
-0
yd-api/src/main/java/com/yd/dal/entity/meta/MdPractitionerHiringContractTerms.java
+53
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringApproveRecordsMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringBasicInfoMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringContractTermsConfirmsMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringMembershipMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringPersonalStatementsMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringWorkingExperienceMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/meta/MdPractitionerHiringApproveStepsMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/mapper/meta/MdPractitionerHiringContractTermsMapper.java
+26
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringApproveRecordsDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringBasicInfoDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringContractTermsConfirmsDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringMembershipDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringPersonalStatementsDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringWorkingExperienceDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringApproveRecordsDALServiceImpl.java
+8
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringBasicInfoDALServiceImpl.java
+8
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringContractTermsConfirmsDALServiceImpl.java
+8
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringMembershipDALServiceImpl.java
+8
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringPersonalStatementsDALServiceImpl.java
+8
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringWorkingExperienceDALServiceImpl.java
+8
-0
yd-api/src/main/java/com/yd/dal/service/meta/MdPractitionerHiringApproveStepsDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/meta/MdPractitionerHiringContractTermsDALService.java
+4
-0
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdPractitionerHiringApproveStepsDALServiceImpl.java
+9
-0
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdPractitionerHiringContractTermsDALServiceImpl.java
+8
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringApproveRecordsMapper.xml
+348
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringBasicInfoMapper.xml
+814
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringContractTermsConfirmsMapper.xml
+275
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringMembershipMapper.xml
+519
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringPersonalStatementsMapper.xml
+298
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringWorkingExperienceMapper.xml
+347
-0
yd-api/src/main/resources/mapper/meta/MdPractitionerHiringApproveStepsMapper.xml
+298
-0
yd-api/src/main/resources/mapper/meta/MdPractitionerHiringContractTermsMapper.xml
+272
-0
No files found.
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringApproveRecords.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人報聘审批记录
*/
@Data
public
class
AclPractitionerHiringApproveRecords
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner_hiring_basic_info.id
*/
private
Long
hiringBasicInfoId
;
/**
* 审批步骤id
*/
private
String
approveStepId
;
/**
* 审批步骤名称
*/
private
String
approveStepName
;
/**
* 执行动作的审批经纪人id FK ag_acl_practitioner.id
*/
private
Long
approvingPractitionerId
;
/**
* 1:通过,0:驳回
*/
private
Long
approvingStatus
;
/**
* 备注,驳回原因
*/
private
String
rejectNote
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringBasicInfo.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人基本资料表
*/
@Data
public
class
AclPractitionerHiringBasicInfo
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner_potential,潜在经纪人增员表
*/
private
Long
practitionerPotentialId
;
/**
* FK ag_acl_practitioner.id 邀请人
*/
private
Long
inviteePractitionerId
;
/**
* 報聘经纪人姓名
*/
private
String
name
;
/**
* 報聘经纪人姓名电话
*/
private
String
mobileNo
;
/**
* FK ag_md_id_type.id
*/
private
Long
idTypeId
;
/**
* 報聘经纪人姓名证件类型
*/
private
String
idType
;
/**
* 報聘经纪人姓名证件号
*/
private
String
idNo
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
/**
* 報聘经纪人姓名生日
*/
private
Date
practitionerBirthdate
;
/**
* 户籍省份 FK ag_md_province.id
*/
private
Long
provinceId
;
/**
* 户籍省份名
*/
private
String
provinceName
;
/**
* 户籍城市FK ag_md_city.id
*/
private
Long
cityId
;
/**
* 户籍城市名
*/
private
String
cityName
;
/**
* 居住地址
*/
private
String
residentAddress
;
/**
* 从业人员微信号
*/
private
String
wechatId
;
/**
* email地址
*/
private
String
email
;
/**
* 个人照片
*/
private
String
personerPictureOssPath
;
/**
* Id 正面照片
*/
private
String
idFrontPageOssPath
;
/**
* Id 反面照片
*/
private
String
idBackPageOssPath
;
/**
* 最高学历
*/
private
String
lastGraduateGrade
;
/**
* 毕业学校
*/
private
String
lastGraduateSchool
;
/**
* 毕业证书
*/
private
String
lastGraduateCertificationOssPath
;
/**
* 开户行
*/
private
String
bankAccountOpening
;
/**
* 银行卡号
*/
private
String
bankAccountId
;
/**
* 个人签名
*/
private
String
personalSignOssPath
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringContractTermsConfirms.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人報聘合同条款确认
*/
@Data
public
class
AclPractitionerHiringContractTermsConfirms
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner_hiring_basic_info.id
*/
private
Long
hiringBasicInfoId
;
/**
* 報聘经纪人報聘合同条款id FK ag_md_practitioner_hiring_contract_terms.id
*/
private
Long
contractTermId
;
/**
* 1:已确认,0:未确认
*/
private
Long
confirmStatus
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringMembership.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人组织关系表
*/
@Data
public
class
AclPractitionerHiringMembership
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner_hiring_basic_info.id
*/
private
Long
hiringBasicInfoId
;
/**
* 報聘经纪人职级类型 FK ag_md_drop_options.id: ag_md_drop_master.scenario_code = "practitioner_level"
*/
private
Long
mdDropOptionId
;
/**
* 報聘经纪人职级类型 FK ag_md_drop_options.id: ag_md_drop_master.scenario_code = "practitioner_level"
*/
private
String
mdDropOptionName
;
/**
* 辅导人id
*/
private
String
mentorPractitionerId
;
/**
* 辅导人id
*/
private
String
mentor
;
/**
* 介绍人id
*/
private
String
introducerPractitionerId
;
/**
* 介绍人id
*/
private
String
introducer
;
/**
* 体系id
*/
private
String
subsystemId
;
/**
* 体系
*/
private
String
subsystem
;
/**
* 体系负责人_practitioner_id
*/
private
String
subsystemOwnerId
;
/**
* 体系负责人
*/
private
String
subsystemOwner
;
/**
* 分公司id
*/
private
String
branchPractitionerId
;
/**
* 分公司
*/
private
String
branch
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringPersonalStatements.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人个人申明记录表
*/
@Data
public
class
AclPractitionerHiringPersonalStatements
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner_hiring_basic_info.id
*/
private
Long
hiringBasicInfoId
;
/**
* 報聘经纪人个人申明条目 FK ag_md_drop_options.id: ag_md_drop_master.scenario_code = "EHiring_Personal_Statements"
*/
private
Long
mdDropOptionId
;
/**
* 个人申明条目 FK ag_md_drop_options.id: ag_md_drop_master.scenario_code = "EHiring_Personal_Statements"
*/
private
String
mdDropOptionName
;
/**
* 申明1:有,0:无
*/
private
Long
status
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerHiringWorkingExperience.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人基本资料表
*/
@Data
public
class
AclPractitionerHiringWorkingExperience
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_practitioner_hiring_basic_info.id
*/
private
Long
hiringBasicInfoId
;
/**
* 工作单位
*/
private
String
workingCompany
;
/**
* 职位
*/
private
String
position
;
/**
* 开始年月
*/
private
Date
workingStart
;
/**
* 结束年月
*/
private
Date
workingEnd
;
/**
* 排序
*/
private
Long
seq
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/meta/MdPractitionerHiringApproveSteps.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
meta
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人報聘审批步骤设置
*/
@Data
public
class
MdPractitionerHiringApproveSteps
{
/**
* serial id
*/
private
Long
id
;
/**
* 审批步骤名称
*/
private
String
stepName
;
/**
* 审批负责人角色
*/
private
String
approveRole
;
/**
* 指定审批负责人
*/
private
String
appointedApprovePractitioners
;
/**
* 审批顺序
*/
private
Integer
stepSeq
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/meta/MdPractitionerHiringContractTerms.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
entity
.
meta
;
import
java.util.Date
;
import
lombok.Data
;
/**
* 報聘经纪人報聘合同条款
*/
@Data
public
class
MdPractitionerHiringContractTerms
{
/**
* serial id
*/
private
Long
id
;
/**
* 合同条款名称
*/
private
String
termName
;
/**
* 合同条款解释
*/
private
String
termNote
;
/**
* 显示顺序
*/
private
Integer
displaySeq
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringApproveRecordsMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerHiringApproveRecords
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerHiringApproveRecordsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerHiringApproveRecords
record
);
int
insertSelective
(
AclPractitionerHiringApproveRecords
record
);
AclPractitionerHiringApproveRecords
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerHiringApproveRecords
record
);
int
updateByPrimaryKey
(
AclPractitionerHiringApproveRecords
record
);
int
updateBatch
(
List
<
AclPractitionerHiringApproveRecords
>
list
);
int
updateBatchSelective
(
List
<
AclPractitionerHiringApproveRecords
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
AclPractitionerHiringApproveRecords
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringBasicInfoMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerHiringBasicInfo
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerHiringBasicInfoMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerHiringBasicInfo
record
);
int
insertSelective
(
AclPractitionerHiringBasicInfo
record
);
AclPractitionerHiringBasicInfo
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerHiringBasicInfo
record
);
int
updateByPrimaryKey
(
AclPractitionerHiringBasicInfo
record
);
int
updateBatch
(
List
<
AclPractitionerHiringBasicInfo
>
list
);
int
updateBatchSelective
(
List
<
AclPractitionerHiringBasicInfo
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
AclPractitionerHiringBasicInfo
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringContractTermsConfirmsMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerHiringContractTermsConfirms
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerHiringContractTermsConfirmsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerHiringContractTermsConfirms
record
);
int
insertSelective
(
AclPractitionerHiringContractTermsConfirms
record
);
AclPractitionerHiringContractTermsConfirms
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerHiringContractTermsConfirms
record
);
int
updateByPrimaryKey
(
AclPractitionerHiringContractTermsConfirms
record
);
int
updateBatch
(
List
<
AclPractitionerHiringContractTermsConfirms
>
list
);
int
updateBatchSelective
(
List
<
AclPractitionerHiringContractTermsConfirms
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
AclPractitionerHiringContractTermsConfirms
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringMembershipMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerHiringMembership
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerHiringMembershipMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerHiringMembership
record
);
int
insertSelective
(
AclPractitionerHiringMembership
record
);
AclPractitionerHiringMembership
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerHiringMembership
record
);
int
updateByPrimaryKey
(
AclPractitionerHiringMembership
record
);
int
updateBatch
(
List
<
AclPractitionerHiringMembership
>
list
);
int
updateBatchSelective
(
List
<
AclPractitionerHiringMembership
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
AclPractitionerHiringMembership
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringPersonalStatementsMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerHiringPersonalStatements
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerHiringPersonalStatementsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerHiringPersonalStatements
record
);
int
insertSelective
(
AclPractitionerHiringPersonalStatements
record
);
AclPractitionerHiringPersonalStatements
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerHiringPersonalStatements
record
);
int
updateByPrimaryKey
(
AclPractitionerHiringPersonalStatements
record
);
int
updateBatch
(
List
<
AclPractitionerHiringPersonalStatements
>
list
);
int
updateBatchSelective
(
List
<
AclPractitionerHiringPersonalStatements
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
AclPractitionerHiringPersonalStatements
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerHiringWorkingExperienceMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerHiringWorkingExperience
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerHiringWorkingExperienceMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerHiringWorkingExperience
record
);
int
insertSelective
(
AclPractitionerHiringWorkingExperience
record
);
AclPractitionerHiringWorkingExperience
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerHiringWorkingExperience
record
);
int
updateByPrimaryKey
(
AclPractitionerHiringWorkingExperience
record
);
int
updateBatch
(
List
<
AclPractitionerHiringWorkingExperience
>
list
);
int
updateBatchSelective
(
List
<
AclPractitionerHiringWorkingExperience
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
AclPractitionerHiringWorkingExperience
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/meta/MdPractitionerHiringApproveStepsMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
meta
;
import
com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
MdPractitionerHiringApproveStepsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
MdPractitionerHiringApproveSteps
record
);
int
insertSelective
(
MdPractitionerHiringApproveSteps
record
);
MdPractitionerHiringApproveSteps
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
MdPractitionerHiringApproveSteps
record
);
int
updateByPrimaryKey
(
MdPractitionerHiringApproveSteps
record
);
int
updateBatch
(
List
<
MdPractitionerHiringApproveSteps
>
list
);
int
updateBatchSelective
(
List
<
MdPractitionerHiringApproveSteps
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
MdPractitionerHiringApproveSteps
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/meta/MdPractitionerHiringContractTermsMapper.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
mapper
.
meta
;
import
com.yd.dal.entity.meta.MdPractitionerHiringContractTerms
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
MdPractitionerHiringContractTermsMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
MdPractitionerHiringContractTerms
record
);
int
insertSelective
(
MdPractitionerHiringContractTerms
record
);
MdPractitionerHiringContractTerms
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
MdPractitionerHiringContractTerms
record
);
int
updateByPrimaryKey
(
MdPractitionerHiringContractTerms
record
);
int
updateBatch
(
List
<
MdPractitionerHiringContractTerms
>
list
);
int
updateBatchSelective
(
List
<
MdPractitionerHiringContractTerms
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
MdPractitionerHiringContractTerms
>
list
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringApproveRecordsDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
;
public
interface
AclPractitionerHiringApproveRecordsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringBasicInfoDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
;
public
interface
AclPractitionerHiringBasicInfoDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringContractTermsConfirmsDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
;
public
interface
AclPractitionerHiringContractTermsConfirmsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringMembershipDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
;
public
interface
AclPractitionerHiringMembershipDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringPersonalStatementsDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
;
public
interface
AclPractitionerHiringPersonalStatementsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerHiringWorkingExperienceDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
;
public
interface
AclPractitionerHiringWorkingExperienceDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringApproveRecordsDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.service.customer.AclPractitionerHiringApproveRecordsDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerHiringApproveRecordsDALService"
)
public
class
AclPractitionerHiringApproveRecordsDALServiceImpl
implements
AclPractitionerHiringApproveRecordsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringBasicInfoDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.service.customer.AclPractitionerHiringBasicInfoDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerHiringBasicInfoDALService"
)
public
class
AclPractitionerHiringBasicInfoDALServiceImpl
implements
AclPractitionerHiringBasicInfoDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringContractTermsConfirmsDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.service.customer.AclPractitionerHiringContractTermsConfirmsDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerHiringContractTermsConfirmsDALService"
)
public
class
AclPractitionerHiringContractTermsConfirmsDALServiceImpl
implements
AclPractitionerHiringContractTermsConfirmsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringMembershipDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.service.customer.AclPractitionerHiringMembershipDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerHiringMembershipDALService"
)
public
class
AclPractitionerHiringMembershipDALServiceImpl
implements
AclPractitionerHiringMembershipDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringPersonalStatementsDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.service.customer.AclPractitionerHiringPersonalStatementsDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerHiringPersonalStatementsDALService"
)
public
class
AclPractitionerHiringPersonalStatementsDALServiceImpl
implements
AclPractitionerHiringPersonalStatementsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerHiringWorkingExperienceDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.service.customer.AclPractitionerHiringWorkingExperienceDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerHiringWorkingExperienceDALService"
)
public
class
AclPractitionerHiringWorkingExperienceDALServiceImpl
implements
AclPractitionerHiringWorkingExperienceDALService
{
}
yd-api/src/main/java/com/yd/dal/service/meta/MdPractitionerHiringApproveStepsDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
meta
;
public
interface
MdPractitionerHiringApproveStepsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/meta/MdPractitionerHiringContractTermsDALService.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
meta
;
public
interface
MdPractitionerHiringContractTermsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdPractitionerHiringApproveStepsDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
meta
.
impl
;
import
com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps
;
import
com.yd.dal.service.meta.MdPractitionerHiringApproveStepsDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"mdPractitionerHiringApproveStepsDALService"
)
public
class
MdPractitionerHiringApproveStepsDALServiceImpl
implements
MdPractitionerHiringApproveStepsDALService
{
}
yd-api/src/main/java/com/yd/dal/service/meta/impl/MdPractitionerHiringContractTermsDALServiceImpl.java
0 → 100644
View file @
e2286beb
package
com
.
yd
.
dal
.
service
.
meta
.
impl
;
import
com.yd.dal.service.meta.MdPractitionerHiringContractTermsDALService
;
import
org.springframework.stereotype.Service
;
@Service
(
"mdPractitionerHiringContractTermsDALService"
)
public
class
MdPractitionerHiringContractTermsDALServiceImpl
implements
MdPractitionerHiringContractTermsDALService
{
}
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringApproveRecordsMapper.xml
0 → 100644
View file @
e2286beb
<?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.AclPractitionerHiringApproveRecordsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerHiringApproveRecords"
>
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_hiring_approve_records-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"hiring_basic_info_id"
jdbcType=
"BIGINT"
property=
"hiringBasicInfoId"
/>
<result
column=
"approve_step_id"
jdbcType=
"VARCHAR"
property=
"approveStepId"
/>
<result
column=
"approve_step_name"
jdbcType=
"VARCHAR"
property=
"approveStepName"
/>
<result
column=
"approving_practitioner_id"
jdbcType=
"BIGINT"
property=
"approvingPractitionerId"
/>
<result
column=
"approving_status"
jdbcType=
"BIGINT"
property=
"approvingStatus"
/>
<result
column=
"reject_note"
jdbcType=
"VARCHAR"
property=
"rejectNote"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, hiring_basic_info_id, approve_step_id, approve_step_name, approving_practitioner_id,
approving_status, reject_note, is_active, created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_hiring_approve_records
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_practitioner_hiring_approve_records
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringApproveRecords"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_approve_records (hiring_basic_info_id, approve_step_id,
approve_step_name, approving_practitioner_id,
approving_status, reject_note, is_active,
created_at, created_by, updated_at,
updated_by)
values (#{hiringBasicInfoId,jdbcType=BIGINT}, #{approveStepId,jdbcType=VARCHAR},
#{approveStepName,jdbcType=VARCHAR}, #{approvingPractitionerId,jdbcType=BIGINT},
#{approvingStatus,jdbcType=BIGINT}, #{rejectNote,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringApproveRecords"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_approve_records
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id,
</if>
<if
test=
"approveStepId != null"
>
approve_step_id,
</if>
<if
test=
"approveStepName != null"
>
approve_step_name,
</if>
<if
test=
"approvingPractitionerId != null"
>
approving_practitioner_id,
</if>
<if
test=
"approvingStatus != null"
>
approving_status,
</if>
<if
test=
"rejectNote != null"
>
reject_note,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
#{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"approveStepId != null"
>
#{approveStepId,jdbcType=VARCHAR},
</if>
<if
test=
"approveStepName != null"
>
#{approveStepName,jdbcType=VARCHAR},
</if>
<if
test=
"approvingPractitionerId != null"
>
#{approvingPractitionerId,jdbcType=BIGINT},
</if>
<if
test=
"approvingStatus != null"
>
#{approvingStatus,jdbcType=BIGINT},
</if>
<if
test=
"rejectNote != null"
>
#{rejectNote,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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringApproveRecords"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_approve_records
<set>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"approveStepId != null"
>
approve_step_id = #{approveStepId,jdbcType=VARCHAR},
</if>
<if
test=
"approveStepName != null"
>
approve_step_name = #{approveStepName,jdbcType=VARCHAR},
</if>
<if
test=
"approvingPractitionerId != null"
>
approving_practitioner_id = #{approvingPractitionerId,jdbcType=BIGINT},
</if>
<if
test=
"approvingStatus != null"
>
approving_status = #{approvingStatus,jdbcType=BIGINT},
</if>
<if
test=
"rejectNote != null"
>
reject_note = #{rejectNote,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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringApproveRecords"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_approve_records
set hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
approve_step_id = #{approveStepId,jdbcType=VARCHAR},
approve_step_name = #{approveStepName,jdbcType=VARCHAR},
approving_practitioner_id = #{approvingPractitionerId,jdbcType=BIGINT},
approving_status = #{approvingStatus,jdbcType=BIGINT},
reject_note = #{rejectNote,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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_approve_records
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"approve_step_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approveStepId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"approve_step_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approveStepName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"approving_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approvingPractitionerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"approving_status = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approvingStatus,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"reject_note = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.rejectNote,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_approve_records
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.hiringBasicInfoId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"approve_step_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.approveStepId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approveStepId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"approve_step_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.approveStepName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approveStepName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"approving_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.approvingPractitionerId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approvingPractitionerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"approving_status = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.approvingStatus != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approvingStatus,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"reject_note = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.rejectNote != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.rejectNote,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_approve_records
(hiring_basic_info_id, approve_step_id, approve_step_name, approving_practitioner_id,
approving_status, reject_note, is_active, created_at, created_by, updated_at, updated_by
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.approveStepId,jdbcType=VARCHAR},
#{item.approveStepName,jdbcType=VARCHAR}, #{item.approvingPractitionerId,jdbcType=BIGINT},
#{item.approvingStatus,jdbcType=BIGINT}, #{item.rejectNote,jdbcType=VARCHAR}, #{item.isActive,jdbcType=INTEGER},
#{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP},
#{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringBasicInfoMapper.xml
0 → 100644
View file @
e2286beb
<?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.AclPractitionerHiringBasicInfoMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerHiringBasicInfo"
>
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_hiring_basic_info-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"practitioner_potential_id"
jdbcType=
"BIGINT"
property=
"practitionerPotentialId"
/>
<result
column=
"invitee_practitioner_id"
jdbcType=
"BIGINT"
property=
"inviteePractitionerId"
/>
<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=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
<result
column=
"practitioner_birthdate"
jdbcType=
"DATE"
property=
"practitionerBirthdate"
/>
<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=
"resident_address"
jdbcType=
"LONGVARCHAR"
property=
"residentAddress"
/>
<result
column=
"wechat_id"
jdbcType=
"VARCHAR"
property=
"wechatId"
/>
<result
column=
"email"
jdbcType=
"VARCHAR"
property=
"email"
/>
<result
column=
"personer_picture_oss_path"
jdbcType=
"VARCHAR"
property=
"personerPictureOssPath"
/>
<result
column=
"id_front_page_oss_path"
jdbcType=
"VARCHAR"
property=
"idFrontPageOssPath"
/>
<result
column=
"id_back_page_oss_path"
jdbcType=
"VARCHAR"
property=
"idBackPageOssPath"
/>
<result
column=
"last_graduate_grade"
jdbcType=
"VARCHAR"
property=
"lastGraduateGrade"
/>
<result
column=
"last_graduate_school"
jdbcType=
"VARCHAR"
property=
"lastGraduateSchool"
/>
<result
column=
"last_graduate_certification_oss_path"
jdbcType=
"VARCHAR"
property=
"lastGraduateCertificationOssPath"
/>
<result
column=
"bank_account_opening"
jdbcType=
"VARCHAR"
property=
"bankAccountOpening"
/>
<result
column=
"bank_account_id"
jdbcType=
"VARCHAR"
property=
"bankAccountId"
/>
<result
column=
"personal_sign_oss_path"
jdbcType=
"VARCHAR"
property=
"personalSignOssPath"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, practitioner_potential_id, invitee_practitioner_id, `name`, mobile_no, id_type_id,
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at,
created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_hiring_basic_info
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_practitioner_hiring_basic_info
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringBasicInfo"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_basic_info (practitioner_potential_id, invitee_practitioner_id,
`name`, mobile_no, id_type_id,
id_type, id_no, gender,
practitioner_birthdate, province_id, province_name,
city_id, city_name, resident_address,
wechat_id, email, personer_picture_oss_path,
id_front_page_oss_path, id_back_page_oss_path,
last_graduate_grade, last_graduate_school,
last_graduate_certification_oss_path, bank_account_opening,
bank_account_id, personal_sign_oss_path, is_active,
created_at, created_by, updated_at,
updated_by)
values (#{practitionerPotentialId,jdbcType=BIGINT}, #{inviteePractitionerId,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{mobileNo,jdbcType=VARCHAR}, #{idTypeId,jdbcType=BIGINT},
#{idType,jdbcType=VARCHAR}, #{idNo,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
#{practitionerBirthdate,jdbcType=DATE}, #{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR},
#{cityId,jdbcType=BIGINT}, #{cityName,jdbcType=VARCHAR}, #{residentAddress,jdbcType=LONGVARCHAR},
#{wechatId,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{personerPictureOssPath,jdbcType=VARCHAR},
#{idFrontPageOssPath,jdbcType=VARCHAR}, #{idBackPageOssPath,jdbcType=VARCHAR},
#{lastGraduateGrade,jdbcType=VARCHAR}, #{lastGraduateSchool,jdbcType=VARCHAR},
#{lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{bankAccountOpening,jdbcType=VARCHAR},
#{bankAccountId,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringBasicInfo"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_basic_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerPotentialId != null"
>
practitioner_potential_id,
</if>
<if
test=
"inviteePractitionerId != null"
>
invitee_practitioner_id,
</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=
"gender != null"
>
gender,
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate,
</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=
"residentAddress != null"
>
resident_address,
</if>
<if
test=
"wechatId != null"
>
wechat_id,
</if>
<if
test=
"email != null"
>
email,
</if>
<if
test=
"personerPictureOssPath != null"
>
personer_picture_oss_path,
</if>
<if
test=
"idFrontPageOssPath != null"
>
id_front_page_oss_path,
</if>
<if
test=
"idBackPageOssPath != null"
>
id_back_page_oss_path,
</if>
<if
test=
"lastGraduateGrade != null"
>
last_graduate_grade,
</if>
<if
test=
"lastGraduateSchool != null"
>
last_graduate_school,
</if>
<if
test=
"lastGraduateCertificationOssPath != null"
>
last_graduate_certification_oss_path,
</if>
<if
test=
"bankAccountOpening != null"
>
bank_account_opening,
</if>
<if
test=
"bankAccountId != null"
>
bank_account_id,
</if>
<if
test=
"personalSignOssPath != null"
>
personal_sign_oss_path,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerPotentialId != null"
>
#{practitionerPotentialId,jdbcType=BIGINT},
</if>
<if
test=
"inviteePractitionerId != null"
>
#{inviteePractitionerId,jdbcType=BIGINT},
</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=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
<if
test=
"practitionerBirthdate != null"
>
#{practitionerBirthdate,jdbcType=DATE},
</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=
"residentAddress != null"
>
#{residentAddress,jdbcType=LONGVARCHAR},
</if>
<if
test=
"wechatId != null"
>
#{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"email != null"
>
#{email,jdbcType=VARCHAR},
</if>
<if
test=
"personerPictureOssPath != null"
>
#{personerPictureOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"idFrontPageOssPath != null"
>
#{idFrontPageOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"idBackPageOssPath != null"
>
#{idBackPageOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"lastGraduateGrade != null"
>
#{lastGraduateGrade,jdbcType=VARCHAR},
</if>
<if
test=
"lastGraduateSchool != null"
>
#{lastGraduateSchool,jdbcType=VARCHAR},
</if>
<if
test=
"lastGraduateCertificationOssPath != null"
>
#{lastGraduateCertificationOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"bankAccountOpening != null"
>
#{bankAccountOpening,jdbcType=VARCHAR},
</if>
<if
test=
"bankAccountId != null"
>
#{bankAccountId,jdbcType=VARCHAR},
</if>
<if
test=
"personalSignOssPath != null"
>
#{personalSignOssPath,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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringBasicInfo"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_basic_info
<set>
<if
test=
"practitionerPotentialId != null"
>
practitioner_potential_id = #{practitionerPotentialId,jdbcType=BIGINT},
</if>
<if
test=
"inviteePractitionerId != null"
>
invitee_practitioner_id = #{inviteePractitionerId,jdbcType=BIGINT},
</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=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
</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=
"residentAddress != null"
>
resident_address = #{residentAddress,jdbcType=LONGVARCHAR},
</if>
<if
test=
"wechatId != null"
>
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"email != null"
>
email = #{email,jdbcType=VARCHAR},
</if>
<if
test=
"personerPictureOssPath != null"
>
personer_picture_oss_path = #{personerPictureOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"idFrontPageOssPath != null"
>
id_front_page_oss_path = #{idFrontPageOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"idBackPageOssPath != null"
>
id_back_page_oss_path = #{idBackPageOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"lastGraduateGrade != null"
>
last_graduate_grade = #{lastGraduateGrade,jdbcType=VARCHAR},
</if>
<if
test=
"lastGraduateSchool != null"
>
last_graduate_school = #{lastGraduateSchool,jdbcType=VARCHAR},
</if>
<if
test=
"lastGraduateCertificationOssPath != null"
>
last_graduate_certification_oss_path = #{lastGraduateCertificationOssPath,jdbcType=VARCHAR},
</if>
<if
test=
"bankAccountOpening != null"
>
bank_account_opening = #{bankAccountOpening,jdbcType=VARCHAR},
</if>
<if
test=
"bankAccountId != null"
>
bank_account_id = #{bankAccountId,jdbcType=VARCHAR},
</if>
<if
test=
"personalSignOssPath != null"
>
personal_sign_oss_path = #{personalSignOssPath,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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringBasicInfo"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_basic_info
set practitioner_potential_id = #{practitionerPotentialId,jdbcType=BIGINT},
invitee_practitioner_id = #{inviteePractitionerId,jdbcType=BIGINT},
`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},
gender = #{gender,jdbcType=INTEGER},
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
province_id = #{provinceId,jdbcType=BIGINT},
province_name = #{provinceName,jdbcType=VARCHAR},
city_id = #{cityId,jdbcType=BIGINT},
city_name = #{cityName,jdbcType=VARCHAR},
resident_address = #{residentAddress,jdbcType=LONGVARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
personer_picture_oss_path = #{personerPictureOssPath,jdbcType=VARCHAR},
id_front_page_oss_path = #{idFrontPageOssPath,jdbcType=VARCHAR},
id_back_page_oss_path = #{idBackPageOssPath,jdbcType=VARCHAR},
last_graduate_grade = #{lastGraduateGrade,jdbcType=VARCHAR},
last_graduate_school = #{lastGraduateSchool,jdbcType=VARCHAR},
last_graduate_certification_oss_path = #{lastGraduateCertificationOssPath,jdbcType=VARCHAR},
bank_account_opening = #{bankAccountOpening,jdbcType=VARCHAR},
bank_account_id = #{bankAccountId,jdbcType=VARCHAR},
personal_sign_oss_path = #{personalSignOssPath,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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_basic_info
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"practitioner_potential_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerPotentialId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"invitee_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.inviteePractitionerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"`name` = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"mobile_no = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mobileNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"id_type_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idTypeId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"id_type = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idType,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"id_no = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idNo,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"gender = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.gender,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"practitioner_birthdate = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerBirthdate,jdbcType=DATE}
</foreach>
</trim>
<trim
prefix=
"province_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"province_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"city_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.cityId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"city_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.cityName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"resident_address = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.residentAddress,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim
prefix=
"wechat_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.wechatId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"email = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.email,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"personer_picture_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.personerPictureOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"id_front_page_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idFrontPageOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"id_back_page_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idBackPageOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"last_graduate_grade = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.lastGraduateGrade,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"last_graduate_school = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.lastGraduateSchool,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"last_graduate_certification_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"bank_account_opening = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.bankAccountOpening,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"bank_account_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.bankAccountId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"personal_sign_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.personalSignOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_basic_info
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"practitioner_potential_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.practitionerPotentialId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerPotentialId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"invitee_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.inviteePractitionerId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.inviteePractitionerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"`name` = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.name != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.name,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"mobile_no = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mobileNo != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mobileNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"id_type_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.idTypeId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idTypeId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"id_type = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.idType != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idType,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"id_no = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.idNo != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idNo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"gender = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.gender != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.gender,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"practitioner_birthdate = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.practitionerBirthdate != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.practitionerBirthdate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim
prefix=
"province_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.provinceId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"province_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.provinceName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.provinceName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"city_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.cityId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.cityId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"city_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.cityName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.cityName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"resident_address = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.residentAddress != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.residentAddress,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"wechat_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.wechatId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.wechatId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"email = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.email != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.email,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"personer_picture_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.personerPictureOssPath != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.personerPictureOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"id_front_page_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.idFrontPageOssPath != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idFrontPageOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"id_back_page_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.idBackPageOssPath != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.idBackPageOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"last_graduate_grade = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.lastGraduateGrade != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.lastGraduateGrade,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"last_graduate_school = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.lastGraduateSchool != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.lastGraduateSchool,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"last_graduate_certification_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.lastGraduateCertificationOssPath != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"bank_account_opening = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.bankAccountOpening != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.bankAccountOpening,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"bank_account_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.bankAccountId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.bankAccountId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"personal_sign_oss_path = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.personalSignOssPath != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.personalSignOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_basic_info
(practitioner_potential_id, invitee_practitioner_id, `name`, mobile_no, id_type_id,
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at,
created_by, updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.practitionerPotentialId,jdbcType=BIGINT}, #{item.inviteePractitionerId,jdbcType=BIGINT},
#{item.name,jdbcType=VARCHAR}, #{item.mobileNo,jdbcType=VARCHAR}, #{item.idTypeId,jdbcType=BIGINT},
#{item.idType,jdbcType=VARCHAR}, #{item.idNo,jdbcType=VARCHAR}, #{item.gender,jdbcType=INTEGER},
#{item.practitionerBirthdate,jdbcType=DATE}, #{item.provinceId,jdbcType=BIGINT},
#{item.provinceName,jdbcType=VARCHAR}, #{item.cityId,jdbcType=BIGINT}, #{item.cityName,jdbcType=VARCHAR},
#{item.residentAddress,jdbcType=LONGVARCHAR}, #{item.wechatId,jdbcType=VARCHAR},
#{item.email,jdbcType=VARCHAR}, #{item.personerPictureOssPath,jdbcType=VARCHAR},
#{item.idFrontPageOssPath,jdbcType=VARCHAR}, #{item.idBackPageOssPath,jdbcType=VARCHAR},
#{item.lastGraduateGrade,jdbcType=VARCHAR}, #{item.lastGraduateSchool,jdbcType=VARCHAR},
#{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{item.bankAccountOpening,jdbcType=VARCHAR},
#{item.bankAccountId,jdbcType=VARCHAR}, #{item.personalSignOssPath,jdbcType=VARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringContractTermsConfirmsMapper.xml
0 → 100644
View file @
e2286beb
<?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.AclPractitionerHiringContractTermsConfirmsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerHiringContractTermsConfirms"
>
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_hiring_contract_terms_confirms-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"hiring_basic_info_id"
jdbcType=
"BIGINT"
property=
"hiringBasicInfoId"
/>
<result
column=
"contract_term_id"
jdbcType=
"BIGINT"
property=
"contractTermId"
/>
<result
column=
"confirm_status"
jdbcType=
"BIGINT"
property=
"confirmStatus"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, hiring_basic_info_id, contract_term_id, confirm_status, is_active, created_at,
created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_hiring_contract_terms_confirms
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_practitioner_hiring_contract_terms_confirms
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringContractTermsConfirms"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_contract_terms_confirms (hiring_basic_info_id, contract_term_id,
confirm_status, is_active, created_at,
created_by, updated_at, updated_by
)
values (#{hiringBasicInfoId,jdbcType=BIGINT}, #{contractTermId,jdbcType=BIGINT},
#{confirmStatus,jdbcType=BIGINT}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringContractTermsConfirms"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_contract_terms_confirms
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id,
</if>
<if
test=
"contractTermId != null"
>
contract_term_id,
</if>
<if
test=
"confirmStatus != null"
>
confirm_status,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
#{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"contractTermId != null"
>
#{contractTermId,jdbcType=BIGINT},
</if>
<if
test=
"confirmStatus != null"
>
#{confirmStatus,jdbcType=BIGINT},
</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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringContractTermsConfirms"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_contract_terms_confirms
<set>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"contractTermId != null"
>
contract_term_id = #{contractTermId,jdbcType=BIGINT},
</if>
<if
test=
"confirmStatus != null"
>
confirm_status = #{confirmStatus,jdbcType=BIGINT},
</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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringContractTermsConfirms"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_contract_terms_confirms
set hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
contract_term_id = #{contractTermId,jdbcType=BIGINT},
confirm_status = #{confirmStatus,jdbcType=BIGINT},
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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_contract_terms_confirms
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"contract_term_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.contractTermId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"confirm_status = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.confirmStatus,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_contract_terms_confirms
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.hiringBasicInfoId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"contract_term_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.contractTermId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.contractTermId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"confirm_status = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.confirmStatus != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.confirmStatus,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_contract_terms_confirms
(hiring_basic_info_id, contract_term_id, confirm_status, is_active, created_at, created_by,
updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.contractTermId,jdbcType=BIGINT},
#{item.confirmStatus,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP},
#{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringMembershipMapper.xml
0 → 100644
View file @
e2286beb
<?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.AclPractitionerHiringMembershipMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerHiringMembership"
>
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_hiring_membership-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"hiring_basic_info_id"
jdbcType=
"BIGINT"
property=
"hiringBasicInfoId"
/>
<result
column=
"md_drop_option_id"
jdbcType=
"BIGINT"
property=
"mdDropOptionId"
/>
<result
column=
"md_drop_option_name"
jdbcType=
"VARCHAR"
property=
"mdDropOptionName"
/>
<result
column=
"mentor_practitioner_id"
jdbcType=
"VARCHAR"
property=
"mentorPractitionerId"
/>
<result
column=
"mentor"
jdbcType=
"VARCHAR"
property=
"mentor"
/>
<result
column=
"introducer_practitioner_id"
jdbcType=
"VARCHAR"
property=
"introducerPractitionerId"
/>
<result
column=
"introducer"
jdbcType=
"VARCHAR"
property=
"introducer"
/>
<result
column=
"subsystem_id"
jdbcType=
"VARCHAR"
property=
"subsystemId"
/>
<result
column=
"subsystem"
jdbcType=
"VARCHAR"
property=
"subsystem"
/>
<result
column=
"subsystem_owner_id"
jdbcType=
"VARCHAR"
property=
"subsystemOwnerId"
/>
<result
column=
"subsystem_owner"
jdbcType=
"VARCHAR"
property=
"subsystemOwner"
/>
<result
column=
"branch_practitioner_id"
jdbcType=
"VARCHAR"
property=
"branchPractitionerId"
/>
<result
column=
"branch"
jdbcType=
"VARCHAR"
property=
"branch"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, hiring_basic_info_id, md_drop_option_id, md_drop_option_name, mentor_practitioner_id,
mentor, introducer_practitioner_id, introducer, subsystem_id, subsystem, subsystem_owner_id,
subsystem_owner, branch_practitioner_id, branch, is_active, created_at, created_by,
updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_hiring_membership
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_practitioner_hiring_membership
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringMembership"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_membership (hiring_basic_info_id, md_drop_option_id,
md_drop_option_name, mentor_practitioner_id,
mentor, introducer_practitioner_id, introducer,
subsystem_id, subsystem, subsystem_owner_id,
subsystem_owner, branch_practitioner_id, branch,
is_active, created_at, created_by,
updated_at, updated_by)
values (#{hiringBasicInfoId,jdbcType=BIGINT}, #{mdDropOptionId,jdbcType=BIGINT},
#{mdDropOptionName,jdbcType=VARCHAR}, #{mentorPractitionerId,jdbcType=VARCHAR},
#{mentor,jdbcType=VARCHAR}, #{introducerPractitionerId,jdbcType=VARCHAR}, #{introducer,jdbcType=VARCHAR},
#{subsystemId,jdbcType=VARCHAR}, #{subsystem,jdbcType=VARCHAR}, #{subsystemOwnerId,jdbcType=VARCHAR},
#{subsystemOwner,jdbcType=VARCHAR}, #{branchPractitionerId,jdbcType=VARCHAR}, #{branch,jdbcType=VARCHAR},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringMembership"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_membership
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id,
</if>
<if
test=
"mdDropOptionId != null"
>
md_drop_option_id,
</if>
<if
test=
"mdDropOptionName != null"
>
md_drop_option_name,
</if>
<if
test=
"mentorPractitionerId != null"
>
mentor_practitioner_id,
</if>
<if
test=
"mentor != null"
>
mentor,
</if>
<if
test=
"introducerPractitionerId != null"
>
introducer_practitioner_id,
</if>
<if
test=
"introducer != null"
>
introducer,
</if>
<if
test=
"subsystemId != null"
>
subsystem_id,
</if>
<if
test=
"subsystem != null"
>
subsystem,
</if>
<if
test=
"subsystemOwnerId != null"
>
subsystem_owner_id,
</if>
<if
test=
"subsystemOwner != null"
>
subsystem_owner,
</if>
<if
test=
"branchPractitionerId != null"
>
branch_practitioner_id,
</if>
<if
test=
"branch != null"
>
branch,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
#{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionId != null"
>
#{mdDropOptionId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionName != null"
>
#{mdDropOptionName,jdbcType=VARCHAR},
</if>
<if
test=
"mentorPractitionerId != null"
>
#{mentorPractitionerId,jdbcType=VARCHAR},
</if>
<if
test=
"mentor != null"
>
#{mentor,jdbcType=VARCHAR},
</if>
<if
test=
"introducerPractitionerId != null"
>
#{introducerPractitionerId,jdbcType=VARCHAR},
</if>
<if
test=
"introducer != null"
>
#{introducer,jdbcType=VARCHAR},
</if>
<if
test=
"subsystemId != null"
>
#{subsystemId,jdbcType=VARCHAR},
</if>
<if
test=
"subsystem != null"
>
#{subsystem,jdbcType=VARCHAR},
</if>
<if
test=
"subsystemOwnerId != null"
>
#{subsystemOwnerId,jdbcType=VARCHAR},
</if>
<if
test=
"subsystemOwner != null"
>
#{subsystemOwner,jdbcType=VARCHAR},
</if>
<if
test=
"branchPractitionerId != null"
>
#{branchPractitionerId,jdbcType=VARCHAR},
</if>
<if
test=
"branch != null"
>
#{branch,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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringMembership"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_membership
<set>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionId != null"
>
md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionName != null"
>
md_drop_option_name = #{mdDropOptionName,jdbcType=VARCHAR},
</if>
<if
test=
"mentorPractitionerId != null"
>
mentor_practitioner_id = #{mentorPractitionerId,jdbcType=VARCHAR},
</if>
<if
test=
"mentor != null"
>
mentor = #{mentor,jdbcType=VARCHAR},
</if>
<if
test=
"introducerPractitionerId != null"
>
introducer_practitioner_id = #{introducerPractitionerId,jdbcType=VARCHAR},
</if>
<if
test=
"introducer != null"
>
introducer = #{introducer,jdbcType=VARCHAR},
</if>
<if
test=
"subsystemId != null"
>
subsystem_id = #{subsystemId,jdbcType=VARCHAR},
</if>
<if
test=
"subsystem != null"
>
subsystem = #{subsystem,jdbcType=VARCHAR},
</if>
<if
test=
"subsystemOwnerId != null"
>
subsystem_owner_id = #{subsystemOwnerId,jdbcType=VARCHAR},
</if>
<if
test=
"subsystemOwner != null"
>
subsystem_owner = #{subsystemOwner,jdbcType=VARCHAR},
</if>
<if
test=
"branchPractitionerId != null"
>
branch_practitioner_id = #{branchPractitionerId,jdbcType=VARCHAR},
</if>
<if
test=
"branch != null"
>
branch = #{branch,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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringMembership"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_membership
set hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT},
md_drop_option_name = #{mdDropOptionName,jdbcType=VARCHAR},
mentor_practitioner_id = #{mentorPractitionerId,jdbcType=VARCHAR},
mentor = #{mentor,jdbcType=VARCHAR},
introducer_practitioner_id = #{introducerPractitionerId,jdbcType=VARCHAR},
introducer = #{introducer,jdbcType=VARCHAR},
subsystem_id = #{subsystemId,jdbcType=VARCHAR},
subsystem = #{subsystem,jdbcType=VARCHAR},
subsystem_owner_id = #{subsystemOwnerId,jdbcType=VARCHAR},
subsystem_owner = #{subsystemOwner,jdbcType=VARCHAR},
branch_practitioner_id = #{branchPractitionerId,jdbcType=VARCHAR},
branch = #{branch,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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_membership
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"md_drop_option_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"md_drop_option_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"mentor_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mentorPractitionerId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"mentor = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mentor,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"introducer_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.introducerPractitionerId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"introducer = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.introducer,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"subsystem_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystemId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"subsystem = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystem,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"subsystem_owner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystemOwnerId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"subsystem_owner = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystemOwner,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"branch_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.branchPractitionerId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"branch = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.branch,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_membership
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.hiringBasicInfoId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"md_drop_option_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mdDropOptionId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"md_drop_option_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mdDropOptionName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"mentor_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mentorPractitionerId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mentorPractitionerId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"mentor = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mentor != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mentor,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"introducer_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.introducerPractitionerId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.introducerPractitionerId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"introducer = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.introducer != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.introducer,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"subsystem_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.subsystemId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystemId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"subsystem = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.subsystem != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystem,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"subsystem_owner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.subsystemOwnerId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystemOwnerId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"subsystem_owner = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.subsystemOwner != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.subsystemOwner,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"branch_practitioner_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.branchPractitionerId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.branchPractitionerId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"branch = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.branch != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.branch,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_membership
(hiring_basic_info_id, md_drop_option_id, md_drop_option_name, mentor_practitioner_id,
mentor, introducer_practitioner_id, introducer, subsystem_id, subsystem, subsystem_owner_id,
subsystem_owner, branch_practitioner_id, branch, is_active, created_at, created_by,
updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.mdDropOptionId,jdbcType=BIGINT},
#{item.mdDropOptionName,jdbcType=VARCHAR}, #{item.mentorPractitionerId,jdbcType=VARCHAR},
#{item.mentor,jdbcType=VARCHAR}, #{item.introducerPractitionerId,jdbcType=VARCHAR},
#{item.introducer,jdbcType=VARCHAR}, #{item.subsystemId,jdbcType=VARCHAR}, #{item.subsystem,jdbcType=VARCHAR},
#{item.subsystemOwnerId,jdbcType=VARCHAR}, #{item.subsystemOwner,jdbcType=VARCHAR},
#{item.branchPractitionerId,jdbcType=VARCHAR}, #{item.branch,jdbcType=VARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringPersonalStatementsMapper.xml
0 → 100644
View file @
e2286beb
<?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.AclPractitionerHiringPersonalStatementsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerHiringPersonalStatements"
>
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_hiring_personal_statements-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"hiring_basic_info_id"
jdbcType=
"BIGINT"
property=
"hiringBasicInfoId"
/>
<result
column=
"md_drop_option_id"
jdbcType=
"BIGINT"
property=
"mdDropOptionId"
/>
<result
column=
"md_drop_option_name"
jdbcType=
"VARCHAR"
property=
"mdDropOptionName"
/>
<result
column=
"status"
jdbcType=
"BIGINT"
property=
"status"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, hiring_basic_info_id, md_drop_option_id, md_drop_option_name, `status`, is_active,
created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_hiring_personal_statements
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_practitioner_hiring_personal_statements
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringPersonalStatements"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_personal_statements (hiring_basic_info_id, md_drop_option_id,
md_drop_option_name, `status`, is_active,
created_at, created_by, updated_at,
updated_by)
values (#{hiringBasicInfoId,jdbcType=BIGINT}, #{mdDropOptionId,jdbcType=BIGINT},
#{mdDropOptionName,jdbcType=VARCHAR}, #{status,jdbcType=BIGINT}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringPersonalStatements"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_personal_statements
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id,
</if>
<if
test=
"mdDropOptionId != null"
>
md_drop_option_id,
</if>
<if
test=
"mdDropOptionName != null"
>
md_drop_option_name,
</if>
<if
test=
"status != null"
>
`status`,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
#{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionId != null"
>
#{mdDropOptionId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionName != null"
>
#{mdDropOptionName,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=BIGINT},
</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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringPersonalStatements"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_personal_statements
<set>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionId != null"
>
md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT},
</if>
<if
test=
"mdDropOptionName != null"
>
md_drop_option_name = #{mdDropOptionName,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
`status` = #{status,jdbcType=BIGINT},
</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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringPersonalStatements"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_personal_statements
set hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT},
md_drop_option_name = #{mdDropOptionName,jdbcType=VARCHAR},
`status` = #{status,jdbcType=BIGINT},
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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_personal_statements
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"md_drop_option_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"md_drop_option_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"`status` = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_personal_statements
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.hiringBasicInfoId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"md_drop_option_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mdDropOptionId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"md_drop_option_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mdDropOptionName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"`status` = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.status != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.status,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_personal_statements
(hiring_basic_info_id, md_drop_option_id, md_drop_option_name, `status`, is_active,
created_at, created_by, updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.mdDropOptionId,jdbcType=BIGINT},
#{item.mdDropOptionName,jdbcType=VARCHAR}, #{item.status,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER},
#{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP},
#{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringWorkingExperienceMapper.xml
0 → 100644
View file @
e2286beb
<?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.AclPractitionerHiringWorkingExperienceMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerHiringWorkingExperience"
>
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_hiring_working_experience-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"hiring_basic_info_id"
jdbcType=
"BIGINT"
property=
"hiringBasicInfoId"
/>
<result
column=
"working_company"
jdbcType=
"VARCHAR"
property=
"workingCompany"
/>
<result
column=
"position"
jdbcType=
"VARCHAR"
property=
"position"
/>
<result
column=
"working_start"
jdbcType=
"TIMESTAMP"
property=
"workingStart"
/>
<result
column=
"working_end"
jdbcType=
"TIMESTAMP"
property=
"workingEnd"
/>
<result
column=
"seq"
jdbcType=
"BIGINT"
property=
"seq"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, hiring_basic_info_id, working_company, `position`, working_start, working_end,
seq, is_active, created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_hiring_working_experience
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_practitioner_hiring_working_experience
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringWorkingExperience"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_working_experience (hiring_basic_info_id, working_company,
`position`, working_start, working_end,
seq, is_active, created_at,
created_by, updated_at, updated_by
)
values (#{hiringBasicInfoId,jdbcType=BIGINT}, #{workingCompany,jdbcType=VARCHAR},
#{position,jdbcType=VARCHAR}, #{workingStart,jdbcType=TIMESTAMP}, #{workingEnd,jdbcType=TIMESTAMP},
#{seq,jdbcType=BIGINT}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringWorkingExperience"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_working_experience
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id,
</if>
<if
test=
"workingCompany != null"
>
working_company,
</if>
<if
test=
"position != null"
>
`position`,
</if>
<if
test=
"workingStart != null"
>
working_start,
</if>
<if
test=
"workingEnd != null"
>
working_end,
</if>
<if
test=
"seq != null"
>
seq,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"hiringBasicInfoId != null"
>
#{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"workingCompany != null"
>
#{workingCompany,jdbcType=VARCHAR},
</if>
<if
test=
"position != null"
>
#{position,jdbcType=VARCHAR},
</if>
<if
test=
"workingStart != null"
>
#{workingStart,jdbcType=TIMESTAMP},
</if>
<if
test=
"workingEnd != null"
>
#{workingEnd,jdbcType=TIMESTAMP},
</if>
<if
test=
"seq != null"
>
#{seq,jdbcType=BIGINT},
</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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringWorkingExperience"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_working_experience
<set>
<if
test=
"hiringBasicInfoId != null"
>
hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
</if>
<if
test=
"workingCompany != null"
>
working_company = #{workingCompany,jdbcType=VARCHAR},
</if>
<if
test=
"position != null"
>
`position` = #{position,jdbcType=VARCHAR},
</if>
<if
test=
"workingStart != null"
>
working_start = #{workingStart,jdbcType=TIMESTAMP},
</if>
<if
test=
"workingEnd != null"
>
working_end = #{workingEnd,jdbcType=TIMESTAMP},
</if>
<if
test=
"seq != null"
>
seq = #{seq,jdbcType=BIGINT},
</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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerHiringWorkingExperience"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_working_experience
set hiring_basic_info_id = #{hiringBasicInfoId,jdbcType=BIGINT},
working_company = #{workingCompany,jdbcType=VARCHAR},
`position` = #{position,jdbcType=VARCHAR},
working_start = #{workingStart,jdbcType=TIMESTAMP},
working_end = #{workingEnd,jdbcType=TIMESTAMP},
seq = #{seq,jdbcType=BIGINT},
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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_working_experience
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"working_company = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.workingCompany,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"`position` = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.position,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"working_start = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.workingStart,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"working_end = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.workingEnd,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"seq = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.seq,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_acl_practitioner_hiring_working_experience
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"hiring_basic_info_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.hiringBasicInfoId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.hiringBasicInfoId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"working_company = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.workingCompany != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.workingCompany,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"`position` = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.position != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.position,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"working_start = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.workingStart != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.workingStart,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"working_end = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.workingEnd != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.workingEnd,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"seq = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.seq != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.seq,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_working_experience
(hiring_basic_info_id, working_company, `position`, working_start, working_end, seq,
is_active, created_at, created_by, updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.workingCompany,jdbcType=VARCHAR},
#{item.position,jdbcType=VARCHAR}, #{item.workingStart,jdbcType=TIMESTAMP}, #{item.workingEnd,jdbcType=TIMESTAMP},
#{item.seq,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP},
#{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/meta/MdPractitionerHiringApproveStepsMapper.xml
0 → 100644
View file @
e2286beb
<?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.meta.MdPractitionerHiringApproveStepsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps"
>
<!--@mbg.generated-->
<!--@Table ag_md_practitioner_hiring_approve_steps-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"step_name"
jdbcType=
"VARCHAR"
property=
"stepName"
/>
<result
column=
"approve_role"
jdbcType=
"VARCHAR"
property=
"approveRole"
/>
<result
column=
"appointed_approve_practitioners"
jdbcType=
"VARCHAR"
property=
"appointedApprovePractitioners"
/>
<result
column=
"step_seq"
jdbcType=
"INTEGER"
property=
"stepSeq"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, step_name, approve_role, appointed_approve_practitioners, step_seq, is_active,
created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_md_practitioner_hiring_approve_steps
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_md_practitioner_hiring_approve_steps
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_practitioner_hiring_approve_steps (step_name, approve_role, appointed_approve_practitioners,
step_seq, is_active, created_at,
created_by, updated_at, updated_by
)
values (#{stepName,jdbcType=VARCHAR}, #{approveRole,jdbcType=VARCHAR}, #{appointedApprovePractitioners,jdbcType=VARCHAR},
#{stepSeq,jdbcType=INTEGER}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_practitioner_hiring_approve_steps
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"stepName != null"
>
step_name,
</if>
<if
test=
"approveRole != null"
>
approve_role,
</if>
<if
test=
"appointedApprovePractitioners != null"
>
appointed_approve_practitioners,
</if>
<if
test=
"stepSeq != null"
>
step_seq,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"stepName != null"
>
#{stepName,jdbcType=VARCHAR},
</if>
<if
test=
"approveRole != null"
>
#{approveRole,jdbcType=VARCHAR},
</if>
<if
test=
"appointedApprovePractitioners != null"
>
#{appointedApprovePractitioners,jdbcType=VARCHAR},
</if>
<if
test=
"stepSeq != null"
>
#{stepSeq,jdbcType=INTEGER},
</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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_approve_steps
<set>
<if
test=
"stepName != null"
>
step_name = #{stepName,jdbcType=VARCHAR},
</if>
<if
test=
"approveRole != null"
>
approve_role = #{approveRole,jdbcType=VARCHAR},
</if>
<if
test=
"appointedApprovePractitioners != null"
>
appointed_approve_practitioners = #{appointedApprovePractitioners,jdbcType=VARCHAR},
</if>
<if
test=
"stepSeq != null"
>
step_seq = #{stepSeq,jdbcType=INTEGER},
</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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_approve_steps
set step_name = #{stepName,jdbcType=VARCHAR},
approve_role = #{approveRole,jdbcType=VARCHAR},
appointed_approve_practitioners = #{appointedApprovePractitioners,jdbcType=VARCHAR},
step_seq = #{stepSeq,jdbcType=INTEGER},
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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_approve_steps
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"step_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.stepName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"approve_role = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approveRole,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"appointed_approve_practitioners = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.appointedApprovePractitioners,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"step_seq = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.stepSeq,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_approve_steps
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"step_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.stepName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.stepName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"approve_role = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.approveRole != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.approveRole,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"appointed_approve_practitioners = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.appointedApprovePractitioners != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.appointedApprovePractitioners,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"step_seq = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.stepSeq != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.stepSeq,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_practitioner_hiring_approve_steps
(step_name, approve_role, appointed_approve_practitioners, step_seq, is_active, created_at,
created_by, updated_at, updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.stepName,jdbcType=VARCHAR}, #{item.approveRole,jdbcType=VARCHAR}, #{item.appointedApprovePractitioners,jdbcType=VARCHAR},
#{item.stepSeq,jdbcType=INTEGER}, #{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP},
#{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/meta/MdPractitionerHiringContractTermsMapper.xml
0 → 100644
View file @
e2286beb
<?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.meta.MdPractitionerHiringContractTermsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.meta.MdPractitionerHiringContractTerms"
>
<!--@mbg.generated-->
<!--@Table ag_md_practitioner_hiring_contract_terms-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"term_name"
jdbcType=
"VARCHAR"
property=
"termName"
/>
<result
column=
"term_note"
jdbcType=
"LONGVARCHAR"
property=
"termNote"
/>
<result
column=
"display_seq"
jdbcType=
"INTEGER"
property=
"displaySeq"
/>
<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"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, term_name, term_note, display_seq, is_active, created_at, created_by, updated_at,
updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_md_practitioner_hiring_contract_terms
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_md_practitioner_hiring_contract_terms
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringContractTerms"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_practitioner_hiring_contract_terms (term_name, term_note, display_seq,
is_active, created_at, created_by,
updated_at, updated_by)
values (#{termName,jdbcType=VARCHAR}, #{termNote,jdbcType=LONGVARCHAR}, #{displaySeq,jdbcType=INTEGER},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringContractTerms"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_practitioner_hiring_contract_terms
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"termName != null"
>
term_name,
</if>
<if
test=
"termNote != null"
>
term_note,
</if>
<if
test=
"displaySeq != null"
>
display_seq,
</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>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"termName != null"
>
#{termName,jdbcType=VARCHAR},
</if>
<if
test=
"termNote != null"
>
#{termNote,jdbcType=LONGVARCHAR},
</if>
<if
test=
"displaySeq != null"
>
#{displaySeq,jdbcType=INTEGER},
</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>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringContractTerms"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_contract_terms
<set>
<if
test=
"termName != null"
>
term_name = #{termName,jdbcType=VARCHAR},
</if>
<if
test=
"termNote != null"
>
term_note = #{termNote,jdbcType=LONGVARCHAR},
</if>
<if
test=
"displaySeq != null"
>
display_seq = #{displaySeq,jdbcType=INTEGER},
</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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.meta.MdPractitionerHiringContractTerms"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_contract_terms
set term_name = #{termName,jdbcType=VARCHAR},
term_note = #{termNote,jdbcType=LONGVARCHAR},
display_seq = #{displaySeq,jdbcType=INTEGER},
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}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateBatch"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_contract_terms
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"term_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.termName,jdbcType=VARCHAR}
</foreach>
</trim>
<trim
prefix=
"term_note = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.termNote,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim
prefix=
"display_seq = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.displaySeq,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update
id=
"updateBatchSelective"
parameterType=
"java.util.List"
>
<!--@mbg.generated-->
update ag_md_practitioner_hiring_contract_terms
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"term_name = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.termName != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.termName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"term_note = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.termNote != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.termNote,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim
prefix=
"display_seq = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.displaySeq != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.displaySeq,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"is_active = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.isActive != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim
prefix=
"created_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"created_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.createdBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_at = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedAt != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim
prefix=
"updated_by = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.updatedBy != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach
close=
")"
collection=
"list"
item=
"item"
open=
"("
separator=
", "
>
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert
id=
"batchInsert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"map"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_md_practitioner_hiring_contract_terms
(term_name, term_note, display_seq, is_active, created_at, created_by, updated_at,
updated_by)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.termName,jdbcType=VARCHAR}, #{item.termNote,jdbcType=LONGVARCHAR}, #{item.displaySeq,jdbcType=INTEGER},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
</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