Authored by mlge

任务管理--支持短信搜索

... ... @@ -9,5 +9,6 @@ import lombok.Data;
@Data
public class GateWayTaskReq extends PageRequest {
private String eventName;
private String sms;//支持短信内容搜索
// private int dataSource;
}
... ...
... ... @@ -51,6 +51,9 @@
<if test="params.eventName != null &amp;&amp; params.eventName != ''" >
and eventname like CONCAT('%',#{params.eventName,jdbcType=VARCHAR},'%' )
</if>
<if test="params.sms!=null &amp;&amp; params.sms != ''">
and sms like CONCAT('%',#{params.sms,jdbcType=VARCHAR},'%')
</if>
order by id
limit #{startIndex},#{pageSize}
</select>
... ... @@ -75,6 +78,10 @@
<if test="params.eventName != null &amp;&amp; params.eventName != ''" >
and eventname like CONCAT('%',#{params.eventName,jdbcType=VARCHAR},'%' )
</if>
<if test="params.sms!=null &amp;&amp; params.sms != ''">
and sms like CONCAT('%',#{params.sms,jdbcType=VARCHAR},'%')
</if>
</select>
<delete id="deleteById" parameterType="java.lang.Integer">
... ...