Commit e921fe41 by 邹磊浩

修改代码

parent eaac3123
...@@ -58,8 +58,9 @@ ...@@ -58,8 +58,9 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''"> <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} and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if> </if>
and yyod.create_time &lt; NOW()
</where> </where>
order by yyod.visit_time desc order by yyod.create_time desc
</select> </select>
<select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo"> <select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo">
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''"> <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} and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if> </if>
and yyod.create_time &lt; NOW()
</where> </where>
order by yyod.create_time desc order by yyod.create_time desc
</select> </select>
......
...@@ -62,8 +62,9 @@ ...@@ -62,8 +62,9 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''"> <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} and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if> </if>
and yyod.create_time &lt; NOW()
</where> </where>
order by yyod.visit_time desc order by yyod.create_time desc
</select> </select>
<select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo"> <select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo">
......
...@@ -60,8 +60,9 @@ ...@@ -60,8 +60,9 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''"> <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} and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if> </if>
yyod.create_time &lt; NOW()
</where> </where>
order by yyod.visit_time desc order by yyod.create_time desc
</select> </select>
<select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo"> <select id="selectSonOrderInfoByTotalId" resultType="com.pz.merchant.domain.vo.SonOrderVo">
......
...@@ -48,12 +48,15 @@ ...@@ -48,12 +48,15 @@
LEFT JOIN department AS d ON d.id = yyod.did LEFT JOIN department AS d ON d.id = yyod.did
LEFT JOIN doctor AS s ON s.id = yyod.doctor_id LEFT JOIN doctor AS s ON s.id = yyod.doctor_id
LEFT JOIN sys_user as su on su.user_id = tlo.uid LEFT JOIN sys_user as su on su.user_id = tlo.uid
<if test="bo.orderSn != null and bo.orderSn != ''"> <where>
where tlo.order_sn LIKE CONCAT('%', #{bo.orderSn}, '%') <if test="bo.orderSn != null and bo.orderSn != ''">
</if> and tlo.order_sn LIKE CONCAT('%', #{bo.orderSn}, '%')
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''"> </if>
and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime} <if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''">
</if> 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 order by tlo.create_time desc
</select> </select>
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
<if test="bo.startTime != null and bo.startTime != '' and bo.endTime != null and bo.endTime != ''"> <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} and yyod.create_time &gt; = #{bo.startTime} and yyod.create_time &lt; = #{bo.endTime}
</if> </if>
and yyod.create_time &lt; NOW()
</where> </where>
order by yyod.create_time desc order by yyod.create_time desc
</select> </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