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
46572bcb
Commit
46572bcb
authored
Jun 27, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专场商品排序
parent
d8781a63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
ch-dao/src/main/java/com/wwdz/ch/db/dao/DisposableSubscribeRecordDao.java
...java/com/wwdz/ch/db/dao/DisposableSubscribeRecordDao.java
+12
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SpecialPerformanceConfigDaoImpl.java
...db/impl/distribution/SpecialPerformanceConfigDaoImpl.java
+3
-3
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/DisposableSubscribeRecordDao.java
View file @
46572bcb
...
@@ -10,8 +10,20 @@ public interface DisposableSubscribeRecordDao {
...
@@ -10,8 +10,20 @@ public interface DisposableSubscribeRecordDao {
boolean
update
(
DisposableSubscribeRecord
disposableSubscribeRecord
);
boolean
update
(
DisposableSubscribeRecord
disposableSubscribeRecord
);
/**
* 是否存在
* @param openid
* @param templateId
* @return
*/
boolean
isExisted
(
String
openid
,
String
templateId
);
boolean
isExisted
(
String
openid
,
String
templateId
);
/**
* 是否订阅
* @param openid
* @param templateId
* @return
*/
boolean
isSubscribed
(
String
openid
,
String
templateId
);
boolean
isSubscribed
(
String
openid
,
String
templateId
);
List
<
DisposableSubscribeRecord
>
findList
(
long
userId
);
List
<
DisposableSubscribeRecord
>
findList
(
long
userId
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/SpecialPerformanceConfigDaoImpl.java
View file @
46572bcb
...
@@ -32,11 +32,11 @@ public class SpecialPerformanceConfigDaoImpl implements SpecialPerformanceConfig
...
@@ -32,11 +32,11 @@ public class SpecialPerformanceConfigDaoImpl implements SpecialPerformanceConfig
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getItemId
(),
criteria:
:
andItemIdEqualTo
);
JdbcHelper
.
ifPresent
(
dto
.
getFilterItemIdList
(),
criteria:
:
andItemIdNotIn
);
JdbcHelper
.
ifPresent
(
dto
.
getFilterItemIdList
(),
criteria:
:
andItemIdNotIn
);
criteria
.
andStateEqualTo
(
1
);
criteria
.
andStateEqualTo
(
1
);
example
.
orderBy
(
"lot asc"
);
example
.
setOrderByClause
(
"lot asc"
);
if
(
StringUtils
.
hasLength
(
dto
.
getSortColumn
())
&&
SORT_COLUMN
.
equals
(
dto
.
getSortColumn
()))
{
if
(
StringUtils
.
hasLength
(
dto
.
getSortColumn
())
&&
SORT_COLUMN
.
equals
(
dto
.
getSortColumn
()))
{
example
.
orderBy
(
SORT_COLUMN
+
" "
+
dto
.
getOrder
()
+
", lot asc"
);
example
.
setOrderByClause
(
SORT_COLUMN
+
" "
+
dto
.
getOrder
()
+
", lot asc"
);
}
else
if
(
"lot"
.
equals
(
dto
.
getSortColumn
()))
{
}
else
if
(
"lot"
.
equals
(
dto
.
getSortColumn
()))
{
example
.
orderBy
(
dto
.
getSortColumn
()
+
" "
+
dto
.
getOrder
());
example
.
setOrderByClause
(
dto
.
getSortColumn
()
+
" "
+
dto
.
getOrder
());
}
}
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
PageHelper
.
startPage
(
dto
.
getPage
(),
dto
.
getLimit
());
return
specialPerformanceConfigMapper
.
selectByExample
(
example
);
return
specialPerformanceConfigMapper
.
selectByExample
(
example
);
...
...
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