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
4e4af1d1
Commit
4e4af1d1
authored
Mar 11, 2021
by
mlchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.订单表添加 服务内容描述 content 字段
2.服务人员订单完成接口 完成
parent
d1bea003
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
10 deletions
+65
-10
PensionOrderDTO.java
...ava/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
+6
-0
PensionOrderEntity.java
.../hmit/modules/serviceOrder/entity/PensionOrderEntity.java
+8
-0
PensionOrderController.java
...dules/serviceOrder/controller/PensionOrderController.java
+18
-1
PensionOrderDTO.java
...ava/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
+5
-0
PensionOrderEntity.java
.../hmit/modules/serviceOrder/entity/PensionOrderEntity.java
+4
-0
PensionOrderService.java
...mit/modules/serviceOrder/service/PensionOrderService.java
+2
-0
PensionOrderServiceImpl.java
...es/serviceOrder/service/impl/PensionOrderServiceImpl.java
+13
-0
PensionOrderDao.xml
...rc/main/resources/mapper/serviceOrder/PensionOrderDao.xml
+9
-9
No files found.
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
View file @
4e4af1d1
...
@@ -70,6 +70,12 @@ public class PensionOrderDTO implements Serializable {
...
@@ -70,6 +70,12 @@ public class PensionOrderDTO implements Serializable {
@ApiModelProperty
(
value
=
"接单人电话"
)
@ApiModelProperty
(
value
=
"接单人电话"
)
private
String
orderRecipientPhone
;
private
String
orderRecipientPhone
;
@ApiModelProperty
(
value
=
"服务内容描述"
)
private
String
content
;
@ApiModelProperty
(
value
=
"实际金额"
)
private
String
actPrice
;
@ApiModelProperty
(
value
=
"部门ID"
)
@ApiModelProperty
(
value
=
"部门ID"
)
private
Long
deptId
;
private
Long
deptId
;
...
...
hmit-admin/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrderEntity.java
View file @
4e4af1d1
...
@@ -91,6 +91,14 @@ public class PensionOrderEntity extends BaseEntity {
...
@@ -91,6 +91,14 @@ public class PensionOrderEntity extends BaseEntity {
* 接单人电话
* 接单人电话
*/
*/
private
String
orderRecipientPhone
;
private
String
orderRecipientPhone
;
/**
* 服务内容描述
*/
private
String
content
;
/**
* 实际金额
*/
private
String
actPrice
;
/**
/**
* 部门ID
* 部门ID
*/
*/
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrderController.java
View file @
4e4af1d1
...
@@ -203,6 +203,23 @@ public class PensionOrderController {
...
@@ -203,6 +203,23 @@ public class PensionOrderController {
return
new
Result
<
PageData
<
PensionOrderDTO
>>().
ok
(
page
);
return
new
Result
<
PageData
<
PensionOrderDTO
>>().
ok
(
page
);
}
}
/**
* 服务人员完成订单接口
*/
@Login
@GetMapping
(
"staffFinishedOrder"
)
@ApiOperation
(
value
=
"服务人员完成订单接口(服务人员)"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"id"
,
value
=
"订单ID"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"long"
)
,
@ApiImplicitParam
(
name
=
"content"
,
value
=
"描述服务内容"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
"location"
,
value
=
"经纬定位"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"String"
)
})
public
Result
staffFinishedOrder
(
@ApiIgnore
@LoginUser
UserEntity
user
,
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
pensionOrderService
.
staffFinishedOrder
(
params
,
user
.
getId
());
return
new
Result
();
}
/**
/**
* 机构订单接口
* 机构订单接口
*/
*/
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dto/PensionOrderDTO.java
View file @
4e4af1d1
package
io
.
hmit
.
modules
.
serviceOrder
.
dto
;
package
io
.
hmit
.
modules
.
serviceOrder
.
dto
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.hmit.common.constant.Constant
;
import
io.hmit.common.constant.Constant
;
import
io.hmit.entity.UserEntity
;
import
io.hmit.entity.UserEntity
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -73,6 +74,10 @@ public class PensionOrderDTO implements Serializable {
...
@@ -73,6 +74,10 @@ public class PensionOrderDTO implements Serializable {
@ApiModelProperty
(
value
=
"接单人电话"
)
@ApiModelProperty
(
value
=
"接单人电话"
)
private
String
orderRecipientPhone
;
private
String
orderRecipientPhone
;
@ApiModelProperty
(
value
=
"服务内容描述"
)
private
String
content
;
@JsonIgnore
@ApiModelProperty
(
value
=
"实际金额"
)
@ApiModelProperty
(
value
=
"实际金额"
)
private
String
actPrice
;
private
String
actPrice
;
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/entity/PensionOrderEntity.java
View file @
4e4af1d1
...
@@ -83,6 +83,10 @@ public class PensionOrderEntity extends BaseEntity {
...
@@ -83,6 +83,10 @@ public class PensionOrderEntity extends BaseEntity {
* 接单人电话
* 接单人电话
*/
*/
private
String
orderRecipientPhone
;
private
String
orderRecipientPhone
;
/**
* 服务内容描述
*/
private
String
content
;
/**
/**
* 实际金额
* 实际金额
*/
*/
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrderService.java
View file @
4e4af1d1
...
@@ -54,4 +54,6 @@ public interface PensionOrderService extends CrudService<PensionOrderEntity, Pen
...
@@ -54,4 +54,6 @@ public interface PensionOrderService extends CrudService<PensionOrderEntity, Pen
//老人、子女取消订单
//老人、子女取消订单
Boolean
elderFamilyCancel
(
Long
id
,
String
reason
);
Boolean
elderFamilyCancel
(
Long
id
,
String
reason
);
//服务人员完结订单
void
staffFinishedOrder
(
Map
<
String
,
Object
>
params
,
Long
userId
);
}
}
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrderServiceImpl.java
View file @
4e4af1d1
...
@@ -214,6 +214,19 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
...
@@ -214,6 +214,19 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
return
false
;
return
false
;
}
}
@Override
public
void
staffFinishedOrder
(
Map
<
String
,
Object
>
params
,
Long
userId
)
{
Long
orderId
=
Long
.
parseLong
(
params
.
get
(
"id"
).
toString
());
String
location
=
params
.
get
(
"location"
).
toString
();
String
content
=
params
.
get
(
"content"
).
toString
();
PensionOrderEntity
pensionOrderEntity
=
pensionOrderDao
.
selectById
(
orderId
);
pensionOrderEntity
.
setStatus
(
4
);
pensionOrderEntity
.
setStatusName
(
Constant
.
OrderStatus
.
WAIT_EVALUATE
.
getMessage
());
pensionOrderEntity
.
setContent
(
content
);
pensionOrderEntity
.
setLocation
(
location
);
update
(
ConvertUtils
.
sourceToTarget
(
pensionOrderEntity
,
PensionOrderDTO
.
class
));
}
//对List进行手动分页
//对List进行手动分页
private
List
<
PensionOrderDTO
>
getSubList
(
Map
<
String
,
Object
>
params
,
List
<
PensionOrderDTO
>
list
){
private
List
<
PensionOrderDTO
>
getSubList
(
Map
<
String
,
Object
>
params
,
List
<
PensionOrderDTO
>
list
){
Integer
pageNum
=
Integer
.
parseInt
(
params
.
get
(
"page"
).
toString
());
Integer
pageNum
=
Integer
.
parseInt
(
params
.
get
(
"page"
).
toString
());
...
...
hmit-api/src/main/resources/mapper/serviceOrder/PensionOrderDao.xml
View file @
4e4af1d1
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date
po.creator, po.creator_name, po.creator_tel, po.create_date
FROM pension_order po
FROM pension_order po
WHERE po.id = #{orderId} AND po.status = #{status}
WHERE po.id = #{orderId} AND po.status = #{status}
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps
FROM pension_order po, pension_service ps
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps
FROM pension_order po, pension_service ps
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps
FROM pension_order po, pension_service ps
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps
FROM pension_order po, pension_service ps
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps
FROM pension_order po, pension_service ps
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps, tb_user tu
FROM pension_order po, pension_service ps, tb_user tu
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps, tb_user tu
FROM pension_order po, pension_service ps, tb_user tu
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
SELECT po.id, po.order_num, po.status, po.status_name, po.address, po.service_id, po.service_name,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark, po.location,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
po.act_price, po.community_name, po.community_id, po.dept_id, po.cancel_reason,
content,
po.creator, po.creator_name, po.creator_tel, po.create_date,
po.creator, po.creator_name, po.creator_tel, po.create_date,
ps.icon
ps.icon
FROM pension_order po, pension_service ps
FROM pension_order po, pension_service ps
...
...
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