记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
e54ed7b5
Commit
e54ed7b5
authored
Sep 03, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理API:修改券信息调整;
parent
b294f49d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AdamMemberAdminController.java
...b/controller/zhengzai/adam/AdamMemberAdminController.java
+2
-1
CandyMgtCouponAdminServiceImpl.java
...ai/candy/service/impl/CandyMgtCouponAdminServiceImpl.java
+2
-2
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/adam/AdamMemberAdminController.java
View file @
e54ed7b5
...
@@ -232,12 +232,13 @@ public class AdamMemberAdminController extends BaseController {
...
@@ -232,12 +232,13 @@ public class AdamMemberAdminController extends BaseController {
LambdaQueryWrapper
<
CandyCoupon
>
candyCouponLambdaQueryWrapper
=
Wrappers
.
lambdaQuery
(
CandyCoupon
.
class
)
LambdaQueryWrapper
<
CandyCoupon
>
candyCouponLambdaQueryWrapper
=
Wrappers
.
lambdaQuery
(
CandyCoupon
.
class
)
.
eq
(
CandyCoupon:
:
getCouponId
,
couponId
)
.
eq
(
CandyCoupon:
:
getCouponId
,
couponId
)
.
eq
(
CandyCoupon:
:
getState
,
1
)
.
eq
(
CandyCoupon:
:
getState
,
1
)
.
eq
(
CandyCoupon:
:
getExclusive
,
1
0
);
.
eq
(
CandyCoupon:
:
getExclusive
,
1
);
if
(
candyCouponAdminService
.
count
(
candyCouponLambdaQueryWrapper
)
>
0
)
{
if
(
candyCouponAdminService
.
count
(
candyCouponLambdaQueryWrapper
)
>
0
)
{
CandyCoupon
updateCoupon
=
new
CandyCoupon
();
CandyCoupon
updateCoupon
=
new
CandyCoupon
();
updateCoupon
.
setCouponId
(
couponId
);
updateCoupon
.
setCouponId
(
couponId
);
updateCoupon
.
setTitle
(
parameter
.
getTitle
());
updateCoupon
.
setTitle
(
parameter
.
getTitle
());
updateCoupon
.
setExclusive
(
1
);
updateCoupon
.
setBusiType
(
parameter
.
getBusiType
());
updateCoupon
.
setBusiType
(
parameter
.
getBusiType
());
updateCoupon
.
setCouType
(
parameter
.
getCouType
());
updateCoupon
.
setCouType
(
parameter
.
getCouType
());
updateCoupon
.
setValFace
(
valFace
);
updateCoupon
.
setValFace
(
valFace
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/candy/service/impl/CandyMgtCouponAdminServiceImpl.java
View file @
e54ed7b5
...
@@ -104,12 +104,12 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
...
@@ -104,12 +104,12 @@ public class CandyMgtCouponAdminServiceImpl extends ServiceImpl<CandyMgtCouponMa
LambdaUpdateWrapper
<
CandyCoupon
>
couponLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
CandyCoupon
.
class
)
LambdaUpdateWrapper
<
CandyCoupon
>
couponLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
CandyCoupon
.
class
)
.
eq
(
CandyCoupon:
:
getCouponId
,
updateCoupon
.
getCouponId
())
.
eq
(
CandyCoupon:
:
getCouponId
,
updateCoupon
.
getCouponId
())
.
eq
(
CandyCoupon:
:
getState
,
1
)
.
eq
(
CandyCoupon:
:
getState
,
1
)
.
eq
(
CandyCoupon:
:
getExclusive
,
10
);
.
eq
(
CandyCoupon:
:
getExclusive
,
updateCoupon
.
getExclusive
()
);
int
updateCt
=
candyCouponMapper
.
update
(
updateCoupon
,
couponLambdaUpdateWrapper
);
int
updateCt
=
candyCouponMapper
.
update
(
updateCoupon
,
couponLambdaUpdateWrapper
);
LambdaUpdateWrapper
<
CandyMgtCoupon
>
mgtCouponLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
CandyMgtCoupon
.
class
)
LambdaUpdateWrapper
<
CandyMgtCoupon
>
mgtCouponLambdaUpdateWrapper
=
Wrappers
.
lambdaUpdate
(
CandyMgtCoupon
.
class
)
.
eq
(
CandyMgtCoupon:
:
getMcouponId
,
updateMgtCoupon
.
getMcouponId
())
.
eq
(
CandyMgtCoupon:
:
getMcouponId
,
updateMgtCoupon
.
getMcouponId
())
.
eq
(
CandyMgtCoupon:
:
getState
,
1
);
.
eq
(
CandyMgtCoupon:
:
getState
,
updateCoupon
.
getExclusive
()
==
1
?
10
:
0
);
updateCt
+=
candyMgtCouponMapper
.
update
(
updateMgtCoupon
,
mgtCouponLambdaUpdateWrapper
);
updateCt
+=
candyMgtCouponMapper
.
update
(
updateMgtCoupon
,
mgtCouponLambdaUpdateWrapper
);
...
...
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