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