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
675d0e36
Commit
675d0e36
authored
Nov 12, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e05ef22e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
ShuntApplyController.java
...va/com/xxfc/platform/order/rest/ShuntApplyController.java
+17
-2
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/ShuntApplyController.java
View file @
675d0e36
...
...
@@ -41,7 +41,6 @@ import lombok.Data;
import
org.mockito.internal.util.collections.Sets
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -179,6 +178,22 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
return
ObjectRestResponse
.
succ
(
pages
);
}
@RequestMapping
(
value
=
"/toOrderPayCount"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
@ApiOperation
(
value
=
"待下单、待支付数量"
)
public
ObjectRestResponse
<
Integer
>
toPayCount
()
{
//查询列表数据
if
(
StrUtil
.
isBlank
(
getCurrentUserId
()))
{
throw
new
BaseException
(
ResultCode
.
AJAX_WECHAT_NOTEXIST_CODE
);
}
QueryDTO
dto
=
new
QueryDTO
();
dto
.
setUserId
(
Integer
.
valueOf
(
BaseContextHandler
.
getUserID
()));
dto
.
setPageStatus
(
QueryDTO
.
PAGE_STATUS_TOORDERPAY
);
Query
query
=
new
Query
(
dto
);
return
ObjectRestResponse
.
succ
(
baseBiz
.
pageList
(
dto
).
size
());
}
@RequestMapping
(
value
=
"/applyOrder"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ApiOperation
(
value
=
"申请调车下单"
)
...
...
@@ -221,7 +236,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
@Data
public
static
class
QueryDTO
extends
PageParam
{
public
static
final
int
PAGE_STATUS_ING
=
1
;
public
static
final
int
PAGE_STATUS_TOPAY
=
2
;
public
static
final
int
PAGE_STATUS_TO
ORDER
PAY
=
2
;
public
static
final
int
PAGE_STATUS_PAYED
=
3
;
public
static
final
int
PAGE_STATUS_CNL
=
4
;
...
...
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