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
79fb1449
Commit
79fb1449
authored
Aug 07, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改下
parent
3f86ad40
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
BookGroupBizImpl.java
...java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
+2
-2
JoinGroupCipherDao.java
...in/java/com/pcloud/book/group/dao/JoinGroupCipherDao.java
+1
-1
JoinGroupCipherDaoImpl.java
...om/pcloud/book/group/dao/impl/JoinGroupCipherDaoImpl.java
+2
-2
JoinGroupCipher.java
...in/java/com/pcloud/book/group/entity/JoinGroupCipher.java
+6
-6
JoinGroupCipher.xml
...-book/src/main/resources/mapper/group/JoinGroupCipher.xml
+6
-6
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/BookGroupBizImpl.java
View file @
79fb1449
...
...
@@ -1093,7 +1093,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
ownAltQrcodeInfoDTO
.
setAltQrcodeUrl
(
selfRobotDTO
.
getQrcodeUrl
());
ownAltQrcodeInfoDTO
.
setAltHeadUrl
(
selfRobotDTO
.
getHeadPic
());
//获取之前是否有没有使用的暗号
JoinGroupCipher
joinGroupCipher
=
joinGroupCipherDao
.
getBy
CreateUser
(
wechatUserId
,
classifyId
);
JoinGroupCipher
joinGroupCipher
=
joinGroupCipherDao
.
getBy
WechatUserId
(
wechatUserId
,
classifyId
);
String
cipher
;
if
(
joinGroupCipher
!=
null
)
{
cipher
=
joinGroupCipher
.
getCipher
();
...
...
@@ -1107,7 +1107,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
}
JoinGroupCipher
joinGroupCipherNew
=
new
JoinGroupCipher
();
joinGroupCipherNew
.
setCipher
(
cipher
);
joinGroupCipherNew
.
set
CreateUser
(
wechatUserId
);
joinGroupCipherNew
.
set
WechatUserId
(
wechatUserId
);
joinGroupCipherNew
.
setClassifyId
(
classifyId
);
joinGroupCipherDao
.
insert
(
joinGroupCipherNew
);
}
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/dao/JoinGroupCipherDao.java
View file @
79fb1449
...
...
@@ -4,7 +4,7 @@ import com.pcloud.book.group.entity.JoinGroupCipher;
import
com.pcloud.common.core.dao.BaseDao
;
public
interface
JoinGroupCipherDao
extends
BaseDao
<
JoinGroupCipher
>
{
JoinGroupCipher
getBy
CreateUser
(
Long
wechatUserId
,
Long
classifyId
);
JoinGroupCipher
getBy
WechatUserId
(
Long
wechatUserId
,
Long
classifyId
);
JoinGroupCipher
getByCipher
(
String
cipher
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/dao/impl/JoinGroupCipherDaoImpl.java
View file @
79fb1449
...
...
@@ -16,11 +16,11 @@ import java.util.Map;
@Component
(
"joinGroupCipherDao"
)
public
class
JoinGroupCipherDaoImpl
extends
BaseDaoImpl
<
JoinGroupCipher
>
implements
JoinGroupCipherDao
{
@Override
public
JoinGroupCipher
getBy
CreateUser
(
Long
wechatUserId
,
Long
classifyId
)
{
public
JoinGroupCipher
getBy
WechatUserId
(
Long
wechatUserId
,
Long
classifyId
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"wechatUserId"
,
wechatUserId
);
map
.
put
(
"classifyId"
,
classifyId
);
return
this
.
getSqlSession
().
selectOne
(
this
.
getStatement
(
"getBy
CreateUser
"
),
map
);
return
this
.
getSqlSession
().
selectOne
(
this
.
getStatement
(
"getBy
WechatUserId
"
),
map
);
}
@Override
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/entity/JoinGroupCipher.java
View file @
79fb1449
...
...
@@ -18,7 +18,7 @@ public class JoinGroupCipher extends BaseEntity {
private
Long
classifyId
;
@ApiModelProperty
(
"创建人"
)
private
Long
createUser
;
private
Long
wechatUserId
;
@ApiModelProperty
(
"使用人微信id"
)
private
String
wxId
;
...
...
@@ -42,12 +42,12 @@ public class JoinGroupCipher extends BaseEntity {
this
.
classifyId
=
classifyId
;
}
public
Long
get
CreateUser
()
{
return
createUser
;
public
Long
get
WechatUserId
()
{
return
wechatUserId
;
}
public
void
set
CreateUser
(
Long
createUser
)
{
this
.
createUser
=
createUser
;
public
void
set
WechatUserId
(
Long
wechatUserId
)
{
this
.
wechatUserId
=
wechatUserId
;
}
public
String
getWxId
()
{
...
...
@@ -71,7 +71,7 @@ public class JoinGroupCipher extends BaseEntity {
return
"JoinGroupCipher{"
+
"cipher='"
+
cipher
+
'\''
+
", classifyId="
+
classifyId
+
",
createUser="
+
createUser
+
",
wechatUserId="
+
wechatUserId
+
", wxId='"
+
wxId
+
'\''
+
", hasUsed="
+
hasUsed
+
"} "
+
super
.
toString
();
...
...
pcloud-service-book/src/main/resources/mapper/group/JoinGroupCipher.xml
View file @
79fb1449
...
...
@@ -5,7 +5,7 @@
<id
column=
"id"
property=
"id"
jdbcType=
"BIGINT"
/>
<result
column=
"cipher"
property=
"cipher"
jdbcType=
"VARCHAR"
/>
<result
column=
"classify_id"
property=
"classifyId"
jdbcType=
"BIGINT"
/>
<result
column=
"
create_user"
property=
"createUser
"
jdbcType=
"BIGINT"
/>
<result
column=
"
wechat_user_id"
property=
"wechatUserId
"
jdbcType=
"BIGINT"
/>
<result
column=
"create_time"
property=
"createTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"update_time"
property=
"updateTime"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"wx_id"
property=
"wxId"
jdbcType=
"BIGINT"
/>
...
...
@@ -13,7 +13,7 @@
</resultMap>
<sql
id=
"Base_Column_List"
>
id, cipher, classify_id, create_time,
create_user
, update_time, wx_id, has_used
id, cipher, classify_id, create_time,
wechat_user_id
, update_time, wx_id, has_used
</sql>
<insert
id=
"insert"
parameterType=
"com.pcloud.book.group.entity.JoinGroupCipher"
useGeneratedKeys=
"true"
...
...
@@ -23,22 +23,22 @@
cipher,
classify_id,
create_time,
create_user
,
wechat_user_id
,
has_used
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{cipher,jdbcType=BIGINT},
#{classifyId,jdbcType=BIGINT},
now(),
#{
createUser
,jdbcType=BIGINT},
#{
wechatUserId
,jdbcType=BIGINT},
0
</trim>
</insert>
<!--获取基本信息-->
<select
id=
"getBy
CreateUser
"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
<select
id=
"getBy
WechatUserId
"
parameterType=
"map"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from join_group_cipher
where
create_user
=#{wechatUserId} and
where
wechat_user_id
=#{wechatUserId} and
classify_id=#{classifyId}
</select>
...
...
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