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
746eb729
Commit
746eb729
authored
Feb 03, 2021
by
mlchun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PensionOrder更新
parent
114e12df
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
43 deletions
+62
-43
PensionOrderController.java
...dules/serviceOrder/controller/PensionOrderController.java
+1
-2
PensionServiceController.java
...les/serviceOrder/controller/PensionServiceController.java
+1
-1
PensionOrderServiceImpl.java
...es/serviceOrder/service/impl/PensionOrderServiceImpl.java
+1
-0
PensionServiceTypeServiceImpl.java
...viceOrder/service/impl/PensionServiceTypeServiceImpl.java
+1
-1
PensionOrderDao.xml
...rc/main/resources/mapper/serviceOrder/PensionOrderDao.xml
+58
-39
No files found.
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionOrderController.java
View file @
746eb729
...
@@ -18,7 +18,6 @@ import io.swagger.annotations.Api;
...
@@ -18,7 +18,6 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.models.auth.In
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
...
@@ -76,7 +75,7 @@ public class PensionOrderController {
...
@@ -76,7 +75,7 @@ public class PensionOrderController {
@Login
@Login
@GetMapping
(
"getOrderPageByStatus"
)
@GetMapping
(
"getOrderPageByStatus"
)
@ApiOperation
(
value
=
"根据状态返回订单(志愿者)"
,
notes
=
"不能查看未接单订单"
)
@ApiOperation
(
value
=
"根据状态返回订单(志愿者)"
)
@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"
)
,
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/controller/PensionServiceController.java
View file @
746eb729
...
@@ -71,7 +71,7 @@ public class PensionServiceController {
...
@@ -71,7 +71,7 @@ public class PensionServiceController {
public
Result
<
PensionServiceDTO
>
getByServiceTypeId
(
@PathVariable
(
"serviceTypeId"
)
Long
serviceTypeId
){
public
Result
<
PensionServiceDTO
>
getByServiceTypeId
(
@PathVariable
(
"serviceTypeId"
)
Long
serviceTypeId
){
List
<
PensionServiceDTO
>
data
=
baseMapper
.
selectList
(
List
<
PensionServiceDTO
>
data
=
baseMapper
.
selectList
(
new
QueryWrapper
<
PensionServiceDTO
>().
lambda
()
new
QueryWrapper
<
PensionServiceDTO
>().
lambda
()
.
eq
(
PensionServiceDTO:
:
getService
Type
Id
,
serviceTypeId
));
.
eq
(
PensionServiceDTO:
:
getService
Parent
Id
,
serviceTypeId
));
return
new
Result
<
PensionServiceDTO
>().
ok
(
data
.
get
(
0
));
return
new
Result
<
PensionServiceDTO
>().
ok
(
data
.
get
(
0
));
}
}
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionOrderServiceImpl.java
View file @
746eb729
...
@@ -103,6 +103,7 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
...
@@ -103,6 +103,7 @@ public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, Pe
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
=
pensionOrderDao
.
getElderAllOrderOrByStatusList
(
params
,
creator
,
status
);
page
.
setTotal
(
list
.
size
());
return
getPageData
(
list
,
page
.
getTotal
(),
PensionOrderDTO
.
class
);
return
getPageData
(
list
,
page
.
getTotal
(),
PensionOrderDTO
.
class
);
}
}
...
...
hmit-api/src/main/java/io/hmit/modules/serviceOrder/service/impl/PensionServiceTypeServiceImpl.java
View file @
746eb729
...
@@ -90,7 +90,7 @@ public class PensionServiceTypeServiceImpl extends CrudServiceImpl<PensionServic
...
@@ -90,7 +90,7 @@ public class PensionServiceTypeServiceImpl extends CrudServiceImpl<PensionServic
List
<
PensionServiceTypeDTO
>
resultList
=
new
ArrayList
<>();
List
<
PensionServiceTypeDTO
>
resultList
=
new
ArrayList
<>();
for
(
PensionServiceEntity
pensionService:
pensionServices
)
{
for
(
PensionServiceEntity
pensionService:
pensionServices
)
{
PensionServiceTypeDTO
pensionServiceTypeDTO
=
get
(
pensionService
.
getService
Type
Id
());
PensionServiceTypeDTO
pensionServiceTypeDTO
=
get
(
pensionService
.
getService
Parent
Id
());
resultList
.
add
(
pensionServiceTypeDTO
);
resultList
.
add
(
pensionServiceTypeDTO
);
}
}
return
resultList
;
return
resultList
;
...
...
hmit-api/src/main/resources/mapper/serviceOrder/PensionOrderDao.xml
View file @
746eb729
...
@@ -19,6 +19,9 @@
...
@@ -19,6 +19,9 @@
<result
property=
"orderRecipientName"
column=
"order_recipient_name"
/>
<result
property=
"orderRecipientName"
column=
"order_recipient_name"
/>
<result
property=
"orderRecipientTime"
column=
"order_recipient_time"
/>
<result
property=
"orderRecipientTime"
column=
"order_recipient_time"
/>
<result
property=
"orderRecipientPhone"
column=
"order_recipient_phone"
/>
<result
property=
"orderRecipientPhone"
column=
"order_recipient_phone"
/>
<result
property=
"actPrice"
column=
"act_price"
/>
<result
property=
"communityName"
column=
"community_name"
/>
<result
property=
"communityId"
column=
"community_id"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"deptId"
column=
"dept_id"
/>
<result
property=
"creator"
column=
"creator"
/>
<result
property=
"creator"
column=
"creator"
/>
<result
property=
"creatorName"
column=
"creator_name"
/>
<result
property=
"creatorName"
column=
"creator_name"
/>
...
@@ -29,75 +32,91 @@
...
@@ -29,75 +32,91 @@
</resultMap>
</resultMap>
<select
id=
"getOrderInfoByIdAndStatus"
resultType=
"io.hmit.modules.serviceOrder.entity.PensionOrderEntity"
>
<select
id=
"getOrderInfoByIdAndStatus"
resultType=
"io.hmit.modules.serviceOrder.entity.PensionOrderEntity"
>
SELECT * FROM pension_order WHERE pension_order.id = #{orderId} and pension_order.status = #{status}
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.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.creator, po.creator_name, po.creator_tel, po.create_date
FROM pension_order po
WHERE po.id = #{orderId} AND po.status = #{status}
</select>
</select>
<select
id=
"getOrderPageByStatusOrUserId"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
<select
id=
"getOrderPageByStatusOrUserId"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
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.order_recipient_id,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark,
po.order_recipient_name, po.order_recipient_phone, po.dept_id, po.creator, po.creator_name,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.creator_tel, po.create_date, po.update_date, po.act_price, ps.icon
po.act_price, po.community_name, po.community_id, po.dept_id,
from pension_order po, pension_service ps
po.creator, po.creator_name, po.creator_tel, po.create_date,
where po.service_id = ps.id
ps.icon
FROM pension_order po, pension_service ps
WHERE po.service_id = ps.id
<if
test=
"status != null and status == 0"
>
<if
test=
"status != null and status == 0"
>
<if
test=
"userId != null"
>
<if
test=
"userId != null"
>
and order_recipient_id is null
AND po.order_recipient_id IS NULL
</if>
</if>
and
po.status = 0
AND
po.status = 0
</if>
</if>
<if
test=
"status != null and status != 0"
>
<if
test=
"status != null and status != 0"
>
<if
test=
"userId != null"
>
<if
test=
"userId != null"
>
and
order_recipient_id = #{userId}
AND po.
order_recipient_id = #{userId}
</if>
</if>
and
po.status = #{status}
AND
po.status = #{status}
</if>
</if>
<if
test=
"status == null and userId != null"
>
<if
test=
"status == null and userId != null"
>
and
order_recipient_id = #{userId}
AND po.
order_recipient_id = #{userId}
</if>
</if>
</select>
</select>
<select
id=
"getOrderInfoByIdAndUserIdOrStatus"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
<select
id=
"getOrderInfoByIdAndUserIdOrStatus"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
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.order_recipient_id,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark,
po.order_recipient_name, po.order_recipient_phone, po.dept_id, po.creator, po.creator_name,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.creator_tel, po.create_date, po.update_date, po.act_price, ps.icon
po.act_price, po.community_name, po.community_id, po.dept_id,
from pension_order po, pension_service ps
po.creator, po.creator_name, po.creator_tel, po.create_date,
where po.service_id = ps.id and po.id = #{orderId}
ps.icon
FROM pension_order po, pension_service ps
WHERE po.service_id = ps.id AND po.id = #{orderId}
<if
test=
"userId != null"
>
<if
test=
"userId != null"
>
and
po.order_recipient_id = #{userId}
AND
po.order_recipient_id = #{userId}
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
and
po.status = #{status}
AND
po.status = #{status}
</if>
</if>
</select>
</select>
<select
id=
"getTodayNoProceedOrderPage"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
<select
id=
"getTodayNoProceedOrderPage"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
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.order_recipient_id,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark,
po.order_recipient_name, po.order_recipient_phone, po.dept_id, po.creator, po.creator_name,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.creator_tel, po.create_date, po.update_date, po.act_price, ps.icon
po.act_price, po.community_name, po.community_id, po.dept_id,
from pension_order po, pension_service ps
po.creator, po.creator_name, po.creator_tel, po.create_date,
where po.service_id = ps.id and TO_DAYS(appointment_time) = TO_DAYS(NOW()) and po.status = 0 and order_recipient_id IS NULL
ps.icon
FROM pension_order po, pension_service ps
WHERE po.service_id = ps.id AND TO_DAYS(appointment_time) = TO_DAYS(NOW()) AND po.status = 0 AND po.order_recipient_id IS NULL
</select>
</select>
<select
id=
"getElderTodayOrderPage"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
<select
id=
"getElderTodayOrderPage"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
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.order_recipient_id,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark,
po.order_recipient_name, po.order_recipient_phone, po.dept_id, po.creator, po.creator_name,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.creator_tel, po.create_date, po.update_date, po.act_price, ps.icon
po.act_price, po.community_name, po.community_id, po.dept_id,
from pension_order po, pension_service ps
po.creator, po.creator_name, po.creator_tel, po.create_date,
where po.service_id = ps.id and TO_DAYS(appointment_time) = TO_DAYS(NOW()) and po.creator = #{creator}
ps.icon
FROM pension_order po, pension_service ps
WHERE po.service_id = ps.id AND TO_DAYS(appointment_time) = TO_DAYS(NOW()) AND po.creator = #{creator}
</select>
</select>
<select
id=
"getElderAllOrderOrByStatusList"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
<select
id=
"getElderAllOrderOrByStatusList"
resultType=
"io.hmit.modules.serviceOrder.dto.PensionOrderDTO"
>
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.order_recipient_id,
po.appointment_person, po.appointment_phone, po.appointment_time, po.remark,
po.order_recipient_name, po.order_recipient_phone, po.dept_id, po.creator, po.creator_name,
po.order_recipient_id, po.order_recipient_name, po.order_recipient_time, po.order_recipient_phone,
po.creator_tel, po.create_date, po.update_date, po.act_price, ps.icon
po.act_price, po.community_name, po.community_id, po.dept_id,
from pension_order po, pension_service ps
po.creator, po.creator_name, po.creator_tel, po.create_date,
where po.service_id = ps.id and po.creator = #{creator}
ps.icon
FROM pension_order po, pension_service ps
WHERE po.service_id = ps.id AND po.creator = #{creator}
<if
test=
"status != null"
>
<if
test=
"status != null"
>
and
po.status = #{status}
AND
po.status = #{status}
</if>
</if>
</select>
</select>
...
...
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