Commit 561916a6 by sdif

Merge remote-tracking branch 'origin/dev' into dev

parents 76720341 e921fe41
package com.pz.merchant.domain.bo;
import com.pz.common.core.validate.AddGroup;
import com.pz.common.core.validate.EditGroup;
import lombok.Data;
import javax.validation.constraints.NotBlank;
......
......@@ -58,8 +58,9 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if>
and yyod.create_time &lt; NOW()
</where>
order by yyod.visit_time desc
order by yyod.create_time desc
</select>
<select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo">
......
<?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">
......@@ -43,7 +43,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
tlo.`status` AS tStatus,
tlo.is_satisfaction AS isSatisfaction,
tlo.evaluation_content AS evaluationContent,
yyod.create_time as createTime
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
......@@ -61,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if>
and yyod.create_time &lt; NOW()
</where>
order by yyod.create_time desc
</select>
......@@ -84,8 +86,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
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,
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,
......@@ -112,8 +114,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>
......
......@@ -62,8 +62,9 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if>
and yyod.create_time &lt; NOW()
</where>
order by yyod.visit_time desc
order by yyod.create_time desc
</select>
<select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo">
......
......@@ -19,11 +19,12 @@
</resultMap>
<select id="selectLastTenRecord" resultType="com.pz.system.domain.vo.AppletOrderMessageVo">
select ifnull(order_message.user_name, '') as userName,
select distinct ifnull(order_message.user_name, '') as userName,
ifnull(user.avatar, '') as avatar
from order_message
join total_order on total_order.id = order_message.total_order_id
left join sys_user as user on user.user_id = total_order.uid
<!-- where order_message.city_id = #{city} -->
order by order_message.id desc
limit 10
</select>
......
......@@ -60,8 +60,9 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if>
yyod.create_time &lt; NOW()
</where>
order by yyod.visit_time desc
order by yyod.create_time desc
</select>
<select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo">
......
......@@ -48,12 +48,15 @@
LEFT JOIN department AS d ON d.id = yyod.did
LEFT JOIN doctor AS s ON s.id = yyod.doctor_id
LEFT JOIN sys_user as su on su.user_id = tlo.uid
<where>
<if test="bo.orderSn != null and bo.orderSn != ''">
where tlo.order_sn LIKE CONCAT('%', #{bo.orderSn}, '%')
and tlo.order_sn LIKE CONCAT('%', #{bo.orderSn}, '%')
</if>
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if>
and yyod.create_time &lt; NOW()
</where>
order by tlo.create_time desc
</select>
......
......@@ -64,6 +64,7 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if>
and yyod.create_time &lt; NOW()
</where>
order by yyod.create_time desc
</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