Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
3dfd0b80
Commit
3dfd0b80
authored
Sep 13, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交价格
parent
6230e1f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
ch-dao/src/main/java/com/wwdz/ch/db/dao/ItemDao.java
ch-dao/src/main/java/com/wwdz/ch/db/dao/ItemDao.java
+7
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/ItemDaoImpl.java
ch-dao/src/main/java/com/wwdz/ch/db/impl/ItemDaoImpl.java
+15
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/QueryPriceServiceImpl.java
.../main/java/com/wwdz/ch/wx/impl/QueryPriceServiceImpl.java
+1
-2
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/ItemDao.java
View file @
3dfd0b80
...
@@ -31,6 +31,13 @@ public interface ItemDao {
...
@@ -31,6 +31,13 @@ public interface ItemDao {
List
<
Item
>
findListByPage
(
CoinRequestDto
coinRequestDto
);
List
<
Item
>
findListByPage
(
CoinRequestDto
coinRequestDto
);
/**
* 查价功能的商品查询
* @param coinRequestDto
* @return
*/
List
<
Item
>
findListByPageForQueryPrice
(
CoinRequestDto
coinRequestDto
);
PageInfo
<
Item
>
findByPage
(
CoinRequestDto
coinRequestDto
);
PageInfo
<
Item
>
findByPage
(
CoinRequestDto
coinRequestDto
);
PageInfo
<
Item
>
findPageExcludeFilter
(
CoinRequestDto
coinRequestDto
);
PageInfo
<
Item
>
findPageExcludeFilter
(
CoinRequestDto
coinRequestDto
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/ItemDaoImpl.java
View file @
3dfd0b80
...
@@ -75,21 +75,32 @@ public class ItemDaoImpl implements ItemDao {
...
@@ -75,21 +75,32 @@ public class ItemDaoImpl implements ItemDao {
@Override
@Override
public
List
<
Item
>
findListByPage
(
CoinRequestDto
coinRequestDto
)
{
public
List
<
Item
>
findListByPage
(
CoinRequestDto
coinRequestDto
)
{
ItemExample
example
=
new
ItemExample
();
ItemExample
.
Criteria
criteria
=
example
.
createCriteria
();
example
.
setOrderByClause
(
"create_time asc"
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getIsDeleted
(),
criteria:
:
andIsDeletedEqualTo
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getCid
(),
criteria:
:
andCidEqualTo
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getStartUpdateTime
(),
criteria:
:
andUpdateTimeGreaterThan
);
PageHelper
.
startPage
(
coinRequestDto
.
getPage
(),
coinRequestDto
.
getLimit
());
return
itemMapper
.
selectByExampleWithBLOBs
(
example
);
}
@Override
public
List
<
Item
>
findListByPageForQueryPrice
(
CoinRequestDto
coinRequestDto
)
{
ItemExample
example
=
new
ItemExample
();
ItemExample
example
=
new
ItemExample
();
ItemExample
.
Criteria
criteria
=
example
.
createCriteria
();
ItemExample
.
Criteria
criteria
=
example
.
createCriteria
();
if
(
StringUtils
.
hasLength
(
coinRequestDto
.
getSortColumn
()))
{
if
(
StringUtils
.
hasLength
(
coinRequestDto
.
getSortColumn
()))
{
example
.
setOrderByClause
(
coinRequestDto
.
getSortColumn
()
+
" "
+
coinRequestDto
.
getOrder
());
example
.
setOrderByClause
(
coinRequestDto
.
getSortColumn
()
+
" "
+
coinRequestDto
.
getOrder
());
}
else
{
example
.
setOrderByClause
(
"create_time asc"
);
}
}
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getIsDeleted
(),
criteria:
:
andIsDeletedEqualTo
);
criteria
.
andPriceNotEqualTo
(
0L
);
criteria
.
andIsDeletedEqualTo
(
false
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getCid
(),
criteria:
:
andCidEqualTo
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getCid
(),
criteria:
:
andCidEqualTo
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getStartUpdateTime
(),
criteria:
:
andUpdateTimeGreaterThan
);
JdbcHelper
.
ifPresent
(
coinRequestDto
.
getStartUpdateTime
(),
criteria:
:
andUpdateTimeGreaterThan
);
PageHelper
.
startPage
(
coinRequestDto
.
getPage
(),
coinRequestDto
.
getLimit
());
PageHelper
.
startPage
(
coinRequestDto
.
getPage
(),
coinRequestDto
.
getLimit
());
return
itemMapper
.
selectByExampleWithBLOBs
(
example
);
return
itemMapper
.
selectByExampleWithBLOBs
(
example
);
}
}
@Override
@Override
public
PageInfo
<
Item
>
findByPage
(
CoinRequestDto
coinRequestDto
)
{
public
PageInfo
<
Item
>
findByPage
(
CoinRequestDto
coinRequestDto
)
{
ItemExample
example
=
new
ItemExample
();
ItemExample
example
=
new
ItemExample
();
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/QueryPriceServiceImpl.java
View file @
3dfd0b80
...
@@ -108,8 +108,7 @@ public class QueryPriceServiceImpl implements QueryPriceService {
...
@@ -108,8 +108,7 @@ public class QueryPriceServiceImpl implements QueryPriceService {
@Override
@Override
public
Result
findBidRecord
(
CoinRequestDto
dto
)
{
public
Result
findBidRecord
(
CoinRequestDto
dto
)
{
try
{
try
{
dto
.
setIsDeleted
(
false
);
List
<
Item
>
itemList
=
itemDao
.
findListByPageForQueryPrice
(
dto
);
List
<
Item
>
itemList
=
itemDao
.
findListByPage
(
dto
);
PageInfo
pageInfo
=
PageInfo
.
of
(
itemList
);
PageInfo
pageInfo
=
PageInfo
.
of
(
itemList
);
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
for
(
Item
i
:
itemList
)
{
for
(
Item
i
:
itemList
)
{
...
...
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