Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
995efca0
Commit
995efca0
authored
Sep 25, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下
parent
daeb1d83
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
2 deletions
+57
-2
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+13
-1
BookGroupCipherUser.java
...ava/com/pcloud/book/group/entity/BookGroupCipherUser.java
+12
-0
JoinGroupTypeEnum.java
...n/java/com/pcloud/book/group/enums/JoinGroupTypeEnum.java
+27
-0
BookKeywordBizImpl.java
...com/pcloud/book/keywords/biz/impl/BookKeywordBizImpl.java
+1
-0
BookGroupCipherUser.xml
...k/src/main/resources/mapper/group/BookGroupCipherUser.xml
+4
-1
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
995efca0
...
@@ -30,6 +30,7 @@ import com.pcloud.book.group.entity.GroupQrcode;
...
@@ -30,6 +30,7 @@ import com.pcloud.book.group.entity.GroupQrcode;
import
com.pcloud.book.group.entity.JoinGroupCipher
;
import
com.pcloud.book.group.entity.JoinGroupCipher
;
import
com.pcloud.book.group.entity.TempletRelevance
;
import
com.pcloud.book.group.entity.TempletRelevance
;
import
com.pcloud.book.group.enums.CipherTypeEnum
;
import
com.pcloud.book.group.enums.CipherTypeEnum
;
import
com.pcloud.book.group.enums.JoinGroupTypeEnum
;
import
com.pcloud.book.group.enums.LargTempletEnum
;
import
com.pcloud.book.group.enums.LargTempletEnum
;
import
com.pcloud.book.group.vo.StatisticVO
;
import
com.pcloud.book.group.vo.StatisticVO
;
import
com.pcloud.book.group.biz.GroupQrcodeBiz
;
import
com.pcloud.book.group.biz.GroupQrcodeBiz
;
...
@@ -453,7 +454,18 @@ public class BookGroupBizImpl implements BookGroupBiz {
...
@@ -453,7 +454,18 @@ public class BookGroupBizImpl implements BookGroupBiz {
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateBookGroup
(
BookGroup
bookGroup
)
throws
BizException
{
public
void
updateBookGroup
(
BookGroup
bookGroup
)
throws
BizException
{
if
(
null
==
bookGroup
.
getId
()
||
StringUtil
.
isEmpty
(
bookGroup
.
getGroupQrcodeName
())
||
null
==
bookGroup
.
getProLabelId
()
if
(
null
==
bookGroup
.
getId
()
||
StringUtil
.
isEmpty
(
bookGroup
.
getGroupQrcodeName
())
||
null
==
bookGroup
.
getProLabelId
()
||
null
==
bookGroup
.
getDepLabelId
()
||
null
==
bookGroup
.
getPurLabelId
()
)
{
||
null
==
bookGroup
.
getDepLabelId
()
||
null
==
bookGroup
.
getPurLabelId
()
||
bookGroup
.
getJoinGroupType
()
==
null
)
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
}
if
(
JoinGroupTypeEnum
.
GROUP_QRCODE
.
code
.
equals
(
bookGroup
.
getJoinGroupType
())
&&
(
StringUtil
.
isEmpty
(
bookGroup
.
getJoinTitle
())
||
StringUtil
.
isEmpty
(
bookGroup
.
getJoinSlogan
())))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
}
if
(
JoinGroupTypeEnum
.
ROBOT
.
code
.
equals
(
bookGroup
.
getJoinGroupType
())
&&
(
bookGroup
.
getIsInviteGroup
()
==
null
||
StringUtil
.
isEmpty
(
bookGroup
.
getAddFriendGuide
())
||
StringUtil
.
isEmpty
(
bookGroup
.
getCustomerServiceName
())))
{
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
throw
new
BookBizException
(
BookBizException
.
PARAM_IS_ERROR
,
"参数有误!"
);
}
}
if
(
bookGroup
.
getGroupQrcodeName
().
contains
(
"#"
)){
if
(
bookGroup
.
getGroupQrcodeName
().
contains
(
"#"
)){
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/entity/BookGroupCipherUser.java
View file @
995efca0
...
@@ -22,6 +22,9 @@ public class BookGroupCipherUser extends BaseEntity {
...
@@ -22,6 +22,9 @@ public class BookGroupCipherUser extends BaseEntity {
@ApiModelProperty
(
"用户微信id"
)
@ApiModelProperty
(
"用户微信id"
)
private
String
wxUserId
;
private
String
wxUserId
;
@ApiModelProperty
(
"机器人id"
)
private
String
altId
;
public
Long
getBookGroupId
()
{
public
Long
getBookGroupId
()
{
return
bookGroupId
;
return
bookGroupId
;
}
}
...
@@ -46,12 +49,21 @@ public class BookGroupCipherUser extends BaseEntity {
...
@@ -46,12 +49,21 @@ public class BookGroupCipherUser extends BaseEntity {
this
.
wxUserId
=
wxUserId
;
this
.
wxUserId
=
wxUserId
;
}
}
public
String
getAltId
()
{
return
altId
;
}
public
void
setAltId
(
String
altId
)
{
this
.
altId
=
altId
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BookGroupCipherUser{"
+
return
"BookGroupCipherUser{"
+
"bookGroupId="
+
bookGroupId
+
"bookGroupId="
+
bookGroupId
+
", bookGroupCipher='"
+
bookGroupCipher
+
'\''
+
", bookGroupCipher='"
+
bookGroupCipher
+
'\''
+
", wxUserId='"
+
wxUserId
+
'\''
+
", wxUserId='"
+
wxUserId
+
'\''
+
", altId='"
+
altId
+
'\''
+
"} "
+
super
.
toString
();
"} "
+
super
.
toString
();
}
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/enums/JoinGroupTypeEnum.java
0 → 100644
View file @
995efca0
package
com
.
pcloud
.
book
.
group
.
enums
;
/**
* @Description
* @Author ruansiyuan
* @Date 2019/9/25 15:05
**/
public
enum
JoinGroupTypeEnum
{
/**
* 群二维码
*/
GROUP_QRCODE
(
1
,
"群二维码"
),
/**
* 客服机器人
*/
ROBOT
(
2
,
"客服机器人"
);
public
final
Integer
code
;
public
final
String
name
;
JoinGroupTypeEnum
(
Integer
code
,
String
name
)
{
this
.
code
=
code
;
this
.
name
=
name
;
}
}
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/BookKeywordBizImpl.java
View file @
995efca0
...
@@ -627,6 +627,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
...
@@ -627,6 +627,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
bookGroupCipherUser
.
setBookGroupCipher
(
sendTextDTO
.
getTextContent
());
bookGroupCipherUser
.
setBookGroupCipher
(
sendTextDTO
.
getTextContent
());
bookGroupCipherUser
.
setBookGroupId
(
bookGroupId
);
bookGroupCipherUser
.
setBookGroupId
(
bookGroupId
);
bookGroupCipherUser
.
setWxUserId
(
sendTextDTO
.
getWechatUserId
());
bookGroupCipherUser
.
setWxUserId
(
sendTextDTO
.
getWechatUserId
());
bookGroupCipherUser
.
setAltId
(
sendTextDTO
.
getWxId
());
//新增暗号对应记录
//新增暗号对应记录
bookGroupCipherUserDao
.
insert
(
bookGroupCipherUser
);
bookGroupCipherUserDao
.
insert
(
bookGroupCipherUser
);
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getBookBaseInfoById
(
bookGroupId
);
BookGroupDTO
bookGroupDTO
=
bookGroupDao
.
getBookBaseInfoById
(
bookGroupId
);
...
...
pcloud-service-book/src/main/resources/mapper/group/BookGroupCipherUser.xml
View file @
995efca0
...
@@ -6,12 +6,13 @@
...
@@ -6,12 +6,13 @@
<result
column=
"book_group_id"
property=
"bookGroupId"
jdbcType=
"BIGINT"
/>
<result
column=
"book_group_id"
property=
"bookGroupId"
jdbcType=
"BIGINT"
/>
<result
column=
"book_group_cipher"
property=
"bookGroupCipher"
jdbcType=
"VARCHAR"
/>
<result
column=
"book_group_cipher"
property=
"bookGroupCipher"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_user_id"
property=
"wxUserId"
jdbcType=
"VARCHAR"
/>
<result
column=
"wx_user_id"
property=
"wxUserId"
jdbcType=
"VARCHAR"
/>
<result
column=
"alt_id"
property=
"altId"
jdbcType=
"VARCHAR"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, book_group_id, book_group_cipher, wx_user_id, create_time
id, book_group_id, book_group_cipher, wx_user_id,
alt_id,
create_time
</sql>
</sql>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.group.entity.BookGroupCipherUser"
useGeneratedKeys=
"true"
<insert
id=
"insert"
parameterType=
"com.pcloud.book.group.entity.BookGroupCipherUser"
useGeneratedKeys=
"true"
...
@@ -21,12 +22,14 @@
...
@@ -21,12 +22,14 @@
book_group_id,
book_group_id,
book_group_cipher,
book_group_cipher,
wx_user_id,
wx_user_id,
alt_id,
create_time
create_time
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{bookGroupId,jdbcType=BIGINT},
#{bookGroupId,jdbcType=BIGINT},
#{bookGroupCipher,jdbcType=VARCHAR},
#{bookGroupCipher,jdbcType=VARCHAR},
#{wxUserId,jdbcType=VARCHAR},
#{wxUserId,jdbcType=VARCHAR},
#{altId,jdbcType=VARCHAR},
NOW()
NOW()
</trim>
</trim>
</insert>
</insert>
...
...
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