Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
d32d7d6c
Commit
d32d7d6c
authored
Sep 19, 2023
by
sdif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户端代码提交
parent
4e5f01a1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
7 deletions
+25
-7
pz-system/src/main/java/com/pz/system/domain/vo/TotalOrderVo.java
+2
-0
pz-system/src/main/java/com/pz/system/service/impl/ArticleServiceImpl.java
+1
-0
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
+7
-4
pz-system/src/main/resources/mapper/merchant/EmployeesMapper.xml
+14
-2
pz-system/src/main/resources/mapper/system/StoreOrderMapper.xml
+1
-1
No files found.
pz-system/src/main/java/com/pz/system/domain/vo/TotalOrderVo.java
View file @
d32d7d6c
...
...
@@ -331,4 +331,6 @@ public class TotalOrderVo {
private
String
intro
;
private
String
pzRemark
;
private
Integer
goodsId
;
}
pz-system/src/main/java/com/pz/system/service/impl/ArticleServiceImpl.java
View file @
d32d7d6c
...
...
@@ -199,6 +199,7 @@ public class ArticleServiceImpl implements IArticleService {
//查询用户收藏的所有文章
bo
.
setArticleId
(
articleIds
);
bo
.
setCityId
(
null
);
lqw
=
buildQueryWrapper
(
bo
);
result
=
baseMapper
.
selectVoPage
(
pageQuery
.
build
(),
lqw
);
...
...
pz-system/src/main/java/com/pz/system/service/impl/TotalOrderServiceImpl.java
View file @
d32d7d6c
...
...
@@ -286,6 +286,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderVo
.
setSmallCover
(
storeGoods
.
getSmallCover
());
totalOrderVo
.
setPrice
(
storeGoods
.
getSalePrice
());
totalOrderVo
.
setIntro
(
storeGoods
.
getIntro
());
totalOrderVo
.
setGoodsId
(
storeGoods
.
getId
());
}
return
totalOrderVo
;
...
...
@@ -573,10 +574,12 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
totalOrderBo
.
setIsRefund
(
0
);
return
this
.
refundOrder
(
totalOrderBo
);
}
/*
if(){
}*/
//商城订单已支付未结单取消退款
if
(
totalOrder
.
getBusinessId
()
==
0
&&
totalOrder
.
getStatus
()
==
1
&&
sonOrderSimpleDataByTotalId
.
getOrderStatus
()
==
0
){
totalOrderBo
.
setIsRefund
(
0
);
return
this
.
refundOrder
(
totalOrderBo
);
}
if
(
sonOrderSimpleDataByTotalId
.
getOrderStatus
()
==
0
&&
totalOrder
.
getEmId
()
==
0
&&
totalOrder
.
getStatus
()
==
0
)
{
// 预约陪诊
// yypzOrderMapper.selectOne(new LambdaQueryWrapper<YypzOrder>().eq(YypzOrder::getOrderId,totalOrder));
...
...
@@ -816,7 +819,7 @@ public class TotalOrderServiceImpl implements ITotalOrderService {
if
(
totalOrder
.
getBusinessId
()
==
5
)
{
money
=
totalOrder
.
getPayMoney
();
}
else
if
(
totalOrder
.
getBusinessId
()
==
0
)
{
// 商城订单
money
=
totalOrder
.
getPayMoney
();
}
else
{
// 一般陪诊订单
// 一般订单开始服务时间
...
...
pz-system/src/main/resources/mapper/merchant/EmployeesMapper.xml
View file @
d32d7d6c
...
...
@@ -75,15 +75,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join company c on c.id = e.company_id
left join sys_user s on s.user_id = e.uid
WHERE e.`status` = 1 and e.now_type= 1 and e.del_flag= 0
<if
test=
"bo.companyId !=
null and bo.companyId != ''
"
>
<if
test=
"bo.companyId !=
0
"
>
and e.company_id = #{bo.companyId}
</if>
GROUP BY
e.id,
e.`name`
<
if
test=
"bo.favorableRate != null and bo.favorableRate != ''
"
>
<
!--<if test="bo.favorableRate = 0
">
HAVING
satisfaction_rate >= #{bo.favorableRate};
</if>-->
<if
test=
"bo.favorableRate == 1"
>
HAVING
satisfaction_rate
>
= 90 and satisfaction_rate
<
= 100
</if>
<if
test=
"bo.favorableRate == 2"
>
HAVING
satisfaction_rate
>
= 80 and satisfaction_rate
<
= 90
</if>
<if
test=
"bo.favorableRate == 3"
>
HAVING
satisfaction_rate
<
= 80
</if>
ORDER BY satisfaction_rate desc
</select>
...
...
pz-system/src/main/resources/mapper/system/StoreOrderMapper.xml
View file @
d32d7d6c
...
...
@@ -57,7 +57,7 @@
</where>
</select>
<select
id=
"selectSonOrderInfoByTotalId"
resultType=
"com.pz.merchant.domain.vo.SonOrderVo"
>
select s.id as sonOrderId
store_order s where
order_id = #{totalId}
select s.id as sonOrderId
, s.status as orderStatus from store_order s where s.
order_id = #{totalId}
</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