Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lwby_copyright_book_data
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
maliang
lwby_copyright_book_data
Commits
0b530ab1
Commit
0b530ab1
authored
May 07, 2020
by
maliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传bug修复
parent
ee77bcef
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
8 deletions
+11
-8
CopyrightBookController.java
...t/security/server/controller/CopyrightBookController.java
+1
-1
CopyrightDao.java
src/main/java/com/boot/security/server/dao/CopyrightDao.java
+1
-1
CopyrightBookService.java
...om/boot/security/server/service/CopyrightBookService.java
+1
-1
CopyrightBookServiceImpl.java
...ecurity/server/service/impl/CopyrightBookServiceImpl.java
+2
-2
CopyrightMapper.xml
src/main/resources/mybatis-mappers/CopyrightMapper.xml
+5
-2
bookInfo.html
...in/resources/static/pages/copyrightBookData/bookInfo.html
+1
-1
No files found.
src/main/java/com/boot/security/server/controller/CopyrightBookController.java
View file @
0b530ab1
...
@@ -41,6 +41,6 @@ public class CopyrightBookController {
...
@@ -41,6 +41,6 @@ public class CopyrightBookController {
@ApiOperation
(
value
=
"获取书籍上架信息"
)
@ApiOperation
(
value
=
"获取书籍上架信息"
)
@ResponseBody
@ResponseBody
public
String
getBookInfo
(
@RequestBody
PageTableRequest
request
)
{
public
String
getBookInfo
(
@RequestBody
PageTableRequest
request
)
{
return
copyrightBookService
.
selectBookInfo
(
request
.
getCopyrightIds
());
return
copyrightBookService
.
selectBookInfo
(
request
.
getCopyrightIds
()
,
request
.
getPage
(),
request
.
getLimit
()
);
}
}
}
}
src/main/java/com/boot/security/server/dao/CopyrightDao.java
View file @
0b530ab1
...
@@ -13,7 +13,7 @@ public interface CopyrightDao {
...
@@ -13,7 +13,7 @@ public interface CopyrightDao {
Integer
selectTableListMonthCount
(
@Param
(
"copyrightId"
)
Integer
copyrightId
);
Integer
selectTableListMonthCount
(
@Param
(
"copyrightId"
)
Integer
copyrightId
);
List
<
BaseSettlement
>
selectBookInfo
(
@Param
(
"copyrightId"
)
Integer
copyrightId
);
List
<
BaseSettlement
>
selectBookInfo
(
@Param
(
"copyrightId"
)
Integer
copyrightId
,
@Param
(
"page"
)
Integer
page
,
@Param
(
"limit"
)
Integer
limit
);
Integer
selectBookInfoCount
(
@Param
(
"copyrightId"
)
Integer
copyrightId
);
Integer
selectBookInfoCount
(
@Param
(
"copyrightId"
)
Integer
copyrightId
);
...
...
src/main/java/com/boot/security/server/service/CopyrightBookService.java
View file @
0b530ab1
...
@@ -5,5 +5,5 @@ import com.boot.security.server.model.BaseSettlement;
...
@@ -5,5 +5,5 @@ import com.boot.security.server.model.BaseSettlement;
public
interface
CopyrightBookService
{
public
interface
CopyrightBookService
{
String
selectSettlement
(
Integer
copyrightId
,
Integer
page
,
Integer
limit
);
String
selectSettlement
(
Integer
copyrightId
,
Integer
page
,
Integer
limit
);
String
getAllCopyright
();
String
getAllCopyright
();
String
selectBookInfo
(
Integer
copyrightId
);
String
selectBookInfo
(
Integer
copyrightId
,
Integer
page
,
Integer
limit
);
}
}
src/main/java/com/boot/security/server/service/impl/CopyrightBookServiceImpl.java
View file @
0b530ab1
...
@@ -114,11 +114,11 @@ public class CopyrightBookServiceImpl implements CopyrightBookService {
...
@@ -114,11 +114,11 @@ public class CopyrightBookServiceImpl implements CopyrightBookService {
}
}
@Override
@Override
public
String
selectBookInfo
(
Integer
copyrightId
)
{
public
String
selectBookInfo
(
Integer
copyrightId
,
Integer
page
,
Integer
limit
)
{
if
(
copyrightId
==
null
||
copyrightId
==
0
){
if
(
copyrightId
==
null
||
copyrightId
==
0
){
copyrightId
=
null
;
copyrightId
=
null
;
}
}
List
<
BaseSettlement
>
baseSettlements
=
copyrightDao
.
selectBookInfo
(
copyrightId
);
List
<
BaseSettlement
>
baseSettlements
=
copyrightDao
.
selectBookInfo
(
copyrightId
,
page
,
limit
);
Integer
count
=
copyrightDao
.
selectBookInfoCount
(
copyrightId
);
Integer
count
=
copyrightDao
.
selectBookInfoCount
(
copyrightId
);
return
PageTableHandler
.
getJSONObject
(
baseSettlements
,
count
);
return
PageTableHandler
.
getJSONObject
(
baseSettlements
,
count
);
}
}
...
...
src/main/resources/mybatis-mappers/CopyrightMapper.xml
View file @
0b530ab1
...
@@ -40,16 +40,19 @@
...
@@ -40,16 +40,19 @@
<select
id=
"selectBookInfo"
resultType=
"com.boot.security.server.model.BaseSettlement"
>
<select
id=
"selectBookInfo"
resultType=
"com.boot.security.server.model.BaseSettlement"
>
SELECT book_id bookId,cp_id cpId,book_name bookName,authors
SELECT book_id bookId,cp_id cpId,book_name bookName,authors
FROM bi_report.books_api
FROM bi_report.books_api
where book_id is not null
<if
test=
"copyrightId != null"
>
<if
test=
"copyrightId != null"
>
where
copyright_id=#{copyrightId}
and
copyright_id=#{copyrightId}
</if>
</if>
limit #{page},#{limit};
</select>
</select>
<select
id=
"selectBookInfoCount"
resultType=
"Integer"
>
<select
id=
"selectBookInfoCount"
resultType=
"Integer"
>
SELECT count(*)
SELECT count(*)
FROM bi_report.books_api
FROM bi_report.books_api
where book_id is not null
<if
test=
"copyrightId != null"
>
<if
test=
"copyrightId != null"
>
where
copyright_id=#{copyrightId}
and
copyright_id=#{copyrightId}
</if>
</if>
</select>
</select>
...
...
src/main/resources/static/pages/copyrightBookData/bookInfo.html
View file @
0b530ab1
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
,{
field
:
'cpId'
,
title
:
'CPookId'
}
,{
field
:
'cpId'
,
title
:
'CPookId'
}
,{
field
:
'bookName'
,
title
:
'书名'
}
,{
field
:
'bookName'
,
title
:
'书名'
}
,{
field
:
'authors'
,
title
:
'作者'
,
fixed
:
'right'
}
,{
field
:
'authors'
,
title
:
'作者'
,
fixed
:
'right'
}
]]
//设置表头
]]
});
});
});
});
...
...
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