Commit c6c3db9a by 郑勇

fix bug

parent c9f77e2e
...@@ -49,7 +49,7 @@ public class GiftPackageDTO { ...@@ -49,7 +49,7 @@ public class GiftPackageDTO {
private Integer receiveLimit; private Integer receiveLimit;
/** /**
* (1-未开始,2-进行中,3-已结束) * (1-未开始,2-进行中,3-已结束,4-未结束)
*/ */
private Integer state; private Integer state;
/** /**
......
...@@ -147,6 +147,9 @@ ...@@ -147,6 +147,9 @@
<if test="state !=null and state==3"> <if test="state !=null and state==3">
and now() > a.valid_date_end and now() > a.valid_date_end
</if> </if>
<if test="state !=null and state==4">
and now() <![CDATA[ <= ]]> a.valid_date_end
</if>
GROUP BY a.id GROUP BY a.id
order by a.update_time desc order by a.update_time desc
......
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
AND t.rights_setting_id = #{rightsSettingId} AND t.rights_setting_id = #{rightsSettingId}
and now() <![CDATA[ <= ]]> t1.valid_date_end
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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