Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
d0451ca1
Commit
d0451ca1
authored
Jun 25, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改人数
parent
21c5afd1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
TourFeign.java
...src/main/java/com/xxfc/platform/tour/feign/TourFeign.java
+1
-1
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+2
-2
TourGoodVerificationMapper.java
...xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
+2
-2
TourGoodVerificationController.java
...fc/platform/tour/rest/TourGoodVerificationController.java
+5
-2
No files found.
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/feign/TourFeign.java
View file @
d0451ca1
...
...
@@ -72,7 +72,7 @@ public interface TourFeign {
* @return
*/
@PutMapping
(
"/tourGood/verfication/personnums"
)
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"verficationId"
)
Integer
verficationId
,
@RequestParam
(
"properties"
)
String
properties
);
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"verficationId"
)
Integer
verficationId
,
@RequestParam
(
"properties"
)
String
properties
,
@RequestParam
(
"number"
)
Integer
number
);
/**
* 查询订单列表
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
d0451ca1
...
...
@@ -79,8 +79,8 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
* @param properties
* @return
*/
public
int
updateTourGoodPersonNum
(
Integer
verficationId
,
String
properties
){
public
int
updateTourGoodPersonNum
(
Integer
verficationId
,
String
properties
,
Integer
number
){
return
mapper
.
updateTourGoodPerNumbs
(
verficationId
,
properties
);
return
mapper
.
updateTourGoodPerNumbs
(
verficationId
,
properties
,
number
);
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
View file @
d0451ca1
...
...
@@ -37,8 +37,8 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
* @param properties
* @return
*/
@Update
(
"update tour_good_verification set ${properties}=${properties}+
1
where `id`=#{verficationId}"
)
int
updateTourGoodPerNumbs
(
@Param
(
"verficationId"
)
Integer
verficationId
,
@Param
(
"properties"
)
String
properties
);
@Update
(
"update tour_good_verification set ${properties}=${properties}+
#{number}
where `id`=#{verficationId}"
)
int
updateTourGoodPerNumbs
(
@Param
(
"verficationId"
)
Integer
verficationId
,
@Param
(
"properties"
)
String
properties
,
@Param
(
"number"
)
Integer
number
);
/**
* 更新出发状态
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodVerificationController.java
View file @
d0451ca1
...
...
@@ -52,8 +52,11 @@ public class TourGoodVerificationController extends BaseController<TourGoodVerif
*/
@PutMapping
(
"/personnums"
)
@ApiOperation
(
"更新总人数或上车人数"
)
public
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"verficationId"
)
Integer
verficationId
,
@RequestParam
(
"properties"
)
String
properties
){
int
effectRows
=
getBaseBiz
().
updateTourGoodPersonNum
(
verficationId
,
properties
);
public
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"verficationId"
)
Integer
verficationId
,
@RequestParam
(
"properties"
)
String
properties
,
@RequestParam
(
value
=
"number"
,
defaultValue
=
"1"
)
Integer
number
){
int
effectRows
=
getBaseBiz
().
updateTourGoodPersonNum
(
verficationId
,
properties
,
number
);
if
(
effectRows
>
0
){
return
ObjectRestResponse
.
succ
();
}
...
...
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