Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
appApi
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antaile
appApi
Commits
29da8e58
Commit
29da8e58
authored
Jul 28, 2021
by
XiaHou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云应用相关的业务代码
parent
7e87530e
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
2057 additions
and
54 deletions
+2057
-54
AtlTimeController.java
...va/com/hwstudio/antaile/controller/AtlTimeController.java
+6
-3
AtlUserController.java
...va/com/hwstudio/antaile/controller/AtlUserController.java
+15
-7
AtlTimeOwnerDto.java
src/main/java/com/hwstudio/antaile/dto/AtlTimeOwnerDto.java
+1
-1
OfficialWebsiteAtlTimeParam.java
...com/hwstudio/antaile/dto/OfficialWebsiteAtlTimeParam.java
+1
-1
RelationUserDTO.java
src/main/java/com/hwstudio/antaile/dto/RelationUserDTO.java
+34
-0
AtlTimeArticleMapper.java
...ava/com/hwstudio/antaile/mapper/AtlTimeArticleMapper.java
+14
-15
AtlTimeMapper.java
src/main/java/com/hwstudio/antaile/mapper/AtlTimeMapper.java
+9
-0
AtlUserMapper.java
src/main/java/com/hwstudio/antaile/mapper/AtlUserMapper.java
+11
-0
SysAtlTimeOwnerMapper.java
...om/hwstudio/antaile/mbg/mapper/SysAtlTimeOwnerMapper.java
+37
-0
SysAtlTimeOwner.java
...ain/java/com/hwstudio/antaile/mbg/po/SysAtlTimeOwner.java
+678
-0
SysAtlTimeOwnerExample.java
...a/com/hwstudio/antaile/mbg/po/SysAtlTimeOwnerExample.java
+0
-0
QueryRelationUserParam.java
...m/hwstudio/antaile/queryparam/QueryRelationUserParam.java
+21
-0
AtlTimeArticleServie.java
...va/com/hwstudio/antaile/service/AtlTimeArticleServie.java
+12
-5
AtlTimeOwnerService.java
...ava/com/hwstudio/antaile/service/AtlTimeOwnerService.java
+4
-1
AtlTimeService.java
...ain/java/com/hwstudio/antaile/service/AtlTimeService.java
+21
-1
AtlUserService.java
...ain/java/com/hwstudio/antaile/service/AtlUserService.java
+12
-1
RegisterService.java
...in/java/com/hwstudio/antaile/service/RegisterService.java
+2
-0
SmsService.java
src/main/java/com/hwstudio/antaile/service/SmsService.java
+16
-17
AliCloudUtil.java
src/main/java/com/hwstudio/antaile/utils/AliCloudUtil.java
+1
-1
MomoUtils.java
src/main/java/com/hwstudio/antaile/utils/MomoUtils.java
+14
-0
AtlTimeOwnerVo.java
src/main/java/com/hwstudio/antaile/vo/AtlTimeOwnerVo.java
+1
-1
AtlTimeVo.java
src/main/java/com/hwstudio/antaile/vo/AtlTimeVo.java
+3
-0
AtlTimeMapper.xml
src/main/resources/mapping/AtlTimeMapper.xml
+5
-0
AtlUserMapper.xml
src/main/resources/mapping/AtlUserMapper.xml
+17
-0
SysAtlTimeOwnerMapper.xml
src/main/resources/mapping/mbg/SysAtlTimeOwnerMapper.xml
+1122
-0
No files found.
src/main/java/com/hwstudio/antaile/controller/AtlTimeController.java
View file @
29da8e58
...
...
@@ -3,18 +3,15 @@ package com.hwstudio.antaile.controller;
import
com.hwstudio.antaile.dto.*
;
import
com.hwstudio.antaile.entity.AtlTime
;
import
com.hwstudio.antaile.entity.AtlUser
;
import
com.hwstudio.antaile.mbg.po.AtlTimeMenu
;
import
com.hwstudio.antaile.mbg.po.SysAtlTime
;
import
com.hwstudio.antaile.queryparam.QueryAtlTimeByBlessIdAndIdxParam
;
import
com.hwstudio.antaile.service.*
;
import
com.hwstudio.antaile.utils.JsonResult
;
import
com.hwstudio.antaile.utils.RedisUtil
;
import
com.hwstudio.antaile.vo.*
;
import
io.swagger.annotations.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -607,4 +604,10 @@ public class AtlTimeController extends BaseController {
return
this
.
atlTimeService
.
selectAtlTimeCreateDateById
(
timeId
);
}
@ApiOperation
(
"根据时光纪id 查询用户id"
)
@RequestMapping
(
value
=
"/selectTimeUserIdByTimeId"
,
method
=
RequestMethod
.
GET
)
public
JsonResult
selectTimeUserIdByTimeId
(
@ApiParam
(
value
=
"时光纪id"
,
required
=
true
)
@RequestParam
(
value
=
"timeId"
,
required
=
true
)
Long
timeId
)
{
return
JsonResult
.
success
(
"操作成功"
,
this
.
atlTimeService
.
selectTimeUserIdByTimeId
(
timeId
));
}
}
src/main/java/com/hwstudio/antaile/controller/AtlUserController.java
View file @
29da8e58
...
...
@@ -3,6 +3,8 @@ package com.hwstudio.antaile.controller;
import
com.hwstudio.antaile.dto.AtlUserInfoDto
;
import
com.hwstudio.antaile.dto.BindingMobileDto
;
import
com.hwstudio.antaile.dto.LoginUserDto
;
import
com.hwstudio.antaile.dto.RelationUserDTO
;
import
com.hwstudio.antaile.queryparam.QueryRelationUserParam
;
import
com.hwstudio.antaile.service.AtlUserService
;
import
com.hwstudio.antaile.utils.JsonResult
;
import
com.hwstudio.antaile.utils.RedisUtil
;
...
...
@@ -15,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
import
java.util.Objects
;
/**
...
...
@@ -26,7 +29,7 @@ import java.util.Objects;
@RestController
@RequestMapping
(
value
=
"/atlUser"
)
@Api
(
tags
=
"用户相关接口"
)
@CrossOrigin
(
origins
=
"*"
,
maxAge
=
3600
)
@CrossOrigin
(
origins
=
"*"
,
maxAge
=
3600
)
public
class
AtlUserController
extends
BaseController
{
@Autowired
...
...
@@ -70,7 +73,7 @@ public class AtlUserController extends BaseController {
@RequestMapping
(
value
=
"BindingOffice"
)
@ApiOperation
(
value
=
"绑定公众号"
,
httpMethod
=
"POST"
,
notes
=
"绑定公众号"
)
@ApiResponses
(
@ApiResponse
(
code
=
200
,
message
=
"请求成功"
,
response
=
AtlUserInfoDto
.
class
))
public
JsonResult
BindingOffice
(
LoginUserVo
loginUserVo
)
throws
Exception
{
public
JsonResult
BindingOffice
(
LoginUserVo
loginUserVo
)
throws
Exception
{
return
atlUserService
.
bindingOffice
(
loginUserVo
);
}
...
...
@@ -80,14 +83,14 @@ public class AtlUserController extends BaseController {
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"wxCode"
,
value
=
"微信code"
,
required
=
true
,
dataType
=
"string"
,
paramType
=
"query"
),
})
public
JsonResult
bindingApplet
(
LoginUserVo
loginUserVo
)
throws
Exception
{
public
JsonResult
bindingApplet
(
LoginUserVo
loginUserVo
)
throws
Exception
{
return
atlUserService
.
bindingApplet
(
loginUserVo
);
}
@RequestMapping
(
value
=
"bindingAppletMobile"
)
@ApiOperation
(
value
=
"小程序绑定手机"
,
httpMethod
=
"POST"
,
notes
=
"小程序绑定手机"
)
@ApiResponses
(
@ApiResponse
(
code
=
200
,
message
=
"请求成功"
,
response
=
AtlUserInfoDto
.
class
))
public
JsonResult
bindingAppletMobile
(
BindingMobileDto
bindingMobileDto
,
LoginUserVo
loginUserVo
)
throws
Exception
{
public
JsonResult
bindingAppletMobile
(
BindingMobileDto
bindingMobileDto
,
LoginUserVo
loginUserVo
)
throws
Exception
{
return
atlUserService
.
bindingAppletMobile
(
bindingMobileDto
,
loginUserVo
);
}
...
...
@@ -163,7 +166,7 @@ public class AtlUserController extends BaseController {
return
JsonResult
.
notLogin
();
}
LoginUserDto
loginUserDto
=
atlUserService
.
bindWX
(
userId
,
loginUserVo
);
return
JsonResult
.
success
(
"绑定微信成功"
,
loginUserDto
);
return
JsonResult
.
success
(
"绑定微信成功"
,
loginUserDto
);
}
@RequestMapping
(
value
=
"isMyself"
)
...
...
@@ -176,10 +179,10 @@ public class AtlUserController extends BaseController {
})
public
JsonResult
isMyself
(
Long
id
,
String
type
,
Long
userId
)
{
if
(
null
==
userId
)
{
if
(
null
==
userId
)
{
userId
=
super
.
getUserId
();
if
(
Objects
.
isNull
(
userId
))
{
return
JsonResult
.
success
(
"请求成功"
,
false
);
return
JsonResult
.
success
(
"请求成功"
,
false
);
}
}
return
atlUserService
.
isMyself
(
type
,
id
,
userId
);
...
...
@@ -251,5 +254,10 @@ public class AtlUserController extends BaseController {
return
atlUserService
.
deleteAddress
(
vo
);
}
@ApiOperation
(
"根据传入参数查询 用户List,不传分页参数不分页"
)
@RequestMapping
(
value
=
"/selectRelationUserListByOther"
,
method
=
RequestMethod
.
GET
)
public
JsonResult
<
List
<
RelationUserDTO
>>
selectRelationUserListByOther
(
@ModelAttribute
QueryRelationUserParam
queryRelationUserParam
)
{
return
JsonResult
.
success
(
"查询成功"
,
this
.
atlUserService
.
selectRelationUserListByOther
(
queryRelationUserParam
));
}
}
src/main/java/com/hwstudio/antaile/dto/AtlTimeOwnerDto.java
View file @
29da8e58
...
...
@@ -63,7 +63,7 @@ public class AtlTimeOwnerDto {
@ApiModelProperty
(
value
=
"婚姻 1-未婚 2-已婚 3-离异"
)
private
Integer
emotionalState
;
@ApiModelProperty
(
value
=
"是否过世 0
过世 1 在
世"
)
@ApiModelProperty
(
value
=
"是否过世 0
在世 1 过
世"
)
private
Integer
livingState
;
@ApiModelProperty
(
value
=
"卒年开始"
)
...
...
src/main/java/com/hwstudio/antaile/dto/OfficialWebsiteAtlTimeParam.java
View file @
29da8e58
...
...
@@ -18,7 +18,7 @@ public class OfficialWebsiteAtlTimeParam implements Serializable {
private
Integer
isCommend
;
@ApiModelProperty
(
value
=
"是否发现页推荐 0-否 1-是"
)
private
Integer
isFindCommend
;
@ApiModelProperty
(
value
=
"是否过世 0
过世 1 在
世"
)
@ApiModelProperty
(
value
=
"是否过世 0
在世 1 过
世"
)
private
Integer
livingState
;
@ApiModelProperty
(
value
=
"分页对象,不传递不分页"
)
private
Page
page
;
...
...
src/main/java/com/hwstudio/antaile/dto/RelationUserDTO.java
0 → 100644
View file @
29da8e58
package
com
.
hwstudio
.
antaile
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Author xh
* @Date 2021/7/23
* description:
*/
@Data
public
class
RelationUserDTO
implements
Serializable
{
@ApiModelProperty
(
value
=
"用户id"
)
private
Long
id
;
@ApiModelProperty
(
value
=
"昵称"
)
private
String
nickName
;
@ApiModelProperty
(
value
=
"头像"
)
private
String
avaterImageUrl
;
@ApiModelProperty
(
value
=
"最后登录时间"
)
private
Date
loginDate
;
@ApiModelProperty
(
value
=
"性别 1-男 2-女"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"关联时光纪id"
)
private
Long
fromTimeid
;
@ApiModelProperty
(
value
=
"关联时光纪名称"
)
private
String
fromTimeName
;
}
src/main/java/com/hwstudio/antaile/mapper/AtlTimeArticleMapper.java
View file @
29da8e58
package
com
.
hwstudio
.
antaile
.
mapper
;
import
com.hwstudio.antaile.dto.AtlSearchDto
;
import
com.hwstudio.antaile.dto.AtlTimeArticleDetailsDto
;
import
com.hwstudio.antaile.dto.AtlTimeArticleListDto
;
import
com.hwstudio.antaile.entity.AtlTimeArticle
;
import
com.hwstudio.antaile.vo.AtlTimeArticleVo
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Date
;
...
...
@@ -17,15 +15,15 @@ public interface AtlTimeArticleMapper {
void
update
(
AtlTimeArticle
atlTimeArticle
);
Integer
getCount
(
@Param
(
"id"
)
Long
id
,
@Param
(
"type"
)
int
type
);
Integer
getCount
(
@Param
(
"id"
)
Long
id
,
@Param
(
"type"
)
int
type
);
List
<
Map
<
String
,
Object
>>
getArticelList
(
@Param
(
"timeId"
)
Long
timeId
,
@Param
(
"type"
)
Integer
type
);
List
<
Map
<
String
,
Object
>>
getArticelList
(
@Param
(
"timeId"
)
Long
timeId
,
@Param
(
"type"
)
Integer
type
);
List
<
Map
<
String
,
Object
>>
getH5ArticelList
(
@Param
(
"timeId"
)
Long
timeId
,
@Param
(
"type"
)
Integer
type
);
List
<
Map
<
String
,
Object
>>
getH5ArticelList
(
@Param
(
"timeId"
)
Long
timeId
,
@Param
(
"type"
)
Integer
type
);
Map
<
String
,
Object
>
getDetails
(
@Param
(
"id"
)
Long
id
);
Map
<
String
,
Object
>
getDetails
(
@Param
(
"id"
)
Long
id
);
List
<
Map
<
String
,
Object
>>
getArticelTypeList
(
@Param
(
"timeId"
)
Long
timeId
,
@Param
(
"type"
)
Integer
type
);
List
<
Map
<
String
,
Object
>>
getArticelTypeList
(
@Param
(
"timeId"
)
Long
timeId
,
@Param
(
"type"
)
Integer
type
);
void
deleteArticle
(
@Param
(
"id"
)
Long
id
);
...
...
@@ -33,26 +31,26 @@ public interface AtlTimeArticleMapper {
void
deleteRealByTimeId
(
@Param
(
"id"
)
Long
id
);
AtlTimeArticle
getById
(
@Param
(
"id"
)
Long
id
);
AtlTimeArticle
getById
(
@Param
(
"id"
)
Long
id
);
List
<
String
>
getMaterialByTimeId
(
@Param
(
"id"
)
Long
id
);
List
<
String
>
getMaterialByTimeId
(
@Param
(
"id"
)
Long
id
);
List
<
String
>
getMaterialByUserId
(
@Param
(
"userId"
)
Long
userId
);
List
<
String
>
getMaterialByUserId
(
@Param
(
"userId"
)
Long
userId
);
List
<
Map
<
String
,
Object
>>
search
(
AtlSearchDto
atlSearchDto
);
List
<
Map
<
String
,
Object
>>
search
(
AtlSearchDto
atlSearchDto
);
Long
getUserId
(
@Param
(
"id"
)
Long
id
);
List
<
Map
<
String
,
Object
>>
findArticleLabelList
(
@Param
(
"userId"
)
Long
userId
);
List
<
Map
<
String
,
Object
>>
findArticleLabelList
(
@Param
(
"userId"
)
Long
userId
);
void
restoreArticle
(
@Param
(
"id"
)
Long
id
);
void
restoreArticleByTimeId
(
@Param
(
"id"
)
Long
id
);
List
<
Map
<
String
,
Object
>>
findArticlelListDel
(
@Param
(
"userId"
)
Long
userId
);
List
<
Map
<
String
,
Object
>>
findArticlelListDel
(
@Param
(
"userId"
)
Long
userId
);
List
<
AtlTimeArticleListDto
>
findAllArticleListByDel
(
@Param
(
"date"
)
Date
date
);
List
<
AtlTimeArticleListDto
>
findAllArticleListByDel
(
@Param
(
"date"
)
Date
date
);
void
deleteRealBatch
(
@Param
(
"list"
)
List
list
);
void
deleteRealBatch
(
@Param
(
"list"
)
List
list
);
}
\ No newline at end of file
src/main/java/com/hwstudio/antaile/mapper/AtlTimeMapper.java
View file @
29da8e58
...
...
@@ -125,4 +125,12 @@ public interface AtlTimeMapper {
* @return
*/
AtlTimeDTO
selectAtlTimeInfoByBlessIdAndIdx
(
@Param
(
"blessId"
)
Long
blessId
,
@Param
(
"blessIdx"
)
Integer
blessIdx
);
/**
* 根据时光纪id 查询用户id
*
* @param timeId
* @return
*/
Long
selectTimeUserIdByTimeId
(
Long
timeId
);
}
\ No newline at end of file
src/main/java/com/hwstudio/antaile/mapper/AtlUserMapper.java
View file @
29da8e58
...
...
@@ -2,8 +2,10 @@ package com.hwstudio.antaile.mapper;
import
com.hwstudio.antaile.dto.AtlUserInfoDto
;
import
com.hwstudio.antaile.dto.AtlUserPhoneTypeDto
;
import
com.hwstudio.antaile.dto.RelationUserDTO
;
import
com.hwstudio.antaile.entity.AtlUser
;
import
com.hwstudio.antaile.entity.AtlUserPhoneType
;
import
com.hwstudio.antaile.queryparam.QueryRelationUserParam
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
...
...
@@ -67,4 +69,12 @@ public interface AtlUserMapper {
* @return
*/
AtlUser
selectOneUserByMobilePhone
(
String
mobilePhone
);
/**
* 查询时光纪关联用户list
*
* @param queryRelationUserParam
* @return
*/
List
<
RelationUserDTO
>
selectRelationUserListByOther
(
QueryRelationUserParam
queryRelationUserParam
);
}
\ No newline at end of file
src/main/java/com/hwstudio/antaile/mbg/mapper/SysAtlTimeOwnerMapper.java
0 → 100644
View file @
29da8e58
package
com
.
hwstudio
.
antaile
.
mbg
.
mapper
;
import
com.hwstudio.antaile.mbg.po.SysAtlTimeOwner
;
import
com.hwstudio.antaile.mbg.po.SysAtlTimeOwnerExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Param
;
public
interface
SysAtlTimeOwnerMapper
{
long
countByExample
(
SysAtlTimeOwnerExample
example
);
int
deleteByExample
(
SysAtlTimeOwnerExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
SysAtlTimeOwner
record
);
int
insertSelective
(
SysAtlTimeOwner
record
);
List
<
SysAtlTimeOwner
>
selectByExampleWithBLOBs
(
SysAtlTimeOwnerExample
example
);
List
<
SysAtlTimeOwner
>
selectByExample
(
SysAtlTimeOwnerExample
example
);
SysAtlTimeOwner
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
SysAtlTimeOwner
record
,
@Param
(
"example"
)
SysAtlTimeOwnerExample
example
);
int
updateByExampleWithBLOBs
(
@Param
(
"record"
)
SysAtlTimeOwner
record
,
@Param
(
"example"
)
SysAtlTimeOwnerExample
example
);
int
updateByExample
(
@Param
(
"record"
)
SysAtlTimeOwner
record
,
@Param
(
"example"
)
SysAtlTimeOwnerExample
example
);
int
updateByPrimaryKeySelective
(
SysAtlTimeOwner
record
);
int
updateByPrimaryKeyWithBLOBs
(
SysAtlTimeOwner
record
);
int
updateByPrimaryKey
(
SysAtlTimeOwner
record
);
}
\ No newline at end of file
src/main/java/com/hwstudio/antaile/mbg/po/SysAtlTimeOwner.java
0 → 100644
View file @
29da8e58
package
com
.
hwstudio
.
antaile
.
mbg
.
po
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
import
org.springframework.format.annotation.DateTimeFormat
;
@Entity
public
class
SysAtlTimeOwner
implements
Serializable
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@ApiModelProperty
(
value
=
"时光纪id"
)
private
Long
timeId
;
@ApiModelProperty
(
value
=
"姓名"
)
private
String
realName
;
@ApiModelProperty
(
value
=
"表字"
)
private
String
literaryName
;
@ApiModelProperty
(
value
=
"性别: 0 男 1:女"
)
private
Integer
sex
;
@ApiModelProperty
(
value
=
"家庭地位"
)
private
String
familyStatus
;
@ApiModelProperty
(
value
=
"婚姻"
)
private
String
emotionalState
;
@ApiModelProperty
(
value
=
"子女个数"
)
private
Long
childrenNum
;
@ApiModelProperty
(
value
=
"户籍:国籍"
)
private
String
nationality
;
@ApiModelProperty
(
value
=
"户籍:证件类型 1-身份证 2-护照 3-军官证"
)
private
Integer
identityType
;
@ApiModelProperty
(
value
=
"户籍:证件编号"
)
private
String
identity
;
@ApiModelProperty
(
value
=
"生辰:公历"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
birthdate
;
@ApiModelProperty
(
value
=
"生辰:农历"
)
private
String
birthdateLunar
;
@ApiModelProperty
(
value
=
"出生地:国家"
)
private
String
bornPlaceCountry
;
@ApiModelProperty
(
value
=
"出生地:省"
)
private
String
bornPlaceProvince
;
@ApiModelProperty
(
value
=
"出生地:市"
)
private
String
bornPlaceCity
;
@ApiModelProperty
(
value
=
"出生地:县"
)
private
String
bornPlaceArea
;
@ApiModelProperty
(
value
=
"出生地:镇"
)
private
String
bornPlaceTown
;
@ApiModelProperty
(
value
=
"出生地:详细地"
)
private
String
bornPalce
;
@ApiModelProperty
(
value
=
"居住地:国家"
)
private
String
residenceCountry
;
@ApiModelProperty
(
value
=
"居住地:省"
)
private
String
residenceProvince
;
@ApiModelProperty
(
value
=
"居住地:市"
)
private
String
residenceCity
;
@ApiModelProperty
(
value
=
"居住地:详细地"
)
private
String
residence
;
@ApiModelProperty
(
value
=
"是否过世 0 过世 1 在世"
)
private
Integer
livingState
;
@ApiModelProperty
(
value
=
"卒辰:公历"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
deathdate
;
@ApiModelProperty
(
value
=
"卒辰:公历结束"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
deathdateEnd
;
@ApiModelProperty
(
value
=
"卒辰:农历"
)
private
String
deathdateLunar
;
@ApiModelProperty
(
value
=
"安息地"
)
private
String
restPlace
;
@ApiModelProperty
(
value
=
"福位编号"
)
private
String
bindBless
;
@ApiModelProperty
(
value
=
"头像"
)
private
String
pic
;
@ApiModelProperty
(
value
=
"背景图"
)
private
String
bgPic
;
@ApiModelProperty
(
value
=
"星座"
)
private
String
constellation
;
@ApiModelProperty
(
value
=
"血型"
)
private
String
blood
;
@ApiModelProperty
(
value
=
"身高"
)
private
String
height
;
@ApiModelProperty
(
value
=
"体重"
)
private
String
weight
;
@ApiModelProperty
(
value
=
"学历"
)
private
String
education
;
@ApiModelProperty
(
value
=
"学校"
)
private
String
graduationSchool
;
@ApiModelProperty
(
value
=
"专业"
)
private
String
specialized
;
@ApiModelProperty
(
value
=
"公司"
)
private
String
company
;
@ApiModelProperty
(
value
=
"行业"
)
private
String
industry
;
@ApiModelProperty
(
value
=
"职务"
)
private
String
position
;
@ApiModelProperty
(
value
=
"数据来源方式:0 自创建 1 云宗祠导入 2 其它导入"
)
private
Integer
sourceFrom
;
@ApiModelProperty
(
value
=
"数据来源值:自创建存创建者ID值,云宗祠ID"
)
private
Integer
sourceId
;
@ApiModelProperty
(
value
=
"创建时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"更新时间"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
lastUpdateDate
;
@ApiModelProperty
(
value
=
"形象照"
)
private
String
imageUrl
;
@ApiModelProperty
(
value
=
"居住区"
)
private
String
residenceArea
;
@ApiModelProperty
(
value
=
"爱好"
)
private
String
hobby
;
@ApiModelProperty
(
value
=
"颜色"
)
private
String
color
;
@ApiModelProperty
(
value
=
"信仰"
)
private
String
faith
;
@ApiModelProperty
(
value
=
"数字"
)
private
Integer
number
;
@ApiModelProperty
(
value
=
"是否删除 0-否 1-是"
)
private
Integer
delFlag
;
@ApiModelProperty
(
value
=
"个人简介"
)
private
String
profile
;
@ApiModelProperty
(
value
=
"个人资料隐私配置"
)
private
String
permission
;
private
static
final
long
serialVersionUID
=
1L
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getTimeId
()
{
return
timeId
;
}
public
void
setTimeId
(
Long
timeId
)
{
this
.
timeId
=
timeId
;
}
public
String
getRealName
()
{
return
realName
;
}
public
void
setRealName
(
String
realName
)
{
this
.
realName
=
realName
;
}
public
String
getLiteraryName
()
{
return
literaryName
;
}
public
void
setLiteraryName
(
String
literaryName
)
{
this
.
literaryName
=
literaryName
;
}
public
Integer
getSex
()
{
return
sex
;
}
public
void
setSex
(
Integer
sex
)
{
this
.
sex
=
sex
;
}
public
String
getFamilyStatus
()
{
return
familyStatus
;
}
public
void
setFamilyStatus
(
String
familyStatus
)
{
this
.
familyStatus
=
familyStatus
;
}
public
String
getEmotionalState
()
{
return
emotionalState
;
}
public
void
setEmotionalState
(
String
emotionalState
)
{
this
.
emotionalState
=
emotionalState
;
}
public
Long
getChildrenNum
()
{
return
childrenNum
;
}
public
void
setChildrenNum
(
Long
childrenNum
)
{
this
.
childrenNum
=
childrenNum
;
}
public
String
getNationality
()
{
return
nationality
;
}
public
void
setNationality
(
String
nationality
)
{
this
.
nationality
=
nationality
;
}
public
Integer
getIdentityType
()
{
return
identityType
;
}
public
void
setIdentityType
(
Integer
identityType
)
{
this
.
identityType
=
identityType
;
}
public
String
getIdentity
()
{
return
identity
;
}
public
void
setIdentity
(
String
identity
)
{
this
.
identity
=
identity
;
}
public
Date
getBirthdate
()
{
return
birthdate
;
}
public
void
setBirthdate
(
Date
birthdate
)
{
this
.
birthdate
=
birthdate
;
}
public
String
getBirthdateLunar
()
{
return
birthdateLunar
;
}
public
void
setBirthdateLunar
(
String
birthdateLunar
)
{
this
.
birthdateLunar
=
birthdateLunar
;
}
public
String
getBornPlaceCountry
()
{
return
bornPlaceCountry
;
}
public
void
setBornPlaceCountry
(
String
bornPlaceCountry
)
{
this
.
bornPlaceCountry
=
bornPlaceCountry
;
}
public
String
getBornPlaceProvince
()
{
return
bornPlaceProvince
;
}
public
void
setBornPlaceProvince
(
String
bornPlaceProvince
)
{
this
.
bornPlaceProvince
=
bornPlaceProvince
;
}
public
String
getBornPlaceCity
()
{
return
bornPlaceCity
;
}
public
void
setBornPlaceCity
(
String
bornPlaceCity
)
{
this
.
bornPlaceCity
=
bornPlaceCity
;
}
public
String
getBornPlaceArea
()
{
return
bornPlaceArea
;
}
public
void
setBornPlaceArea
(
String
bornPlaceArea
)
{
this
.
bornPlaceArea
=
bornPlaceArea
;
}
public
String
getBornPlaceTown
()
{
return
bornPlaceTown
;
}
public
void
setBornPlaceTown
(
String
bornPlaceTown
)
{
this
.
bornPlaceTown
=
bornPlaceTown
;
}
public
String
getBornPalce
()
{
return
bornPalce
;
}
public
void
setBornPalce
(
String
bornPalce
)
{
this
.
bornPalce
=
bornPalce
;
}
public
String
getResidenceCountry
()
{
return
residenceCountry
;
}
public
void
setResidenceCountry
(
String
residenceCountry
)
{
this
.
residenceCountry
=
residenceCountry
;
}
public
String
getResidenceProvince
()
{
return
residenceProvince
;
}
public
void
setResidenceProvince
(
String
residenceProvince
)
{
this
.
residenceProvince
=
residenceProvince
;
}
public
String
getResidenceCity
()
{
return
residenceCity
;
}
public
void
setResidenceCity
(
String
residenceCity
)
{
this
.
residenceCity
=
residenceCity
;
}
public
String
getResidence
()
{
return
residence
;
}
public
void
setResidence
(
String
residence
)
{
this
.
residence
=
residence
;
}
public
Integer
getLivingState
()
{
return
livingState
;
}
public
void
setLivingState
(
Integer
livingState
)
{
this
.
livingState
=
livingState
;
}
public
Date
getDeathdate
()
{
return
deathdate
;
}
public
void
setDeathdate
(
Date
deathdate
)
{
this
.
deathdate
=
deathdate
;
}
public
Date
getDeathdateEnd
()
{
return
deathdateEnd
;
}
public
void
setDeathdateEnd
(
Date
deathdateEnd
)
{
this
.
deathdateEnd
=
deathdateEnd
;
}
public
String
getDeathdateLunar
()
{
return
deathdateLunar
;
}
public
void
setDeathdateLunar
(
String
deathdateLunar
)
{
this
.
deathdateLunar
=
deathdateLunar
;
}
public
String
getRestPlace
()
{
return
restPlace
;
}
public
void
setRestPlace
(
String
restPlace
)
{
this
.
restPlace
=
restPlace
;
}
public
String
getBindBless
()
{
return
bindBless
;
}
public
void
setBindBless
(
String
bindBless
)
{
this
.
bindBless
=
bindBless
;
}
public
String
getPic
()
{
return
pic
;
}
public
void
setPic
(
String
pic
)
{
this
.
pic
=
pic
;
}
public
String
getBgPic
()
{
return
bgPic
;
}
public
void
setBgPic
(
String
bgPic
)
{
this
.
bgPic
=
bgPic
;
}
public
String
getConstellation
()
{
return
constellation
;
}
public
void
setConstellation
(
String
constellation
)
{
this
.
constellation
=
constellation
;
}
public
String
getBlood
()
{
return
blood
;
}
public
void
setBlood
(
String
blood
)
{
this
.
blood
=
blood
;
}
public
String
getHeight
()
{
return
height
;
}
public
void
setHeight
(
String
height
)
{
this
.
height
=
height
;
}
public
String
getWeight
()
{
return
weight
;
}
public
void
setWeight
(
String
weight
)
{
this
.
weight
=
weight
;
}
public
String
getEducation
()
{
return
education
;
}
public
void
setEducation
(
String
education
)
{
this
.
education
=
education
;
}
public
String
getGraduationSchool
()
{
return
graduationSchool
;
}
public
void
setGraduationSchool
(
String
graduationSchool
)
{
this
.
graduationSchool
=
graduationSchool
;
}
public
String
getSpecialized
()
{
return
specialized
;
}
public
void
setSpecialized
(
String
specialized
)
{
this
.
specialized
=
specialized
;
}
public
String
getCompany
()
{
return
company
;
}
public
void
setCompany
(
String
company
)
{
this
.
company
=
company
;
}
public
String
getIndustry
()
{
return
industry
;
}
public
void
setIndustry
(
String
industry
)
{
this
.
industry
=
industry
;
}
public
String
getPosition
()
{
return
position
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
public
Integer
getSourceFrom
()
{
return
sourceFrom
;
}
public
void
setSourceFrom
(
Integer
sourceFrom
)
{
this
.
sourceFrom
=
sourceFrom
;
}
public
Integer
getSourceId
()
{
return
sourceId
;
}
public
void
setSourceId
(
Integer
sourceId
)
{
this
.
sourceId
=
sourceId
;
}
public
Date
getCreateDate
()
{
return
createDate
;
}
public
void
setCreateDate
(
Date
createDate
)
{
this
.
createDate
=
createDate
;
}
public
Date
getLastUpdateDate
()
{
return
lastUpdateDate
;
}
public
void
setLastUpdateDate
(
Date
lastUpdateDate
)
{
this
.
lastUpdateDate
=
lastUpdateDate
;
}
public
String
getImageUrl
()
{
return
imageUrl
;
}
public
void
setImageUrl
(
String
imageUrl
)
{
this
.
imageUrl
=
imageUrl
;
}
public
String
getResidenceArea
()
{
return
residenceArea
;
}
public
void
setResidenceArea
(
String
residenceArea
)
{
this
.
residenceArea
=
residenceArea
;
}
public
String
getHobby
()
{
return
hobby
;
}
public
void
setHobby
(
String
hobby
)
{
this
.
hobby
=
hobby
;
}
public
String
getColor
()
{
return
color
;
}
public
void
setColor
(
String
color
)
{
this
.
color
=
color
;
}
public
String
getFaith
()
{
return
faith
;
}
public
void
setFaith
(
String
faith
)
{
this
.
faith
=
faith
;
}
public
Integer
getNumber
()
{
return
number
;
}
public
void
setNumber
(
Integer
number
)
{
this
.
number
=
number
;
}
public
Integer
getDelFlag
()
{
return
delFlag
;
}
public
void
setDelFlag
(
Integer
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
String
getProfile
()
{
return
profile
;
}
public
void
setProfile
(
String
profile
)
{
this
.
profile
=
profile
;
}
public
String
getPermission
()
{
return
permission
;
}
public
void
setPermission
(
String
permission
)
{
this
.
permission
=
permission
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", timeId="
).
append
(
timeId
);
sb
.
append
(
", realName="
).
append
(
realName
);
sb
.
append
(
", literaryName="
).
append
(
literaryName
);
sb
.
append
(
", sex="
).
append
(
sex
);
sb
.
append
(
", familyStatus="
).
append
(
familyStatus
);
sb
.
append
(
", emotionalState="
).
append
(
emotionalState
);
sb
.
append
(
", childrenNum="
).
append
(
childrenNum
);
sb
.
append
(
", nationality="
).
append
(
nationality
);
sb
.
append
(
", identityType="
).
append
(
identityType
);
sb
.
append
(
", identity="
).
append
(
identity
);
sb
.
append
(
", birthdate="
).
append
(
birthdate
);
sb
.
append
(
", birthdateLunar="
).
append
(
birthdateLunar
);
sb
.
append
(
", bornPlaceCountry="
).
append
(
bornPlaceCountry
);
sb
.
append
(
", bornPlaceProvince="
).
append
(
bornPlaceProvince
);
sb
.
append
(
", bornPlaceCity="
).
append
(
bornPlaceCity
);
sb
.
append
(
", bornPlaceArea="
).
append
(
bornPlaceArea
);
sb
.
append
(
", bornPlaceTown="
).
append
(
bornPlaceTown
);
sb
.
append
(
", bornPalce="
).
append
(
bornPalce
);
sb
.
append
(
", residenceCountry="
).
append
(
residenceCountry
);
sb
.
append
(
", residenceProvince="
).
append
(
residenceProvince
);
sb
.
append
(
", residenceCity="
).
append
(
residenceCity
);
sb
.
append
(
", residence="
).
append
(
residence
);
sb
.
append
(
", livingState="
).
append
(
livingState
);
sb
.
append
(
", deathdate="
).
append
(
deathdate
);
sb
.
append
(
", deathdateEnd="
).
append
(
deathdateEnd
);
sb
.
append
(
", deathdateLunar="
).
append
(
deathdateLunar
);
sb
.
append
(
", restPlace="
).
append
(
restPlace
);
sb
.
append
(
", bindBless="
).
append
(
bindBless
);
sb
.
append
(
", pic="
).
append
(
pic
);
sb
.
append
(
", bgPic="
).
append
(
bgPic
);
sb
.
append
(
", constellation="
).
append
(
constellation
);
sb
.
append
(
", blood="
).
append
(
blood
);
sb
.
append
(
", height="
).
append
(
height
);
sb
.
append
(
", weight="
).
append
(
weight
);
sb
.
append
(
", education="
).
append
(
education
);
sb
.
append
(
", graduationSchool="
).
append
(
graduationSchool
);
sb
.
append
(
", specialized="
).
append
(
specialized
);
sb
.
append
(
", company="
).
append
(
company
);
sb
.
append
(
", industry="
).
append
(
industry
);
sb
.
append
(
", position="
).
append
(
position
);
sb
.
append
(
", sourceFrom="
).
append
(
sourceFrom
);
sb
.
append
(
", sourceId="
).
append
(
sourceId
);
sb
.
append
(
", createDate="
).
append
(
createDate
);
sb
.
append
(
", lastUpdateDate="
).
append
(
lastUpdateDate
);
sb
.
append
(
", imageUrl="
).
append
(
imageUrl
);
sb
.
append
(
", residenceArea="
).
append
(
residenceArea
);
sb
.
append
(
", hobby="
).
append
(
hobby
);
sb
.
append
(
", color="
).
append
(
color
);
sb
.
append
(
", faith="
).
append
(
faith
);
sb
.
append
(
", number="
).
append
(
number
);
sb
.
append
(
", delFlag="
).
append
(
delFlag
);
sb
.
append
(
", profile="
).
append
(
profile
);
sb
.
append
(
", permission="
).
append
(
permission
);
sb
.
append
(
", serialVersionUID="
).
append
(
serialVersionUID
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
src/main/java/com/hwstudio/antaile/mbg/po/SysAtlTimeOwnerExample.java
0 → 100644
View file @
29da8e58
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/java/com/hwstudio/antaile/queryparam/QueryRelationUserParam.java
0 → 100644
View file @
29da8e58
package
com
.
hwstudio
.
antaile
.
queryparam
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @Author xh
* @Date 2021/7/23
* description:
*/
@Data
public
class
QueryRelationUserParam
implements
Serializable
{
@ApiModelProperty
(
value
=
"注册来源于时光纪ID, 0为其它 ,非0对应时光纪id"
)
private
Long
fromTimeid
;
@ApiModelProperty
(
value
=
"推荐人ID(用于用户邀请注册使用)"
)
private
Long
fromUserid
;
}
src/main/java/com/hwstudio/antaile/service/AtlTimeArticleServie.java
View file @
29da8e58
...
...
@@ -5,7 +5,10 @@ import com.github.binarywang.java.emoji.EmojiConverter;
import
com.github.pagehelper.PageHelper
;
import
com.google.common.base.Preconditions
;
import
com.hwstudio.antaile.dto.*
;
import
com.hwstudio.antaile.entity.*
;
import
com.hwstudio.antaile.entity.AtlPrivate
;
import
com.hwstudio.antaile.entity.AtlTimeArticle
;
import
com.hwstudio.antaile.entity.AtlTimeArticleFile
;
import
com.hwstudio.antaile.entity.AtlTimeArticleImage
;
import
com.hwstudio.antaile.mapper.*
;
import
com.hwstudio.antaile.vo.AtlTimeArticleFileVo
;
import
com.vdurmont.emoji.EmojiParser
;
...
...
@@ -18,7 +21,10 @@ import org.springframework.transaction.annotation.Transactional;
import
javax.annotation.Resource
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Name:
...
...
@@ -380,7 +386,7 @@ public class AtlTimeArticleServie {
}
public
Integer
getArticleCountByTimeId
(
Long
timeId
)
{
List
list
=
atlTimeArticleMapper
.
getArticelList
(
timeId
,
1
);
List
list
=
atlTimeArticleMapper
.
getArticelList
(
timeId
,
1
);
return
list
.
size
();
}
...
...
@@ -405,8 +411,8 @@ public class AtlTimeArticleServie {
atlTimeArticleDetailsDto
.
setPrivacySetting
(
Integer
.
parseInt
(
map
.
get
(
"privacySetting"
).
toString
()));
atlTimeArticleDetailsDto
.
setType
(
Integer
.
parseInt
(
map
.
get
(
"type"
).
toString
()));
atlTimeArticleDetailsDto
.
setCreateDate
(
map
.
get
(
"createDate"
).
toString
());
atlTimeArticleDetailsDto
.
setTimeName
(
map
.
get
(
"timeName"
)
+
""
);
atlTimeArticleDetailsDto
.
setTimeName
(
map
.
get
(
"authorName"
)
+
""
);
atlTimeArticleDetailsDto
.
setTimeName
(
map
.
get
(
"timeName"
)
+
""
);
atlTimeArticleDetailsDto
.
setTimeName
(
map
.
get
(
"authorName"
)
+
""
);
if
(
atlTimeArticleDetailsDto
.
getType
()
==
1
)
{
atlTimeArticleDetailsDto
.
setAuthor
(
map
.
get
(
"author"
).
toString
());
atlTimeArticleDetailsDto
.
setOccurTime
(
map
.
get
(
"occurTime"
).
toString
());
...
...
@@ -689,4 +695,5 @@ public class AtlTimeArticleServie {
}
return
list
;
}
}
src/main/java/com/hwstudio/antaile/service/AtlTimeOwnerService.java
View file @
29da8e58
...
...
@@ -93,7 +93,10 @@ public class AtlTimeOwnerService {
}
else
{
map
.
put
(
"identity"
,
"隐私"
);
}
boolean
birthDate
=
(
boolean
)
jsonObject
.
get
(
"birthDate"
);
boolean
birthDate
=
false
;
if
(
jsonObject
.
get
(
"birthDate"
)
!=
null
){
birthDate
=
(
boolean
)
jsonObject
.
get
(
"birthDate"
)
;
}
if
(
birthDate
)
{
map
.
put
(
"birthDate"
,
atlTimeOwnerDto
.
getBirthdate
());
}
else
{
...
...
src/main/java/com/hwstudio/antaile/service/AtlTimeService.java
View file @
29da8e58
...
...
@@ -11,6 +11,7 @@ import com.hwstudio.antaile.entity.*;
import
com.hwstudio.antaile.exception.BusinessException
;
import
com.hwstudio.antaile.mapper.*
;
import
com.hwstudio.antaile.mbg.mapper.SysAtlTimeMapper
;
import
com.hwstudio.antaile.mbg.mapper.SysAtlTimeOwnerMapper
;
import
com.hwstudio.antaile.mbg.po.SysAtlTime
;
import
com.hwstudio.antaile.queryparam.QueryAtlTimeByBlessIdAndIdxParam
;
import
com.hwstudio.antaile.queryparam.QueryAtlTimeCountParam
;
...
...
@@ -60,6 +61,8 @@ public class AtlTimeService {
private
AtlTimeMessageMapper
atlTimeMessageMapper
;
@Resource
private
SysAtlTimeMapper
sysAtlTimeMapper
;
@Resource
private
SysAtlTimeOwnerMapper
sysAtlTimeOwnerMapper
;
/**
* 新增时光纪
...
...
@@ -99,12 +102,18 @@ public class AtlTimeService {
}
atlTimeMapper
.
insert
(
atlTime
);
//新增关于谁数据
//如果对象不为空普通插入 新增关于谁数据
if
(
atlTimeVo
.
getSysAtlTimeOwner
()
==
null
){
AtlTimeOwner
atlTimeOwner
=
new
AtlTimeOwner
();
atlTimeOwner
.
setRealName
(
atlTime
.
getAboutName
());
atlTimeOwner
.
setSourceFrom
(
0
);
atlTimeOwner
.
setTimeId
(
atlTime
.
getId
());
atlTimeOwnerMapper
.
insert
(
atlTimeOwner
);
}
else
{
atlTimeVo
.
getSysAtlTimeOwner
().
setTimeId
(
atlTime
.
getId
());
sysAtlTimeOwnerMapper
.
insertSelective
(
atlTimeVo
.
getSysAtlTimeOwner
());
}
}
//如果隐私设置为验证查看时
...
...
@@ -906,5 +915,16 @@ public class AtlTimeService {
return
JsonResult
.
success
(
"获取成功"
,
dataMap
);
}
/**
* 根据时光纪id 查询用户id
*
* @param timeId
* @return
*/
public
Long
selectTimeUserIdByTimeId
(
Long
timeId
)
{
return
this
.
atlTimeMapper
.
selectTimeUserIdByTimeId
(
timeId
);
}
}
src/main/java/com/hwstudio/antaile/service/AtlUserService.java
View file @
29da8e58
...
...
@@ -7,6 +7,7 @@ import com.hwstudio.antaile.dto.*;
import
com.hwstudio.antaile.entity.*
;
import
com.hwstudio.antaile.exception.BusinessException
;
import
com.hwstudio.antaile.mapper.*
;
import
com.hwstudio.antaile.queryparam.QueryRelationUserParam
;
import
com.hwstudio.antaile.utils.JsonResult
;
import
com.hwstudio.antaile.utils.OpenIdUtil
;
import
com.hwstudio.antaile.utils.RedisUtil
;
...
...
@@ -208,7 +209,7 @@ public class AtlUserService {
}
//校验手机号是否已经存在过
AtlUser
atlUser
=
this
.
atlUserMapper
.
selectOneUserByMobilePhone
(
verifyCodeLogin
.
getMobilePhone
());
if
(
atlUser
==
null
)
{
if
(
atlUser
==
null
)
{
throw
new
BusinessException
(
"不存在此手机号"
);
}
//否则有查询到 就登录成功
...
...
@@ -732,4 +733,14 @@ public class AtlUserService {
return
JsonResult
.
success
(
msg
+
"成功"
);
}
/**
* 查询时光纪关联用户list
*
* @param queryRelationUserParam
* @return
*/
public
List
<
RelationUserDTO
>
selectRelationUserListByOther
(
QueryRelationUserParam
queryRelationUserParam
)
{
return
this
.
atlUserMapper
.
selectRelationUserListByOther
(
queryRelationUserParam
);
}
}
src/main/java/com/hwstudio/antaile/service/RegisterService.java
View file @
29da8e58
...
...
@@ -51,6 +51,8 @@ public class RegisterService {
atlUser
.
setNickName
(
nickName
);
atlUser
.
setMobilePhone
(
mobile
);
atlUser
.
setLoginPassword
(
pwd
);
atlUser
.
setFromTimeid
(
fromTimeid
);
atlUser
.
setFromUserid
(
fromUserid
);
atlUserMapper
.
registerMobile
(
atlUser
);
}
}
src/main/java/com/hwstudio/antaile/service/SmsService.java
View file @
29da8e58
...
...
@@ -11,10 +11,8 @@ import com.hwstudio.antaile.mapper.AtlUserMapper;
import
com.hwstudio.antaile.mapper.SmsMapper
;
import
com.hwstudio.antaile.utils.AliCloudUtil
;
import
com.hwstudio.antaile.utils.MomoUtils
;
import
com.hwstudio.antaile.utils.VerificationUtil
;
import
net.sf.json.JSONObject
;
import
org.apache.commons.lang3.RandomUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -39,6 +37,7 @@ public class SmsService {
/**
* 功能描述: <br>短信发送
* 〈〉
*
* @since: 1.0.0
* @Author:Momo
* @Date: 2019/5/26 12:41
...
...
@@ -62,27 +61,27 @@ public class SmsService {
}
String
templateCode
;
AtlUser
atlUser
=
atlUserMapper
.
getByMobile
(
mobile
);
Boolean
isMatch
=
MomoUtils
.
phone
(
mobile
);
switch
(
type
){
Boolean
isMatch
=
MomoUtils
.
validTel
(
mobile
);
switch
(
type
)
{
case
Constants
.
SMS_TYPE_REGISTER
:
if
(
atlUser
!=
null
)
{
if
(
atlUser
!=
null
)
{
throw
new
BusinessException
(
"该手机号已注册"
);
}
if
(
isMatch
)
{
if
(
isMatch
)
{
templateCode
=
Constants
.
SMS_TYPE_REGISTER_VALUE
;
}
else
{
}
else
{
templateCode
=
Constants
.
SMS_TYPE_REGISTER_VALUE_INTERNATIONAL
;
}
break
;
case
Constants
.
SMS_TYPE_UPDATEPASSWORD
:
if
(
atlUser
==
null
)
{
if
(
atlUser
==
null
)
{
throw
new
BusinessException
(
"该手机号未注册"
);
}
if
(
isMatch
)
{
if
(
isMatch
)
{
templateCode
=
Constants
.
SMS_TYPE_UPDATEPASSWORD_VALUE
;
}
else
{
}
else
{
templateCode
=
Constants
.
SMS_TYPE_UPDATEPASSWORD_VALUE_INTERNATIONAL
;
}
...
...
@@ -92,13 +91,13 @@ public class SmsService {
throw new BusinessException("该手机号已被绑定");
}*/
templateCode
=
Constants
.
SMS_TYPE_BINDINGMOBILE_VALUE
;
if
(
isMatch
==
false
)
{
if
(
isMatch
==
false
)
{
templateCode
=
Constants
.
SMS_TYPE_BINDINGMOBILE_VALUE_INTERNATIONAL
;
}
break
;
case
Constants
.
SMS_TYPE_MOBILELOGIN
:
templateCode
=
Constants
.
SMS_TYPE_MOBILELOGIN_VALUE
;
if
(
isMatch
==
false
)
{
if
(
isMatch
==
false
)
{
templateCode
=
Constants
.
SMS_TYPE_MOBILELOGIN_VALUE_INTERNATIONAL
;
}
break
;
...
...
@@ -107,9 +106,9 @@ public class SmsService {
}
}
String
verifyCode
=
RandomUtils
.
nextInt
(
100000
,
1000000
)
+
""
;
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"code"
,
verifyCode
);
System
.
out
.
println
(
"----------------------------------手机发送的验证码为:"
+
verifyCode
);
System
.
out
.
println
(
"----------------------------------手机发送的验证码为:"
+
verifyCode
);
Sms
sms
=
new
Sms
();
sms
.
setPhonenumber
(
mobile
);
sms
.
setVerifycode
(
verifyCode
);
...
...
@@ -120,13 +119,13 @@ public class SmsService {
try
{
CommonResponse
response
=
AliCloudUtil
.
sendSms
(
mobile
,
templateCode
,
jsonObject
);
if
(
response
==
null
)
{
if
(
response
==
null
)
{
throw
new
BusinessException
(
"验证码发送失败"
);
}
JSONObject
json
=
JSONObject
.
fromObject
(
response
.
getData
());
if
(
"OK"
.
equals
(
json
.
get
(
"Code"
)))
{
if
(
"OK"
.
equals
(
json
.
get
(
"Code"
)))
{
smsMapper
.
updateState
(
sms
.
getId
(),
1
);
}
else
{
}
else
{
smsMapper
.
updateState
(
sms
.
getId
(),
2
);
throw
new
BusinessException
(
"验证码发送失败"
);
}
...
...
src/main/java/com/hwstudio/antaile/utils/AliCloudUtil.java
View file @
29da8e58
...
...
@@ -58,7 +58,7 @@ public class AliCloudUtil {
*/
public
static
CommonResponse
sendSms
(
String
mobile
,
String
templateCode
,
JSONObject
json
)
throws
ClientException
{
DefaultProfile
profile
=
DefaultProfile
.
getProfile
(
"
default
"
,
accessKeyId
,
accessKeySecret
);
DefaultProfile
profile
=
DefaultProfile
.
getProfile
(
"
cn-hangzhou
"
,
accessKeyId
,
accessKeySecret
);
IAcsClient
client
=
new
DefaultAcsClient
(
profile
);
CommonRequest
request
=
new
CommonRequest
();
...
...
src/main/java/com/hwstudio/antaile/utils/MomoUtils.java
View file @
29da8e58
...
...
@@ -285,4 +285,18 @@ public class MomoUtils {
boolean
isMatch
=
m
.
matches
();
return
isMatch
;
}
/**
* 验证是否中国手机号
*
* @param tel
* @return
*/
public
static
boolean
validTel
(
String
tel
)
{
String
regex
=
"^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$"
;
boolean
flag
=
tel
.
matches
(
regex
);
return
flag
;
}
}
src/main/java/com/hwstudio/antaile/vo/AtlTimeOwnerVo.java
View file @
29da8e58
...
...
@@ -67,7 +67,7 @@ public class AtlTimeOwnerVo {
@ApiModelProperty
(
value
=
"婚姻 1-未婚 2-已婚 3-离异"
)
private
Integer
emotionalState
;
@ApiModelProperty
(
value
=
"是否过世 0
过世 1 在
世"
)
@ApiModelProperty
(
value
=
"是否过世 0
在世 1 过
世"
)
private
Integer
livingState
;
@ApiModelProperty
(
value
=
"卒年开始"
)
...
...
src/main/java/com/hwstudio/antaile/vo/AtlTimeVo.java
View file @
29da8e58
package
com
.
hwstudio
.
antaile
.
vo
;
import
com.hwstudio.antaile.mbg.po.SysAtlTimeOwner
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -85,4 +86,6 @@ public class AtlTimeVo {
private
Integer
blessIdx
;
@ApiModelProperty
(
value
=
"oss配置时光纪相关的路径"
)
private
String
ossCatalogue
;
@ApiModelProperty
(
value
=
"时光纪关于谁对象"
)
private
SysAtlTimeOwner
sysAtlTimeOwner
;
}
src/main/resources/mapping/AtlTimeMapper.xml
View file @
29da8e58
...
...
@@ -342,4 +342,8 @@
and a.bless_idx=#{blessIdx}
and a.status = 1
</select>
<select
id=
"selectTimeUserIdByTimeId"
parameterType=
"java.lang.Long"
resultType=
"java.lang.Long"
>
select user_id from atl_time where id = #{id}
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapping/AtlUserMapper.xml
View file @
29da8e58
...
...
@@ -401,4 +401,20 @@
SELECT * FROM atl_user WHERE mobile_phone=#{mobilePhone}
</select>
<select
id=
"selectRelationUserListByOther"
parameterType=
"com.hwstudio.antaile.queryparam.QueryRelationUserParam"
resultType=
"com.hwstudio.antaile.dto.RelationUserDTO"
>
select
a.id,a.nick_name nickName,a.sex,a.login_date loginDate,
a.avater_image_url avaterImageUrl,a.from_timeid fromTimeid,a.from_userid fromUserid,
b.name fromTimeName
from atl_user a
left join atl_time b ON a.from_timeid = b.id
where 1 = 1
<if
test=
"fromTimeid != null"
>
and a.from_timeid =#{fromTimeid}
</if>
<if
test=
"fromUserid != null"
>
and a.from_userid =#{fromUserid}
</if>
</select>
</mapper>
\ No newline at end of file
src/main/resources/mapping/mbg/SysAtlTimeOwnerMapper.xml
0 → 100644
View file @
29da8e58
<?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.hwstudio.antaile.mbg.mapper.SysAtlTimeOwnerMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"time_id"
jdbcType=
"BIGINT"
property=
"timeId"
/>
<result
column=
"real_name"
jdbcType=
"VARCHAR"
property=
"realName"
/>
<result
column=
"literary_name"
jdbcType=
"VARCHAR"
property=
"literaryName"
/>
<result
column=
"sex"
jdbcType=
"INTEGER"
property=
"sex"
/>
<result
column=
"family_status"
jdbcType=
"VARCHAR"
property=
"familyStatus"
/>
<result
column=
"emotional_state"
jdbcType=
"VARCHAR"
property=
"emotionalState"
/>
<result
column=
"children_num"
jdbcType=
"BIGINT"
property=
"childrenNum"
/>
<result
column=
"nationality"
jdbcType=
"VARCHAR"
property=
"nationality"
/>
<result
column=
"identity_type"
jdbcType=
"TINYINT"
property=
"identityType"
/>
<result
column=
"identity"
jdbcType=
"VARCHAR"
property=
"identity"
/>
<result
column=
"birthdate"
jdbcType=
"TIMESTAMP"
property=
"birthdate"
/>
<result
column=
"birthdate_lunar"
jdbcType=
"VARCHAR"
property=
"birthdateLunar"
/>
<result
column=
"born_place_country"
jdbcType=
"VARCHAR"
property=
"bornPlaceCountry"
/>
<result
column=
"born_place_province"
jdbcType=
"VARCHAR"
property=
"bornPlaceProvince"
/>
<result
column=
"born_place_city"
jdbcType=
"VARCHAR"
property=
"bornPlaceCity"
/>
<result
column=
"born_place_area"
jdbcType=
"VARCHAR"
property=
"bornPlaceArea"
/>
<result
column=
"born_place_town"
jdbcType=
"VARCHAR"
property=
"bornPlaceTown"
/>
<result
column=
"born_palce"
jdbcType=
"VARCHAR"
property=
"bornPalce"
/>
<result
column=
"residence_country"
jdbcType=
"VARCHAR"
property=
"residenceCountry"
/>
<result
column=
"residence_province"
jdbcType=
"VARCHAR"
property=
"residenceProvince"
/>
<result
column=
"residence_city"
jdbcType=
"VARCHAR"
property=
"residenceCity"
/>
<result
column=
"residence"
jdbcType=
"VARCHAR"
property=
"residence"
/>
<result
column=
"living_state"
jdbcType=
"TINYINT"
property=
"livingState"
/>
<result
column=
"deathdate"
jdbcType=
"TIMESTAMP"
property=
"deathdate"
/>
<result
column=
"deathdate_end"
jdbcType=
"TIMESTAMP"
property=
"deathdateEnd"
/>
<result
column=
"deathdate_lunar"
jdbcType=
"VARCHAR"
property=
"deathdateLunar"
/>
<result
column=
"rest_place"
jdbcType=
"VARCHAR"
property=
"restPlace"
/>
<result
column=
"bind_bless"
jdbcType=
"VARCHAR"
property=
"bindBless"
/>
<result
column=
"pic"
jdbcType=
"VARCHAR"
property=
"pic"
/>
<result
column=
"bg_pic"
jdbcType=
"VARCHAR"
property=
"bgPic"
/>
<result
column=
"constellation"
jdbcType=
"VARCHAR"
property=
"constellation"
/>
<result
column=
"blood"
jdbcType=
"VARCHAR"
property=
"blood"
/>
<result
column=
"height"
jdbcType=
"VARCHAR"
property=
"height"
/>
<result
column=
"weight"
jdbcType=
"VARCHAR"
property=
"weight"
/>
<result
column=
"education"
jdbcType=
"VARCHAR"
property=
"education"
/>
<result
column=
"graduation_school"
jdbcType=
"VARCHAR"
property=
"graduationSchool"
/>
<result
column=
"specialized"
jdbcType=
"VARCHAR"
property=
"specialized"
/>
<result
column=
"company"
jdbcType=
"VARCHAR"
property=
"company"
/>
<result
column=
"industry"
jdbcType=
"VARCHAR"
property=
"industry"
/>
<result
column=
"position"
jdbcType=
"VARCHAR"
property=
"position"
/>
<result
column=
"source_from"
jdbcType=
"TINYINT"
property=
"sourceFrom"
/>
<result
column=
"source_id"
jdbcType=
"INTEGER"
property=
"sourceId"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"last_update_date"
jdbcType=
"TIMESTAMP"
property=
"lastUpdateDate"
/>
<result
column=
"image_url"
jdbcType=
"VARCHAR"
property=
"imageUrl"
/>
<result
column=
"residence_area"
jdbcType=
"VARCHAR"
property=
"residenceArea"
/>
<result
column=
"hobby"
jdbcType=
"VARCHAR"
property=
"hobby"
/>
<result
column=
"color"
jdbcType=
"VARCHAR"
property=
"color"
/>
<result
column=
"faith"
jdbcType=
"VARCHAR"
property=
"faith"
/>
<result
column=
"number"
jdbcType=
"INTEGER"
property=
"number"
/>
<result
column=
"del_flag"
jdbcType=
"TINYINT"
property=
"delFlag"
/>
</resultMap>
<resultMap
extends=
"BaseResultMap"
id=
"ResultMapWithBLOBs"
type=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
<result
column=
"profile"
jdbcType=
"LONGVARCHAR"
property=
"profile"
/>
<result
column=
"permission"
jdbcType=
"LONGVARCHAR"
property=
"permission"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, time_id, real_name, literary_name, sex, family_status, emotional_state, children_num,
nationality, identity_type, identity, birthdate, birthdate_lunar, born_place_country,
born_place_province, born_place_city, born_place_area, born_place_town, born_palce,
residence_country, residence_province, residence_city, residence, living_state, deathdate,
deathdate_end, deathdate_lunar, rest_place, bind_bless, pic, bg_pic, constellation,
blood, height, weight, education, graduation_school, specialized, company, industry,
position, source_from, source_id, create_date, last_update_date, image_url, residence_area,
hobby, color, faith, number, del_flag
</sql>
<sql
id=
"Blob_Column_List"
>
profile, permission
</sql>
<select
id=
"selectByExampleWithBLOBs"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwnerExample"
resultMap=
"ResultMapWithBLOBs"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from atl_time_owner
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByExample"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwnerExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from atl_time_owner
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"ResultMapWithBLOBs"
>
select
<include
refid=
"Base_Column_List"
/>
,
<include
refid=
"Blob_Column_List"
/>
from atl_time_owner
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from atl_time_owner
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwnerExample"
>
delete from atl_time_owner
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into atl_time_owner (time_id, real_name, literary_name,
sex, family_status, emotional_state,
children_num, nationality, identity_type,
identity, birthdate, birthdate_lunar,
born_place_country, born_place_province, born_place_city,
born_place_area, born_place_town, born_palce,
residence_country, residence_province, residence_city,
residence, living_state, deathdate,
deathdate_end, deathdate_lunar, rest_place,
bind_bless, pic, bg_pic,
constellation, blood, height,
weight, education, graduation_school,
specialized, company, industry,
position, source_from, source_id,
create_date, last_update_date, image_url,
residence_area, hobby, color,
faith, number, del_flag,
profile, permission)
values (#{timeId,jdbcType=BIGINT}, #{realName,jdbcType=VARCHAR}, #{literaryName,jdbcType=VARCHAR},
#{sex,jdbcType=INTEGER}, #{familyStatus,jdbcType=VARCHAR}, #{emotionalState,jdbcType=VARCHAR},
#{childrenNum,jdbcType=BIGINT}, #{nationality,jdbcType=VARCHAR}, #{identityType,jdbcType=TINYINT},
#{identity,jdbcType=VARCHAR}, #{birthdate,jdbcType=TIMESTAMP}, #{birthdateLunar,jdbcType=VARCHAR},
#{bornPlaceCountry,jdbcType=VARCHAR}, #{bornPlaceProvince,jdbcType=VARCHAR}, #{bornPlaceCity,jdbcType=VARCHAR},
#{bornPlaceArea,jdbcType=VARCHAR}, #{bornPlaceTown,jdbcType=VARCHAR}, #{bornPalce,jdbcType=VARCHAR},
#{residenceCountry,jdbcType=VARCHAR}, #{residenceProvince,jdbcType=VARCHAR}, #{residenceCity,jdbcType=VARCHAR},
#{residence,jdbcType=VARCHAR}, #{livingState,jdbcType=TINYINT}, #{deathdate,jdbcType=TIMESTAMP},
#{deathdateEnd,jdbcType=TIMESTAMP}, #{deathdateLunar,jdbcType=VARCHAR}, #{restPlace,jdbcType=VARCHAR},
#{bindBless,jdbcType=VARCHAR}, #{pic,jdbcType=VARCHAR}, #{bgPic,jdbcType=VARCHAR},
#{constellation,jdbcType=VARCHAR}, #{blood,jdbcType=VARCHAR}, #{height,jdbcType=VARCHAR},
#{weight,jdbcType=VARCHAR}, #{education,jdbcType=VARCHAR}, #{graduationSchool,jdbcType=VARCHAR},
#{specialized,jdbcType=VARCHAR}, #{company,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR},
#{position,jdbcType=VARCHAR}, #{sourceFrom,jdbcType=TINYINT}, #{sourceId,jdbcType=INTEGER},
#{createDate,jdbcType=TIMESTAMP}, #{lastUpdateDate,jdbcType=TIMESTAMP}, #{imageUrl,jdbcType=VARCHAR},
#{residenceArea,jdbcType=VARCHAR}, #{hobby,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR},
#{faith,jdbcType=VARCHAR}, #{number,jdbcType=INTEGER}, #{delFlag,jdbcType=TINYINT},
#{profile,jdbcType=LONGVARCHAR}, #{permission,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into atl_time_owner
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"timeId != null"
>
time_id,
</if>
<if
test=
"realName != null"
>
real_name,
</if>
<if
test=
"literaryName != null"
>
literary_name,
</if>
<if
test=
"sex != null"
>
sex,
</if>
<if
test=
"familyStatus != null"
>
family_status,
</if>
<if
test=
"emotionalState != null"
>
emotional_state,
</if>
<if
test=
"childrenNum != null"
>
children_num,
</if>
<if
test=
"nationality != null"
>
nationality,
</if>
<if
test=
"identityType != null"
>
identity_type,
</if>
<if
test=
"identity != null"
>
identity,
</if>
<if
test=
"birthdate != null"
>
birthdate,
</if>
<if
test=
"birthdateLunar != null"
>
birthdate_lunar,
</if>
<if
test=
"bornPlaceCountry != null"
>
born_place_country,
</if>
<if
test=
"bornPlaceProvince != null"
>
born_place_province,
</if>
<if
test=
"bornPlaceCity != null"
>
born_place_city,
</if>
<if
test=
"bornPlaceArea != null"
>
born_place_area,
</if>
<if
test=
"bornPlaceTown != null"
>
born_place_town,
</if>
<if
test=
"bornPalce != null"
>
born_palce,
</if>
<if
test=
"residenceCountry != null"
>
residence_country,
</if>
<if
test=
"residenceProvince != null"
>
residence_province,
</if>
<if
test=
"residenceCity != null"
>
residence_city,
</if>
<if
test=
"residence != null"
>
residence,
</if>
<if
test=
"livingState != null"
>
living_state,
</if>
<if
test=
"deathdate != null"
>
deathdate,
</if>
<if
test=
"deathdateEnd != null"
>
deathdate_end,
</if>
<if
test=
"deathdateLunar != null"
>
deathdate_lunar,
</if>
<if
test=
"restPlace != null"
>
rest_place,
</if>
<if
test=
"bindBless != null"
>
bind_bless,
</if>
<if
test=
"pic != null"
>
pic,
</if>
<if
test=
"bgPic != null"
>
bg_pic,
</if>
<if
test=
"constellation != null"
>
constellation,
</if>
<if
test=
"blood != null"
>
blood,
</if>
<if
test=
"height != null"
>
height,
</if>
<if
test=
"weight != null"
>
weight,
</if>
<if
test=
"education != null"
>
education,
</if>
<if
test=
"graduationSchool != null"
>
graduation_school,
</if>
<if
test=
"specialized != null"
>
specialized,
</if>
<if
test=
"company != null"
>
company,
</if>
<if
test=
"industry != null"
>
industry,
</if>
<if
test=
"position != null"
>
position,
</if>
<if
test=
"sourceFrom != null"
>
source_from,
</if>
<if
test=
"sourceId != null"
>
source_id,
</if>
<if
test=
"createDate != null"
>
create_date,
</if>
<if
test=
"lastUpdateDate != null"
>
last_update_date,
</if>
<if
test=
"imageUrl != null"
>
image_url,
</if>
<if
test=
"residenceArea != null"
>
residence_area,
</if>
<if
test=
"hobby != null"
>
hobby,
</if>
<if
test=
"color != null"
>
color,
</if>
<if
test=
"faith != null"
>
faith,
</if>
<if
test=
"number != null"
>
number,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</if>
<if
test=
"profile != null"
>
profile,
</if>
<if
test=
"permission != null"
>
permission,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"timeId != null"
>
#{timeId,jdbcType=BIGINT},
</if>
<if
test=
"realName != null"
>
#{realName,jdbcType=VARCHAR},
</if>
<if
test=
"literaryName != null"
>
#{literaryName,jdbcType=VARCHAR},
</if>
<if
test=
"sex != null"
>
#{sex,jdbcType=INTEGER},
</if>
<if
test=
"familyStatus != null"
>
#{familyStatus,jdbcType=VARCHAR},
</if>
<if
test=
"emotionalState != null"
>
#{emotionalState,jdbcType=VARCHAR},
</if>
<if
test=
"childrenNum != null"
>
#{childrenNum,jdbcType=BIGINT},
</if>
<if
test=
"nationality != null"
>
#{nationality,jdbcType=VARCHAR},
</if>
<if
test=
"identityType != null"
>
#{identityType,jdbcType=TINYINT},
</if>
<if
test=
"identity != null"
>
#{identity,jdbcType=VARCHAR},
</if>
<if
test=
"birthdate != null"
>
#{birthdate,jdbcType=TIMESTAMP},
</if>
<if
test=
"birthdateLunar != null"
>
#{birthdateLunar,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceCountry != null"
>
#{bornPlaceCountry,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceProvince != null"
>
#{bornPlaceProvince,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceCity != null"
>
#{bornPlaceCity,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceArea != null"
>
#{bornPlaceArea,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceTown != null"
>
#{bornPlaceTown,jdbcType=VARCHAR},
</if>
<if
test=
"bornPalce != null"
>
#{bornPalce,jdbcType=VARCHAR},
</if>
<if
test=
"residenceCountry != null"
>
#{residenceCountry,jdbcType=VARCHAR},
</if>
<if
test=
"residenceProvince != null"
>
#{residenceProvince,jdbcType=VARCHAR},
</if>
<if
test=
"residenceCity != null"
>
#{residenceCity,jdbcType=VARCHAR},
</if>
<if
test=
"residence != null"
>
#{residence,jdbcType=VARCHAR},
</if>
<if
test=
"livingState != null"
>
#{livingState,jdbcType=TINYINT},
</if>
<if
test=
"deathdate != null"
>
#{deathdate,jdbcType=TIMESTAMP},
</if>
<if
test=
"deathdateEnd != null"
>
#{deathdateEnd,jdbcType=TIMESTAMP},
</if>
<if
test=
"deathdateLunar != null"
>
#{deathdateLunar,jdbcType=VARCHAR},
</if>
<if
test=
"restPlace != null"
>
#{restPlace,jdbcType=VARCHAR},
</if>
<if
test=
"bindBless != null"
>
#{bindBless,jdbcType=VARCHAR},
</if>
<if
test=
"pic != null"
>
#{pic,jdbcType=VARCHAR},
</if>
<if
test=
"bgPic != null"
>
#{bgPic,jdbcType=VARCHAR},
</if>
<if
test=
"constellation != null"
>
#{constellation,jdbcType=VARCHAR},
</if>
<if
test=
"blood != null"
>
#{blood,jdbcType=VARCHAR},
</if>
<if
test=
"height != null"
>
#{height,jdbcType=VARCHAR},
</if>
<if
test=
"weight != null"
>
#{weight,jdbcType=VARCHAR},
</if>
<if
test=
"education != null"
>
#{education,jdbcType=VARCHAR},
</if>
<if
test=
"graduationSchool != null"
>
#{graduationSchool,jdbcType=VARCHAR},
</if>
<if
test=
"specialized != null"
>
#{specialized,jdbcType=VARCHAR},
</if>
<if
test=
"company != null"
>
#{company,jdbcType=VARCHAR},
</if>
<if
test=
"industry != null"
>
#{industry,jdbcType=VARCHAR},
</if>
<if
test=
"position != null"
>
#{position,jdbcType=VARCHAR},
</if>
<if
test=
"sourceFrom != null"
>
#{sourceFrom,jdbcType=TINYINT},
</if>
<if
test=
"sourceId != null"
>
#{sourceId,jdbcType=INTEGER},
</if>
<if
test=
"createDate != null"
>
#{createDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"lastUpdateDate != null"
>
#{lastUpdateDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"imageUrl != null"
>
#{imageUrl,jdbcType=VARCHAR},
</if>
<if
test=
"residenceArea != null"
>
#{residenceArea,jdbcType=VARCHAR},
</if>
<if
test=
"hobby != null"
>
#{hobby,jdbcType=VARCHAR},
</if>
<if
test=
"color != null"
>
#{color,jdbcType=VARCHAR},
</if>
<if
test=
"faith != null"
>
#{faith,jdbcType=VARCHAR},
</if>
<if
test=
"number != null"
>
#{number,jdbcType=INTEGER},
</if>
<if
test=
"delFlag != null"
>
#{delFlag,jdbcType=TINYINT},
</if>
<if
test=
"profile != null"
>
#{profile,jdbcType=LONGVARCHAR},
</if>
<if
test=
"permission != null"
>
#{permission,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwnerExample"
resultType=
"java.lang.Long"
>
select count(*) from atl_time_owner
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update atl_time_owner
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.timeId != null"
>
time_id = #{record.timeId,jdbcType=BIGINT},
</if>
<if
test=
"record.realName != null"
>
real_name = #{record.realName,jdbcType=VARCHAR},
</if>
<if
test=
"record.literaryName != null"
>
literary_name = #{record.literaryName,jdbcType=VARCHAR},
</if>
<if
test=
"record.sex != null"
>
sex = #{record.sex,jdbcType=INTEGER},
</if>
<if
test=
"record.familyStatus != null"
>
family_status = #{record.familyStatus,jdbcType=VARCHAR},
</if>
<if
test=
"record.emotionalState != null"
>
emotional_state = #{record.emotionalState,jdbcType=VARCHAR},
</if>
<if
test=
"record.childrenNum != null"
>
children_num = #{record.childrenNum,jdbcType=BIGINT},
</if>
<if
test=
"record.nationality != null"
>
nationality = #{record.nationality,jdbcType=VARCHAR},
</if>
<if
test=
"record.identityType != null"
>
identity_type = #{record.identityType,jdbcType=TINYINT},
</if>
<if
test=
"record.identity != null"
>
identity = #{record.identity,jdbcType=VARCHAR},
</if>
<if
test=
"record.birthdate != null"
>
birthdate = #{record.birthdate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.birthdateLunar != null"
>
birthdate_lunar = #{record.birthdateLunar,jdbcType=VARCHAR},
</if>
<if
test=
"record.bornPlaceCountry != null"
>
born_place_country = #{record.bornPlaceCountry,jdbcType=VARCHAR},
</if>
<if
test=
"record.bornPlaceProvince != null"
>
born_place_province = #{record.bornPlaceProvince,jdbcType=VARCHAR},
</if>
<if
test=
"record.bornPlaceCity != null"
>
born_place_city = #{record.bornPlaceCity,jdbcType=VARCHAR},
</if>
<if
test=
"record.bornPlaceArea != null"
>
born_place_area = #{record.bornPlaceArea,jdbcType=VARCHAR},
</if>
<if
test=
"record.bornPlaceTown != null"
>
born_place_town = #{record.bornPlaceTown,jdbcType=VARCHAR},
</if>
<if
test=
"record.bornPalce != null"
>
born_palce = #{record.bornPalce,jdbcType=VARCHAR},
</if>
<if
test=
"record.residenceCountry != null"
>
residence_country = #{record.residenceCountry,jdbcType=VARCHAR},
</if>
<if
test=
"record.residenceProvince != null"
>
residence_province = #{record.residenceProvince,jdbcType=VARCHAR},
</if>
<if
test=
"record.residenceCity != null"
>
residence_city = #{record.residenceCity,jdbcType=VARCHAR},
</if>
<if
test=
"record.residence != null"
>
residence = #{record.residence,jdbcType=VARCHAR},
</if>
<if
test=
"record.livingState != null"
>
living_state = #{record.livingState,jdbcType=TINYINT},
</if>
<if
test=
"record.deathdate != null"
>
deathdate = #{record.deathdate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deathdateEnd != null"
>
deathdate_end = #{record.deathdateEnd,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.deathdateLunar != null"
>
deathdate_lunar = #{record.deathdateLunar,jdbcType=VARCHAR},
</if>
<if
test=
"record.restPlace != null"
>
rest_place = #{record.restPlace,jdbcType=VARCHAR},
</if>
<if
test=
"record.bindBless != null"
>
bind_bless = #{record.bindBless,jdbcType=VARCHAR},
</if>
<if
test=
"record.pic != null"
>
pic = #{record.pic,jdbcType=VARCHAR},
</if>
<if
test=
"record.bgPic != null"
>
bg_pic = #{record.bgPic,jdbcType=VARCHAR},
</if>
<if
test=
"record.constellation != null"
>
constellation = #{record.constellation,jdbcType=VARCHAR},
</if>
<if
test=
"record.blood != null"
>
blood = #{record.blood,jdbcType=VARCHAR},
</if>
<if
test=
"record.height != null"
>
height = #{record.height,jdbcType=VARCHAR},
</if>
<if
test=
"record.weight != null"
>
weight = #{record.weight,jdbcType=VARCHAR},
</if>
<if
test=
"record.education != null"
>
education = #{record.education,jdbcType=VARCHAR},
</if>
<if
test=
"record.graduationSchool != null"
>
graduation_school = #{record.graduationSchool,jdbcType=VARCHAR},
</if>
<if
test=
"record.specialized != null"
>
specialized = #{record.specialized,jdbcType=VARCHAR},
</if>
<if
test=
"record.company != null"
>
company = #{record.company,jdbcType=VARCHAR},
</if>
<if
test=
"record.industry != null"
>
industry = #{record.industry,jdbcType=VARCHAR},
</if>
<if
test=
"record.position != null"
>
position = #{record.position,jdbcType=VARCHAR},
</if>
<if
test=
"record.sourceFrom != null"
>
source_from = #{record.sourceFrom,jdbcType=TINYINT},
</if>
<if
test=
"record.sourceId != null"
>
source_id = #{record.sourceId,jdbcType=INTEGER},
</if>
<if
test=
"record.createDate != null"
>
create_date = #{record.createDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.lastUpdateDate != null"
>
last_update_date = #{record.lastUpdateDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.imageUrl != null"
>
image_url = #{record.imageUrl,jdbcType=VARCHAR},
</if>
<if
test=
"record.residenceArea != null"
>
residence_area = #{record.residenceArea,jdbcType=VARCHAR},
</if>
<if
test=
"record.hobby != null"
>
hobby = #{record.hobby,jdbcType=VARCHAR},
</if>
<if
test=
"record.color != null"
>
color = #{record.color,jdbcType=VARCHAR},
</if>
<if
test=
"record.faith != null"
>
faith = #{record.faith,jdbcType=VARCHAR},
</if>
<if
test=
"record.number != null"
>
number = #{record.number,jdbcType=INTEGER},
</if>
<if
test=
"record.delFlag != null"
>
del_flag = #{record.delFlag,jdbcType=TINYINT},
</if>
<if
test=
"record.profile != null"
>
profile = #{record.profile,jdbcType=LONGVARCHAR},
</if>
<if
test=
"record.permission != null"
>
permission = #{record.permission,jdbcType=LONGVARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExampleWithBLOBs"
parameterType=
"map"
>
update atl_time_owner
set id = #{record.id,jdbcType=BIGINT},
time_id = #{record.timeId,jdbcType=BIGINT},
real_name = #{record.realName,jdbcType=VARCHAR},
literary_name = #{record.literaryName,jdbcType=VARCHAR},
sex = #{record.sex,jdbcType=INTEGER},
family_status = #{record.familyStatus,jdbcType=VARCHAR},
emotional_state = #{record.emotionalState,jdbcType=VARCHAR},
children_num = #{record.childrenNum,jdbcType=BIGINT},
nationality = #{record.nationality,jdbcType=VARCHAR},
identity_type = #{record.identityType,jdbcType=TINYINT},
identity = #{record.identity,jdbcType=VARCHAR},
birthdate = #{record.birthdate,jdbcType=TIMESTAMP},
birthdate_lunar = #{record.birthdateLunar,jdbcType=VARCHAR},
born_place_country = #{record.bornPlaceCountry,jdbcType=VARCHAR},
born_place_province = #{record.bornPlaceProvince,jdbcType=VARCHAR},
born_place_city = #{record.bornPlaceCity,jdbcType=VARCHAR},
born_place_area = #{record.bornPlaceArea,jdbcType=VARCHAR},
born_place_town = #{record.bornPlaceTown,jdbcType=VARCHAR},
born_palce = #{record.bornPalce,jdbcType=VARCHAR},
residence_country = #{record.residenceCountry,jdbcType=VARCHAR},
residence_province = #{record.residenceProvince,jdbcType=VARCHAR},
residence_city = #{record.residenceCity,jdbcType=VARCHAR},
residence = #{record.residence,jdbcType=VARCHAR},
living_state = #{record.livingState,jdbcType=TINYINT},
deathdate = #{record.deathdate,jdbcType=TIMESTAMP},
deathdate_end = #{record.deathdateEnd,jdbcType=TIMESTAMP},
deathdate_lunar = #{record.deathdateLunar,jdbcType=VARCHAR},
rest_place = #{record.restPlace,jdbcType=VARCHAR},
bind_bless = #{record.bindBless,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
bg_pic = #{record.bgPic,jdbcType=VARCHAR},
constellation = #{record.constellation,jdbcType=VARCHAR},
blood = #{record.blood,jdbcType=VARCHAR},
height = #{record.height,jdbcType=VARCHAR},
weight = #{record.weight,jdbcType=VARCHAR},
education = #{record.education,jdbcType=VARCHAR},
graduation_school = #{record.graduationSchool,jdbcType=VARCHAR},
specialized = #{record.specialized,jdbcType=VARCHAR},
company = #{record.company,jdbcType=VARCHAR},
industry = #{record.industry,jdbcType=VARCHAR},
position = #{record.position,jdbcType=VARCHAR},
source_from = #{record.sourceFrom,jdbcType=TINYINT},
source_id = #{record.sourceId,jdbcType=INTEGER},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
last_update_date = #{record.lastUpdateDate,jdbcType=TIMESTAMP},
image_url = #{record.imageUrl,jdbcType=VARCHAR},
residence_area = #{record.residenceArea,jdbcType=VARCHAR},
hobby = #{record.hobby,jdbcType=VARCHAR},
color = #{record.color,jdbcType=VARCHAR},
faith = #{record.faith,jdbcType=VARCHAR},
number = #{record.number,jdbcType=INTEGER},
del_flag = #{record.delFlag,jdbcType=TINYINT},
profile = #{record.profile,jdbcType=LONGVARCHAR},
permission = #{record.permission,jdbcType=LONGVARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update atl_time_owner
set id = #{record.id,jdbcType=BIGINT},
time_id = #{record.timeId,jdbcType=BIGINT},
real_name = #{record.realName,jdbcType=VARCHAR},
literary_name = #{record.literaryName,jdbcType=VARCHAR},
sex = #{record.sex,jdbcType=INTEGER},
family_status = #{record.familyStatus,jdbcType=VARCHAR},
emotional_state = #{record.emotionalState,jdbcType=VARCHAR},
children_num = #{record.childrenNum,jdbcType=BIGINT},
nationality = #{record.nationality,jdbcType=VARCHAR},
identity_type = #{record.identityType,jdbcType=TINYINT},
identity = #{record.identity,jdbcType=VARCHAR},
birthdate = #{record.birthdate,jdbcType=TIMESTAMP},
birthdate_lunar = #{record.birthdateLunar,jdbcType=VARCHAR},
born_place_country = #{record.bornPlaceCountry,jdbcType=VARCHAR},
born_place_province = #{record.bornPlaceProvince,jdbcType=VARCHAR},
born_place_city = #{record.bornPlaceCity,jdbcType=VARCHAR},
born_place_area = #{record.bornPlaceArea,jdbcType=VARCHAR},
born_place_town = #{record.bornPlaceTown,jdbcType=VARCHAR},
born_palce = #{record.bornPalce,jdbcType=VARCHAR},
residence_country = #{record.residenceCountry,jdbcType=VARCHAR},
residence_province = #{record.residenceProvince,jdbcType=VARCHAR},
residence_city = #{record.residenceCity,jdbcType=VARCHAR},
residence = #{record.residence,jdbcType=VARCHAR},
living_state = #{record.livingState,jdbcType=TINYINT},
deathdate = #{record.deathdate,jdbcType=TIMESTAMP},
deathdate_end = #{record.deathdateEnd,jdbcType=TIMESTAMP},
deathdate_lunar = #{record.deathdateLunar,jdbcType=VARCHAR},
rest_place = #{record.restPlace,jdbcType=VARCHAR},
bind_bless = #{record.bindBless,jdbcType=VARCHAR},
pic = #{record.pic,jdbcType=VARCHAR},
bg_pic = #{record.bgPic,jdbcType=VARCHAR},
constellation = #{record.constellation,jdbcType=VARCHAR},
blood = #{record.blood,jdbcType=VARCHAR},
height = #{record.height,jdbcType=VARCHAR},
weight = #{record.weight,jdbcType=VARCHAR},
education = #{record.education,jdbcType=VARCHAR},
graduation_school = #{record.graduationSchool,jdbcType=VARCHAR},
specialized = #{record.specialized,jdbcType=VARCHAR},
company = #{record.company,jdbcType=VARCHAR},
industry = #{record.industry,jdbcType=VARCHAR},
position = #{record.position,jdbcType=VARCHAR},
source_from = #{record.sourceFrom,jdbcType=TINYINT},
source_id = #{record.sourceId,jdbcType=INTEGER},
create_date = #{record.createDate,jdbcType=TIMESTAMP},
last_update_date = #{record.lastUpdateDate,jdbcType=TIMESTAMP},
image_url = #{record.imageUrl,jdbcType=VARCHAR},
residence_area = #{record.residenceArea,jdbcType=VARCHAR},
hobby = #{record.hobby,jdbcType=VARCHAR},
color = #{record.color,jdbcType=VARCHAR},
faith = #{record.faith,jdbcType=VARCHAR},
number = #{record.number,jdbcType=INTEGER},
del_flag = #{record.delFlag,jdbcType=TINYINT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
update atl_time_owner
<set>
<if
test=
"timeId != null"
>
time_id = #{timeId,jdbcType=BIGINT},
</if>
<if
test=
"realName != null"
>
real_name = #{realName,jdbcType=VARCHAR},
</if>
<if
test=
"literaryName != null"
>
literary_name = #{literaryName,jdbcType=VARCHAR},
</if>
<if
test=
"sex != null"
>
sex = #{sex,jdbcType=INTEGER},
</if>
<if
test=
"familyStatus != null"
>
family_status = #{familyStatus,jdbcType=VARCHAR},
</if>
<if
test=
"emotionalState != null"
>
emotional_state = #{emotionalState,jdbcType=VARCHAR},
</if>
<if
test=
"childrenNum != null"
>
children_num = #{childrenNum,jdbcType=BIGINT},
</if>
<if
test=
"nationality != null"
>
nationality = #{nationality,jdbcType=VARCHAR},
</if>
<if
test=
"identityType != null"
>
identity_type = #{identityType,jdbcType=TINYINT},
</if>
<if
test=
"identity != null"
>
identity = #{identity,jdbcType=VARCHAR},
</if>
<if
test=
"birthdate != null"
>
birthdate = #{birthdate,jdbcType=TIMESTAMP},
</if>
<if
test=
"birthdateLunar != null"
>
birthdate_lunar = #{birthdateLunar,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceCountry != null"
>
born_place_country = #{bornPlaceCountry,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceProvince != null"
>
born_place_province = #{bornPlaceProvince,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceCity != null"
>
born_place_city = #{bornPlaceCity,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceArea != null"
>
born_place_area = #{bornPlaceArea,jdbcType=VARCHAR},
</if>
<if
test=
"bornPlaceTown != null"
>
born_place_town = #{bornPlaceTown,jdbcType=VARCHAR},
</if>
<if
test=
"bornPalce != null"
>
born_palce = #{bornPalce,jdbcType=VARCHAR},
</if>
<if
test=
"residenceCountry != null"
>
residence_country = #{residenceCountry,jdbcType=VARCHAR},
</if>
<if
test=
"residenceProvince != null"
>
residence_province = #{residenceProvince,jdbcType=VARCHAR},
</if>
<if
test=
"residenceCity != null"
>
residence_city = #{residenceCity,jdbcType=VARCHAR},
</if>
<if
test=
"residence != null"
>
residence = #{residence,jdbcType=VARCHAR},
</if>
<if
test=
"livingState != null"
>
living_state = #{livingState,jdbcType=TINYINT},
</if>
<if
test=
"deathdate != null"
>
deathdate = #{deathdate,jdbcType=TIMESTAMP},
</if>
<if
test=
"deathdateEnd != null"
>
deathdate_end = #{deathdateEnd,jdbcType=TIMESTAMP},
</if>
<if
test=
"deathdateLunar != null"
>
deathdate_lunar = #{deathdateLunar,jdbcType=VARCHAR},
</if>
<if
test=
"restPlace != null"
>
rest_place = #{restPlace,jdbcType=VARCHAR},
</if>
<if
test=
"bindBless != null"
>
bind_bless = #{bindBless,jdbcType=VARCHAR},
</if>
<if
test=
"pic != null"
>
pic = #{pic,jdbcType=VARCHAR},
</if>
<if
test=
"bgPic != null"
>
bg_pic = #{bgPic,jdbcType=VARCHAR},
</if>
<if
test=
"constellation != null"
>
constellation = #{constellation,jdbcType=VARCHAR},
</if>
<if
test=
"blood != null"
>
blood = #{blood,jdbcType=VARCHAR},
</if>
<if
test=
"height != null"
>
height = #{height,jdbcType=VARCHAR},
</if>
<if
test=
"weight != null"
>
weight = #{weight,jdbcType=VARCHAR},
</if>
<if
test=
"education != null"
>
education = #{education,jdbcType=VARCHAR},
</if>
<if
test=
"graduationSchool != null"
>
graduation_school = #{graduationSchool,jdbcType=VARCHAR},
</if>
<if
test=
"specialized != null"
>
specialized = #{specialized,jdbcType=VARCHAR},
</if>
<if
test=
"company != null"
>
company = #{company,jdbcType=VARCHAR},
</if>
<if
test=
"industry != null"
>
industry = #{industry,jdbcType=VARCHAR},
</if>
<if
test=
"position != null"
>
position = #{position,jdbcType=VARCHAR},
</if>
<if
test=
"sourceFrom != null"
>
source_from = #{sourceFrom,jdbcType=TINYINT},
</if>
<if
test=
"sourceId != null"
>
source_id = #{sourceId,jdbcType=INTEGER},
</if>
<if
test=
"createDate != null"
>
create_date = #{createDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"lastUpdateDate != null"
>
last_update_date = #{lastUpdateDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"imageUrl != null"
>
image_url = #{imageUrl,jdbcType=VARCHAR},
</if>
<if
test=
"residenceArea != null"
>
residence_area = #{residenceArea,jdbcType=VARCHAR},
</if>
<if
test=
"hobby != null"
>
hobby = #{hobby,jdbcType=VARCHAR},
</if>
<if
test=
"color != null"
>
color = #{color,jdbcType=VARCHAR},
</if>
<if
test=
"faith != null"
>
faith = #{faith,jdbcType=VARCHAR},
</if>
<if
test=
"number != null"
>
number = #{number,jdbcType=INTEGER},
</if>
<if
test=
"delFlag != null"
>
del_flag = #{delFlag,jdbcType=TINYINT},
</if>
<if
test=
"profile != null"
>
profile = #{profile,jdbcType=LONGVARCHAR},
</if>
<if
test=
"permission != null"
>
permission = #{permission,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
update atl_time_owner
set time_id = #{timeId,jdbcType=BIGINT},
real_name = #{realName,jdbcType=VARCHAR},
literary_name = #{literaryName,jdbcType=VARCHAR},
sex = #{sex,jdbcType=INTEGER},
family_status = #{familyStatus,jdbcType=VARCHAR},
emotional_state = #{emotionalState,jdbcType=VARCHAR},
children_num = #{childrenNum,jdbcType=BIGINT},
nationality = #{nationality,jdbcType=VARCHAR},
identity_type = #{identityType,jdbcType=TINYINT},
identity = #{identity,jdbcType=VARCHAR},
birthdate = #{birthdate,jdbcType=TIMESTAMP},
birthdate_lunar = #{birthdateLunar,jdbcType=VARCHAR},
born_place_country = #{bornPlaceCountry,jdbcType=VARCHAR},
born_place_province = #{bornPlaceProvince,jdbcType=VARCHAR},
born_place_city = #{bornPlaceCity,jdbcType=VARCHAR},
born_place_area = #{bornPlaceArea,jdbcType=VARCHAR},
born_place_town = #{bornPlaceTown,jdbcType=VARCHAR},
born_palce = #{bornPalce,jdbcType=VARCHAR},
residence_country = #{residenceCountry,jdbcType=VARCHAR},
residence_province = #{residenceProvince,jdbcType=VARCHAR},
residence_city = #{residenceCity,jdbcType=VARCHAR},
residence = #{residence,jdbcType=VARCHAR},
living_state = #{livingState,jdbcType=TINYINT},
deathdate = #{deathdate,jdbcType=TIMESTAMP},
deathdate_end = #{deathdateEnd,jdbcType=TIMESTAMP},
deathdate_lunar = #{deathdateLunar,jdbcType=VARCHAR},
rest_place = #{restPlace,jdbcType=VARCHAR},
bind_bless = #{bindBless,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
bg_pic = #{bgPic,jdbcType=VARCHAR},
constellation = #{constellation,jdbcType=VARCHAR},
blood = #{blood,jdbcType=VARCHAR},
height = #{height,jdbcType=VARCHAR},
weight = #{weight,jdbcType=VARCHAR},
education = #{education,jdbcType=VARCHAR},
graduation_school = #{graduationSchool,jdbcType=VARCHAR},
specialized = #{specialized,jdbcType=VARCHAR},
company = #{company,jdbcType=VARCHAR},
industry = #{industry,jdbcType=VARCHAR},
position = #{position,jdbcType=VARCHAR},
source_from = #{sourceFrom,jdbcType=TINYINT},
source_id = #{sourceId,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=TIMESTAMP},
last_update_date = #{lastUpdateDate,jdbcType=TIMESTAMP},
image_url = #{imageUrl,jdbcType=VARCHAR},
residence_area = #{residenceArea,jdbcType=VARCHAR},
hobby = #{hobby,jdbcType=VARCHAR},
color = #{color,jdbcType=VARCHAR},
faith = #{faith,jdbcType=VARCHAR},
number = #{number,jdbcType=INTEGER},
del_flag = #{delFlag,jdbcType=TINYINT},
profile = #{profile,jdbcType=LONGVARCHAR},
permission = #{permission,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.hwstudio.antaile.mbg.po.SysAtlTimeOwner"
>
update atl_time_owner
set time_id = #{timeId,jdbcType=BIGINT},
real_name = #{realName,jdbcType=VARCHAR},
literary_name = #{literaryName,jdbcType=VARCHAR},
sex = #{sex,jdbcType=INTEGER},
family_status = #{familyStatus,jdbcType=VARCHAR},
emotional_state = #{emotionalState,jdbcType=VARCHAR},
children_num = #{childrenNum,jdbcType=BIGINT},
nationality = #{nationality,jdbcType=VARCHAR},
identity_type = #{identityType,jdbcType=TINYINT},
identity = #{identity,jdbcType=VARCHAR},
birthdate = #{birthdate,jdbcType=TIMESTAMP},
birthdate_lunar = #{birthdateLunar,jdbcType=VARCHAR},
born_place_country = #{bornPlaceCountry,jdbcType=VARCHAR},
born_place_province = #{bornPlaceProvince,jdbcType=VARCHAR},
born_place_city = #{bornPlaceCity,jdbcType=VARCHAR},
born_place_area = #{bornPlaceArea,jdbcType=VARCHAR},
born_place_town = #{bornPlaceTown,jdbcType=VARCHAR},
born_palce = #{bornPalce,jdbcType=VARCHAR},
residence_country = #{residenceCountry,jdbcType=VARCHAR},
residence_province = #{residenceProvince,jdbcType=VARCHAR},
residence_city = #{residenceCity,jdbcType=VARCHAR},
residence = #{residence,jdbcType=VARCHAR},
living_state = #{livingState,jdbcType=TINYINT},
deathdate = #{deathdate,jdbcType=TIMESTAMP},
deathdate_end = #{deathdateEnd,jdbcType=TIMESTAMP},
deathdate_lunar = #{deathdateLunar,jdbcType=VARCHAR},
rest_place = #{restPlace,jdbcType=VARCHAR},
bind_bless = #{bindBless,jdbcType=VARCHAR},
pic = #{pic,jdbcType=VARCHAR},
bg_pic = #{bgPic,jdbcType=VARCHAR},
constellation = #{constellation,jdbcType=VARCHAR},
blood = #{blood,jdbcType=VARCHAR},
height = #{height,jdbcType=VARCHAR},
weight = #{weight,jdbcType=VARCHAR},
education = #{education,jdbcType=VARCHAR},
graduation_school = #{graduationSchool,jdbcType=VARCHAR},
specialized = #{specialized,jdbcType=VARCHAR},
company = #{company,jdbcType=VARCHAR},
industry = #{industry,jdbcType=VARCHAR},
position = #{position,jdbcType=VARCHAR},
source_from = #{sourceFrom,jdbcType=TINYINT},
source_id = #{sourceId,jdbcType=INTEGER},
create_date = #{createDate,jdbcType=TIMESTAMP},
last_update_date = #{lastUpdateDate,jdbcType=TIMESTAMP},
image_url = #{imageUrl,jdbcType=VARCHAR},
residence_area = #{residenceArea,jdbcType=VARCHAR},
hobby = #{hobby,jdbcType=VARCHAR},
color = #{color,jdbcType=VARCHAR},
faith = #{faith,jdbcType=VARCHAR},
number = #{number,jdbcType=INTEGER},
del_flag = #{delFlag,jdbcType=TINYINT}
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