|
@@ -338,15 +338,17 @@
|
|
|
<if test="auditStatus != null">
|
|
|
and spro.audit_status_ = #{auditStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
- <if test="type != null and type != ''">
|
|
|
- and
|
|
|
- <if test="type == 'SERVICE'">
|
|
|
- (spro.service_amount_ is not null and spro.service_amount_ > 0)
|
|
|
- </if>
|
|
|
- <if test="type == 'SELL'">
|
|
|
- (spro.sale_amount_ is not null and spro.sale_amount_ > 0)
|
|
|
- </if>
|
|
|
- </if>
|
|
|
+ <if test="type != null and type != ''">
|
|
|
+ <if test="type == 'SERVICE'">
|
|
|
+ and (spro.service_amount_ is not null and spro.service_amount_ > 0)
|
|
|
+ </if>
|
|
|
+ <if test="type == 'SELL'">
|
|
|
+ and (spro.sale_amount_ is not null and spro.sale_amount_ > 0)
|
|
|
+ </if>
|
|
|
+ </if>
|
|
|
+ <if test="noneTqType != null">
|
|
|
+ and spro.mer_no_ != '淘气微信'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by spro.id_ desc
|
|
|
</select>
|
|
@@ -368,14 +370,16 @@
|
|
|
and spro.audit_status_ = #{auditStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
<if test="type != null and type != ''">
|
|
|
- and
|
|
|
<if test="type == 'SERVICE'">
|
|
|
- (spro.service_amount_ is not null and spro.service_amount_ > 0)
|
|
|
+ and (spro.service_amount_ is not null and spro.service_amount_ > 0)
|
|
|
</if>
|
|
|
<if test="type == 'SELL'">
|
|
|
- (spro.sale_amount_ is not null and spro.sale_amount_ > 0)
|
|
|
+ and (spro.sale_amount_ is not null and spro.sale_amount_ > 0)
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="noneTqType != null">
|
|
|
+ and spro.mer_no_ != '淘气微信'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by spro.id_ desc
|
|
|
<include refid="global.limit" />
|