Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pension
Project
Project
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
mengmeng
pension
Commits
31e4dbbc
Commit
31e4dbbc
authored
Mar 10, 2021
by
mlchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.服务人员订单接口
2.老人/子女订单接口(状态调整) 3.机构订单接口(未完成) 4.Constant静态类(状态调整)
parent
1c07feb6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
PensionOrderController.java
...dules/serviceOrder/controller/PensionOrderController.java
+3
-3
PensionOrderServiceImpl.java
...es/serviceOrder/service/impl/PensionOrderServiceImpl.java
+10
-1
Constant.java
...ommon/src/main/java/io/hmit/common/constant/Constant.java
+4
-4
No files found.
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrderController.java
View file @
31e4dbbc
...
@@ -209,7 +209,7 @@ public class PensionOrderController {
...
@@ -209,7 +209,7 @@ public class PensionOrderController {
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
"status"
,
value
=
"订单状态: 0未接单 1已
接单未派发 2已完成 3已取消 5已
派发"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
"status"
,
value
=
"订单状态: 0未接单 1已
派发 2已完成 3已取消 5已接单未
派发"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
})
...
@@ -225,11 +225,11 @@ public class PensionOrderController {
...
@@ -225,11 +225,11 @@ public class PensionOrderController {
*/
*/
@Login
@Login
@GetMapping
(
"elderFamily"
)
@GetMapping
(
"elderFamily"
)
@ApiOperation
(
"全部/根据状态返回订单(老人/子女)
"
)
@ApiOperation
(
value
=
"全部/根据状态返回订单(老人/子女)"
,
notes
=
"老人、子女的待完成实际是机构处的已派发未接单+已接单
"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
"status"
,
value
=
"订单状态: 0未接单
1
待完成 3已取消 4待评价 留空全部"
,
paramType
=
"query"
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
"status"
,
value
=
"订单状态: 0未接单
6
待完成 3已取消 4待评价 留空全部"
,
paramType
=
"query"
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
})
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrderServiceImpl.java
View file @
31e4dbbc
...
@@ -17,6 +17,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -17,6 +17,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -102,7 +103,15 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
...
@@ -102,7 +103,15 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
@Override
@Override
public
PageData
<
PensionOrderDTO
>
getElderAllOrderOrByStatusPage
(
Map
<
String
,
Object
>
params
,
Long
creator
,
Integer
status
)
{
public
PageData
<
PensionOrderDTO
>
getElderAllOrderOrByStatusPage
(
Map
<
String
,
Object
>
params
,
Long
creator
,
Integer
status
)
{
IPage
<
PensionOrderEntity
>
page
=
getPage
(
params
,
Constant
.
CREATE_DATE
,
false
);
IPage
<
PensionOrderEntity
>
page
=
getPage
(
params
,
Constant
.
CREATE_DATE
,
false
);
List
<
PensionOrderDTO
>
list
=
pensionOrderDao
.
getElderAllOrderOrByStatusList
(
params
,
creator
,
status
);
List
<
PensionOrderDTO
>
list
=
new
ArrayList
<>();
if
(
status
!=
6
)
{
list
=
pensionOrderDao
.
getElderAllOrderOrByStatusList
(
params
,
creator
,
status
);
}
else
{
List
<
PensionOrderDTO
>
list1
=
pensionOrderDao
.
getElderAllOrderOrByStatusList
(
params
,
creator
,
1
);
List
<
PensionOrderDTO
>
list2
=
pensionOrderDao
.
getElderAllOrderOrByStatusList
(
params
,
creator
,
5
);
list
.
addAll
(
list1
);
list
.
addAll
(
list2
);
}
page
.
setTotal
(
list
.
size
());
page
.
setTotal
(
list
.
size
());
return
getPageData
(
list
,
page
.
getTotal
(),
PensionOrderDTO
.
class
);
return
getPageData
(
list
,
page
.
getTotal
(),
PensionOrderDTO
.
class
);
}
}
...
...
hmit-common/src/main/java/io/hmit/common/constant/Constant.java
View file @
31e4dbbc
...
@@ -188,9 +188,9 @@ public interface Constant {
...
@@ -188,9 +188,9 @@ public interface Constant {
BOOKED
(
0
,
"未接单"
),
BOOKED
(
0
,
"未接单"
),
/**
/**
* 已
接单/待完成/已接单未派发
* 已
派发/待完成/已接单
*/
*/
ORDER
(
1
,
"已
接单
"
),
ORDER
(
1
,
"已
派发
"
),
/**
/**
* 已完成
* 已完成
*/
*/
...
@@ -204,9 +204,9 @@ public interface Constant {
...
@@ -204,9 +204,9 @@ public interface Constant {
*/
*/
WAIT_EVALUATE
(
4
,
"待评价"
),
WAIT_EVALUATE
(
4
,
"待评价"
),
/**
/**
* 已派发
* 已
接单未
派发
*/
*/
HAND_OUT
(
5
,
"已派发"
);
HAND_OUT
(
5
,
"已
接单未
派发"
);
private
int
status
;
private
int
status
;
...
...
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