|
@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="listSubscribe" parameterType="com.zhongzheng.modules.user.bo.UserSubscribeQueryBo" resultMap="UserSubscribeVo">
|
|
|
SELECT
|
|
|
- *,
|
|
|
+ us.*,
|
|
|
(SELECT g.goods_name FROM goods g where us.goods_id = g.goods_id) as goods_name,
|
|
|
(SELECT g.code FROM goods g where us.goods_id = g.goods_id) as goods_code,
|
|
|
(SELECT g.stand_price FROM goods g where us.goods_id = g.goods_id) as stand_price,
|
|
@@ -112,10 +112,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="beforeId != null ">
|
|
|
and us.before_id =#{beforeId}
|
|
|
</if>
|
|
|
- <if test="exceedExamExpend != null and exceedExamExpend = 1">
|
|
|
+ <if test="exceedExamExpend != null and exceedExamExpend == 1">
|
|
|
and us.exam_expend = 1
|
|
|
</if>
|
|
|
- <if test="exceedExamExpend != null and exceedExamExpend = 2">
|
|
|
+ <if test="exceedExamExpend != null and exceedExamExpend == 2">
|
|
|
and (us.exam_expend is null or us.exam_expend = 0)
|
|
|
</if>
|
|
|
<if test="exceed != null ">
|