|
|
@@ -6,8 +6,11 @@
|
|
|
<select id="selectNoticeByType" resultType="cn.hobbystocks.auc.vo.LotNoticeVO">
|
|
|
select id,title,content,type,create_time createTime,case when create_time + INTERVAL '7 day'>now() then 1 else 0 end as isNew from lot_notice
|
|
|
<where>
|
|
|
- <if test="type!=null and type!=''">
|
|
|
- and type=#{type}
|
|
|
+ <if test="lotNotice.type!=null and lotNotice.type!=''">
|
|
|
+ and type=#{lotNotice.type}
|
|
|
+ </if>
|
|
|
+ <if test="lotNotice.title!=null and lotNotice.title!=''">
|
|
|
+ and title like concat('%',#{lotNotice.title},'%')
|
|
|
</if>
|
|
|
and status=1
|
|
|
</where>
|