修改查询语句
This commit is contained in:
parent
b9adb88246
commit
3bf76788c2
|
@ -1006,22 +1006,24 @@
|
|||
|
||||
|
||||
<select id="getDangqiList" resultType="com.sqx.modules.artificer.entity.Orders">
|
||||
select * from orders
|
||||
where status in (3,5)
|
||||
and artificer_id = ${userId}
|
||||
and end_times BETWEEN #{startTime} and #{endTime} and parent_id = 0
|
||||
select a.*,b.massage_img from orders a
|
||||
left join massage_type b on a.massage_type_id = b.massage_type_id
|
||||
where a.status in (3,5)
|
||||
and a.artificer_id = ${userId}
|
||||
and a.end_times BETWEEN #{startTime} and #{endTime} and a.parent_id = 0
|
||||
</select>
|
||||
|
||||
<select id="getJiazhongList" resultType="com.sqx.modules.artificer.entity.Orders">
|
||||
select * from orders
|
||||
where status in (3,5)
|
||||
and artificer_id = ${userId}
|
||||
and end_times BETWEEN #{startTime} and #{endTime} and parent_id = 0
|
||||
select a.*,b.massage_img from orders a
|
||||
left join massage_type b on a.massage_type_id = b.massage_type_id
|
||||
where a.status in (3,5)
|
||||
and a.artificer_id = ${userId}
|
||||
and a.end_times BETWEEN #{startTime} and #{endTime} and a.parent_id = 0
|
||||
<if test="isSfwc != null and isSfwc == 0">
|
||||
and (add_num = 0 or add_num is null)
|
||||
and (a.add_num = 0 or a.add_num is null)
|
||||
</if>
|
||||
<if test="isSfwc != null and isSfwc == 1">
|
||||
and add_num > 0
|
||||
and a.add_num > 0
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
@ -1043,10 +1045,11 @@
|
|||
</select>
|
||||
<!-- 获取业绩积分-->
|
||||
<select id="getYjjfList" resultType="com.sqx.modules.artificer.entity.Orders">
|
||||
select *,price as jifen,end_times as jftime from orders
|
||||
where status in (3,5)
|
||||
and artificer_id = ${userId}
|
||||
and end_times BETWEEN #{startTime} and #{endTime}
|
||||
select a.*,a.price as jifen,a.end_times as jftime,b.massage_img from orders a
|
||||
left join massage_type b on a.massage_type_id = b.massage_type_id
|
||||
where a.status in (3,5)
|
||||
and a.artificer_id = ${userId}
|
||||
and a.end_times BETWEEN #{startTime} and #{endTime}
|
||||
</select>
|
||||
<!-- 获取储值积分(为他充值的)-->
|
||||
<select id="getCzjfList" resultType="com.sqx.modules.artificer.entity.Orders">
|
||||
|
|
Loading…
Reference in New Issue