Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
fda8f480
Commit
fda8f480
authored
Jan 15, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验卷增加门店判断
parent
53f16571
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
StoreStatusEnum.java
...mon/src/main/java/share/common/enums/StoreStatusEnum.java
+35
-0
QPServiceImpl.java
...rc/main/java/share/system/service/impl/QPServiceImpl.java
+6
-0
No files found.
share-common/src/main/java/share/common/enums/StoreStatusEnum.java
0 → 100644
View file @
fda8f480
package
share
.
common
.
enums
;
public
enum
StoreStatusEnum
{
// 0:停业 1:正常营业
STOP
(
"0"
,
"停业"
),
NORMAL
(
"1"
,
"正常营业"
),
;
private
String
index
;
private
String
value
;
StoreStatusEnum
()
{
}
StoreStatusEnum
(
String
index
,
String
value
)
{
this
.
index
=
index
;
this
.
value
=
value
;
}
public
String
getIndex
()
{
return
index
;
}
public
void
setIndex
(
String
index
)
{
this
.
index
=
index
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
}
share-system/src/main/java/share/system/service/impl/QPServiceImpl.java
View file @
fda8f480
...
...
@@ -103,6 +103,12 @@ public class QPServiceImpl implements QPService {
LambdaQueryWrapper
<
SStore
>
sStoreLambdaQueryWrapper
=
new
LambdaQueryWrapper
<>();
sStoreLambdaQueryWrapper
.
eq
(
SStore:
:
getOpenShopUuid
,
openShopUuid
);
SStore
sStore
=
storeService
.
getOne
(
sStoreLambdaQueryWrapper
);
if
(
ObjectUtils
.
isEmpty
(
sStore
))
{
throw
new
RuntimeException
(
"门店不存在"
);
}
if
(
sStore
.
getStatus
().
equals
(
StoreStatusEnum
.
STOP
.
getIndex
()))
{
throw
new
RuntimeException
(
"门店已停止"
);
}
if
(
ObjectUtils
.
isNotEmpty
(
couponTwo
))
{
//判断是否本人领取过
if
(
couponTwo
.
getConsumerId
().
equals
(
user
.
getId
()))
{
...
...
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