parent
b7386bc81b
commit
3186110157
@ -1,17 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="au.com.royalpay.payment.manage.mappers.system.MailUnsubMapper">
|
||||
|
||||
<select id="getOne" resultType="com.alibaba.fastjson.JSONObject">
|
||||
select * from sys_mail_unsub
|
||||
<where>
|
||||
<if test="id!=null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="address != null">
|
||||
and address = #{address}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="queryPageable" resultType="com.alibaba.fastjson.JSONObject">
|
||||
select * from sys_mail_unsub
|
||||
<where>
|
||||
<if test="client_moniker!=null">
|
||||
client_moniker = #{client_moniker}
|
||||
and client_moniker = #{client_moniker}
|
||||
</if>
|
||||
<if test="client_id != 0">
|
||||
client_id = #{client_id}
|
||||
<if test="client_id != null">
|
||||
and client_id = #{client_id}
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address}
|
||||
and address = #{address}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
Loading…
Reference in new issue