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
443f775b
Commit
443f775b
authored
Jan 28, 2021
by
mengmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
e6b6e9da
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
16 deletions
+23
-16
UserInfoDTO.java
hmit-api/src/main/java/io/hmit/dto/UserInfoDTO.java
+9
-0
PensionOrderController.java
...dules/serviceOrder/controller/PensionOrderController.java
+2
-15
ReservationDTO.java
...java/io/hmit/modules/serviceOrder/dto/ReservationDTO.java
+9
-0
PensionOrderService.java
...mit/modules/serviceOrder/service/PensionOrderService.java
+3
-1
No files found.
hmit-api/src/main/java/io/hmit/dto/UserInfoDTO.java
0 → 100644
View file @
443f775b
package
io
.
hmit
.
dto
;
/**
* @author Eve
* @email mengmengeve@gmail.com
* @create 2021/1/27
*/
public
class
UserInfoDTO
{
}
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrderController.java
View file @
443f775b
...
...
@@ -186,17 +186,6 @@ public class PensionOrderController {
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
dto
.
setId
(
null
);
dto
.
setOrderNum
(
null
);
dto
.
setStatus
(
0
);
dto
.
setStatusName
(
"未接单"
);
dto
.
setOrderRecipientTime
(
null
);
dto
.
setOrderRecipientPhone
(
null
);
dto
.
setOrderRecipientName
(
null
);
dto
.
setOrderRecipientId
(
null
);
//设置日期
dto
.
setCreateDate
(
new
Date
());
dto
.
setUpdateDate
(
new
Date
());
pensionOrderService
.
save
(
dto
);
return
new
Result
();
...
...
@@ -207,10 +196,8 @@ public class PensionOrderController {
public
Result
update
(
@RequestBody
PensionOrderDTO
dto
){
//校验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
PensionOrderDTO
pensionOrderDTO
=
pensionOrderService
.
get
(
dto
.
getId
());
BeanUtils
.
copyProperties
(
dto
,
pensionOrderDTO
);
pensionOrderDTO
.
setUpdateDate
(
new
Date
());
pensionOrderService
.
update
(
pensionOrderDTO
);
pensionOrderService
.
update
(
dto
);
return
new
Result
();
}
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/dto/ReservationDTO.java
0 → 100644
View file @
443f775b
package
io
.
hmit
.
modules
.
serviceOrder
.
dto
;
/**
* @author Eve
* @email mengmengeve@gmail.com
* @create 2021/1/28
*/
public
class
ReservationDTO
{
}
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/PensionOrderService.java
View file @
443f775b
...
...
@@ -3,6 +3,7 @@ package io.hmit.modules.serviceOrder.service;
import
io.hmit.common.page.PageData
;
import
io.hmit.common.service.CrudService
;
import
io.hmit.modules.serviceOrder.dto.PensionOrderDTO
;
import
io.hmit.modules.serviceOrder.dto.ReservationDTO
;
import
io.hmit.modules.serviceOrder.entity.PensionOrderEntity
;
import
java.util.Map
;
...
...
@@ -42,4 +43,5 @@ public interface PensionOrderService extends CrudService<PensionOrderEntity, Pen
//根据订单Id和订单状态查询
PensionOrderDTO
getOrderInfoByIdAndStatus
(
Long
orderId
,
Integer
status
);
}
\ No newline at end of file
void
reservation
(
ReservationDTO
reservationDTO
);
}
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