Commit 94a97290 by 邹磊浩

修改代码

parent 4575f592
......@@ -170,4 +170,6 @@ public class DbwzOrderVo {
private String isSatisfaction;
private String evaluationContent;
private Date createTime;
}
<?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.DbwzOrderMapper">
<resultMap type="com.pz.system.domain.DbwzOrder" id="DbwzOrderResult">
......@@ -43,7 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
tlo.is_satisfaction AS isSatisfaction,
tlo.evaluation_content AS evaluationContent,
yyod.over_time AS overtime,
yyod.voucher AS voucher
yyod.voucher AS voucher,
yyod.*
FROM dbwz_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
......@@ -75,8 +76,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dbwz_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,
CONVERT((1 - services.fenmo / 100), decimal (10, 2)) *
CONVERT(services.price, decimal (10, 2)) as commission,
user_vsitor.name as userName,
dbwz_order.visit_time,
department.title as department,
......@@ -107,7 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectFinishTime" resultType="java.lang.String">
select visit_time
from total_order t left join dbwz_order d on d.order_id = t.id
from total_order t
left join dbwz_order d on d.order_id = t.id
where t.id = #{id}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment