Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
向汉
/
uc-consumer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
24873c9d
...
24873c9d90aef0272277a2221d654e4fcff0b82f
authored
2022-03-23 17:21:11 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.优化
1 parent
c2cb5d73
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
10 deletions
src/main/java/com/topdraw/business/module/member/domain/Member.java
src/main/java/com/topdraw/business/module/member/profile/domain/MemberProfile.java
src/main/java/com/topdraw/business/module/points/domain/Points.java
src/main/java/com/topdraw/business/module/user/iptv/domain/UserTv.java
src/main/java/com/topdraw/business/module/user/weixin/domain/UserWeixin.java
src/main/java/com/topdraw/business/process/service/dto/MemberAndUserTvDTO.java
src/main/java/com/topdraw/business/process/service/dto/MemberAndWeixinUserDTO.java
src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
src/main/java/com/topdraw/business/module/member/domain/Member.java
View file @
24873c9
...
...
@@ -35,7 +35,7 @@ public class Member implements Serializable {
/** 主键 */
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
@NotNull
(
message
=
"id can't be null!!"
,
groups
=
{
UpdateGroup
.
class
})
private
Long
id
;
...
...
src/main/java/com/topdraw/business/module/member/profile/domain/MemberProfile.java
View file @
24873c9
...
...
@@ -37,7 +37,7 @@ public class MemberProfile implements Serializable {
/** 主键 */
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
@NotNull
(
message
=
"id not be null!!"
,
groups
=
UpdateGroup
.
class
)
private
Long
id
;
...
...
src/main/java/com/topdraw/business/module/points/domain/Points.java
View file @
24873c9
...
...
@@ -24,6 +24,7 @@ import java.sql.Timestamp;
public
class
Points
implements
Serializable
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
private
Long
id
;
...
...
src/main/java/com/topdraw/business/module/user/iptv/domain/UserTv.java
View file @
24873c9
...
...
@@ -37,7 +37,7 @@ public class UserTv extends AsyncMqModule implements Serializable {
/** ID */
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
@Column
(
name
=
"id"
)
private
Long
id
;
...
...
src/main/java/com/topdraw/business/module/user/weixin/domain/UserWeixin.java
View file @
24873c9
...
...
@@ -29,7 +29,7 @@ public class UserWeixin extends AsyncMqModule implements Serializable {
/** ID */
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
SEQUENCE
)
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
private
Long
id
;
...
...
src/main/java/com/topdraw/business/process/service/dto/MemberAndUserTvDTO.java
0 → 100644
View file @
24873c9
package
com
.
topdraw
.
business
.
process
.
service
.
dto
;
import
com.topdraw.business.module.member.service.dto.MemberDTO
;
import
com.topdraw.business.module.user.iptv.service.dto.UserTvDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @author :
* @description:
* @function :
* @date :Created in 2022/3/23 9:48
* @version: :
* @modified By:
* @since : modified in 2022/3/23 9:48
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
MemberAndUserTvDTO
implements
Serializable
{
private
MemberDTO
memberDTO
;
private
UserTvDTO
userTvDTO
;
}
src/main/java/com/topdraw/business/process/service/dto/MemberAndWeixinUserDTO.java
0 → 100644
View file @
24873c9
package
com
.
topdraw
.
business
.
process
.
service
.
dto
;
import
com.topdraw.business.module.member.service.dto.MemberDTO
;
import
com.topdraw.business.module.user.weixin.service.dto.UserWeixinDTO
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @author :
* @description:
* @function :
* @date :Created in 2022/3/23 9:48
* @version: :
* @modified By:
* @since : modified in 2022/3/23 9:48
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
MemberAndWeixinUserDTO
implements
Serializable
{
private
MemberDTO
memberDTO
;
private
UserWeixinDTO
userWeixinDTO
;
}
src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
View file @
24873c9
...
...
@@ -11,6 +11,8 @@ import com.topdraw.business.module.user.weixin.domain.UserWeixin;
import
com.topdraw.business.module.user.weixin.service.UserWeixinService
;
import
com.topdraw.business.module.user.weixin.service.dto.UserWeixinDTO
;
import
com.topdraw.business.process.service.UserOperationService
;
import
com.topdraw.business.process.service.dto.MemberAndUserTvDTO
;
import
com.topdraw.business.process.service.dto.MemberAndWeixinUserDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -31,9 +33,9 @@ public class UserOperationServiceImpl implements UserOperationService {
private
UserWeixinService
userWeixinService
;
@Transactional
(
propagation
=
Propagation
.
SUPPORTS
,
readOnly
=
true
,
rollbackFor
=
Exception
.
class
)
public
void
async
WeixinMemberAndUserWeixin4Iptv
(
MemberDTO
memberDTO
,
UserWeixinDTO
weixin
DTO
)
{
this
.
saveMember
(
member
DTO
);
this
.
saveWeixin
(
weixinDTO
);
public
void
async
MemberAndUserWeixin4Iptv
(
MemberAndWeixinUserDTO
memberAndWeixinUser
DTO
)
{
this
.
saveMember
(
member
AndWeixinUserDTO
.
getMemberDTO
()
);
this
.
saveWeixin
(
memberAndWeixinUserDTO
.
getUserWeixinDTO
()
);
}
private
void
saveMember
(
MemberDTO
memberDTO
){
...
...
@@ -43,9 +45,9 @@ public class UserOperationServiceImpl implements UserOperationService {
}
@Transactional
(
propagation
=
Propagation
.
SUPPORTS
,
readOnly
=
true
,
rollbackFor
=
Exception
.
class
)
public
void
asyncMemberAndUserTv4Iptv
(
Member
DTO
memberDTO
,
UserTvDTO
u
serTvDTO
)
{
this
.
saveMember
(
member
DTO
);
this
.
saveUserTv
(
userTvDTO
);
public
void
asyncMemberAndUserTv4Iptv
(
Member
AndUserTvDTO
memberAndU
serTvDTO
)
{
this
.
saveMember
(
member
AndUserTvDTO
.
getMemberDTO
()
);
this
.
saveUserTv
(
memberAndUserTvDTO
.
getUserTvDTO
()
);
}
public
void
asyncWeixin
(
UserWeixinDTO
weixinDTO
)
{
...
...
Please
register
or
sign in
to post a comment