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
d485e78b
Commit
d485e78b
authored
May 06, 2020
by
Water Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize
parent
9ca819d6
Hide whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
3484 additions
and
14 deletions
+3484
-14
yd-api/src/main/java/com/yd/api/customer/service/CustomerService.java
+4
-0
yd-api/src/main/java/com/yd/api/customer/service/CustomerServiceImpl.java
+81
-5
yd-api/src/main/java/com/yd/api/customer/vo/register/RegisterRequestVO.java
+40
-0
yd-api/src/main/java/com/yd/api/customer/vo/register/RegisterResponseVO.java
+24
-0
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
+63
-6
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerService.java
+28
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+90
-3
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/AddRecruitTrackRequestVO.java
+40
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/AddRecruitTrackResponseVO.java
+33
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/PractitionerPotentialInfo.java
+211
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitListRequestVO.java
+22
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitListResponseVO.java
+37
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitRequestVO.java
+139
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitResponseVO.java
+33
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitTrackQueryRequestVO.java
+22
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitTrackQueryResponseVO.java
+67
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomer.java
+287
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitioner.java
+207
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerPotential.java
+121
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerPotentialAssignedTrack.java
+69
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerMapper.java
+22
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerMapper.java
+18
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerPotentialAssignedTrackMapper.java
+18
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerPotentialMapper.java
+23
-0
yd-api/src/main/java/com/yd/dal/mapper/practitioner/AclPractitionerMapper.java
+5
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerDALService.java
+24
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerDALService.java
+15
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerPotentialDALService.java
+16
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerDALServiceImpl.java
+25
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerDALServiceImpl.java
+16
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerPotentialDALServiceImpl.java
+18
-0
yd-api/src/main/resources/i18n/messages_zh_CN.properties
+6
-0
yd-api/src/main/resources/mapper/customer/AclCustomerMapper.xml
+736
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
+491
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerPotentialAssignedTrackMapper.xml
+150
-0
yd-api/src/main/resources/mapper/customer/AclPractitionerPotentialMapper.xml
+275
-0
yd-api/src/main/resources/mapper/practitioner/AclPractitionerMapper.xml
+8
-0
No files found.
yd-api/src/main/java/com/yd/api/customer/service/CustomerService.java
View file @
d485e78b
...
@@ -7,6 +7,8 @@ import com.yd.api.customer.vo.CustomerFortuneResponseVO;
...
@@ -7,6 +7,8 @@ import com.yd.api.customer.vo.CustomerFortuneResponseVO;
import
com.yd.api.customer.vo.CustomerQueryRequestVO
;
import
com.yd.api.customer.vo.CustomerQueryRequestVO
;
import
com.yd.api.customer.vo.CustomerQueryResponseVO
;
import
com.yd.api.customer.vo.CustomerQueryResponseVO
;
import
com.yd.api.customer.vo.CustomerVO
;
import
com.yd.api.customer.vo.CustomerVO
;
import
com.yd.api.customer.vo.register.RegisterRequestVO
;
import
com.yd.api.customer.vo.register.RegisterResponseVO
;
public
interface
CustomerService
{
public
interface
CustomerService
{
...
@@ -15,4 +17,6 @@ public interface CustomerService {
...
@@ -15,4 +17,6 @@ public interface CustomerService {
CustomerQueryResponseVO
findByPage
(
CustomerQueryRequestVO
customerQueryRequestVO
);
CustomerQueryResponseVO
findByPage
(
CustomerQueryRequestVO
customerQueryRequestVO
);
CustomerFortuneResponseVO
selectByCustomerId
(
CustomerFortuneRequestVO
customer
);
CustomerFortuneResponseVO
selectByCustomerId
(
CustomerFortuneRequestVO
customer
);
RegisterResponseVO
register
(
RegisterRequestVO
register
);
}
}
yd-api/src/main/java/com/yd/api/customer/service/CustomerServiceImpl.java
View file @
d485e78b
package
com
.
yd
.
api
.
customer
.
service
;
package
com
.
yd
.
api
.
customer
.
service
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
com.google.common.base.Strings
;
import
com.yd.api.customer.vo.register.RegisterRequestVO
;
import
com.yd.api.customer.vo.register.RegisterResponseVO
;
import
com.yd.api.result.CommonResult
;
import
com.yd.dal.entity.customer.AclCustomer
;
import
com.yd.dal.service.customer.AclCustomerDALService
;
import
com.yd.dal.service.customer.CustomerDALService
;
import
com.yd.dal.service.customer.CustomerDALService
;
import
com.yd.util.EncryptUtil
;
import
com.yd.util.config.ZHBErrorConfig
;
import
com.yd.util.deshandler.DESTypeHandler
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -16,7 +27,6 @@ import com.yd.api.customer.vo.CustomerQueryResponseVO;
...
@@ -16,7 +27,6 @@ import com.yd.api.customer.vo.CustomerQueryResponseVO;
import
com.yd.api.customer.vo.CustomerVO
;
import
com.yd.api.customer.vo.CustomerVO
;
import
com.yd.dal.entity.customer.Customer
;
import
com.yd.dal.entity.customer.Customer
;
import
com.yd.dal.entity.customer.CustomerFortune
;
import
com.yd.dal.entity.customer.CustomerFortune
;
import
com.yd.dal.mapper.customer.CustomerFortuneMapper
;
@Service
(
"customerServiceImpl"
)
@Service
(
"customerServiceImpl"
)
public
class
CustomerServiceImpl
implements
CustomerService
{
public
class
CustomerServiceImpl
implements
CustomerService
{
...
@@ -25,12 +35,12 @@ public class CustomerServiceImpl implements CustomerService{
...
@@ -25,12 +35,12 @@ public class CustomerServiceImpl implements CustomerService{
private
CustomerDALService
customerServiceDA
;
private
CustomerDALService
customerServiceDA
;
@Autowired
@Autowired
private
CustomerFortuneMapper
customerFortuneMapper
;
private
AclCustomerDALService
aclCustomerDALService
;
@Override
@Override
public
List
<
CustomerVO
>
listAllCustomer
()
{
public
List
<
CustomerVO
>
listAllCustomer
()
{
List
<
CustomerVO
>
listTo
=
new
ArrayList
<
CustomerVO
>();
List
<
CustomerVO
>
listTo
=
new
ArrayList
<>();
List
<
Customer
>
list
=
new
ArrayList
<
Customer
>()
;
List
<
Customer
>
list
;
list
=
customerServiceDA
.
listAllCustomers
();
list
=
customerServiceDA
.
listAllCustomers
();
CustomerVO
oneDestVO
;
CustomerVO
oneDestVO
;
for
(
Customer
oneSrc:
list
)
for
(
Customer
oneSrc:
list
)
...
@@ -73,6 +83,72 @@ public class CustomerServiceImpl implements CustomerService{
...
@@ -73,6 +83,72 @@ public class CustomerServiceImpl implements CustomerService{
customerQueryResponseVO
.
setCustomerPage
(
list
);
customerQueryResponseVO
.
setCustomerPage
(
list
);
return
customerQueryResponseVO
;
return
customerQueryResponseVO
;
}
}
@Override
public
RegisterResponseVO
register
(
RegisterRequestVO
requestVO
)
{
RegisterResponseVO
registerResponseVO
=
new
RegisterResponseVO
();
String
mobileNo
=
requestVO
.
getMobileNo
();
String
checkResult
=
paramCheck
(
mobileNo
);
//入参校验
if
(
Strings
.
isNullOrEmpty
(
checkResult
)){
String
accountId
=
createAccountId
(
mobileNo
);
List
<
AclCustomer
>
aclCustomerList
=
aclCustomerDALService
.
findByLogin
(
mobileNo
);
if
(
aclCustomerList
.
isEmpty
()){
DESTypeHandler
jpaCryptoConverter
=
new
DESTypeHandler
();
mobileNo
=
jpaCryptoConverter
.
encode
(
mobileNo
);
AclCustomer
aclCustomer
=
new
AclCustomer
();
aclCustomer
.
setRole
(
2
);
//1= Staff 2=Customer 3=Partner
aclCustomer
.
setAccountId
(
accountId
);
aclCustomer
.
setLogin
(
mobileNo
);
aclCustomer
.
setMobileNo
(
mobileNo
);
aclCustomer
.
setPassword
(
EncryptUtil
.
encrypt
(
requestVO
.
getPassword
(),
null
));
aclCustomer
.
setEmail
(
requestVO
.
getEmail
());
aclCustomer
.
setCusLevel
(
1
);
aclCustomer
.
setName
(
requestVO
.
getName
());
aclCustomer
.
setIsActive
(
1
);
aclCustomer
.
setRoleId
(
3L
);
aclCustomer
.
setCreatedAt
(
new
Date
());
aclCustomer
.
setCreatedBy
(-
1L
);
aclCustomer
.
setUpdatedAt
(
new
Date
());
aclCustomer
.
setUpdatedBy
(-
1L
);
aclCustomer
.
setChannelReferralRateId
(
3L
);
aclCustomerDALService
.
save
(
aclCustomer
);
//202003对新注册的客户还需保存至ag_mkt_leads_pool
// saveLeadsPool(aclCustomer);
registerResponseVO
.
setCustomerId
(
aclCustomer
.
getId
());
registerResponseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
else
{
String
[]
params
=
{
mobileNo
};
registerResponseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"630002"
,
params
)));
registerResponseVO
.
setCustomerId
(
aclCustomerList
.
get
(
0
).
getId
());
}
}
else
{
registerResponseVO
.
setCommonResult
(
new
CommonResult
(
false
,
checkResult
));
}
return
registerResponseVO
;
}
private
String
createAccountId
(
String
mobileNo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyyMMddHHmmss"
);
String
sub
=
null
;
if
(
mobileNo
!=
null
&&
!
""
.
equals
(
mobileNo
)){
sub
=
mobileNo
.
substring
(
mobileNo
.
length
()-
6
);
}
return
"C_"
+
sub
+
"_"
+
sdf
.
format
(
new
Date
());
}
private
String
paramCheck
(
String
mobileNo
)
{
if
(
Strings
.
isNullOrEmpty
(
mobileNo
)){
String
[]
params
={
"mobileNo"
};
return
ZHBErrorConfig
.
getErrorInfo
(
"610002"
,
params
);
}
else
{
if
(
mobileNo
.
length
()
!=
11
||
!
mobileNo
.
startsWith
(
"1"
)){
String
[]
params
=
{
mobileNo
};
return
ZHBErrorConfig
.
getErrorInfo
(
"630001"
,
params
);
}
}
return
null
;
}
}
}
yd-api/src/main/java/com/yd/api/customer/vo/register/RegisterRequestVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
customer
.
vo
.
register
;
public
class
RegisterRequestVO
{
private
String
name
;
private
String
mobileNo
;
private
String
email
;
private
String
password
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getMobileNo
()
{
return
mobileNo
;
}
public
void
setMobileNo
(
String
mobileNo
)
{
this
.
mobileNo
=
mobileNo
;
}
public
String
getEmail
()
{
return
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
String
getPassword
()
{
return
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
}
yd-api/src/main/java/com/yd/api/customer/vo/register/RegisterResponseVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
customer
.
vo
.
register
;
import
com.yd.api.result.CommonResult
;
public
class
RegisterResponseVO
{
private
Long
customerId
;
private
CommonResult
commonResult
;
public
Long
getCustomerId
()
{
return
customerId
;
}
public
void
setCustomerId
(
Long
customerId
)
{
this
.
customerId
=
customerId
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/PractitionerController.java
View file @
d485e78b
...
@@ -7,6 +7,7 @@ import com.yd.api.practitioner.vo.media.MediaGetReqVO;
...
@@ -7,6 +7,7 @@ import com.yd.api.practitioner.vo.media.MediaGetReqVO;
import
com.yd.api.practitioner.vo.media.MediaGetRespVO
;
import
com.yd.api.practitioner.vo.media.MediaGetRespVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.result.JsonResult
;
import
com.yd.api.result.JsonResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -25,8 +26,8 @@ public class PractitionerController {
...
@@ -25,8 +26,8 @@ public class PractitionerController {
/**
/**
* 经纪人登录
* 经纪人登录
* @param requestVO
* @param requestVO
请求数据
* @return
* @return
响应数据
*/
*/
@RequestMapping
(
"/login"
)
@RequestMapping
(
"/login"
)
public
Object
practitionerLogin
(
@RequestBody
PractitionerLoginRequestVO
requestVO
){
public
Object
practitionerLogin
(
@RequestBody
PractitionerLoginRequestVO
requestVO
){
...
@@ -39,7 +40,7 @@ public class PractitionerController {
...
@@ -39,7 +40,7 @@ public class PractitionerController {
/**
/**
* 经纪人(排行榜) + (保费+佣金+件数)查询
* 经纪人(排行榜) + (保费+佣金+件数)查询
* @param requestVO
* @param requestVO
请求数据
* @return Object
* @return Object
*/
*/
@RequestMapping
(
"/rank"
)
@RequestMapping
(
"/rank"
)
...
@@ -53,7 +54,7 @@ public class PractitionerController {
...
@@ -53,7 +54,7 @@ public class PractitionerController {
/**
/**
* 查询经纪人的个人设置
* 查询经纪人的个人设置
* @param requestVO
* @param requestVO
请求数据
* @return responseVO
* @return responseVO
*/
*/
@RequestMapping
(
"/settingQuery"
)
@RequestMapping
(
"/settingQuery"
)
...
@@ -67,7 +68,7 @@ public class PractitionerController {
...
@@ -67,7 +68,7 @@ public class PractitionerController {
/**
/**
* 保存经纪人的个人设置
* 保存经纪人的个人设置
* @param requestVO
* @param requestVO
请求数据
* @return responseVO
* @return responseVO
*/
*/
@RequestMapping
(
"/settingSave"
)
@RequestMapping
(
"/settingSave"
)
...
@@ -92,11 +93,67 @@ public class PractitionerController {
...
@@ -92,11 +93,67 @@ public class PractitionerController {
}
}
@RequestMapping
(
"/mediaGet"
)
@RequestMapping
(
"/mediaGet"
)
public
Object
mediaGet
(
@RequestBody
MediaGetReqVO
requestVO
)
throws
Exception
{
public
Object
mediaGet
(
@RequestBody
MediaGetReqVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
JsonResult
result
=
new
JsonResult
();
MediaGetRespVO
responseVO
=
practitionerService
.
mediaGet
(
requestVO
);
MediaGetRespVO
responseVO
=
practitionerService
.
mediaGet
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
return
result
;
}
}
/**
* 团队长--新增增员
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping
(
"/recruit"
)
public
Object
recruit
(
@RequestBody
RecruitRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
RecruitResponseVO
responseVO
=
practitionerService
.
recruit
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
}
/**
* 团队长--新增增员记录
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping
(
"/addRecruitTrack"
)
public
Object
addRecruitTrack
(
@RequestBody
AddRecruitTrackRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
AddRecruitTrackResponseVO
responseVO
=
practitionerService
.
addRecruitTrack
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
}
/**
* 团队长--增员记录查询
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping
(
"/recruitTrackQuery"
)
public
Object
recruitTrackQuery
(
@RequestBody
RecruitTrackQueryRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
RecruitTrackQueryResponseVO
responseVO
=
practitionerService
.
recruitTrackQuery
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
}
/**
* 团队长--增员列表查询
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping
(
"/recruitListQuery"
)
public
Object
recruitListQuery
(
@RequestBody
RecruitListRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
RecruitListResponseVO
responseVO
=
practitionerService
.
recruitListQuery
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
}
}
}
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerService.java
View file @
d485e78b
...
@@ -6,6 +6,7 @@ import com.yd.api.practitioner.vo.media.MediaGetReqVO;
...
@@ -6,6 +6,7 @@ import com.yd.api.practitioner.vo.media.MediaGetReqVO;
import
com.yd.api.practitioner.vo.media.MediaGetRespVO
;
import
com.yd.api.practitioner.vo.media.MediaGetRespVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -53,4 +54,31 @@ public interface PractitionerService {
...
@@ -53,4 +54,31 @@ public interface PractitionerService {
* @return
* @return
*/
*/
MediaGetRespVO
mediaGet
(
MediaGetReqVO
requestVO
);
MediaGetRespVO
mediaGet
(
MediaGetReqVO
requestVO
);
/**
* 团队长--增员
* @param requestVO 请求信息
* @return responseVO
*/
RecruitResponseVO
recruit
(
RecruitRequestVO
requestVO
);
/**
* 团队长--新增增员记录
* @param requestVO 请求信息
* @return responseVO
*/
AddRecruitTrackResponseVO
addRecruitTrack
(
AddRecruitTrackRequestVO
requestVO
);
/**
* 团队长--增员记录查询
* @param requestVO 请求信息
* @return responseVO
*/
RecruitTrackQueryResponseVO
recruitTrackQuery
(
RecruitTrackQueryRequestVO
requestVO
);
/**
* 团队长--增员列表查询
* @param requestVO 请求信息
* @return responseVO
*/
RecruitListResponseVO
recruitListQuery
(
RecruitListRequestVO
requestVO
);
}
}
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
service
.
impl
;
package
com
.
yd
.
api
.
practitioner
.
service
.
impl
;
import
com.yd.api.customer.service.CustomerService
;
import
com.yd.api.customer.vo.register.RegisterRequestVO
;
import
com.yd.api.customer.vo.register.RegisterResponseVO
;
import
com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO
;
import
com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO
;
import
com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO
;
import
com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO
;
import
com.yd.api.practitioner.vo.media.MediaGetReqVO
;
import
com.yd.api.practitioner.vo.media.MediaGetReqVO
;
...
@@ -8,15 +11,16 @@ import com.yd.api.practitioner.vo.rank.AclCustomerFortuneStatistics;
...
@@ -8,15 +11,16 @@ import com.yd.api.practitioner.vo.rank.AclCustomerFortuneStatistics;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO
;
import
com.yd.api.practitioner.vo.rank.PractitionerInfoForAchievement
;
import
com.yd.api.practitioner.vo.rank.PractitionerInfoForAchievement
;
import
com.yd.api.practitioner.vo.recruit.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.practitioner.vo.setting.*
;
import
com.yd.api.result.CommonResult
;
import
com.yd.api.result.CommonResult
;
import
com.yd.dal.entity.customer.AclCustomerLog
;
import
com.yd.dal.entity.customer.*
;
import
com.yd.dal.entity.customer.AclFileUpload
;
import
com.yd.dal.entity.customer.CustomerFileUpload
;
import
com.yd.dal.entity.practitioner.*
;
import
com.yd.dal.entity.practitioner.*
;
import
com.yd.dal.entity.tencent.TenInterfRecord
;
import
com.yd.dal.entity.tencent.TenInterfRecord
;
import
com.yd.dal.service.customer.AclCustomerLogDALService
;
import
com.yd.dal.service.customer.AclCustomerLogDALService
;
import
com.yd.dal.service.customer.AclFileUploadDALService
;
import
com.yd.dal.service.customer.AclFileUploadDALService
;
import
com.yd.dal.service.customer.AclPractitionerDALService
;
import
com.yd.dal.service.customer.AclPractitionerPotentialDALService
;
import
com.yd.dal.service.meta.MdCodeDALService
;
import
com.yd.dal.service.meta.MdCodeDALService
;
import
com.yd.dal.service.practitioner.PractitionerDALService
;
import
com.yd.dal.service.practitioner.PractitionerDALService
;
import
com.yd.dal.service.practitioner.PractitionerSubordinateDALService
;
import
com.yd.dal.service.practitioner.PractitionerSubordinateDALService
;
...
@@ -65,6 +69,12 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -65,6 +69,12 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
private
OssService
ossService
;
private
OssService
ossService
;
@Autowired
@Autowired
private
WechatService
wechatService
;
private
WechatService
wechatService
;
@Autowired
private
CustomerService
customerService
;
@Autowired
private
AclPractitionerDALService
aclPractitionerDALService
;
@Autowired
private
AclPractitionerPotentialDALService
aclPractitionerPotentialDALService
;
@Override
@Override
public
PractitionerLoginResponseVO
practitionerLogin
(
PractitionerLoginRequestVO
requestVO
)
{
public
PractitionerLoginResponseVO
practitionerLogin
(
PractitionerLoginRequestVO
requestVO
)
{
...
@@ -395,6 +405,83 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
...
@@ -395,6 +405,83 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
return
mediaGetRespVO
;
return
mediaGetRespVO
;
}
}
@Override
public
RecruitResponseVO
recruit
(
RecruitRequestVO
requestVO
)
{
RecruitResponseVO
responseVO
=
new
RecruitResponseVO
();
String
name
=
requestVO
.
getName
();
String
mobileNo
=
requestVO
.
getMobileNo
();
if
(!
Strings
.
isNullOrEmpty
(
name
)
&&
!
Strings
.
isNullOrEmpty
(
mobileNo
)){
if
(
mobileNo
.
length
()
!=
11
||
mobileNo
.
startsWith
(
"1"
)){
RegisterRequestVO
register
=
new
RegisterRequestVO
();
register
.
setMobileNo
(
mobileNo
);
register
.
setName
(
name
);
//将增员对象进行注册
RegisterResponseVO
registerResp
=
customerService
.
register
(
register
);
Long
customerId
=
registerResp
.
getCustomerId
();
//判断是否已经为银盾经纪人
AclPractitioner
practitioner
=
aclPractitionerDALService
.
findByCustomerIdIsActive
(
customerId
,
1
);
if
(
practitioner
==
null
){
//判断该增员是否已存在
Long
potentialId
=
requestVO
.
getPotentialId
();
List
<
AclPractitionerPotential
>
practitionerPotentialList
=
aclPractitionerPotentialDALService
.
findByMobileNo
(
mobileNo
,
1
);
if
(
potentialId
!=
null
||
practitionerPotentialList
.
isEmpty
()){
Long
assignedId
=
requestVO
.
getAssignedId
();
AclPractitionerPotential
practitionerPotential
=
new
AclPractitionerPotential
();
BeanUtils
.
copyProperties
(
requestVO
,
practitionerPotential
);
practitionerPotential
.
setCustomerId
(
customerId
);
practitionerPotential
.
setPractitionerAssignedIds
(
assignedId
.
toString
());
practitionerPotential
.
setCreatedAt
(
new
Date
());
practitionerPotential
.
setCreatedBy
(
assignedId
);
practitionerPotential
.
setCreatorType
(
2
);
practitionerPotential
.
setIsActive
(
1
);
if
(
potentialId
!=
null
){
practitionerPotential
.
setId
(
potentialId
);
}
practitionerPotential
=
aclPractitionerPotentialService
.
save
(
practitionerPotential
);
potentialId
=
practitionerPotential
.
getId
();
//如果已经分配团队长,则在追踪表中增加记录
if
(
assignedId
!=
null
){
List
<
Long
>
practitionerPotentialIdList
=
new
ArrayList
<>();
practitionerPotentialIdList
.
add
(
potentialId
);
customerService
.
addPractitionerPotentialTrack
(
practitionerPotentialIdList
,
assignedId
,
operateUserId
);
}
responseVO
.
setPotentialCustomerId
(
customerId
);
responseVO
.
setPotentialId
(
potentialId
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
else
{
responseVO
.
setPotentialCustomerId
(
customerId
);
responseVO
.
setPotentialId
(
practitionerPotentialList
.
get
(
0
).
getId
());
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830061"
)));
}
}
else
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"830010"
)));
}
}
else
{
String
[]
paras
=
{
mobileNo
};
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"630001"
,
paras
)));
}
}
else
{
String
[]
paras
=
{
"name,mobileNo"
};
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"610002"
,
paras
)));
}
return
null
;
}
@Override
public
AddRecruitTrackResponseVO
addRecruitTrack
(
AddRecruitTrackRequestVO
requestVO
)
{
return
null
;
}
@Override
public
RecruitTrackQueryResponseVO
recruitTrackQuery
(
RecruitTrackQueryRequestVO
requestVO
)
{
return
null
;
}
@Override
public
RecruitListResponseVO
recruitListQuery
(
RecruitListRequestVO
requestVO
)
{
return
null
;
}
private
CommonResult
paramCheck
(
SettingSaveRequestVO
requestVO
)
{
private
CommonResult
paramCheck
(
SettingSaveRequestVO
requestVO
)
{
//检查入参判断
//检查入参判断
Long
practitionerId
=
requestVO
.
getPractitionerId
();
Long
practitionerId
=
requestVO
.
getPractitionerId
();
...
...
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/AddRecruitTrackRequestVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
public
class
AddRecruitTrackRequestVO
{
private
Long
trackId
;
private
Long
trackStatusId
;
private
String
notice
;
private
Integer
isActive
;
public
Long
getTrackId
()
{
return
trackId
;
}
public
void
setTrackId
(
Long
trackId
)
{
this
.
trackId
=
trackId
;
}
public
Long
getTrackStatusId
()
{
return
trackStatusId
;
}
public
void
setTrackStatusId
(
Long
trackStatusId
)
{
this
.
trackStatusId
=
trackStatusId
;
}
public
String
getNotice
()
{
return
notice
;
}
public
void
setNotice
(
String
notice
)
{
this
.
notice
=
notice
;
}
public
Integer
getIsActive
()
{
return
isActive
;
}
public
void
setIsActive
(
Integer
isActive
)
{
this
.
isActive
=
isActive
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/AddRecruitTrackResponseVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
import
com.yd.api.result.CommonResult
;
public
class
AddRecruitTrackResponseVO
{
private
Long
trackId
;
private
Integer
isActive
;
private
CommonResult
commonResult
;
public
Long
getTrackId
()
{
return
trackId
;
}
public
void
setTrackId
(
Long
trackId
)
{
this
.
trackId
=
trackId
;
}
public
Integer
getIsActive
()
{
return
isActive
;
}
public
void
setIsActive
(
Integer
isActive
)
{
this
.
isActive
=
isActive
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/PractitionerPotentialInfo.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
public
class
PractitionerPotentialInfo
{
private
Long
potentialId
;
private
String
name
;
private
Integer
gender
;
private
Long
age
;
private
String
mobileNo
;
private
String
wechatId
;
private
String
qqId
;
private
String
othersContacts
;
private
String
educationLevel
;
private
Long
resourceDropMasterId
;
private
String
resourceDropMasterName
;
private
String
introducer
;
private
String
tag
;
private
String
remark
;
private
String
ossPathResume
;
private
String
assignedId
;
private
String
assignedName
;
private
Long
trackStatusId
;
private
String
trackStatus
;
private
Long
trackId
;
private
Long
operateUserId
;
private
String
operateUserName
;
private
String
createdAt
;
public
Long
getPotentialId
()
{
return
potentialId
;
}
public
void
setPotentialId
(
Long
potentialId
)
{
this
.
potentialId
=
potentialId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getGender
()
{
return
gender
;
}
public
void
setGender
(
Integer
gender
)
{
this
.
gender
=
gender
;
}
public
Long
getAge
()
{
return
age
;
}
public
void
setAge
(
Long
age
)
{
this
.
age
=
age
;
}
public
String
getMobileNo
()
{
return
mobileNo
;
}
public
void
setMobileNo
(
String
mobileNo
)
{
this
.
mobileNo
=
mobileNo
;
}
public
String
getWechatId
()
{
return
wechatId
;
}
public
void
setWechatId
(
String
wechatId
)
{
this
.
wechatId
=
wechatId
;
}
public
String
getQqId
()
{
return
qqId
;
}
public
void
setQqId
(
String
qqId
)
{
this
.
qqId
=
qqId
;
}
public
String
getOthersContacts
()
{
return
othersContacts
;
}
public
void
setOthersContacts
(
String
othersContacts
)
{
this
.
othersContacts
=
othersContacts
;
}
public
String
getEducationLevel
()
{
return
educationLevel
;
}
public
void
setEducationLevel
(
String
educationLevel
)
{
this
.
educationLevel
=
educationLevel
;
}
public
Long
getResourceDropMasterId
()
{
return
resourceDropMasterId
;
}
public
void
setResourceDropMasterId
(
Long
resourceDropMasterId
)
{
this
.
resourceDropMasterId
=
resourceDropMasterId
;
}
public
String
getResourceDropMasterName
()
{
return
resourceDropMasterName
;
}
public
void
setResourceDropMasterName
(
String
resourceDropMasterName
)
{
this
.
resourceDropMasterName
=
resourceDropMasterName
;
}
public
String
getIntroducer
()
{
return
introducer
;
}
public
void
setIntroducer
(
String
introducer
)
{
this
.
introducer
=
introducer
;
}
public
String
getTag
()
{
return
tag
;
}
public
void
setTag
(
String
tag
)
{
this
.
tag
=
tag
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getOssPathResume
()
{
return
ossPathResume
;
}
public
void
setOssPathResume
(
String
ossPathResume
)
{
this
.
ossPathResume
=
ossPathResume
;
}
public
String
getAssignedId
()
{
return
assignedId
;
}
public
void
setAssignedId
(
String
assignedId
)
{
this
.
assignedId
=
assignedId
;
}
public
String
getAssignedName
()
{
return
assignedName
;
}
public
void
setAssignedName
(
String
assignedName
)
{
this
.
assignedName
=
assignedName
;
}
public
Long
getTrackStatusId
()
{
return
trackStatusId
;
}
public
void
setTrackStatusId
(
Long
trackStatusId
)
{
this
.
trackStatusId
=
trackStatusId
;
}
public
String
getTrackStatus
()
{
return
trackStatus
;
}
public
void
setTrackStatus
(
String
trackStatus
)
{
this
.
trackStatus
=
trackStatus
;
}
public
Long
getTrackId
()
{
return
trackId
;
}
public
void
setTrackId
(
Long
trackId
)
{
this
.
trackId
=
trackId
;
}
public
Long
getOperateUserId
()
{
return
operateUserId
;
}
public
void
setOperateUserId
(
Long
operateUserId
)
{
this
.
operateUserId
=
operateUserId
;
}
public
String
getOperateUserName
()
{
return
operateUserName
;
}
public
void
setOperateUserName
(
String
operateUserName
)
{
this
.
operateUserName
=
operateUserName
;
}
public
String
getCreatedAt
()
{
return
createdAt
;
}
public
void
setCreatedAt
(
String
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitListRequestVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
public
class
RecruitListRequestVO
{
private
Long
assignedId
;
private
Integer
status
;
//1-待跟进,2-跟进中,3-以完成
public
Long
getAssignedId
()
{
return
assignedId
;
}
public
void
setAssignedId
(
Long
assignedId
)
{
this
.
assignedId
=
assignedId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitListResponseVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
import
com.github.pagehelper.PageInfo
;
import
com.yd.api.result.CommonResult
;
import
com.yd.dal.entity.customer.Customer
;
import
java.util.List
;
public
class
RecruitListResponseVO
{
private
List
<
PractitionerPotentialInfo
>
practitionerPotentialInfoList
;
private
PageInfo
<
PractitionerPotentialInfo
>
page
;
private
CommonResult
commonResult
;
public
List
<
PractitionerPotentialInfo
>
getPractitionerPotentialInfoList
()
{
return
practitionerPotentialInfoList
;
}
public
void
setPractitionerPotentialInfoList
(
List
<
PractitionerPotentialInfo
>
practitionerPotentialInfoList
)
{
this
.
practitionerPotentialInfoList
=
practitionerPotentialInfoList
;
}
public
PageInfo
<
PractitionerPotentialInfo
>
getPage
()
{
return
page
;
}
public
void
setPage
(
PageInfo
<
PractitionerPotentialInfo
>
page
)
{
this
.
page
=
page
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitRequestVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
public
class
RecruitRequestVO
{
private
Long
potentialId
;
private
String
name
;
private
Integer
gender
;
private
Long
age
;
private
String
mobileNo
;
private
String
wechatId
;
private
String
qqId
;
private
String
othersContacts
;
private
String
educationLevel
;
private
Long
resourceDropMasterId
;
private
String
introducer
;
private
String
tag
;
private
String
remark
;
private
String
ossPathResume
;
private
Long
assignedId
;
public
Long
getPotentialId
()
{
return
potentialId
;
}
public
void
setPotentialId
(
Long
potentialId
)
{
this
.
potentialId
=
potentialId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getGender
()
{
return
gender
;
}
public
void
setGender
(
Integer
gender
)
{
this
.
gender
=
gender
;
}
public
Long
getAge
()
{
return
age
;
}
public
void
setAge
(
Long
age
)
{
this
.
age
=
age
;
}
public
String
getMobileNo
()
{
return
mobileNo
;
}
public
void
setMobileNo
(
String
mobileNo
)
{
this
.
mobileNo
=
mobileNo
;
}
public
String
getWechatId
()
{
return
wechatId
;
}
public
void
setWechatId
(
String
wechatId
)
{
this
.
wechatId
=
wechatId
;
}
public
String
getQqId
()
{
return
qqId
;
}
public
void
setQqId
(
String
qqId
)
{
this
.
qqId
=
qqId
;
}
public
String
getOthersContacts
()
{
return
othersContacts
;
}
public
void
setOthersContacts
(
String
othersContacts
)
{
this
.
othersContacts
=
othersContacts
;
}
public
String
getEducationLevel
()
{
return
educationLevel
;
}
public
void
setEducationLevel
(
String
educationLevel
)
{
this
.
educationLevel
=
educationLevel
;
}
public
Long
getResourceDropMasterId
()
{
return
resourceDropMasterId
;
}
public
void
setResourceDropMasterId
(
Long
resourceDropMasterId
)
{
this
.
resourceDropMasterId
=
resourceDropMasterId
;
}
public
String
getIntroducer
()
{
return
introducer
;
}
public
void
setIntroducer
(
String
introducer
)
{
this
.
introducer
=
introducer
;
}
public
String
getTag
()
{
return
tag
;
}
public
void
setTag
(
String
tag
)
{
this
.
tag
=
tag
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
public
String
getOssPathResume
()
{
return
ossPathResume
;
}
public
void
setOssPathResume
(
String
ossPathResume
)
{
this
.
ossPathResume
=
ossPathResume
;
}
public
Long
getAssignedId
()
{
return
assignedId
;
}
public
void
setAssignedId
(
Long
assignedId
)
{
this
.
assignedId
=
assignedId
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitResponseVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
import
com.yd.api.result.CommonResult
;
public
class
RecruitResponseVO
{
private
Long
potentialCustomerId
;
private
Long
potentialId
;
private
CommonResult
commonResult
;
public
Long
getPotentialCustomerId
()
{
return
potentialCustomerId
;
}
public
void
setPotentialCustomerId
(
Long
potentialCustomerId
)
{
this
.
potentialCustomerId
=
potentialCustomerId
;
}
public
Long
getPotentialId
()
{
return
potentialId
;
}
public
void
setPotentialId
(
Long
potentialId
)
{
this
.
potentialId
=
potentialId
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitTrackQueryRequestVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
public
class
RecruitTrackQueryRequestVO
{
private
Long
potentialId
;
private
Long
assignedId
;
public
Long
getPotentialId
()
{
return
potentialId
;
}
public
void
setPotentialId
(
Long
potentialId
)
{
this
.
potentialId
=
potentialId
;
}
public
Long
getAssignedId
()
{
return
assignedId
;
}
public
void
setAssignedId
(
Long
assignedId
)
{
this
.
assignedId
=
assignedId
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/recruit/RecruitTrackQueryResponseVO.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
api
.
practitioner
.
vo
.
recruit
;
public
class
RecruitTrackQueryResponseVO
{
private
Long
trackId
;
private
Long
trackStatusId
;
private
String
trackStatus
;
private
String
notice
;
private
String
createAt
;
private
Long
operateUserId
;
private
String
operateUserName
;
public
Long
getTrackId
()
{
return
trackId
;
}
public
void
setTrackId
(
Long
trackId
)
{
this
.
trackId
=
trackId
;
}
public
Long
getTrackStatusId
()
{
return
trackStatusId
;
}
public
void
setTrackStatusId
(
Long
trackStatusId
)
{
this
.
trackStatusId
=
trackStatusId
;
}
public
String
getTrackStatus
()
{
return
trackStatus
;
}
public
void
setTrackStatus
(
String
trackStatus
)
{
this
.
trackStatus
=
trackStatus
;
}
public
String
getNotice
()
{
return
notice
;
}
public
void
setNotice
(
String
notice
)
{
this
.
notice
=
notice
;
}
public
String
getCreateAt
()
{
return
createAt
;
}
public
void
setCreateAt
(
String
createAt
)
{
this
.
createAt
=
createAt
;
}
public
Long
getOperateUserId
()
{
return
operateUserId
;
}
public
void
setOperateUserId
(
Long
operateUserId
)
{
this
.
operateUserId
=
operateUserId
;
}
public
String
getOperateUserName
()
{
return
operateUserName
;
}
public
void
setOperateUserName
(
String
operateUserName
)
{
this
.
operateUserName
=
operateUserName
;
}
}
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomer.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_customer
* @author
*/
@Data
public
class
AclCustomer
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* 1= Staff 2=Customer 3=Partner 6=VIP 9=Car Insurance Chanel
*/
private
Integer
role
;
/**
* customer# for referral use -######## = login ID
*/
private
String
accountId
;
private
String
login
;
private
String
mobileNo
;
/**
* for mobile
*/
private
String
authenCode
;
/**
* for staff or partner
*/
private
String
password
;
private
String
email
;
/**
* FK ag_md_province.id 省
*/
private
Long
provinceId
;
/**
* FK ag_md_city.id 城市
*/
private
Long
cityId
;
/**
* FK ag_md_district.id 县(区)
*/
private
Long
districtId
;
/**
* mailing address
*/
private
String
address
;
/**
* FK ag_md_industry_occupation.id
*/
private
Long
occupationId
;
/**
* 1=普通会员 2=黄金会员 3=白金会员 4=黑金会员 5=钻石会员
*/
private
Integer
cusLevel
;
/**
* Chinese Name
*/
private
String
name
;
/**
* 自行编辑昵称
*/
private
String
nicknameModify
;
/**
* Englsih First name
*/
private
String
enFirstname
;
/**
* English Last name
*/
private
String
enLastname
;
/**
* ag_md_id_type.id
*/
private
Long
idTypeId
;
private
String
idNo
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
/**
* 0000-00-00
*/
private
Date
birthDate
;
private
Date
lastLoginTime
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 0=逐单提现, 1=对冲记录提现
*/
private
Integer
withdrawType
;
private
BigDecimal
referralRate
;
private
BigDecimal
referralTotalAmount
;
/**
* FK ag_acl_channel_referral_rate.id 角色渠道推荐佣金比率对应
*/
private
Long
channelReferralRateId
;
/**
* URL path of of Customer picture
*/
private
String
imagePath
;
/**
* 微信客户标识,对当前开发账户唯一
*/
private
String
wechatOpenid
;
/**
* 银盾经纪公众号的微信客户标识,对当前开发账户唯一
*/
private
String
ydWechatOpenid
;
/**
* 微信调接昵称
*/
private
String
nickname
;
/**
* FK ag_system_dept.id
*/
private
Long
deptId
;
/**
* FK ag_system_role.id
*/
private
Long
roleId
;
/**
* 创建时间
*/
private
Date
createdAt
;
/**
* 创建人
*/
private
Long
createdBy
;
/**
* 修改时间
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
/**
* 推荐达人等级 1=一袋达人 2=二袋达人 3=三袋达人 4=四袋达人 5=五袋达人
*/
private
Integer
referralLevel
;
/**
* 执业者编号(登记代理人资格)
*/
private
String
practitionerRegNo
;
/**
* 所属公司(登记代理人资格)
*/
private
String
practitionerRegCompany
;
/**
* 执业证有效日期(登记代理人资格)
*/
private
Date
practitionerRegExpirydate
;
/**
* 执业证是否有效 0=无效, 1=有效
*/
private
Integer
practitionerRegStatus
;
/**
* 执业者教育程度 1博士 2硕士 3本科 4大专 5高中及同等学历 6初中及同等学历 7初中以下学历
*/
private
Integer
practitionerRegEducationLevel
;
/**
* 执业登记姓名
*/
private
String
practitionerRegName
;
/**
* 执业登记者的证件类型 FK ag_md_id_type, 1=身份证 2=护照 4=台胞证 5=香港身份证
*/
private
Integer
practitionerIdTypeId
;
/**
* 执业登记者的证件号
*/
private
String
practitionerIdNo
;
/**
* 执业登记者的生日
*/
private
Date
practitionerBirthdate
;
/**
* 执业登记者的性别 1=Male, 2=Female
*/
private
Integer
practitionerGender
;
/**
* 执业登记者大头照存放的URL
*/
private
String
practitionerPortaitUrl
;
/**
* 营销投放渠道来源 hmsr
*/
private
String
sourceChannel
;
/**
* 活动
*/
private
String
mktCampaign
;
/**
* 活动任务
*/
private
String
mktTask
;
/**
* 营销投放产品名 hmpl
*/
private
String
sourcePlanName
;
/**
* 营销投放推送日期 hmkw
*/
private
String
sourcePublishdate
;
/**
* 营销投放推送文章或其他 hmci
*/
private
String
sourceArticle
;
/**
* 微信号
*/
private
String
wechatNo
;
/**
* 其他联系方式
*/
private
String
otherContacts
;
/**
* 年龄
*/
private
Long
age
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitioner.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_practitioner
* @author
*/
@Data
public
class
AclPractitioner
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_acl_insurer.id
*/
private
Long
insurerId
;
/**
* FK ag_acl_insurer_branch.id
*/
private
Long
insurerBranchId
;
/**
* FK ag_acl_insurer_branch_dept.id 所属部门id
*/
private
Long
deptId
;
/**
* FK ag_acl_practitioner_subordinate_system.id 所属部门id
*/
private
Long
subordinateSystemId
;
/**
* 从业人员编号
*/
private
String
practitionerCode
;
/**
* 从业人员姓名
*/
private
String
name
;
/**
* 从业人员电话
*/
private
String
mobileNo
;
/**
* FK ag_md_id_type.id
*/
private
Long
idTypeId
;
/**
* 从业人员证件类型
*/
private
String
idType
;
/**
* 从业人员证件号
*/
private
String
idNo
;
/**
* 从业人员生日
*/
private
Date
practitionerBirthdate
;
/**
* 从业人员执业证编号
*/
private
String
practitionerRegNo
;
/**
* 从业人员所属公司
*/
private
String
practitionerRegCompany
;
/**
* 有效起日
*/
private
Date
effectiveStartDate
;
/**
* 有效终日
*/
private
Date
effectiveEndDate
;
/**
* 备注
*/
private
String
remark
;
/**
* FK ag_acl_customer.id
*/
private
Long
customerId
;
/**
* 公司员工编码
*/
private
String
employeeNo
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 建置日
*/
private
Date
createdAt
;
/**
* 建置者
*/
private
Long
createdBy
;
/**
* 更新日
*/
private
Date
updatedAt
;
private
Long
updatedBy
;
/**
* 从业人员所属区域-省份 FK ag_md_province.id
*/
private
Long
provinceId
;
/**
* 所属区域省份名
*/
private
String
provinceName
;
/**
* 从业人员所属区域-城市 FK ag_md_city.id
*/
private
Long
cityId
;
/**
* 所属区域城市名
*/
private
String
cityName
;
/**
* 从业人员证照/荣誉列 FK ag_md_certificate.id
*/
private
String
certList
;
/**
* 从业人员自我简介
*/
private
String
bioIntro
;
/**
* 从业人员微信号
*/
private
String
wechatId
;
/**
* 从业人员QQ号
*/
private
String
qqId
;
/**
* 查询是否显示 0=No=不显示 1=Yes=显示
*/
private
Integer
isProfileShow
;
/**
* 姓名是否显示 0=No=不显示 1=Yes=显示
*/
private
Integer
isNameShow
;
/**
* 电话是否显示 0=No=不显示 1=Yes=显示
*/
private
Integer
isMobileShow
;
/**
* 教育程度
*/
private
String
educationLevel
;
/**
* FK ag_acl_practitioner.id 辅导人
*/
private
Long
mentorId
;
/**
* FK ag_acl_practitioner.id 介绍人
*/
private
Long
introducerId
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerPotential.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_practitioner_potential
* @author
*/
@Data
public
class
AclPractitionerPotential
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* 姓名
*/
private
String
name
;
/**
* 年龄
*/
private
Long
age
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
/**
* 从业人员电话
*/
private
String
mobileNo
;
/**
* 从业人员微信号
*/
private
String
wechatId
;
/**
* 从业人员QQ号
*/
private
String
qqId
;
/**
* 其他联系方式
*/
private
String
othersContacts
;
/**
* 教育程度
*/
private
String
educationLevel
;
/**
* 介绍人
*/
private
String
introducer
;
/**
* 标签
*/
private
String
tag
;
/**
* 备注
*/
private
String
remark
;
/**
* FK ag_drop_master.id 来源
*/
private
Long
resourceDropMasterId
;
/**
* 简历附件
*/
private
String
ossPathResume
;
/**
* FK ag_acl_practitioner.id 指派团队长
*/
private
String
practitionerAssignedIds
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 分析建置时间
*/
private
Date
createdAt
;
/**
* 建置者 FK ag_acl_user.id
*/
private
Long
createdBy
;
/**
* 更新时间
*/
private
Date
updatedAt
;
/**
* 更新者 FK ag_acl_user.id
*/
private
Long
updatedBy
;
private
static
final
long
serialVersionUID
=
1L
;
private
Integer
creatorType
;
private
Integer
updatorType
;
private
Long
customerId
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerPotentialAssignedTrack.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.io.Serializable
;
import
java.util.Date
;
import
lombok.Data
;
/**
* ag_acl_practitioner_potential_assigned_track
* @author
*/
@Data
public
class
AclPractitionerPotentialAssignedTrack
implements
Serializable
{
/**
* serial id
*/
private
Long
id
;
/**
* FK ag_mkt_practitioner_potential.id 线索指派表
*/
private
Long
practitionerPotentialId
;
/**
* FK ag_acl_practitioner.id 指派团队长id
*/
private
Long
practitionerAssignedId
;
/**
* FK ag_md_drop_options.id 团队长增员状态
*/
private
Long
trackStatusId
;
/**
* 潜在经纪人增员(团队长)类似回访记录
*/
private
String
notice
;
/**
* 0=No, 1=Yes
*/
private
Integer
isActive
;
/**
* 分析建置时间
*/
private
Date
createdAt
;
/**
* 建置者 FK ag_acl_user.id
*/
private
Long
createdBy
;
/**
* 更新时间
*/
private
Date
updatedAt
;
/**
* 更新者 FK ag_acl_user.id
*/
private
Long
updatedBy
;
private
Integer
creatorType
;
private
Integer
updatorType
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerMapper.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclCustomer
;
import
java.util.List
;
public
interface
AclCustomerMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclCustomer
record
);
int
insertSelective
(
AclCustomer
record
);
AclCustomer
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclCustomer
record
);
int
updateByPrimaryKey
(
AclCustomer
record
);
List
<
AclCustomer
>
findByLogin
(
String
mobileNo
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerMapper.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitioner
;
public
interface
AclPractitionerMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitioner
record
);
int
insertSelective
(
AclPractitioner
record
);
AclPractitioner
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitioner
record
);
int
updateByPrimaryKey
(
AclPractitioner
record
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerPotentialAssignedTrackMapper.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerPotentialAssignedTrack
;
public
interface
AclPractitionerPotentialAssignedTrackMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerPotentialAssignedTrack
record
);
int
insertSelective
(
AclPractitionerPotentialAssignedTrack
record
);
AclPractitionerPotentialAssignedTrack
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerPotentialAssignedTrack
record
);
int
updateByPrimaryKey
(
AclPractitionerPotentialAssignedTrack
record
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclPractitionerPotentialMapper.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerPotential
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
public
interface
AclPractitionerPotentialMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclPractitionerPotential
record
);
int
insertSelective
(
AclPractitionerPotential
record
);
AclPractitionerPotential
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclPractitionerPotential
record
);
int
updateByPrimaryKey
(
AclPractitionerPotential
record
);
List
<
AclPractitionerPotential
>
findByMobileNo
(
@Param
(
"mobileNo"
)
String
mobileNo
,
@Param
(
"isActive"
)
Integer
isActive
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/practitioner/AclPractitionerMapper.java
View file @
d485e78b
package
com
.
yd
.
dal
.
mapper
.
practitioner
;
package
com
.
yd
.
dal
.
mapper
.
practitioner
;
import
com.yd.dal.entity.customer.AclPractitioner
;
import
com.yd.dal.entity.practitioner.AclPractitionerInfo
;
import
com.yd.dal.entity.practitioner.AclPractitionerInfo
;
import
org.apache.ibatis.annotations.Param
;
public
interface
AclPractitionerMapper
{
public
interface
AclPractitionerMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
deleteByPrimaryKey
(
Long
id
);
...
@@ -14,4 +16,6 @@ public interface AclPractitionerMapper {
...
@@ -14,4 +16,6 @@ public interface AclPractitionerMapper {
int
updateByPrimaryKeySelective
(
AclPractitionerInfo
record
);
int
updateByPrimaryKeySelective
(
AclPractitionerInfo
record
);
int
updateByPrimaryKey
(
AclPractitionerInfo
record
);
int
updateByPrimaryKey
(
AclPractitionerInfo
record
);
AclPractitioner
findByCustomerIdIsActive
(
@Param
(
"customerId"
)
Long
customerId
,
@Param
(
"isActive"
)
int
isActive
);
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerDALService.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclCustomer
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclCustomerDALService"
)
public
interface
AclCustomerDALService
{
/**
* 通过登录号进行查找
* @param mobileNo 手机号
* @return
*/
List
<
AclCustomer
>
findByLogin
(
String
mobileNo
);
/**
* 保存数据
* @param aclCustomer
* @return
*/
void
save
(
AclCustomer
aclCustomer
);
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerDALService.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclPractitioner
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclPractitionerDALService"
)
public
interface
AclPractitionerDALService
{
/**
* 通过customerId 和is_active 获取用户
* @param customerId
* @param i
* @return
*/
AclPractitioner
findByCustomerIdIsActive
(
Long
customerId
,
int
i
);
}
yd-api/src/main/java/com/yd/dal/service/customer/AclPractitionerPotentialDALService.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclPractitionerPotential
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclPractitionerPotentialDALService"
)
public
interface
AclPractitionerPotentialDALService
{
/**
* 根据手机号查询
* @param mobileNo
* @return
*/
List
<
AclPractitionerPotential
>
findByMobileNo
(
String
mobileNo
,
Integer
isActive
);
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerDALServiceImpl.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclCustomer
;
import
com.yd.dal.mapper.customer.AclCustomerMapper
;
import
com.yd.dal.service.customer.AclCustomerDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
(
"aclCustomerDalService"
)
public
class
AclCustomerDALServiceImpl
implements
AclCustomerDALService
{
@Autowired
private
AclCustomerMapper
aclCustomerMapper
;
@Override
public
List
<
AclCustomer
>
findByLogin
(
String
mobileNo
)
{
return
aclCustomerMapper
.
findByLogin
(
mobileNo
);
}
@Override
public
void
save
(
AclCustomer
aclCustomer
)
{
aclCustomerMapper
.
insert
(
aclCustomer
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerDALServiceImpl.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclPractitioner
;
import
com.yd.dal.mapper.practitioner.AclPractitionerMapper
;
import
com.yd.dal.service.customer.AclPractitionerDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
public
class
AclPractitionerDALServiceImpl
implements
AclPractitionerDALService
{
@Autowired
private
AclPractitionerMapper
aclPractitionerMapper
;
@Override
public
AclPractitioner
findByCustomerIdIsActive
(
Long
customerId
,
int
isActive
)
{
return
aclPractitionerMapper
.
findByCustomerIdIsActive
(
customerId
,
isActive
);
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclPractitionerPotentialDALServiceImpl.java
0 → 100644
View file @
d485e78b
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclPractitionerPotential
;
import
com.yd.dal.mapper.customer.AclPractitionerPotentialMapper
;
import
com.yd.dal.service.customer.AclPractitionerPotentialDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
public
class
AclPractitionerPotentialDALServiceImpl
implements
AclPractitionerPotentialDALService
{
@Autowired
private
AclPractitionerPotentialMapper
aclPractitionerPotentialMapper
;
@Override
public
List
<
AclPractitionerPotential
>
findByMobileNo
(
String
mobileNo
,
Integer
isActive
)
{
return
aclPractitionerPotentialMapper
.
findByMobileNo
(
mobileNo
,
isActive
);
}
}
yd-api/src/main/resources/i18n/messages_zh_CN.properties
View file @
d485e78b
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
600000
=
参数检验成功!
600000
=
参数检验成功!
610001
=
入参中[{0}]不能为空!
610001
=
入参中[{0}]不能为空!
610002
=
入参中[{0}]不能同时为空!
610002
=
入参中[{0}]不能同时为空!
##用户信息校验
630001
=
用户的手机号码[{0}]格式不正确!
630002
=
手机号[{0}]已被注册,请勿重复注册!
######################用户提示信息########################
800000
=
执行成功!
800000
=
执行成功!
##系统提示信息
##系统提示信息
810001
=
token无效或者错误!
810001
=
token无效或者错误!
...
@@ -17,5 +21,6 @@
...
@@ -17,5 +21,6 @@
830007
=
上传头像失败,请重新上传!
830007
=
上传头像失败,请重新上传!
830008
=
上传生活照失败,请重新上传!
830008
=
上传生活照失败,请重新上传!
830009
=
上传微信二维码失败,请重新上传!
830009
=
上传微信二维码失败,请重新上传!
830010
=
该用户已经注册为银盾经纪人!
900003
=
保险公司响应报文为空!
900003
=
保险公司响应报文为空!
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclCustomerMapper.xml
0 → 100644
View file @
d485e78b
<?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.AclCustomerMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclCustomer"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"role"
jdbcType=
"INTEGER"
property=
"role"
/>
<result
column=
"account_id"
jdbcType=
"VARCHAR"
property=
"accountId"
/>
<result
column=
"login"
jdbcType=
"VARCHAR"
property=
"login"
/>
<result
column=
"mobile_no"
jdbcType=
"VARCHAR"
property=
"mobileNo"
/>
<result
column=
"authen_code"
jdbcType=
"VARCHAR"
property=
"authenCode"
/>
<result
column=
"password"
jdbcType=
"VARCHAR"
property=
"password"
/>
<result
column=
"email"
jdbcType=
"VARCHAR"
property=
"email"
/>
<result
column=
"province_id"
jdbcType=
"BIGINT"
property=
"provinceId"
/>
<result
column=
"city_id"
jdbcType=
"BIGINT"
property=
"cityId"
/>
<result
column=
"district_id"
jdbcType=
"BIGINT"
property=
"districtId"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
<result
column=
"occupation_id"
jdbcType=
"BIGINT"
property=
"occupationId"
/>
<result
column=
"cus_level"
jdbcType=
"INTEGER"
property=
"cusLevel"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"nickname_modify"
jdbcType=
"VARCHAR"
property=
"nicknameModify"
/>
<result
column=
"en_firstname"
jdbcType=
"VARCHAR"
property=
"enFirstname"
/>
<result
column=
"en_lastname"
jdbcType=
"VARCHAR"
property=
"enLastname"
/>
<result
column=
"id_type_id"
jdbcType=
"BIGINT"
property=
"idTypeId"
/>
<result
column=
"id_no"
jdbcType=
"VARCHAR"
property=
"idNo"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
<result
column=
"birth_date"
jdbcType=
"DATE"
property=
"birthDate"
/>
<result
column=
"last_login_time"
jdbcType=
"TIMESTAMP"
property=
"lastLoginTime"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"withdraw_type"
jdbcType=
"INTEGER"
property=
"withdrawType"
/>
<result
column=
"referral_rate"
jdbcType=
"DECIMAL"
property=
"referralRate"
/>
<result
column=
"referral_total_amount"
jdbcType=
"DECIMAL"
property=
"referralTotalAmount"
/>
<result
column=
"channel_referral_rate_id"
jdbcType=
"BIGINT"
property=
"channelReferralRateId"
/>
<result
column=
"image_path"
jdbcType=
"VARCHAR"
property=
"imagePath"
/>
<result
column=
"wechat_openid"
jdbcType=
"VARCHAR"
property=
"wechatOpenid"
/>
<result
column=
"yd_wechat_openid"
jdbcType=
"VARCHAR"
property=
"ydWechatOpenid"
/>
<result
column=
"nickname"
jdbcType=
"VARCHAR"
property=
"nickname"
/>
<result
column=
"dept_id"
jdbcType=
"BIGINT"
property=
"deptId"
/>
<result
column=
"role_id"
jdbcType=
"BIGINT"
property=
"roleId"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
<result
column=
"referral_level"
jdbcType=
"INTEGER"
property=
"referralLevel"
/>
<result
column=
"practitioner_reg_no"
jdbcType=
"VARCHAR"
property=
"practitionerRegNo"
/>
<result
column=
"practitioner_reg_company"
jdbcType=
"VARCHAR"
property=
"practitionerRegCompany"
/>
<result
column=
"practitioner_reg_expirydate"
jdbcType=
"DATE"
property=
"practitionerRegExpirydate"
/>
<result
column=
"practitioner_reg_status"
jdbcType=
"INTEGER"
property=
"practitionerRegStatus"
/>
<result
column=
"practitioner_reg_education_level"
jdbcType=
"INTEGER"
property=
"practitionerRegEducationLevel"
/>
<result
column=
"practitioner_reg_name"
jdbcType=
"VARCHAR"
property=
"practitionerRegName"
/>
<result
column=
"practitioner_id_type_id"
jdbcType=
"INTEGER"
property=
"practitionerIdTypeId"
/>
<result
column=
"practitioner_id_no"
jdbcType=
"VARCHAR"
property=
"practitionerIdNo"
/>
<result
column=
"practitioner_birthdate"
jdbcType=
"DATE"
property=
"practitionerBirthdate"
/>
<result
column=
"practitioner_gender"
jdbcType=
"INTEGER"
property=
"practitionerGender"
/>
<result
column=
"practitioner_portait_url"
jdbcType=
"VARCHAR"
property=
"practitionerPortaitUrl"
/>
<result
column=
"source_channel"
jdbcType=
"VARCHAR"
property=
"sourceChannel"
/>
<result
column=
"mkt_campaign"
jdbcType=
"VARCHAR"
property=
"mktCampaign"
/>
<result
column=
"mkt_task"
jdbcType=
"VARCHAR"
property=
"mktTask"
/>
<result
column=
"source_plan_name"
jdbcType=
"VARCHAR"
property=
"sourcePlanName"
/>
<result
column=
"source_publishdate"
jdbcType=
"VARCHAR"
property=
"sourcePublishdate"
/>
<result
column=
"source_article"
jdbcType=
"VARCHAR"
property=
"sourceArticle"
/>
<result
column=
"wechat_no"
jdbcType=
"VARCHAR"
property=
"wechatNo"
/>
<result
column=
"other_contacts"
jdbcType=
"VARCHAR"
property=
"otherContacts"
/>
<result
column=
"age"
jdbcType=
"BIGINT"
property=
"age"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, `role`, account_id, `login`, mobile_no, authen_code, `password`, email, province_id,
city_id, district_id, address, occupation_id, cus_level, `name`, nickname_modify,
en_firstname, en_lastname, id_type_id, id_no, gender, birth_date, last_login_time,
is_active, withdraw_type, referral_rate, referral_total_amount, channel_referral_rate_id,
image_path, wechat_openid, yd_wechat_openid, nickname, dept_id, role_id, created_at,
created_by, updated_at, updated_by, referral_level, practitioner_reg_no, practitioner_reg_company,
practitioner_reg_expirydate, practitioner_reg_status, practitioner_reg_education_level,
practitioner_reg_name, practitioner_id_type_id, practitioner_id_no, practitioner_birthdate,
practitioner_gender, practitioner_portait_url, source_channel, mkt_campaign, mkt_task,
source_plan_name, source_publishdate, source_article, wechat_no, other_contacts,
age
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_customer
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_customer
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclCustomer"
useGeneratedKeys=
"true"
>
insert into ag_acl_customer (`role`, account_id, `login`,
mobile_no, authen_code, `password`,
email, province_id, city_id,
district_id, address, occupation_id,
cus_level, `name`, nickname_modify,
en_firstname, en_lastname, id_type_id,
id_no, gender, birth_date,
last_login_time, is_active, withdraw_type,
referral_rate, referral_total_amount, channel_referral_rate_id,
image_path, wechat_openid, yd_wechat_openid,
nickname, dept_id, role_id,
created_at, created_by, updated_at,
updated_by, referral_level, practitioner_reg_no,
practitioner_reg_company, practitioner_reg_expirydate,
practitioner_reg_status, practitioner_reg_education_level,
practitioner_reg_name, practitioner_id_type_id,
practitioner_id_no, practitioner_birthdate, practitioner_gender,
practitioner_portait_url, source_channel,
mkt_campaign, mkt_task, source_plan_name,
source_publishdate, source_article, wechat_no,
other_contacts, age)
values (#{role,jdbcType=INTEGER}, #{accountId,jdbcType=VARCHAR}, #{login,jdbcType=VARCHAR},
#{mobileNo,jdbcType=VARCHAR}, #{authenCode,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR}, #{provinceId,jdbcType=BIGINT}, #{cityId,jdbcType=BIGINT},
#{districtId,jdbcType=BIGINT}, #{address,jdbcType=VARCHAR}, #{occupationId,jdbcType=BIGINT},
#{cusLevel,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{nicknameModify,jdbcType=VARCHAR},
#{enFirstname,jdbcType=VARCHAR}, #{enLastname,jdbcType=VARCHAR}, #{idTypeId,jdbcType=BIGINT},
#{idNo,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, #{birthDate,jdbcType=DATE},
#{lastLoginTime,jdbcType=TIMESTAMP}, #{isActive,jdbcType=INTEGER}, #{withdrawType,jdbcType=INTEGER},
#{referralRate,jdbcType=DECIMAL}, #{referralTotalAmount,jdbcType=DECIMAL}, #{channelReferralRateId,jdbcType=BIGINT},
#{imagePath,jdbcType=VARCHAR}, #{wechatOpenid,jdbcType=VARCHAR}, #{ydWechatOpenid,jdbcType=VARCHAR},
#{nickname,jdbcType=VARCHAR}, #{deptId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT}, #{referralLevel,jdbcType=INTEGER}, #{practitionerRegNo,jdbcType=VARCHAR},
#{practitionerRegCompany,jdbcType=VARCHAR}, #{practitionerRegExpirydate,jdbcType=DATE},
#{practitionerRegStatus,jdbcType=INTEGER}, #{practitionerRegEducationLevel,jdbcType=INTEGER},
#{practitionerRegName,jdbcType=VARCHAR}, #{practitionerIdTypeId,jdbcType=INTEGER},
#{practitionerIdNo,jdbcType=VARCHAR}, #{practitionerBirthdate,jdbcType=DATE}, #{practitionerGender,jdbcType=INTEGER},
#{practitionerPortaitUrl,jdbcType=VARCHAR}, #{sourceChannel,jdbcType=VARCHAR},
#{mktCampaign,jdbcType=VARCHAR}, #{mktTask,jdbcType=VARCHAR}, #{sourcePlanName,jdbcType=VARCHAR},
#{sourcePublishdate,jdbcType=VARCHAR}, #{sourceArticle,jdbcType=VARCHAR}, #{wechatNo,jdbcType=VARCHAR},
#{otherContacts,jdbcType=VARCHAR}, #{age,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclCustomer"
useGeneratedKeys=
"true"
>
insert into ag_acl_customer
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"role != null"
>
`role`,
</if>
<if
test=
"accountId != null"
>
account_id,
</if>
<if
test=
"login != null"
>
`login`,
</if>
<if
test=
"mobileNo != null"
>
mobile_no,
</if>
<if
test=
"authenCode != null"
>
authen_code,
</if>
<if
test=
"password != null"
>
`password`,
</if>
<if
test=
"email != null"
>
email,
</if>
<if
test=
"provinceId != null"
>
province_id,
</if>
<if
test=
"cityId != null"
>
city_id,
</if>
<if
test=
"districtId != null"
>
district_id,
</if>
<if
test=
"address != null"
>
address,
</if>
<if
test=
"occupationId != null"
>
occupation_id,
</if>
<if
test=
"cusLevel != null"
>
cus_level,
</if>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"nicknameModify != null"
>
nickname_modify,
</if>
<if
test=
"enFirstname != null"
>
en_firstname,
</if>
<if
test=
"enLastname != null"
>
en_lastname,
</if>
<if
test=
"idTypeId != null"
>
id_type_id,
</if>
<if
test=
"idNo != null"
>
id_no,
</if>
<if
test=
"gender != null"
>
gender,
</if>
<if
test=
"birthDate != null"
>
birth_date,
</if>
<if
test=
"lastLoginTime != null"
>
last_login_time,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"withdrawType != null"
>
withdraw_type,
</if>
<if
test=
"referralRate != null"
>
referral_rate,
</if>
<if
test=
"referralTotalAmount != null"
>
referral_total_amount,
</if>
<if
test=
"channelReferralRateId != null"
>
channel_referral_rate_id,
</if>
<if
test=
"imagePath != null"
>
image_path,
</if>
<if
test=
"wechatOpenid != null"
>
wechat_openid,
</if>
<if
test=
"ydWechatOpenid != null"
>
yd_wechat_openid,
</if>
<if
test=
"nickname != null"
>
nickname,
</if>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"roleId != null"
>
role_id,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
<if
test=
"referralLevel != null"
>
referral_level,
</if>
<if
test=
"practitionerRegNo != null"
>
practitioner_reg_no,
</if>
<if
test=
"practitionerRegCompany != null"
>
practitioner_reg_company,
</if>
<if
test=
"practitionerRegExpirydate != null"
>
practitioner_reg_expirydate,
</if>
<if
test=
"practitionerRegStatus != null"
>
practitioner_reg_status,
</if>
<if
test=
"practitionerRegEducationLevel != null"
>
practitioner_reg_education_level,
</if>
<if
test=
"practitionerRegName != null"
>
practitioner_reg_name,
</if>
<if
test=
"practitionerIdTypeId != null"
>
practitioner_id_type_id,
</if>
<if
test=
"practitionerIdNo != null"
>
practitioner_id_no,
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate,
</if>
<if
test=
"practitionerGender != null"
>
practitioner_gender,
</if>
<if
test=
"practitionerPortaitUrl != null"
>
practitioner_portait_url,
</if>
<if
test=
"sourceChannel != null"
>
source_channel,
</if>
<if
test=
"mktCampaign != null"
>
mkt_campaign,
</if>
<if
test=
"mktTask != null"
>
mkt_task,
</if>
<if
test=
"sourcePlanName != null"
>
source_plan_name,
</if>
<if
test=
"sourcePublishdate != null"
>
source_publishdate,
</if>
<if
test=
"sourceArticle != null"
>
source_article,
</if>
<if
test=
"wechatNo != null"
>
wechat_no,
</if>
<if
test=
"otherContacts != null"
>
other_contacts,
</if>
<if
test=
"age != null"
>
age,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"role != null"
>
#{role,jdbcType=INTEGER},
</if>
<if
test=
"accountId != null"
>
#{accountId,jdbcType=VARCHAR},
</if>
<if
test=
"login != null"
>
#{login,jdbcType=VARCHAR},
</if>
<if
test=
"mobileNo != null"
>
#{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"authenCode != null"
>
#{authenCode,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
#{password,jdbcType=VARCHAR},
</if>
<if
test=
"email != null"
>
#{email,jdbcType=VARCHAR},
</if>
<if
test=
"provinceId != null"
>
#{provinceId,jdbcType=BIGINT},
</if>
<if
test=
"cityId != null"
>
#{cityId,jdbcType=BIGINT},
</if>
<if
test=
"districtId != null"
>
#{districtId,jdbcType=BIGINT},
</if>
<if
test=
"address != null"
>
#{address,jdbcType=VARCHAR},
</if>
<if
test=
"occupationId != null"
>
#{occupationId,jdbcType=BIGINT},
</if>
<if
test=
"cusLevel != null"
>
#{cusLevel,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"nicknameModify != null"
>
#{nicknameModify,jdbcType=VARCHAR},
</if>
<if
test=
"enFirstname != null"
>
#{enFirstname,jdbcType=VARCHAR},
</if>
<if
test=
"enLastname != null"
>
#{enLastname,jdbcType=VARCHAR},
</if>
<if
test=
"idTypeId != null"
>
#{idTypeId,jdbcType=BIGINT},
</if>
<if
test=
"idNo != null"
>
#{idNo,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
<if
test=
"birthDate != null"
>
#{birthDate,jdbcType=DATE},
</if>
<if
test=
"lastLoginTime != null"
>
#{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"withdrawType != null"
>
#{withdrawType,jdbcType=INTEGER},
</if>
<if
test=
"referralRate != null"
>
#{referralRate,jdbcType=DECIMAL},
</if>
<if
test=
"referralTotalAmount != null"
>
#{referralTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"channelReferralRateId != null"
>
#{channelReferralRateId,jdbcType=BIGINT},
</if>
<if
test=
"imagePath != null"
>
#{imagePath,jdbcType=VARCHAR},
</if>
<if
test=
"wechatOpenid != null"
>
#{wechatOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"ydWechatOpenid != null"
>
#{ydWechatOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
#{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"deptId != null"
>
#{deptId,jdbcType=BIGINT},
</if>
<if
test=
"roleId != null"
>
#{roleId,jdbcType=BIGINT},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"referralLevel != null"
>
#{referralLevel,jdbcType=INTEGER},
</if>
<if
test=
"practitionerRegNo != null"
>
#{practitionerRegNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegCompany != null"
>
#{practitionerRegCompany,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegExpirydate != null"
>
#{practitionerRegExpirydate,jdbcType=DATE},
</if>
<if
test=
"practitionerRegStatus != null"
>
#{practitionerRegStatus,jdbcType=INTEGER},
</if>
<if
test=
"practitionerRegEducationLevel != null"
>
#{practitionerRegEducationLevel,jdbcType=INTEGER},
</if>
<if
test=
"practitionerRegName != null"
>
#{practitionerRegName,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerIdTypeId != null"
>
#{practitionerIdTypeId,jdbcType=INTEGER},
</if>
<if
test=
"practitionerIdNo != null"
>
#{practitionerIdNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerBirthdate != null"
>
#{practitionerBirthdate,jdbcType=DATE},
</if>
<if
test=
"practitionerGender != null"
>
#{practitionerGender,jdbcType=INTEGER},
</if>
<if
test=
"practitionerPortaitUrl != null"
>
#{practitionerPortaitUrl,jdbcType=VARCHAR},
</if>
<if
test=
"sourceChannel != null"
>
#{sourceChannel,jdbcType=VARCHAR},
</if>
<if
test=
"mktCampaign != null"
>
#{mktCampaign,jdbcType=VARCHAR},
</if>
<if
test=
"mktTask != null"
>
#{mktTask,jdbcType=VARCHAR},
</if>
<if
test=
"sourcePlanName != null"
>
#{sourcePlanName,jdbcType=VARCHAR},
</if>
<if
test=
"sourcePublishdate != null"
>
#{sourcePublishdate,jdbcType=VARCHAR},
</if>
<if
test=
"sourceArticle != null"
>
#{sourceArticle,jdbcType=VARCHAR},
</if>
<if
test=
"wechatNo != null"
>
#{wechatNo,jdbcType=VARCHAR},
</if>
<if
test=
"otherContacts != null"
>
#{otherContacts,jdbcType=VARCHAR},
</if>
<if
test=
"age != null"
>
#{age,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclCustomer"
>
update ag_acl_customer
<set>
<if
test=
"role != null"
>
`role` = #{role,jdbcType=INTEGER},
</if>
<if
test=
"accountId != null"
>
account_id = #{accountId,jdbcType=VARCHAR},
</if>
<if
test=
"login != null"
>
`login` = #{login,jdbcType=VARCHAR},
</if>
<if
test=
"mobileNo != null"
>
mobile_no = #{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"authenCode != null"
>
authen_code = #{authenCode,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
`password` = #{password,jdbcType=VARCHAR},
</if>
<if
test=
"email != null"
>
email = #{email,jdbcType=VARCHAR},
</if>
<if
test=
"provinceId != null"
>
province_id = #{provinceId,jdbcType=BIGINT},
</if>
<if
test=
"cityId != null"
>
city_id = #{cityId,jdbcType=BIGINT},
</if>
<if
test=
"districtId != null"
>
district_id = #{districtId,jdbcType=BIGINT},
</if>
<if
test=
"address != null"
>
address = #{address,jdbcType=VARCHAR},
</if>
<if
test=
"occupationId != null"
>
occupation_id = #{occupationId,jdbcType=BIGINT},
</if>
<if
test=
"cusLevel != null"
>
cus_level = #{cusLevel,jdbcType=INTEGER},
</if>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"nicknameModify != null"
>
nickname_modify = #{nicknameModify,jdbcType=VARCHAR},
</if>
<if
test=
"enFirstname != null"
>
en_firstname = #{enFirstname,jdbcType=VARCHAR},
</if>
<if
test=
"enLastname != null"
>
en_lastname = #{enLastname,jdbcType=VARCHAR},
</if>
<if
test=
"idTypeId != null"
>
id_type_id = #{idTypeId,jdbcType=BIGINT},
</if>
<if
test=
"idNo != null"
>
id_no = #{idNo,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
<if
test=
"birthDate != null"
>
birth_date = #{birthDate,jdbcType=DATE},
</if>
<if
test=
"lastLoginTime != null"
>
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"withdrawType != null"
>
withdraw_type = #{withdrawType,jdbcType=INTEGER},
</if>
<if
test=
"referralRate != null"
>
referral_rate = #{referralRate,jdbcType=DECIMAL},
</if>
<if
test=
"referralTotalAmount != null"
>
referral_total_amount = #{referralTotalAmount,jdbcType=DECIMAL},
</if>
<if
test=
"channelReferralRateId != null"
>
channel_referral_rate_id = #{channelReferralRateId,jdbcType=BIGINT},
</if>
<if
test=
"imagePath != null"
>
image_path = #{imagePath,jdbcType=VARCHAR},
</if>
<if
test=
"wechatOpenid != null"
>
wechat_openid = #{wechatOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"ydWechatOpenid != null"
>
yd_wechat_openid = #{ydWechatOpenid,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"deptId != null"
>
dept_id = #{deptId,jdbcType=BIGINT},
</if>
<if
test=
"roleId != null"
>
role_id = #{roleId,jdbcType=BIGINT},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"referralLevel != null"
>
referral_level = #{referralLevel,jdbcType=INTEGER},
</if>
<if
test=
"practitionerRegNo != null"
>
practitioner_reg_no = #{practitionerRegNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegCompany != null"
>
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegExpirydate != null"
>
practitioner_reg_expirydate = #{practitionerRegExpirydate,jdbcType=DATE},
</if>
<if
test=
"practitionerRegStatus != null"
>
practitioner_reg_status = #{practitionerRegStatus,jdbcType=INTEGER},
</if>
<if
test=
"practitionerRegEducationLevel != null"
>
practitioner_reg_education_level = #{practitionerRegEducationLevel,jdbcType=INTEGER},
</if>
<if
test=
"practitionerRegName != null"
>
practitioner_reg_name = #{practitionerRegName,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerIdTypeId != null"
>
practitioner_id_type_id = #{practitionerIdTypeId,jdbcType=INTEGER},
</if>
<if
test=
"practitionerIdNo != null"
>
practitioner_id_no = #{practitionerIdNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
</if>
<if
test=
"practitionerGender != null"
>
practitioner_gender = #{practitionerGender,jdbcType=INTEGER},
</if>
<if
test=
"practitionerPortaitUrl != null"
>
practitioner_portait_url = #{practitionerPortaitUrl,jdbcType=VARCHAR},
</if>
<if
test=
"sourceChannel != null"
>
source_channel = #{sourceChannel,jdbcType=VARCHAR},
</if>
<if
test=
"mktCampaign != null"
>
mkt_campaign = #{mktCampaign,jdbcType=VARCHAR},
</if>
<if
test=
"mktTask != null"
>
mkt_task = #{mktTask,jdbcType=VARCHAR},
</if>
<if
test=
"sourcePlanName != null"
>
source_plan_name = #{sourcePlanName,jdbcType=VARCHAR},
</if>
<if
test=
"sourcePublishdate != null"
>
source_publishdate = #{sourcePublishdate,jdbcType=VARCHAR},
</if>
<if
test=
"sourceArticle != null"
>
source_article = #{sourceArticle,jdbcType=VARCHAR},
</if>
<if
test=
"wechatNo != null"
>
wechat_no = #{wechatNo,jdbcType=VARCHAR},
</if>
<if
test=
"otherContacts != null"
>
other_contacts = #{otherContacts,jdbcType=VARCHAR},
</if>
<if
test=
"age != null"
>
age = #{age,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclCustomer"
>
update ag_acl_customer
set `role` = #{role,jdbcType=INTEGER},
account_id = #{accountId,jdbcType=VARCHAR},
`login` = #{login,jdbcType=VARCHAR},
mobile_no = #{mobileNo,jdbcType=VARCHAR},
authen_code = #{authenCode,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
email = #{email,jdbcType=VARCHAR},
province_id = #{provinceId,jdbcType=BIGINT},
city_id = #{cityId,jdbcType=BIGINT},
district_id = #{districtId,jdbcType=BIGINT},
address = #{address,jdbcType=VARCHAR},
occupation_id = #{occupationId,jdbcType=BIGINT},
cus_level = #{cusLevel,jdbcType=INTEGER},
`name` = #{name,jdbcType=VARCHAR},
nickname_modify = #{nicknameModify,jdbcType=VARCHAR},
en_firstname = #{enFirstname,jdbcType=VARCHAR},
en_lastname = #{enLastname,jdbcType=VARCHAR},
id_type_id = #{idTypeId,jdbcType=BIGINT},
id_no = #{idNo,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
birth_date = #{birthDate,jdbcType=DATE},
last_login_time = #{lastLoginTime,jdbcType=TIMESTAMP},
is_active = #{isActive,jdbcType=INTEGER},
withdraw_type = #{withdrawType,jdbcType=INTEGER},
referral_rate = #{referralRate,jdbcType=DECIMAL},
referral_total_amount = #{referralTotalAmount,jdbcType=DECIMAL},
channel_referral_rate_id = #{channelReferralRateId,jdbcType=BIGINT},
image_path = #{imagePath,jdbcType=VARCHAR},
wechat_openid = #{wechatOpenid,jdbcType=VARCHAR},
yd_wechat_openid = #{ydWechatOpenid,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
dept_id = #{deptId,jdbcType=BIGINT},
role_id = #{roleId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT},
referral_level = #{referralLevel,jdbcType=INTEGER},
practitioner_reg_no = #{practitionerRegNo,jdbcType=VARCHAR},
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
practitioner_reg_expirydate = #{practitionerRegExpirydate,jdbcType=DATE},
practitioner_reg_status = #{practitionerRegStatus,jdbcType=INTEGER},
practitioner_reg_education_level = #{practitionerRegEducationLevel,jdbcType=INTEGER},
practitioner_reg_name = #{practitionerRegName,jdbcType=VARCHAR},
practitioner_id_type_id = #{practitionerIdTypeId,jdbcType=INTEGER},
practitioner_id_no = #{practitionerIdNo,jdbcType=VARCHAR},
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
practitioner_gender = #{practitionerGender,jdbcType=INTEGER},
practitioner_portait_url = #{practitionerPortaitUrl,jdbcType=VARCHAR},
source_channel = #{sourceChannel,jdbcType=VARCHAR},
mkt_campaign = #{mktCampaign,jdbcType=VARCHAR},
mkt_task = #{mktTask,jdbcType=VARCHAR},
source_plan_name = #{sourcePlanName,jdbcType=VARCHAR},
source_publishdate = #{sourcePublishdate,jdbcType=VARCHAR},
source_article = #{sourceArticle,jdbcType=VARCHAR},
wechat_no = #{wechatNo,jdbcType=VARCHAR},
other_contacts = #{otherContacts,jdbcType=VARCHAR},
age = #{age,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"findByLogin"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_customer
where login = #{mobileNo,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
0 → 100644
View file @
d485e78b
<?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.AclPractitionerMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitioner"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"insurer_id"
jdbcType=
"BIGINT"
property=
"insurerId"
/>
<result
column=
"insurer_branch_id"
jdbcType=
"BIGINT"
property=
"insurerBranchId"
/>
<result
column=
"dept_id"
jdbcType=
"BIGINT"
property=
"deptId"
/>
<result
column=
"subordinate_system_id"
jdbcType=
"BIGINT"
property=
"subordinateSystemId"
/>
<result
column=
"practitioner_code"
jdbcType=
"VARCHAR"
property=
"practitionerCode"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"mobile_no"
jdbcType=
"VARCHAR"
property=
"mobileNo"
/>
<result
column=
"id_type_id"
jdbcType=
"BIGINT"
property=
"idTypeId"
/>
<result
column=
"id_type"
jdbcType=
"VARCHAR"
property=
"idType"
/>
<result
column=
"id_no"
jdbcType=
"VARCHAR"
property=
"idNo"
/>
<result
column=
"practitioner_birthdate"
jdbcType=
"DATE"
property=
"practitionerBirthdate"
/>
<result
column=
"practitioner_reg_no"
jdbcType=
"VARCHAR"
property=
"practitionerRegNo"
/>
<result
column=
"practitioner_reg_company"
jdbcType=
"VARCHAR"
property=
"practitionerRegCompany"
/>
<result
column=
"effective_start_date"
jdbcType=
"DATE"
property=
"effectiveStartDate"
/>
<result
column=
"effective_end_date"
jdbcType=
"DATE"
property=
"effectiveEndDate"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"customer_id"
jdbcType=
"BIGINT"
property=
"customerId"
/>
<result
column=
"employee_no"
jdbcType=
"VARCHAR"
property=
"employeeNo"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
<result
column=
"province_id"
jdbcType=
"BIGINT"
property=
"provinceId"
/>
<result
column=
"province_name"
jdbcType=
"VARCHAR"
property=
"provinceName"
/>
<result
column=
"city_id"
jdbcType=
"BIGINT"
property=
"cityId"
/>
<result
column=
"city_name"
jdbcType=
"VARCHAR"
property=
"cityName"
/>
<result
column=
"cert_list"
jdbcType=
"VARCHAR"
property=
"certList"
/>
<result
column=
"bio_intro"
jdbcType=
"VARCHAR"
property=
"bioIntro"
/>
<result
column=
"wechat_id"
jdbcType=
"VARCHAR"
property=
"wechatId"
/>
<result
column=
"qq_id"
jdbcType=
"VARCHAR"
property=
"qqId"
/>
<result
column=
"is_profile_show"
jdbcType=
"INTEGER"
property=
"isProfileShow"
/>
<result
column=
"is_name_show"
jdbcType=
"INTEGER"
property=
"isNameShow"
/>
<result
column=
"is_mobile_show"
jdbcType=
"INTEGER"
property=
"isMobileShow"
/>
<result
column=
"education_level"
jdbcType=
"VARCHAR"
property=
"educationLevel"
/>
<result
column=
"mentor_id"
jdbcType=
"BIGINT"
property=
"mentorId"
/>
<result
column=
"introducer_id"
jdbcType=
"BIGINT"
property=
"introducerId"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, insurer_id, insurer_branch_id, dept_id, subordinate_system_id, practitioner_code,
`name`, mobile_no, id_type_id, id_type, id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date, effective_end_date, remark, customer_id,
employee_no, is_active, created_at, created_by, updated_at, updated_by, province_id,
province_name, city_id, city_name, cert_list, bio_intro, wechat_id, qq_id, is_profile_show,
is_name_show, is_mobile_show, education_level, mentor_id, introducer_id, gender
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_practitioner
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitioner"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner (insurer_id, insurer_branch_id, dept_id,
subordinate_system_id, practitioner_code, `name`,
mobile_no, id_type_id, id_type,
id_no, practitioner_birthdate, practitioner_reg_no,
practitioner_reg_company, effective_start_date,
effective_end_date, remark, customer_id,
employee_no, is_active, created_at,
created_by, updated_at, updated_by,
province_id, province_name, city_id,
city_name, cert_list, bio_intro,
wechat_id, qq_id, is_profile_show,
is_name_show, is_mobile_show, education_level,
mentor_id, introducer_id, gender
)
values (#{insurerId,jdbcType=BIGINT}, #{insurerBranchId,jdbcType=BIGINT}, #{deptId,jdbcType=BIGINT},
#{subordinateSystemId,jdbcType=BIGINT}, #{practitionerCode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{mobileNo,jdbcType=VARCHAR}, #{idTypeId,jdbcType=BIGINT}, #{idType,jdbcType=VARCHAR},
#{idNo,jdbcType=VARCHAR}, #{practitionerBirthdate,jdbcType=DATE}, #{practitionerRegNo,jdbcType=VARCHAR},
#{practitionerRegCompany,jdbcType=VARCHAR}, #{effectiveStartDate,jdbcType=DATE},
#{effectiveEndDate,jdbcType=DATE}, #{remark,jdbcType=VARCHAR}, #{customerId,jdbcType=BIGINT},
#{employeeNo,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP},
#{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT},
#{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR}, #{cityId,jdbcType=BIGINT},
#{cityName,jdbcType=VARCHAR}, #{certList,jdbcType=VARCHAR}, #{bioIntro,jdbcType=VARCHAR},
#{wechatId,jdbcType=VARCHAR}, #{qqId,jdbcType=VARCHAR}, #{isProfileShow,jdbcType=INTEGER},
#{isNameShow,jdbcType=INTEGER}, #{isMobileShow,jdbcType=INTEGER}, #{educationLevel,jdbcType=VARCHAR},
#{mentorId,jdbcType=BIGINT}, #{introducerId,jdbcType=BIGINT}, #{gender,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitioner"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"insurerId != null"
>
insurer_id,
</if>
<if
test=
"insurerBranchId != null"
>
insurer_branch_id,
</if>
<if
test=
"deptId != null"
>
dept_id,
</if>
<if
test=
"subordinateSystemId != null"
>
subordinate_system_id,
</if>
<if
test=
"practitionerCode != null"
>
practitioner_code,
</if>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"mobileNo != null"
>
mobile_no,
</if>
<if
test=
"idTypeId != null"
>
id_type_id,
</if>
<if
test=
"idType != null"
>
id_type,
</if>
<if
test=
"idNo != null"
>
id_no,
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate,
</if>
<if
test=
"practitionerRegNo != null"
>
practitioner_reg_no,
</if>
<if
test=
"practitionerRegCompany != null"
>
practitioner_reg_company,
</if>
<if
test=
"effectiveStartDate != null"
>
effective_start_date,
</if>
<if
test=
"effectiveEndDate != null"
>
effective_end_date,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"customerId != null"
>
customer_id,
</if>
<if
test=
"employeeNo != null"
>
employee_no,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
<if
test=
"updatedAt != null"
>
updated_at,
</if>
<if
test=
"updatedBy != null"
>
updated_by,
</if>
<if
test=
"provinceId != null"
>
province_id,
</if>
<if
test=
"provinceName != null"
>
province_name,
</if>
<if
test=
"cityId != null"
>
city_id,
</if>
<if
test=
"cityName != null"
>
city_name,
</if>
<if
test=
"certList != null"
>
cert_list,
</if>
<if
test=
"bioIntro != null"
>
bio_intro,
</if>
<if
test=
"wechatId != null"
>
wechat_id,
</if>
<if
test=
"qqId != null"
>
qq_id,
</if>
<if
test=
"isProfileShow != null"
>
is_profile_show,
</if>
<if
test=
"isNameShow != null"
>
is_name_show,
</if>
<if
test=
"isMobileShow != null"
>
is_mobile_show,
</if>
<if
test=
"educationLevel != null"
>
education_level,
</if>
<if
test=
"mentorId != null"
>
mentor_id,
</if>
<if
test=
"introducerId != null"
>
introducer_id,
</if>
<if
test=
"gender != null"
>
gender,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"insurerId != null"
>
#{insurerId,jdbcType=BIGINT},
</if>
<if
test=
"insurerBranchId != null"
>
#{insurerBranchId,jdbcType=BIGINT},
</if>
<if
test=
"deptId != null"
>
#{deptId,jdbcType=BIGINT},
</if>
<if
test=
"subordinateSystemId != null"
>
#{subordinateSystemId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerCode != null"
>
#{practitionerCode,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"mobileNo != null"
>
#{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"idTypeId != null"
>
#{idTypeId,jdbcType=BIGINT},
</if>
<if
test=
"idType != null"
>
#{idType,jdbcType=VARCHAR},
</if>
<if
test=
"idNo != null"
>
#{idNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerBirthdate != null"
>
#{practitionerBirthdate,jdbcType=DATE},
</if>
<if
test=
"practitionerRegNo != null"
>
#{practitionerRegNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegCompany != null"
>
#{practitionerRegCompany,jdbcType=VARCHAR},
</if>
<if
test=
"effectiveStartDate != null"
>
#{effectiveStartDate,jdbcType=DATE},
</if>
<if
test=
"effectiveEndDate != null"
>
#{effectiveEndDate,jdbcType=DATE},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"customerId != null"
>
#{customerId,jdbcType=BIGINT},
</if>
<if
test=
"employeeNo != null"
>
#{employeeNo,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"provinceId != null"
>
#{provinceId,jdbcType=BIGINT},
</if>
<if
test=
"provinceName != null"
>
#{provinceName,jdbcType=VARCHAR},
</if>
<if
test=
"cityId != null"
>
#{cityId,jdbcType=BIGINT},
</if>
<if
test=
"cityName != null"
>
#{cityName,jdbcType=VARCHAR},
</if>
<if
test=
"certList != null"
>
#{certList,jdbcType=VARCHAR},
</if>
<if
test=
"bioIntro != null"
>
#{bioIntro,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
#{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"qqId != null"
>
#{qqId,jdbcType=VARCHAR},
</if>
<if
test=
"isProfileShow != null"
>
#{isProfileShow,jdbcType=INTEGER},
</if>
<if
test=
"isNameShow != null"
>
#{isNameShow,jdbcType=INTEGER},
</if>
<if
test=
"isMobileShow != null"
>
#{isMobileShow,jdbcType=INTEGER},
</if>
<if
test=
"educationLevel != null"
>
#{educationLevel,jdbcType=VARCHAR},
</if>
<if
test=
"mentorId != null"
>
#{mentorId,jdbcType=BIGINT},
</if>
<if
test=
"introducerId != null"
>
#{introducerId,jdbcType=BIGINT},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclPractitioner"
>
update ag_acl_practitioner
<set>
<if
test=
"insurerId != null"
>
insurer_id = #{insurerId,jdbcType=BIGINT},
</if>
<if
test=
"insurerBranchId != null"
>
insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT},
</if>
<if
test=
"deptId != null"
>
dept_id = #{deptId,jdbcType=BIGINT},
</if>
<if
test=
"subordinateSystemId != null"
>
subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerCode != null"
>
practitioner_code = #{practitionerCode,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"mobileNo != null"
>
mobile_no = #{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"idTypeId != null"
>
id_type_id = #{idTypeId,jdbcType=BIGINT},
</if>
<if
test=
"idType != null"
>
id_type = #{idType,jdbcType=VARCHAR},
</if>
<if
test=
"idNo != null"
>
id_no = #{idNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerBirthdate != null"
>
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
</if>
<if
test=
"practitionerRegNo != null"
>
practitioner_reg_no = #{practitionerRegNo,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerRegCompany != null"
>
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
</if>
<if
test=
"effectiveStartDate != null"
>
effective_start_date = #{effectiveStartDate,jdbcType=DATE},
</if>
<if
test=
"effectiveEndDate != null"
>
effective_end_date = #{effectiveEndDate,jdbcType=DATE},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId,jdbcType=BIGINT},
</if>
<if
test=
"employeeNo != null"
>
employee_no = #{employeeNo,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if
test=
"updatedAt != null"
>
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"provinceId != null"
>
province_id = #{provinceId,jdbcType=BIGINT},
</if>
<if
test=
"provinceName != null"
>
province_name = #{provinceName,jdbcType=VARCHAR},
</if>
<if
test=
"cityId != null"
>
city_id = #{cityId,jdbcType=BIGINT},
</if>
<if
test=
"cityName != null"
>
city_name = #{cityName,jdbcType=VARCHAR},
</if>
<if
test=
"certList != null"
>
cert_list = #{certList,jdbcType=VARCHAR},
</if>
<if
test=
"bioIntro != null"
>
bio_intro = #{bioIntro,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"qqId != null"
>
qq_id = #{qqId,jdbcType=VARCHAR},
</if>
<if
test=
"isProfileShow != null"
>
is_profile_show = #{isProfileShow,jdbcType=INTEGER},
</if>
<if
test=
"isNameShow != null"
>
is_name_show = #{isNameShow,jdbcType=INTEGER},
</if>
<if
test=
"isMobileShow != null"
>
is_mobile_show = #{isMobileShow,jdbcType=INTEGER},
</if>
<if
test=
"educationLevel != null"
>
education_level = #{educationLevel,jdbcType=VARCHAR},
</if>
<if
test=
"mentorId != null"
>
mentor_id = #{mentorId,jdbcType=BIGINT},
</if>
<if
test=
"introducerId != null"
>
introducer_id = #{introducerId,jdbcType=BIGINT},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitioner"
>
update ag_acl_practitioner
set insurer_id = #{insurerId,jdbcType=BIGINT},
insurer_branch_id = #{insurerBranchId,jdbcType=BIGINT},
dept_id = #{deptId,jdbcType=BIGINT},
subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT},
practitioner_code = #{practitionerCode,jdbcType=VARCHAR},
`name` = #{name,jdbcType=VARCHAR},
mobile_no = #{mobileNo,jdbcType=VARCHAR},
id_type_id = #{idTypeId,jdbcType=BIGINT},
id_type = #{idType,jdbcType=VARCHAR},
id_no = #{idNo,jdbcType=VARCHAR},
practitioner_birthdate = #{practitionerBirthdate,jdbcType=DATE},
practitioner_reg_no = #{practitionerRegNo,jdbcType=VARCHAR},
practitioner_reg_company = #{practitionerRegCompany,jdbcType=VARCHAR},
effective_start_date = #{effectiveStartDate,jdbcType=DATE},
effective_end_date = #{effectiveEndDate,jdbcType=DATE},
remark = #{remark,jdbcType=VARCHAR},
customer_id = #{customerId,jdbcType=BIGINT},
employee_no = #{employeeNo,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT},
province_id = #{provinceId,jdbcType=BIGINT},
province_name = #{provinceName,jdbcType=VARCHAR},
city_id = #{cityId,jdbcType=BIGINT},
city_name = #{cityName,jdbcType=VARCHAR},
cert_list = #{certList,jdbcType=VARCHAR},
bio_intro = #{bioIntro,jdbcType=VARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
qq_id = #{qqId,jdbcType=VARCHAR},
is_profile_show = #{isProfileShow,jdbcType=INTEGER},
is_name_show = #{isNameShow,jdbcType=INTEGER},
is_mobile_show = #{isMobileShow,jdbcType=INTEGER},
education_level = #{educationLevel,jdbcType=VARCHAR},
mentor_id = #{mentorId,jdbcType=BIGINT},
introducer_id = #{introducerId,jdbcType=BIGINT},
gender = #{gender,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerPotentialAssignedTrackMapper.xml
0 → 100644
View file @
d485e78b
<?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.AclPractitionerPotentialAssignedTrackMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerPotentialAssignedTrack"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"practitioner_potential_id"
jdbcType=
"BIGINT"
property=
"practitionerPotentialId"
/>
<result
column=
"practitioner_assigned_id"
jdbcType=
"BIGINT"
property=
"practitionerAssignedId"
/>
<result
column=
"track_status_id"
jdbcType=
"BIGINT"
property=
"trackStatusId"
/>
<result
column=
"notice"
jdbcType=
"VARCHAR"
property=
"notice"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
<result
column=
"updator_type"
jdbcType=
"INTEGER"
property=
"updatorType"
/>
<result
column=
"creator_type"
jdbcType=
"INTEGER"
property=
"creatorType"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, practitioner_potential_id, practitioner_assigned_id, track_status_id, notice,
is_active, created_at, created_by, updated_at, updated_by, creator_type, updator_type
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_potential_assigned_track
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_practitioner_potential_assigned_track
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerPotentialAssignedTrack"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner_potential_assigned_track (practitioner_potential_id, practitioner_assigned_id,
track_status_id, notice, is_active,
created_at, created_by, updated_at,
updated_by, updator_type,creator_type )
values (#{practitionerPotentialId,jdbcType=BIGINT}, #{practitionerAssignedId,jdbcType=BIGINT},
#{trackStatusId,jdbcType=BIGINT}, #{notice,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT},#{updatorType,jdbcType=INTEGER}, #{creatorType,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerPotentialAssignedTrack"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner_potential_assigned_track
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"practitionerPotentialId != null"
>
practitioner_potential_id,
</if>
<if
test=
"practitionerAssignedId != null"
>
practitioner_assigned_id,
</if>
<if
test=
"trackStatusId != null"
>
track_status_id,
</if>
<if
test=
"notice != null"
>
notice,
</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=
"practitionerAssignedId != null"
>
#{practitionerAssignedId,jdbcType=BIGINT},
</if>
<if
test=
"trackStatusId != null"
>
#{trackStatusId,jdbcType=BIGINT},
</if>
<if
test=
"notice != null"
>
#{notice,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.AclPractitionerPotentialAssignedTrack"
>
update ag_acl_practitioner_potential_assigned_track
<set>
<if
test=
"practitionerPotentialId != null"
>
practitioner_potential_id = #{practitionerPotentialId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerAssignedId != null"
>
practitioner_assigned_id = #{practitionerAssignedId,jdbcType=BIGINT},
</if>
<if
test=
"trackStatusId != null"
>
track_status_id = #{trackStatusId,jdbcType=BIGINT},
</if>
<if
test=
"notice != null"
>
notice = #{notice,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.AclPractitionerPotentialAssignedTrack"
>
update ag_acl_practitioner_potential_assigned_track
set practitioner_potential_id = #{practitionerPotentialId,jdbcType=BIGINT},
practitioner_assigned_id = #{practitionerAssignedId,jdbcType=BIGINT},
track_status_id = #{trackStatusId,jdbcType=BIGINT},
notice = #{notice,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>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/customer/AclPractitionerPotentialMapper.xml
0 → 100644
View file @
d485e78b
<?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.AclPractitionerPotentialMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclPractitionerPotential"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"age"
jdbcType=
"BIGINT"
property=
"age"
/>
<result
column=
"customer_id"
jdbcType=
"BIGINT"
property=
"customerId"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
<result
column=
"mobile_no"
jdbcType=
"VARCHAR"
property=
"mobileNo"
/>
<result
column=
"wechat_id"
jdbcType=
"VARCHAR"
property=
"wechatId"
/>
<result
column=
"qq_id"
jdbcType=
"VARCHAR"
property=
"qqId"
/>
<result
column=
"others_contacts"
jdbcType=
"VARCHAR"
property=
"othersContacts"
/>
<result
column=
"education_level"
jdbcType=
"VARCHAR"
property=
"educationLevel"
/>
<result
column=
"introducer"
jdbcType=
"VARCHAR"
property=
"introducer"
/>
<result
column=
"tag"
jdbcType=
"VARCHAR"
property=
"tag"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"resource_drop_master_id"
jdbcType=
"BIGINT"
property=
"resourceDropMasterId"
/>
<result
column=
"oss_path_resume"
jdbcType=
"VARCHAR"
property=
"ossPathResume"
/>
<result
column=
"practitioner_assigned_ids"
jdbcType=
"VARCHAR"
property=
"practitionerAssignedIds"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
<result
column=
"creator_type"
jdbcType=
"BIGINT"
property=
"creatorType"
/>
<result
column=
"updator_type"
jdbcType=
"BIGINT"
property=
"updatorType"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, customer_id,`name`, age, gender, mobile_no, wechat_id, qq_id, others_contacts, education_level,
introducer, tag, remark, resource_drop_master_id, oss_path_resume, practitioner_assigned_ids,
is_active, created_at, created_by, updated_at, updated_by,creator_type,updator_type
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_potential
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ag_acl_practitioner_potential
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerPotential"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner_potential (`name`,customer_id, age, gender,
mobile_no, wechat_id, qq_id,
others_contacts, education_level, introducer,
tag, remark, resource_drop_master_id,
oss_path_resume, practitioner_assigned_ids, is_active,
created_at, created_by, updated_at,
updated_by)
values (#{name,jdbcType=VARCHAR},#{customerId,jdbcType=BIGINT}, #{age,jdbcType=BIGINT}, #{gender,jdbcType=INTEGER},
#{mobileNo,jdbcType=VARCHAR}, #{wechatId,jdbcType=VARCHAR}, #{qqId,jdbcType=VARCHAR},
#{othersContacts,jdbcType=VARCHAR}, #{educationLevel,jdbcType=VARCHAR}, #{introducer,jdbcType=VARCHAR},
#{tag,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{resourceDropMasterId,jdbcType=BIGINT},
#{ossPathResume,jdbcType=VARCHAR}, #{practitionerAssignedIds,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.AclPractitionerPotential"
useGeneratedKeys=
"true"
>
insert into ag_acl_practitioner_potential
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
`name`,
</if>
<if
test=
"age != null"
>
age,
</if>
<if
test=
"gender != null"
>
gender,
</if>
<if
test=
"mobileNo != null"
>
mobile_no,
</if>
<if
test=
"wechatId != null"
>
wechat_id,
</if>
<if
test=
"qqId != null"
>
qq_id,
</if>
<if
test=
"othersContacts != null"
>
others_contacts,
</if>
<if
test=
"educationLevel != null"
>
education_level,
</if>
<if
test=
"introducer != null"
>
introducer,
</if>
<if
test=
"tag != null"
>
tag,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"resourceDropMasterId != null"
>
resource_drop_master_id,
</if>
<if
test=
"ossPathResume != null"
>
oss_path_resume,
</if>
<if
test=
"practitionerAssignedIds != null"
>
practitioner_assigned_ids,
</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=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"age != null"
>
#{age,jdbcType=BIGINT},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
<if
test=
"mobileNo != null"
>
#{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
#{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"qqId != null"
>
#{qqId,jdbcType=VARCHAR},
</if>
<if
test=
"othersContacts != null"
>
#{othersContacts,jdbcType=VARCHAR},
</if>
<if
test=
"educationLevel != null"
>
#{educationLevel,jdbcType=VARCHAR},
</if>
<if
test=
"introducer != null"
>
#{introducer,jdbcType=VARCHAR},
</if>
<if
test=
"tag != null"
>
#{tag,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
</if>
<if
test=
"resourceDropMasterId != null"
>
#{resourceDropMasterId,jdbcType=BIGINT},
</if>
<if
test=
"ossPathResume != null"
>
#{ossPathResume,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerAssignedIds != null"
>
#{practitionerAssignedIds,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.AclPractitionerPotential"
>
update ag_acl_practitioner_potential
<set>
<if
test=
"name != null"
>
`name` = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"age != null"
>
age = #{age,jdbcType=BIGINT},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
<if
test=
"mobileNo != null"
>
mobile_no = #{mobileNo,jdbcType=VARCHAR},
</if>
<if
test=
"wechatId != null"
>
wechat_id = #{wechatId,jdbcType=VARCHAR},
</if>
<if
test=
"qqId != null"
>
qq_id = #{qqId,jdbcType=VARCHAR},
</if>
<if
test=
"othersContacts != null"
>
others_contacts = #{othersContacts,jdbcType=VARCHAR},
</if>
<if
test=
"educationLevel != null"
>
education_level = #{educationLevel,jdbcType=VARCHAR},
</if>
<if
test=
"introducer != null"
>
introducer = #{introducer,jdbcType=VARCHAR},
</if>
<if
test=
"tag != null"
>
tag = #{tag,jdbcType=VARCHAR},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
</if>
<if
test=
"resourceDropMasterId != null"
>
resource_drop_master_id = #{resourceDropMasterId,jdbcType=BIGINT},
</if>
<if
test=
"ossPathResume != null"
>
oss_path_resume = #{ossPathResume,jdbcType=VARCHAR},
</if>
<if
test=
"practitionerAssignedId != null"
>
practitioner_assigned_ids = #{practitionerAssignedIds,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.AclPractitionerPotential"
>
update ag_acl_practitioner_potential
set `name` = #{name,jdbcType=VARCHAR},
age = #{age,jdbcType=BIGINT},
gender = #{gender,jdbcType=INTEGER},
mobile_no = #{mobileNo,jdbcType=VARCHAR},
wechat_id = #{wechatId,jdbcType=VARCHAR},
qq_id = #{qqId,jdbcType=VARCHAR},
others_contacts = #{othersContacts,jdbcType=VARCHAR},
education_level = #{educationLevel,jdbcType=VARCHAR},
introducer = #{introducer,jdbcType=VARCHAR},
tag = #{tag,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
resource_drop_master_id = #{resourceDropMasterId,jdbcType=BIGINT},
oss_path_resume = #{ossPathResume,jdbcType=VARCHAR},
practitioner_assigned_ids = #{practitionerAssignedIds,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>
<select
id=
"findByMobileNo"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner_potential
where mobile_no = #{mobileNo,jdbcType=VARCHAR}
and is_active = #{isActive,jdbcType=INTEGER}
</select>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/practitioner/AclPractitionerMapper.xml
View file @
d485e78b
...
@@ -487,4 +487,11 @@
...
@@ -487,4 +487,11 @@
gender = #{gender,jdbcType=INTEGER}
gender = #{gender,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<select
id=
"findByCustomerIdIsActive"
resultType=
"com.yd.dal.entity.customer.AclPractitioner"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_practitioner
where customer_id = #{customerId,jdbcType=BIGINT}
and is_active = #{isActive,jdbcType=INTEGER}
</select>
</mapper>
</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