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
4621c7ea
Commit
4621c7ea
authored
Jun 14, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旅游核销
parent
a17165ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
18 deletions
+61
-18
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+3
-3
TourGoodVerificationMapper.java
...xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
+3
-3
TourGoodVerificationController.java
...fc/platform/tour/rest/TourGoodVerificationController.java
+55
-12
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
4621c7ea
...
@@ -80,11 +80,11 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
...
@@ -80,11 +80,11 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
* @param goodId
* @param goodId
* @param speId
* @param speId
* @param siteId
* @param siteId
* @param
fileName
* @param
properties
* @return
* @return
*/
*/
public
int
updateTourGoodPersonNum
(
Integer
goodId
,
Integer
speId
,
Integer
siteId
,
String
fileName
){
public
int
updateTourGoodPersonNum
(
Integer
goodId
,
Integer
speId
,
Integer
siteId
,
String
properties
){
return
mapper
.
updateTourGoodPerNumbs
(
goodId
,
speId
,
siteId
,
fileName
);
return
mapper
.
updateTourGoodPerNumbs
(
goodId
,
speId
,
siteId
,
properties
);
}
}
}
}
\ No newline at end of file
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/mapper/TourGoodVerificationMapper.java
View file @
4621c7ea
...
@@ -35,11 +35,11 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
...
@@ -35,11 +35,11 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
* @param goodId
* @param goodId
* @param speId
* @param speId
* @param siteId
* @param siteId
* @param
fileName
* @param
properties
* @return
* @return
*/
*/
@Update
(
"update tour_good_verification set ${
fileName}=${fileName
}+1 where `good_id`=#{goodId} and `spe_id`=#{speId} and `site_id`=#{siteId}"
)
@Update
(
"update tour_good_verification set ${
properties}=${properties
}+1 where `good_id`=#{goodId} and `spe_id`=#{speId} and `site_id`=#{siteId}"
)
int
updateTourGoodPerNumbs
(
@Param
(
"goodId"
)
Integer
goodId
,
@Param
(
"speId"
)
Integer
speId
,
@Param
(
"siteId"
)
Integer
siteId
,
@Param
(
"fileName"
)
String
fileName
);
int
updateTourGoodPerNumbs
(
@Param
(
"goodId"
)
Integer
goodId
,
@Param
(
"speId"
)
Integer
speId
,
@Param
(
"siteId"
)
Integer
siteId
,
@Param
(
"fileName"
)
String
properties
);
/**
/**
* 更新出发状态
* 更新出发状态
...
...
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodVerificationController.java
View file @
4621c7ea
package
com
.
xxfc
.
platform
.
tour
.
rest
;
package
com
.
xxfc
.
platform
.
tour
.
rest
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.tour.biz.TourGoodVerificationBiz
;
import
com.xxfc.platform.tour.biz.TourGoodVerificationBiz
;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
com.xxfc.platform.tour.entity.TourGoodVerification
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
com.xxfc.platform.tour.vo.TourGoodOrderFindVo
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
com.xxfc.platform.tour.vo.TourGoodOrderVo
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RestController
@RequestMapping
(
"
tour
"
)
@RequestMapping
(
"
/tourGood/verfication
"
)
@IgnoreClientToken
@IgnoreClientToken
public
class
TourGoodVerificationController
extends
BaseController
<
TourGoodVerificationBiz
,
TourGoodVerification
>
{
public
class
TourGoodVerificationController
extends
BaseController
<
TourGoodVerificationBiz
,
TourGoodVerification
>
{
/**
* 查询订单列表
* @param tourGoodOrderFindVo
* @return
*/
@ApiOperation
(
"订单列表的查询"
)
@GetMapping
(
"/orders"
)
public
ObjectRestResponse
<
PageDataVO
<
TourGoodOrderVo
>>
findTourGoodOrders
(
TourGoodOrderFindVo
tourGoodOrderFindVo
){
PageDataVO
<
TourGoodOrderVo
>
tourGoodOrderPageDataVo
=
getBaseBiz
().
findTourGoodOrdersPage
(
tourGoodOrderFindVo
);
return
ObjectRestResponse
.
succ
(
tourGoodOrderPageDataVo
);
}
/**
* 更新发车状态
* @param goodId
* @param speId
* @param siteId
* @return
*/
@PutMapping
(
"/status"
)
@ApiOperation
(
"更新发车状态"
)
public
ObjectRestResponse
<
Void
>
updateTourGoodVerificationStatus
(
@RequestParam
(
"goodId"
)
Integer
goodId
,
@RequestParam
(
"speId"
)
Integer
speId
,
@RequestParam
(
"siteId"
)
Integer
siteId
){
int
effectRows
=
getBaseBiz
().
updateTourGoodVerificationStatus
(
goodId
,
speId
,
siteId
);
if
(
effectRows
>
0
){
return
ObjectRestResponse
.
succ
();
}
return
ObjectRestResponse
.
createDefaultFail
();
}
/**
* 更新总人数或上车人数
* @param goodId
* @param speId
* @param siteId
* @param fileName
* @return
*/
@PutMapping
(
"/personnums"
)
@ApiOperation
(
"更新总人数或上车人数"
)
public
ObjectRestResponse
<
Void
>
updateTourGoodPersonNum
(
@RequestParam
(
"goodId"
)
Integer
goodId
,
@RequestParam
(
"speId"
)
Integer
speId
,
@RequestParam
(
"properties"
)
Integer
siteId
,
String
properties
){
int
effectRows
=
getBaseBiz
().
updateTourGoodPersonNum
(
goodId
,
speId
,
siteId
,
properties
);
if
(
effectRows
>
0
){
return
ObjectRestResponse
.
succ
();
}
return
ObjectRestResponse
.
createDefaultFail
();
}
}
}
\ No newline at end of file
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