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
a94593c9
Commit
a94593c9
authored
Nov 22, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C1002024
parent
fc4a271f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
BookDto.java
...-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
+14
-0
BookGroupFacade.java
...in/java/com/pcloud/book/group/facade/BookGroupFacade.java
+3
-1
BookGroupFacadeImpl.java
...om/pcloud/book/group/facade/impl/BookGroupFacadeImpl.java
+3
-1
Book.Mapper.xml
...rvice-book/src/main/resources/mapper/book/Book.Mapper.xml
+12
-0
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/book/dto/BookDto.java
View file @
a94593c9
...
@@ -572,6 +572,11 @@ public class BookDto extends BaseDto {
...
@@ -572,6 +572,11 @@ public class BookDto extends BaseDto {
*/
*/
private
String
bookGroupCipher
;
private
String
bookGroupCipher
;
/**
* 是否配置资源
*/
private
Boolean
hasServe
;
public
String
getQrRemark
()
{
public
String
getQrRemark
()
{
return
qrRemark
;
return
qrRemark
;
}
}
...
@@ -1528,6 +1533,14 @@ public class BookDto extends BaseDto {
...
@@ -1528,6 +1533,14 @@ public class BookDto extends BaseDto {
this
.
bookGroupCipher
=
bookGroupCipher
;
this
.
bookGroupCipher
=
bookGroupCipher
;
}
}
public
Boolean
getHasServe
()
{
return
hasServe
;
}
public
void
setHasServe
(
Boolean
hasServe
)
{
this
.
hasServe
=
hasServe
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"BookDto{"
+
return
"BookDto{"
+
...
@@ -1643,6 +1656,7 @@ public class BookDto extends BaseDto {
...
@@ -1643,6 +1656,7 @@ public class BookDto extends BaseDto {
", joinGroupType="
+
joinGroupType
+
", joinGroupType="
+
joinGroupType
+
", friendsCount="
+
friendsCount
+
", friendsCount="
+
friendsCount
+
", bookGroupCipher='"
+
bookGroupCipher
+
'\''
+
", bookGroupCipher='"
+
bookGroupCipher
+
'\''
+
", hasServe="
+
hasServe
+
"} "
+
super
.
toString
();
"} "
+
super
.
toString
();
}
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/BookGroupFacade.java
View file @
a94593c9
...
@@ -119,6 +119,7 @@ public interface BookGroupFacade {
...
@@ -119,6 +119,7 @@ public interface BookGroupFacade {
@ApiImplicitParam
(
name
=
"bookId"
,
value
=
"书籍标识"
,
dataType
=
"int"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"bookId"
,
value
=
"书籍标识"
,
dataType
=
"int"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"startDate"
,
value
=
"开始时间"
,
dataType
=
"string"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"startDate"
,
value
=
"开始时间"
,
dataType
=
"string"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"endDate"
,
value
=
"结束时间"
,
dataType
=
"string"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"endDate"
,
value
=
"结束时间"
,
dataType
=
"string"
,
paramType
=
"query"
),
@ApiImplicitParam
(
name
=
"hasServe"
,
value
=
"结束时间"
,
dataType
=
"boolean"
,
paramType
=
"query"
),
})
})
@RequestMapping
(
value
=
"listBookGroup4Adviser"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"listBookGroup4Adviser"
,
method
=
RequestMethod
.
GET
)
ResponseDto
<
PageBean
>
listBookGroup4Adviser
(
@RequestHeader
(
"token"
)
String
token
,
ResponseDto
<
PageBean
>
listBookGroup4Adviser
(
@RequestHeader
(
"token"
)
String
token
,
...
@@ -134,7 +135,8 @@ public interface BookGroupFacade {
...
@@ -134,7 +135,8 @@ public interface BookGroupFacade {
@RequestParam
(
value
=
"bookId"
,
required
=
false
)
Integer
bookId
,
@RequestParam
(
value
=
"bookId"
,
required
=
false
)
Integer
bookId
,
@RequestParam
(
value
=
"joinGroupType"
,
required
=
false
)
Integer
joinGroupType
,
@RequestParam
(
value
=
"joinGroupType"
,
required
=
false
)
Integer
joinGroupType
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDate
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDate
,
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
)
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
,
@RequestParam
(
value
=
"hasServe"
,
required
=
false
)
Boolean
hasServe
)
throws
BizException
,
PermissionException
;
throws
BizException
,
PermissionException
;
@ApiOperation
(
value
=
"获取社群书列表(运营)"
,
httpMethod
=
"POST"
)
@ApiOperation
(
value
=
"获取社群书列表(运营)"
,
httpMethod
=
"POST"
)
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/BookGroupFacadeImpl.java
View file @
a94593c9
...
@@ -170,7 +170,8 @@ public class BookGroupFacadeImpl implements BookGroupFacade {
...
@@ -170,7 +170,8 @@ public class BookGroupFacadeImpl implements BookGroupFacade {
@RequestParam
(
value
=
"bookId"
,
required
=
false
)
Integer
bookId
,
@RequestParam
(
value
=
"bookId"
,
required
=
false
)
Integer
bookId
,
@RequestParam
(
value
=
"joinGroupType"
,
required
=
false
)
Integer
joinGroupType
,
@RequestParam
(
value
=
"joinGroupType"
,
required
=
false
)
Integer
joinGroupType
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDate
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDate
,
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
)
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
,
@RequestParam
(
value
=
"hasServe"
,
required
=
false
)
Boolean
hasServe
)
throws
BizException
,
PermissionException
{
throws
BizException
,
PermissionException
{
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
Long
adviserId
=
(
Long
)
SessionUtil
.
getVlaue
(
token
,
SessionUtil
.
PARTY_ID
);
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
if
(
currentPage
==
null
||
numPerPage
==
null
||
currentPage
<
0
||
numPerPage
<
0
)
{
...
@@ -191,6 +192,7 @@ public class BookGroupFacadeImpl implements BookGroupFacade {
...
@@ -191,6 +192,7 @@ public class BookGroupFacadeImpl implements BookGroupFacade {
paramMap
.
put
(
"startDate"
,
startDate
+
" 00:00:00"
);
paramMap
.
put
(
"startDate"
,
startDate
+
" 00:00:00"
);
paramMap
.
put
(
"endDate"
,
endDate
+
" 23:59:59"
);
paramMap
.
put
(
"endDate"
,
endDate
+
" 23:59:59"
);
}
}
paramMap
.
put
(
"hasServe"
,
hasServe
);
PageBean
pageBean
=
bookGroupBiz
.
listBookGroup4Adviser
(
paramMap
,
new
PageParam
(
currentPage
,
numPerPage
),
adviserId
);
PageBean
pageBean
=
bookGroupBiz
.
listBookGroup4Adviser
(
paramMap
,
new
PageParam
(
currentPage
,
numPerPage
),
adviserId
);
return
new
ResponseDto
<>(
pageBean
);
return
new
ResponseDto
<>(
pageBean
);
}
}
...
...
pcloud-service-book/src/main/resources/mapper/book/Book.Mapper.xml
View file @
a94593c9
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
<result
column=
"BOOK_GROUP_ID"
property=
"bookGroupId"
jdbcType=
"BIGINT"
/>
<result
column=
"BOOK_GROUP_ID"
property=
"bookGroupId"
jdbcType=
"BIGINT"
/>
<result
column=
"join_group_type"
property=
"joinGroupType"
jdbcType=
"INTEGER"
/>
<result
column=
"join_group_type"
property=
"joinGroupType"
jdbcType=
"INTEGER"
/>
<result
column=
"book_group_cipher"
property=
"bookGroupCipher"
jdbcType=
"VARCHAR"
/>
<result
column=
"book_group_cipher"
property=
"bookGroupCipher"
jdbcType=
"VARCHAR"
/>
<result
column=
"has_serve"
property=
"hasServe"
jdbcType=
"VARCHAR"
/>
</resultMap>
</resultMap>
<resultMap
id=
"bookListPageMap"
type=
"bookDto"
extends =
"bookMap"
>
<resultMap
id=
"bookListPageMap"
type=
"bookDto"
extends =
"bookMap"
>
...
@@ -560,12 +561,17 @@
...
@@ -560,12 +561,17 @@
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT, A.TEMPLET_ID, A.BOOK_ADVISER_ID, CONCAT('BK',A.BOOK_ID) uniqueNumber,
IF(ISNULL(BF.BOOK_FUND_ID),0,1) IS_FUND_SUPPORT, A.TEMPLET_ID, A.BOOK_ADVISER_ID, CONCAT('BK',A.BOOK_ID) uniqueNumber,
G.update_time LAST_MODIFIED_DATE, G.create_time CREATED_DATE, G.id BOOK_GROUP_ID, G.group_qrcode_url groupQrcodeUrl,
G.update_time LAST_MODIFIED_DATE, G.create_time CREATED_DATE, G.id BOOK_GROUP_ID, G.group_qrcode_url groupQrcodeUrl,
G.group_qrcode_name groupQrcodeName, G.dep_label_id depLabelId, G.join_group_type, G.book_group_cipher
G.group_qrcode_name groupQrcodeName, G.dep_label_id depLabelId, G.join_group_type, G.book_group_cipher
, case count(bgs.id)
when 0 then 0
else 1
end has_serve
FROM
FROM
book_group G
book_group G
LEFT JOIN BOOK_ADVISER A ON G.BOOK_ID = A.BOOK_ID AND G.CHANNEL_ID = A.CHANNEL_ID AND G.CREATE_USER = A.ADVISER_ID
LEFT JOIN BOOK_ADVISER A ON G.BOOK_ID = A.BOOK_ID AND G.CHANNEL_ID = A.CHANNEL_ID AND G.CREATE_USER = A.ADVISER_ID
LEFT JOIN BOOK B ON A.BOOK_ID = B.BOOK_ID
LEFT JOIN BOOK B ON A.BOOK_ID = B.BOOK_ID
LEFT JOIN BOOK_TYPE T ON B.TYPE_CODE = T.TYPE_CODE
LEFT JOIN BOOK_TYPE T ON B.TYPE_CODE = T.TYPE_CODE
LEFT JOIN BOOK_FUND BF ON BF.BOOK_ID = A.BOOK_ID AND BF.END_TIME
<![CDATA[ > ]]>
NOW() AND BF.START_TIME
<![CDATA[ < ]]>
NOW()
LEFT JOIN BOOK_FUND BF ON BF.BOOK_ID = A.BOOK_ID AND BF.END_TIME
<![CDATA[ > ]]>
NOW() AND BF.START_TIME
<![CDATA[ < ]]>
NOW()
LEFT JOIN BOOK_GROUP_SERVE bgs on G.id=bgs.book_group_id
WHERE
WHERE
G.create_user = #{adviserId} AND G.is_delete = 0
G.create_user = #{adviserId} AND G.is_delete = 0
AND (
AND (
...
@@ -615,6 +621,12 @@
...
@@ -615,6 +621,12 @@
AND G.join_group_type=#{joinGroupType}
AND G.join_group_type=#{joinGroupType}
</if>
</if>
GROUP BY G.id
GROUP BY G.id
<if
test=
"hasServe!=null and hasServe==true"
>
having count(bgs.id)>0
</if>
<if
test=
"hasServe!=null and hasServe==false"
>
having count(bgs.id)=0
</if>
ORDER BY
ORDER BY
G.UPDATE_TIME DESC
G.UPDATE_TIME DESC
</select>
</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