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
e9891e37
Commit
e9891e37
authored
Apr 13, 2021
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加-文章分享,客户痕迹
parent
47fc6fd3
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
1479 additions
and
0 deletions
+1479
-0
yd-api/src/main/java/com/yd/api/practitioner/PractitionerArticleController.java
+39
-0
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerArticleService.java
+12
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerArticleServiceImpl.java
+61
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/ArticleTrackSaveResponseVO.java
+26
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/article/ArticleShareCodeSaveRequestVO.java
+97
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/article/ArticleShareCodeSaveResponseVO.java
+26
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/article/ArticleTrackSaveRequestVO.java
+213
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomerObjectShare.java
+204
-0
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomerObjectShareTrack.java
+237
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerObjectShareMapper.java
+18
-0
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerObjectShareTrackMapper.java
+18
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerObjectShareDALService.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerObjectShareTrackDALService.java
+9
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerObjectShareDALServiceImpl.java
+21
-0
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerObjectShareTrackDALServiceImpl.java
+25
-0
yd-api/src/main/resources/mapper/customer/AclCustomerObjectShareMapper.xml
+216
-0
yd-api/src/main/resources/mapper/customer/AclCustomerObjectShareTrackMapper.xml
+250
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/PractitionerArticleController.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
;
import
com.yd.api.practitioner.service.PractitionerArticleService
;
import
com.yd.api.practitioner.vo.ArticleTrackSaveResponseVO
;
import
com.yd.api.practitioner.vo.article.ArticleShareCodeSaveRequestVO
;
import
com.yd.api.practitioner.vo.article.ArticleShareCodeSaveResponseVO
;
import
com.yd.api.practitioner.vo.article.ArticleTrackSaveRequestVO
;
import
com.yd.api.result.JsonResult
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
@RestController
@RequestMapping
(
"/practitionerArticle"
)
public
class
PractitionerArticleController
{
@Autowired
private
PractitionerArticleService
practitionerArticleService
;
@RequestMapping
(
"/articleShareCodeSave"
)
public
Object
articleShareCodeSave
(
@RequestBody
ArticleShareCodeSaveRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
ArticleShareCodeSaveResponseVO
responseVO
=
practitionerArticleService
.
articleShareCodeSave
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
}
@RequestMapping
(
"/articleTrackSave"
)
public
Object
articleTrackSave
(
@RequestBody
ArticleTrackSaveRequestVO
requestVO
){
JsonResult
result
=
new
JsonResult
();
ArticleTrackSaveResponseVO
responseVO
=
practitionerArticleService
.
articleTrackSave
(
requestVO
);
result
.
addResult
(
responseVO
);
result
.
setData
(
responseVO
);
return
result
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/service/PractitionerArticleService.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
.
service
;
import
com.yd.api.practitioner.vo.ArticleTrackSaveResponseVO
;
import
com.yd.api.practitioner.vo.article.ArticleShareCodeSaveRequestVO
;
import
com.yd.api.practitioner.vo.article.ArticleShareCodeSaveResponseVO
;
import
com.yd.api.practitioner.vo.article.ArticleTrackSaveRequestVO
;
public
interface
PractitionerArticleService
{
ArticleShareCodeSaveResponseVO
articleShareCodeSave
(
ArticleShareCodeSaveRequestVO
requestVO
);
ArticleTrackSaveResponseVO
articleTrackSave
(
ArticleTrackSaveRequestVO
requestVO
);
}
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerArticleServiceImpl.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
.
service
.
impl
;
import
com.yd.api.practitioner.service.PractitionerArticleService
;
import
com.yd.api.practitioner.vo.ArticleTrackSaveResponseVO
;
import
com.yd.api.practitioner.vo.article.ArticleShareCodeSaveRequestVO
;
import
com.yd.api.practitioner.vo.article.ArticleShareCodeSaveResponseVO
;
import
com.yd.api.practitioner.vo.article.ArticleTrackSaveRequestVO
;
import
com.yd.api.result.CommonResult
;
import
com.yd.dal.entity.customer.AclCustomerObjectShare
;
import
com.yd.dal.entity.customer.AclCustomerObjectShareTrack
;
import
com.yd.dal.service.customer.AclCustomerObjectShareDALService
;
import
com.yd.dal.service.customer.AclCustomerObjectShareTrackDALService
;
import
com.yd.util.CommonUtil
;
import
com.yd.util.config.ZHBErrorConfig
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
@Service
(
"practitionerArticleService"
)
public
class
PractitionerArticleServiceImpl
implements
PractitionerArticleService
{
@Autowired
private
AclCustomerObjectShareDALService
aclCustomerObjectShareDALService
;
@Autowired
private
AclCustomerObjectShareTrackDALService
aclCustomerObjectShareTrackDALService
;
@Override
public
ArticleShareCodeSaveResponseVO
articleShareCodeSave
(
ArticleShareCodeSaveRequestVO
requestVO
)
{
ArticleShareCodeSaveResponseVO
responseVO
=
new
ArticleShareCodeSaveResponseVO
();
AclCustomerObjectShare
objectShare
=
new
AclCustomerObjectShare
();
BeanUtils
.
copyProperties
(
requestVO
,
objectShare
);
objectShare
.
setItemType
(
1
);
objectShare
.
setCreatedAt
(
new
Date
());
objectShare
.
setCreatedBy
(-
1L
);
Long
id
=
aclCustomerObjectShareDALService
.
save
(
objectShare
);
responseVO
.
setId
(
id
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
return
responseVO
;
}
@Override
public
ArticleTrackSaveResponseVO
articleTrackSave
(
ArticleTrackSaveRequestVO
requestVO
)
{
ArticleTrackSaveResponseVO
responseVO
=
new
ArticleTrackSaveResponseVO
();
AclCustomerObjectShareTrack
shareTrack
=
new
AclCustomerObjectShareTrack
();
BeanUtils
.
copyProperties
(
requestVO
,
shareTrack
);
shareTrack
.
setCreatedAt
(
new
Date
());
shareTrack
.
setCreatedBy
(-
1L
);
Long
id
=
requestVO
.
getId
();
if
(
CommonUtil
.
isNullOrZero
(
id
)){
shareTrack
.
setTrackInTime
(
CommonUtil
.
stringParseDate
(
requestVO
.
getTrackInTime
(),
"yyyy-MM-dd HH:mm:ss"
));
id
=
aclCustomerObjectShareTrackDALService
.
save
(
shareTrack
);
}
else
{
shareTrack
.
setTrackOutTime
(
CommonUtil
.
stringParseDate
(
requestVO
.
getTrackOutTime
(),
"yyyy-MM-dd HH:mm:ss"
));
aclCustomerObjectShareTrackDALService
.
update
(
shareTrack
);
}
responseVO
.
setId
(
id
);
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
return
responseVO
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/ArticleTrackSaveResponseVO.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
.
vo
;
import
com.yd.api.result.CommonResult
;
public
class
ArticleTrackSaveResponseVO
{
private
Long
id
;
private
CommonResult
commonResult
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/article/ArticleShareCodeSaveRequestVO.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
.
vo
.
article
;
import
java.util.Date
;
public
class
ArticleShareCodeSaveRequestVO
{
/**
* 分类类别id
*/
private
Long
itemId
;
/**
* 经纪人ID
*/
private
Long
practitionerId
;
/**
* 分享码
*/
private
String
shareCode
;
/**
* FK ag_acl_customer.id
*/
private
Long
customerId
;
/**
* 1. ios, 2.android 3.windows 4. mac os 5. Linux 6. other
*/
private
Integer
os
;
/**
* 1. wechat 2. wechat friend 3.QQ 4. QZone 5.weibo
*/
private
Integer
channel
;
/**
* entire url of shared link
*/
private
String
url
;
public
Long
getItemId
()
{
return
itemId
;
}
public
void
setItemId
(
Long
itemId
)
{
this
.
itemId
=
itemId
;
}
public
Long
getPractitionerId
()
{
return
practitionerId
;
}
public
void
setPractitionerId
(
Long
practitionerId
)
{
this
.
practitionerId
=
practitionerId
;
}
public
String
getShareCode
()
{
return
shareCode
;
}
public
void
setShareCode
(
String
shareCode
)
{
this
.
shareCode
=
shareCode
;
}
public
Long
getCustomerId
()
{
return
customerId
;
}
public
void
setCustomerId
(
Long
customerId
)
{
this
.
customerId
=
customerId
;
}
public
Integer
getOs
()
{
return
os
;
}
public
void
setOs
(
Integer
os
)
{
this
.
os
=
os
;
}
public
Integer
getChannel
()
{
return
channel
;
}
public
void
setChannel
(
Integer
channel
)
{
this
.
channel
=
channel
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/article/ArticleShareCodeSaveResponseVO.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
.
vo
.
article
;
import
com.yd.api.result.CommonResult
;
public
class
ArticleShareCodeSaveResponseVO
{
private
Long
id
;
private
CommonResult
commonResult
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
CommonResult
getCommonResult
()
{
return
commonResult
;
}
public
void
setCommonResult
(
CommonResult
commonResult
)
{
this
.
commonResult
=
commonResult
;
}
}
yd-api/src/main/java/com/yd/api/practitioner/vo/article/ArticleTrackSaveRequestVO.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
api
.
practitioner
.
vo
.
article
;
import
java.util.Date
;
public
class
ArticleTrackSaveRequestVO
{
/**
* serial id
*/
private
Long
id
;
/**
* 分享ID FK ag_acl_customer_object_share.id
*/
private
Long
shareId
;
/**
* 分享码 FK ag_acl_customer_object_share.share_code
*/
private
String
shareCode
;
/**
* 微信昵称
*/
private
String
nickname
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
/**
* 微信头像
*/
private
String
imagePath
;
/**
* 跟踪开始时间
*/
private
String
trackInTime
;
/**
* 跟踪结束时间
*/
private
String
trackOutTime
;
/**
* 地域
*/
private
String
region
;
/**
* 来源
*/
private
String
sourceFrom
;
/**
* 入口页面
*/
private
String
entryPage
;
/**
* 访问功能ID
*/
private
String
buttonId
;
/**
* 锚点ID
*/
private
String
anchorId
;
/**
* 行为动作类型enter、close、buttonclick
*/
private
String
actionType
;
/**
* 设备类型
*/
private
String
deviceType
;
/**
* 访问IP
*/
private
String
ipAddress
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getShareId
()
{
return
shareId
;
}
public
void
setShareId
(
Long
shareId
)
{
this
.
shareId
=
shareId
;
}
public
String
getShareCode
()
{
return
shareCode
;
}
public
void
setShareCode
(
String
shareCode
)
{
this
.
shareCode
=
shareCode
;
}
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
public
Integer
getGender
()
{
return
gender
;
}
public
void
setGender
(
Integer
gender
)
{
this
.
gender
=
gender
;
}
public
String
getImagePath
()
{
return
imagePath
;
}
public
void
setImagePath
(
String
imagePath
)
{
this
.
imagePath
=
imagePath
;
}
public
String
getTrackInTime
()
{
return
trackInTime
;
}
public
void
setTrackInTime
(
String
trackInTime
)
{
this
.
trackInTime
=
trackInTime
;
}
public
String
getTrackOutTime
()
{
return
trackOutTime
;
}
public
void
setTrackOutTime
(
String
trackOutTime
)
{
this
.
trackOutTime
=
trackOutTime
;
}
public
String
getRegion
()
{
return
region
;
}
public
void
setRegion
(
String
region
)
{
this
.
region
=
region
;
}
public
String
getSourceFrom
()
{
return
sourceFrom
;
}
public
void
setSourceFrom
(
String
sourceFrom
)
{
this
.
sourceFrom
=
sourceFrom
;
}
public
String
getEntryPage
()
{
return
entryPage
;
}
public
void
setEntryPage
(
String
entryPage
)
{
this
.
entryPage
=
entryPage
;
}
public
String
getButtonId
()
{
return
buttonId
;
}
public
void
setButtonId
(
String
buttonId
)
{
this
.
buttonId
=
buttonId
;
}
public
String
getAnchorId
()
{
return
anchorId
;
}
public
void
setAnchorId
(
String
anchorId
)
{
this
.
anchorId
=
anchorId
;
}
public
String
getActionType
()
{
return
actionType
;
}
public
void
setActionType
(
String
actionType
)
{
this
.
actionType
=
actionType
;
}
public
String
getDeviceType
()
{
return
deviceType
;
}
public
void
setDeviceType
(
String
deviceType
)
{
this
.
deviceType
=
deviceType
;
}
public
String
getIpAddress
()
{
return
ipAddress
;
}
public
void
setIpAddress
(
String
ipAddress
)
{
this
.
ipAddress
=
ipAddress
;
}
}
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomerObjectShare.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
/**
* customer object share record = referral record
*/
public
class
AclCustomerObjectShare
{
/**
* serial id
*/
private
Long
id
;
/**
* 分享分类 1-文章 2-其他
*/
private
Integer
itemType
;
/**
* 分类类别id
*/
private
Long
itemId
;
/**
* 经纪人ID
*/
private
Long
practitionerId
;
/**
* 分享码
*/
private
String
shareCode
;
/**
* FK ag_acl_customer.id
*/
private
Long
customerId
;
/**
* 1. ios, 2.android 3.windows 4. mac os 5. Linux 6. other
*/
private
Integer
os
;
/**
* 1. wechat 2. wechat friend 3.QQ 4. QZone 5.weibo
*/
private
Integer
channel
;
/**
* entire url of shared link
*/
private
String
url
;
/**
* 参数过多直接存参数的JSON字符串
*/
private
String
jsonParams
;
/**
* 存试算结果的JSON字符串tableRateDetails
*/
private
String
jsonParamsCoverageInfo
;
/**
* 创建时间
*/
private
Date
createdAt
;
/**
* 创建人
*/
private
Long
createdBy
;
/**
* 修改时间
*/
private
Date
updatedAt
;
/**
* 修改人
*/
private
Long
updatedBy
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Integer
getItemType
()
{
return
itemType
;
}
public
void
setItemType
(
Integer
itemType
)
{
this
.
itemType
=
itemType
;
}
public
Long
getItemId
()
{
return
itemId
;
}
public
void
setItemId
(
Long
itemId
)
{
this
.
itemId
=
itemId
;
}
public
Long
getPractitionerId
()
{
return
practitionerId
;
}
public
void
setPractitionerId
(
Long
practitionerId
)
{
this
.
practitionerId
=
practitionerId
;
}
public
String
getShareCode
()
{
return
shareCode
;
}
public
void
setShareCode
(
String
shareCode
)
{
this
.
shareCode
=
shareCode
;
}
public
Long
getCustomerId
()
{
return
customerId
;
}
public
void
setCustomerId
(
Long
customerId
)
{
this
.
customerId
=
customerId
;
}
public
Integer
getOs
()
{
return
os
;
}
public
void
setOs
(
Integer
os
)
{
this
.
os
=
os
;
}
public
Integer
getChannel
()
{
return
channel
;
}
public
void
setChannel
(
Integer
channel
)
{
this
.
channel
=
channel
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getJsonParams
()
{
return
jsonParams
;
}
public
void
setJsonParams
(
String
jsonParams
)
{
this
.
jsonParams
=
jsonParams
;
}
public
String
getJsonParamsCoverageInfo
()
{
return
jsonParamsCoverageInfo
;
}
public
void
setJsonParamsCoverageInfo
(
String
jsonParamsCoverageInfo
)
{
this
.
jsonParamsCoverageInfo
=
jsonParamsCoverageInfo
;
}
public
Date
getCreatedAt
()
{
return
createdAt
;
}
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
public
Long
getCreatedBy
()
{
return
createdBy
;
}
public
void
setCreatedBy
(
Long
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
public
Date
getUpdatedAt
()
{
return
updatedAt
;
}
public
void
setUpdatedAt
(
Date
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
}
public
Long
getUpdatedBy
()
{
return
updatedBy
;
}
public
void
setUpdatedBy
(
Long
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/entity/customer/AclCustomerObjectShareTrack.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
entity
.
customer
;
import
java.util.Date
;
/**
* 用户浏览分享跟踪表
*/
public
class
AclCustomerObjectShareTrack
{
/**
* serial id
*/
private
Long
id
;
/**
* 分享ID FK ag_acl_customer_object_share.id
*/
private
Long
shareId
;
/**
* 分享码 FK ag_acl_customer_object_share.share_code
*/
private
String
shareCode
;
/**
* 微信昵称
*/
private
String
nickname
;
/**
* 1=Male, 2=Female
*/
private
Integer
gender
;
/**
* 微信头像
*/
private
String
imagePath
;
/**
* 跟踪开始时间
*/
private
Date
trackInTime
;
/**
* 跟踪结束时间
*/
private
Date
trackOutTime
;
/**
* 地域
*/
private
String
region
;
/**
* 来源
*/
private
String
sourceFrom
;
/**
* 入口页面
*/
private
String
entryPage
;
/**
* 访问功能ID
*/
private
String
buttonId
;
/**
* 锚点ID
*/
private
String
anchorId
;
/**
* 行为动作类型enter、close、buttonclick
*/
private
String
actionType
;
/**
* 设备类型
*/
private
String
deviceType
;
/**
* 访问IP
*/
private
String
ipAddress
;
private
Date
createdAt
;
private
Long
createdBy
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getShareId
()
{
return
shareId
;
}
public
void
setShareId
(
Long
shareId
)
{
this
.
shareId
=
shareId
;
}
public
String
getShareCode
()
{
return
shareCode
;
}
public
void
setShareCode
(
String
shareCode
)
{
this
.
shareCode
=
shareCode
;
}
public
String
getNickname
()
{
return
nickname
;
}
public
void
setNickname
(
String
nickname
)
{
this
.
nickname
=
nickname
;
}
public
Integer
getGender
()
{
return
gender
;
}
public
void
setGender
(
Integer
gender
)
{
this
.
gender
=
gender
;
}
public
String
getImagePath
()
{
return
imagePath
;
}
public
void
setImagePath
(
String
imagePath
)
{
this
.
imagePath
=
imagePath
;
}
public
Date
getTrackInTime
()
{
return
trackInTime
;
}
public
void
setTrackInTime
(
Date
trackInTime
)
{
this
.
trackInTime
=
trackInTime
;
}
public
Date
getTrackOutTime
()
{
return
trackOutTime
;
}
public
void
setTrackOutTime
(
Date
trackOutTime
)
{
this
.
trackOutTime
=
trackOutTime
;
}
public
String
getRegion
()
{
return
region
;
}
public
void
setRegion
(
String
region
)
{
this
.
region
=
region
;
}
public
String
getSourceFrom
()
{
return
sourceFrom
;
}
public
void
setSourceFrom
(
String
sourceFrom
)
{
this
.
sourceFrom
=
sourceFrom
;
}
public
String
getEntryPage
()
{
return
entryPage
;
}
public
void
setEntryPage
(
String
entryPage
)
{
this
.
entryPage
=
entryPage
;
}
public
String
getButtonId
()
{
return
buttonId
;
}
public
void
setButtonId
(
String
buttonId
)
{
this
.
buttonId
=
buttonId
;
}
public
String
getAnchorId
()
{
return
anchorId
;
}
public
void
setAnchorId
(
String
anchorId
)
{
this
.
anchorId
=
anchorId
;
}
public
String
getActionType
()
{
return
actionType
;
}
public
void
setActionType
(
String
actionType
)
{
this
.
actionType
=
actionType
;
}
public
String
getDeviceType
()
{
return
deviceType
;
}
public
void
setDeviceType
(
String
deviceType
)
{
this
.
deviceType
=
deviceType
;
}
public
String
getIpAddress
()
{
return
ipAddress
;
}
public
void
setIpAddress
(
String
ipAddress
)
{
this
.
ipAddress
=
ipAddress
;
}
public
Date
getCreatedAt
()
{
return
createdAt
;
}
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
public
Long
getCreatedBy
()
{
return
createdBy
;
}
public
void
setCreatedBy
(
Long
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerObjectShareMapper.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclCustomerObjectShare
;
public
interface
AclCustomerObjectShareMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclCustomerObjectShare
record
);
int
insertSelective
(
AclCustomerObjectShare
record
);
AclCustomerObjectShare
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclCustomerObjectShare
record
);
int
updateByPrimaryKey
(
AclCustomerObjectShare
record
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/customer/AclCustomerObjectShareTrackMapper.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
mapper
.
customer
;
import
com.yd.dal.entity.customer.AclCustomerObjectShareTrack
;
public
interface
AclCustomerObjectShareTrackMapper
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
AclCustomerObjectShareTrack
record
);
int
insertSelective
(
AclCustomerObjectShareTrack
record
);
AclCustomerObjectShareTrack
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
AclCustomerObjectShareTrack
record
);
int
updateByPrimaryKey
(
AclCustomerObjectShareTrack
record
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerObjectShareDALService.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclCustomerObjectShare
;
public
interface
AclCustomerObjectShareDALService
{
Long
save
(
AclCustomerObjectShare
objectShare
);
}
yd-api/src/main/java/com/yd/dal/service/customer/AclCustomerObjectShareTrackDALService.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
service
.
customer
;
import
com.yd.dal.entity.customer.AclCustomerObjectShareTrack
;
public
interface
AclCustomerObjectShareTrackDALService
{
Long
save
(
AclCustomerObjectShareTrack
shareTrack
);
void
update
(
AclCustomerObjectShareTrack
shareTrack
);
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerObjectShareDALServiceImpl.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclCustomerObjectShare
;
import
com.yd.dal.mapper.customer.AclCustomerMembershipMapper
;
import
com.yd.dal.mapper.customer.AclCustomerObjectShareMapper
;
import
com.yd.dal.service.customer.AclCustomerObjectShareDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclCustomerObjectShareDALService"
)
public
class
AclCustomerObjectShareDALServiceImpl
implements
AclCustomerObjectShareDALService
{
@Autowired
private
AclCustomerObjectShareMapper
mapper
;
@Override
public
Long
save
(
AclCustomerObjectShare
objectShare
)
{
mapper
.
insertSelective
(
objectShare
);
return
objectShare
.
getId
();
}
}
yd-api/src/main/java/com/yd/dal/service/customer/impl/AclCustomerObjectShareTrackDALServiceImpl.java
0 → 100644
View file @
e9891e37
package
com
.
yd
.
dal
.
service
.
customer
.
impl
;
import
com.yd.dal.entity.customer.AclCustomerObjectShareTrack
;
import
com.yd.dal.mapper.customer.AclCustomerObjectShareTrackMapper
;
import
com.yd.dal.service.customer.AclCustomerObjectShareTrackDALService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
(
"aclCustomerObjectShareTrackDALService"
)
public
class
AclCustomerObjectShareTrackDALServiceImpl
implements
AclCustomerObjectShareTrackDALService
{
@Autowired
private
AclCustomerObjectShareTrackMapper
mapper
;
@Override
public
Long
save
(
AclCustomerObjectShareTrack
shareTrack
)
{
mapper
.
insertSelective
(
shareTrack
);
return
shareTrack
.
getId
();
}
@Override
public
void
update
(
AclCustomerObjectShareTrack
shareTrack
)
{
mapper
.
updateByPrimaryKeySelective
(
shareTrack
);
}
}
yd-api/src/main/resources/mapper/customer/AclCustomerObjectShareMapper.xml
0 → 100644
View file @
e9891e37
<?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.AclCustomerObjectShareMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclCustomerObjectShare"
>
<!--@mbg.generated-->
<!--@Table ag_acl_customer_object_share-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"item_type"
jdbcType=
"INTEGER"
property=
"itemType"
/>
<result
column=
"item_id"
jdbcType=
"BIGINT"
property=
"itemId"
/>
<result
column=
"practitioner_id"
jdbcType=
"BIGINT"
property=
"practitionerId"
/>
<result
column=
"share_code"
jdbcType=
"VARCHAR"
property=
"shareCode"
/>
<result
column=
"customer_id"
jdbcType=
"BIGINT"
property=
"customerId"
/>
<result
column=
"os"
jdbcType=
"INTEGER"
property=
"os"
/>
<result
column=
"channel"
jdbcType=
"INTEGER"
property=
"channel"
/>
<result
column=
"url"
jdbcType=
"LONGVARCHAR"
property=
"url"
/>
<result
column=
"json_params"
jdbcType=
"LONGVARCHAR"
property=
"jsonParams"
/>
<result
column=
"json_params_coverage_info"
jdbcType=
"LONGVARCHAR"
property=
"jsonParamsCoverageInfo"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
<result
column=
"updated_at"
jdbcType=
"TIMESTAMP"
property=
"updatedAt"
/>
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, item_type, item_id, practitioner_id, share_code, customer_id, os, channel, url,
json_params, json_params_coverage_info, created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_customer_object_share
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_customer_object_share
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclCustomerObjectShare"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_customer_object_share (item_type, item_id, practitioner_id,
share_code, customer_id, os,
channel, url, json_params,
json_params_coverage_info, created_at,
created_by, updated_at, updated_by
)
values (#{itemType,jdbcType=INTEGER}, #{itemId,jdbcType=BIGINT}, #{practitionerId,jdbcType=BIGINT},
#{shareCode,jdbcType=VARCHAR}, #{customerId,jdbcType=BIGINT}, #{os,jdbcType=INTEGER},
#{channel,jdbcType=INTEGER}, #{url,jdbcType=LONGVARCHAR}, #{jsonParams,jdbcType=LONGVARCHAR},
#{jsonParamsCoverageInfo,jdbcType=LONGVARCHAR}, #{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.AclCustomerObjectShare"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_customer_object_share
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"itemType != null"
>
item_type,
</if>
<if
test=
"itemId != null"
>
item_id,
</if>
<if
test=
"practitionerId != null"
>
practitioner_id,
</if>
<if
test=
"shareCode != null"
>
share_code,
</if>
<if
test=
"customerId != null"
>
customer_id,
</if>
<if
test=
"os != null"
>
os,
</if>
<if
test=
"channel != null"
>
channel,
</if>
<if
test=
"url != null"
>
url,
</if>
<if
test=
"jsonParams != null"
>
json_params,
</if>
<if
test=
"jsonParamsCoverageInfo != null"
>
json_params_coverage_info,
</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=
"itemType != null"
>
#{itemType,jdbcType=INTEGER},
</if>
<if
test=
"itemId != null"
>
#{itemId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerId != null"
>
#{practitionerId,jdbcType=BIGINT},
</if>
<if
test=
"shareCode != null"
>
#{shareCode,jdbcType=VARCHAR},
</if>
<if
test=
"customerId != null"
>
#{customerId,jdbcType=BIGINT},
</if>
<if
test=
"os != null"
>
#{os,jdbcType=INTEGER},
</if>
<if
test=
"channel != null"
>
#{channel,jdbcType=INTEGER},
</if>
<if
test=
"url != null"
>
#{url,jdbcType=LONGVARCHAR},
</if>
<if
test=
"jsonParams != null"
>
#{jsonParams,jdbcType=LONGVARCHAR},
</if>
<if
test=
"jsonParamsCoverageInfo != null"
>
#{jsonParamsCoverageInfo,jdbcType=LONGVARCHAR},
</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.AclCustomerObjectShare"
>
<!--@mbg.generated-->
update ag_acl_customer_object_share
<set>
<if
test=
"itemType != null"
>
item_type = #{itemType,jdbcType=INTEGER},
</if>
<if
test=
"itemId != null"
>
item_id = #{itemId,jdbcType=BIGINT},
</if>
<if
test=
"practitionerId != null"
>
practitioner_id = #{practitionerId,jdbcType=BIGINT},
</if>
<if
test=
"shareCode != null"
>
share_code = #{shareCode,jdbcType=VARCHAR},
</if>
<if
test=
"customerId != null"
>
customer_id = #{customerId,jdbcType=BIGINT},
</if>
<if
test=
"os != null"
>
os = #{os,jdbcType=INTEGER},
</if>
<if
test=
"channel != null"
>
channel = #{channel,jdbcType=INTEGER},
</if>
<if
test=
"url != null"
>
url = #{url,jdbcType=LONGVARCHAR},
</if>
<if
test=
"jsonParams != null"
>
json_params = #{jsonParams,jdbcType=LONGVARCHAR},
</if>
<if
test=
"jsonParamsCoverageInfo != null"
>
json_params_coverage_info = #{jsonParamsCoverageInfo,jdbcType=LONGVARCHAR},
</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.AclCustomerObjectShare"
>
<!--@mbg.generated-->
update ag_acl_customer_object_share
set item_type = #{itemType,jdbcType=INTEGER},
item_id = #{itemId,jdbcType=BIGINT},
practitioner_id = #{practitionerId,jdbcType=BIGINT},
share_code = #{shareCode,jdbcType=VARCHAR},
customer_id = #{customerId,jdbcType=BIGINT},
os = #{os,jdbcType=INTEGER},
channel = #{channel,jdbcType=INTEGER},
url = #{url,jdbcType=LONGVARCHAR},
json_params = #{jsonParams,jdbcType=LONGVARCHAR},
json_params_coverage_info = #{jsonParamsCoverageInfo,jdbcType=LONGVARCHAR},
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/AclCustomerObjectShareTrackMapper.xml
0 → 100644
View file @
e9891e37
<?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.AclCustomerObjectShareTrackMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.customer.AclCustomerObjectShareTrack"
>
<!--@mbg.generated-->
<!--@Table ag_acl_customer_object_share_track-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"share_id"
jdbcType=
"BIGINT"
property=
"shareId"
/>
<result
column=
"share_code"
jdbcType=
"VARCHAR"
property=
"shareCode"
/>
<result
column=
"nickname"
jdbcType=
"LONGVARCHAR"
property=
"nickname"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
<result
column=
"image_path"
jdbcType=
"LONGVARCHAR"
property=
"imagePath"
/>
<result
column=
"track_in_time"
jdbcType=
"TIMESTAMP"
property=
"trackInTime"
/>
<result
column=
"track_out_time"
jdbcType=
"TIMESTAMP"
property=
"trackOutTime"
/>
<result
column=
"region"
jdbcType=
"VARCHAR"
property=
"region"
/>
<result
column=
"source_from"
jdbcType=
"LONGVARCHAR"
property=
"sourceFrom"
/>
<result
column=
"entry_page"
jdbcType=
"LONGVARCHAR"
property=
"entryPage"
/>
<result
column=
"button_id"
jdbcType=
"VARCHAR"
property=
"buttonId"
/>
<result
column=
"anchor_id"
jdbcType=
"VARCHAR"
property=
"anchorId"
/>
<result
column=
"action_type"
jdbcType=
"VARCHAR"
property=
"actionType"
/>
<result
column=
"device_type"
jdbcType=
"VARCHAR"
property=
"deviceType"
/>
<result
column=
"ip_address"
jdbcType=
"VARCHAR"
property=
"ipAddress"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--@mbg.generated-->
id, share_id, share_code, nickname, gender, image_path, track_in_time, track_out_time,
region, source_from, entry_page, button_id, anchor_id, action_type, device_type,
ip_address, created_at, created_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_acl_customer_object_share_track
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_acl_customer_object_share_track
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclCustomerObjectShareTrack"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_customer_object_share_track (share_id, share_code, nickname,
gender, image_path, track_in_time,
track_out_time, region, source_from,
entry_page, button_id, anchor_id,
action_type, device_type, ip_address,
created_at, created_by)
values (#{shareId,jdbcType=BIGINT}, #{shareCode,jdbcType=VARCHAR}, #{nickname,jdbcType=LONGVARCHAR},
#{gender,jdbcType=INTEGER}, #{imagePath,jdbcType=LONGVARCHAR}, #{trackInTime,jdbcType=TIMESTAMP},
#{trackOutTime,jdbcType=TIMESTAMP}, #{region,jdbcType=VARCHAR}, #{sourceFrom,jdbcType=LONGVARCHAR},
#{entryPage,jdbcType=LONGVARCHAR}, #{buttonId,jdbcType=VARCHAR}, #{anchorId,jdbcType=VARCHAR},
#{actionType,jdbcType=VARCHAR}, #{deviceType,jdbcType=VARCHAR}, #{ipAddress,jdbcType=VARCHAR},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclCustomerObjectShareTrack"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_customer_object_share_track
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"shareId != null"
>
share_id,
</if>
<if
test=
"shareCode != null"
>
share_code,
</if>
<if
test=
"nickname != null"
>
nickname,
</if>
<if
test=
"gender != null"
>
gender,
</if>
<if
test=
"imagePath != null"
>
image_path,
</if>
<if
test=
"trackInTime != null"
>
track_in_time,
</if>
<if
test=
"trackOutTime != null"
>
track_out_time,
</if>
<if
test=
"region != null"
>
region,
</if>
<if
test=
"sourceFrom != null"
>
source_from,
</if>
<if
test=
"entryPage != null"
>
entry_page,
</if>
<if
test=
"buttonId != null"
>
button_id,
</if>
<if
test=
"anchorId != null"
>
anchor_id,
</if>
<if
test=
"actionType != null"
>
action_type,
</if>
<if
test=
"deviceType != null"
>
device_type,
</if>
<if
test=
"ipAddress != null"
>
ip_address,
</if>
<if
test=
"createdAt != null"
>
created_at,
</if>
<if
test=
"createdBy != null"
>
created_by,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"shareId != null"
>
#{shareId,jdbcType=BIGINT},
</if>
<if
test=
"shareCode != null"
>
#{shareCode,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
#{nickname,jdbcType=LONGVARCHAR},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
<if
test=
"imagePath != null"
>
#{imagePath,jdbcType=LONGVARCHAR},
</if>
<if
test=
"trackInTime != null"
>
#{trackInTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"trackOutTime != null"
>
#{trackOutTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"region != null"
>
#{region,jdbcType=VARCHAR},
</if>
<if
test=
"sourceFrom != null"
>
#{sourceFrom,jdbcType=LONGVARCHAR},
</if>
<if
test=
"entryPage != null"
>
#{entryPage,jdbcType=LONGVARCHAR},
</if>
<if
test=
"buttonId != null"
>
#{buttonId,jdbcType=VARCHAR},
</if>
<if
test=
"anchorId != null"
>
#{anchorId,jdbcType=VARCHAR},
</if>
<if
test=
"actionType != null"
>
#{actionType,jdbcType=VARCHAR},
</if>
<if
test=
"deviceType != null"
>
#{deviceType,jdbcType=VARCHAR},
</if>
<if
test=
"ipAddress != null"
>
#{ipAddress,jdbcType=VARCHAR},
</if>
<if
test=
"createdAt != null"
>
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
#{createdBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.customer.AclCustomerObjectShareTrack"
>
<!--@mbg.generated-->
update ag_acl_customer_object_share_track
<set>
<if
test=
"shareId != null"
>
share_id = #{shareId,jdbcType=BIGINT},
</if>
<if
test=
"shareCode != null"
>
share_code = #{shareCode,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
nickname = #{nickname,jdbcType=LONGVARCHAR},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
<if
test=
"imagePath != null"
>
image_path = #{imagePath,jdbcType=LONGVARCHAR},
</if>
<if
test=
"trackInTime != null"
>
track_in_time = #{trackInTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"trackOutTime != null"
>
track_out_time = #{trackOutTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"region != null"
>
region = #{region,jdbcType=VARCHAR},
</if>
<if
test=
"sourceFrom != null"
>
source_from = #{sourceFrom,jdbcType=LONGVARCHAR},
</if>
<if
test=
"entryPage != null"
>
entry_page = #{entryPage,jdbcType=LONGVARCHAR},
</if>
<if
test=
"buttonId != null"
>
button_id = #{buttonId,jdbcType=VARCHAR},
</if>
<if
test=
"anchorId != null"
>
anchor_id = #{anchorId,jdbcType=VARCHAR},
</if>
<if
test=
"actionType != null"
>
action_type = #{actionType,jdbcType=VARCHAR},
</if>
<if
test=
"deviceType != null"
>
device_type = #{deviceType,jdbcType=VARCHAR},
</if>
<if
test=
"ipAddress != null"
>
ip_address = #{ipAddress,jdbcType=VARCHAR},
</if>
<if
test=
"createdAt != null"
>
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if
test=
"createdBy != null"
>
created_by = #{createdBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclCustomerObjectShareTrack"
>
<!--@mbg.generated-->
update ag_acl_customer_object_share_track
set share_id = #{shareId,jdbcType=BIGINT},
share_code = #{shareCode,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=LONGVARCHAR},
gender = #{gender,jdbcType=INTEGER},
image_path = #{imagePath,jdbcType=LONGVARCHAR},
track_in_time = #{trackInTime,jdbcType=TIMESTAMP},
track_out_time = #{trackOutTime,jdbcType=TIMESTAMP},
region = #{region,jdbcType=VARCHAR},
source_from = #{sourceFrom,jdbcType=LONGVARCHAR},
entry_page = #{entryPage,jdbcType=LONGVARCHAR},
button_id = #{buttonId,jdbcType=VARCHAR},
anchor_id = #{anchorId,jdbcType=VARCHAR},
action_type = #{actionType,jdbcType=VARCHAR},
device_type = #{deviceType,jdbcType=VARCHAR},
ip_address = #{ipAddress,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment