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
eaac3123
Commit
eaac3123
authored
Nov 15, 2023
by
邹磊浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
31bcd206
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
35 deletions
+38
-35
pz-system/src/main/resources/mapper/system/DbmyOrderMapper.xml
+38
-35
No files found.
pz-system/src/main/resources/mapper/system/DbmyOrderMapper.xml
View file @
eaac3123
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.pz.system.mapper.DbmyOrderMapper"
>
<resultMap
type=
"com.pz.system.domain.DbmyOrder"
id=
"DbmyOrderResult"
>
...
...
@@ -33,23 +33,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<select
id=
"findDbmyOrderVoPage"
resultType=
"com.pz.system.domain.vo.DbmyOrderVo"
>
SELECT
tlo.order_sn AS orderSn,
tlo.pay_money AS PayMoney,
s.`name` AS serviceName,
c.`name` AS cityName,
e.`name` AS eName,
tlo.remark AS remark,
yyod.`status` AS yStatus,
tlo.`status` AS tStatus,
tlo.is_satisfaction AS isSatisfaction,
tlo.evaluation_content AS evaluationContent,
yyod.create_time as createTime
FROM
dbmy_order AS yyod
LEFT JOIN total_order AS tlo ON yyod.order_id = tlo.id
LEFT JOIN city AS c ON c.id = tlo.city_id
LEFT JOIN services AS s ON s.id = tlo.service_id
LEFT JOIN employees AS e ON e.id = tlo.em_id
tlo.order_sn AS orderSn,
tlo.pay_money AS PayMoney,
s.`name` AS serviceName,
c.`name` AS cityName,
e.`name` AS eName,
tlo.remark AS remark,
yyod.`status` AS yStatus,
tlo.`status` AS tStatus,
tlo.is_satisfaction AS isSatisfaction,
tlo.evaluation_content AS evaluationContent,
yyod.create_time as createTime,
yyod.is_refrigerate as isRefrigerate
FROM
dbmy_order AS yyod
LEFT JOIN total_order AS tlo ON yyod.order_id = tlo.id
LEFT JOIN city AS c ON c.id = tlo.city_id
LEFT JOIN services AS s ON s.id = tlo.service_id
LEFT JOIN employees AS e ON e.id = tlo.em_id
LEFT JOIN company AS co ON co.id = e.company_id
<where>
<if
test=
"bo.orderSn != null and bo.orderSn != ''"
>
...
...
@@ -69,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select dbmy_order.status as orderStatus,
sys_user.nick_name as userName,
sys_user.avatar,
dbmy_order.id as sonOrderId
dbmy_order.id
as sonOrderId
from dbmy_order
left join total_order on total_order.id = dbmy_order.order_id
left join sys_user on sys_user.user_id = total_order.uid
...
...
@@ -77,15 +78,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"selectDbmyOrderDetailDataByTotalId"
resultType=
"com.pz.system.domain.vo.DbmyOrderItemVo"
>
select total_order.id as orderId,
dbmy_order.id as serviceOrderId,
select total_order.id
as orderId,
dbmy_order.id
as serviceOrderId,
total_order.business_id,
total_order.status as orderStatus,
dbmy_order.status as serviceStatus,
services.name as project,
business.name as businessName,
CONVERT((1 - services.fenmo / 100), decimal(10, 2)) *
CONVERT(services.price, decimal(10, 2)) as commission,
total_order.status
as orderStatus,
dbmy_order.status
as serviceStatus,
services.name
as project,
business.name
as businessName,
CONVERT((1 - services.fenmo / 100), decimal
(10, 2)) *
CONVERT(services.price, decimal
(10, 2)) as commission,
dbmy_order.yp_name,
dbmy_order.yd_address,
dbmy_order.way,
...
...
@@ -93,16 +94,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dbmy_order.prescription_attachment,
dbmy_order.phone,
dbmy_order.recipient,
dbmy_order.address as address,
dbmy_order.address
as address,
dbmy_order.address_info,
dbmy_order.is_refrigerate,
total_order.remark as description,
total_order.remark
as description,
dbmy_order.remark,
dbmy_order.voucher,
total_order.evaluation_content,
total_order.is_satisfaction as evaluation_flag,
total_order.uid as userId,
employees.uid as euserId
total_order.is_satisfaction
as evaluation_flag,
total_order.uid
as userId,
employees.uid
as euserId
from total_order
left join business on total_order.business_id = business.id
left join employees on total_order.em_id = employees.id
...
...
@@ -112,8 +113,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select
id=
"selectFinishTime"
resultType=
"java.lang.String"
>
select over_time
from total_order t left join dbmy_order d on d.order_id = t.id
where d.status = 2 and t.id = #{id}
from total_order t
left join dbmy_order d on d.order_id = t.id
where d.status = 2
and t.id = #{id}
</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