Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
53c1c7e1
Commit
53c1c7e1
authored
Jun 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加同步说明
parent
747c9ec3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
PersonAccountFed.java
...n/amos/boot/module/jxiop/api/entity/PersonAccountFed.java
+9
-1
PersonBasicController.java
...ot/module/jxiop/biz/controller/PersonBasicController.java
+3
-0
PersonBasicServiceImpl.java
...module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
+4
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/PersonAccountFed.java
View file @
53c1c7e1
...
...
@@ -8,6 +8,7 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -19,7 +20,7 @@ import java.util.List;
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
value
=
"person_account"
,
autoResultMap
=
true
)
@TableName
(
value
=
"person_account
_fed
"
,
autoResultMap
=
true
)
public
class
PersonAccountFed
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -122,4 +123,11 @@ public class PersonAccountFed extends BaseEntity {
@TableField
(
exist
=
false
)
private
String
phoneNum
;
@TableField
(
"sync_state"
)
private
Integer
syncState
;
@TableField
(
"sync_date"
)
private
Date
syncDate
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PersonBasicController.java
View file @
53c1c7e1
...
...
@@ -54,6 +54,7 @@ public class PersonBasicController extends BaseController {
try
{
personBasicServiceImpl
.
addPerson
(
model
,
httpServletRequest
);
}
catch
(
InnerInvokException
e
){
e
.
printStackTrace
();
return
this
.
buildResponseFalse
(
e
.
getMessage
());
}
return
ResponseHelper
.
buildResponse
(
null
);
...
...
@@ -76,6 +77,7 @@ public class PersonBasicController extends BaseController {
try
{
personBasicServiceImpl
.
updatePerson
(
model
,
httpServletRequest
,
sequenceNbr
);
}
catch
(
InnerInvokException
e
){
e
.
printStackTrace
();
return
this
.
buildResponseFalse
(
e
.
getMessage
());
}
return
ResponseHelper
.
buildResponse
(
null
);
...
...
@@ -97,6 +99,7 @@ public class PersonBasicController extends BaseController {
String
[]
idss
=
ids
.
split
(
","
);
num
=
personBasicServiceImpl
.
deletePerson
(
idss
);
}
catch
(
InnerInvokException
e
){
e
.
printStackTrace
();
return
this
.
buildResponseFalse
(
e
.
getMessage
());
}
return
ResponseHelper
.
buildResponse
(
num
>
0
?
true
:
false
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PersonBasicServiceImpl.java
View file @
53c1c7e1
...
...
@@ -171,6 +171,8 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
PersonAccountFed
personAccountFed
=
new
PersonAccountFed
();
BeanUtils
.
copyProperties
(
personAccount
,
personAccountFed
);
personAccountFed
.
setSyncState
(
0
);
personAccountFed
.
setSyncDate
(
new
Date
());
personAccountFedMapper
.
insert
(
personAccountFed
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
...
...
@@ -271,6 +273,8 @@ public class PersonBasicServiceImpl extends BaseService<PersonBasicDto, PersonBa
PersonAccountFed
personAccountFed
=
new
PersonAccountFed
();
BeanUtils
.
copyProperties
(
personAccount
,
personAccountFed
);
personAccountFed
.
setSyncState
(
1
);
personAccountFed
.
setSyncDate
(
new
Date
());
personAccountFedMapper
.
updateById
(
personAccountFed
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
...
...
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