WeChatSideMapper.xml
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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="com.linkwechat.wecom.mapper.WeChatSideMapper">
<update id="updateWeChatSideById">
UPDATE
we_chat_side
<set>
<if test="sideName!=null and sideName!=''">
side_name=#{sideName},
</if>
<if test="total!=null">
total=#{total},
</if>
<if test="using!=null">
`using`=#{using}
</if>
</set>
<where>
side_id=#{sideId}
</where>
</update>
<select id="selectWeChatSides" resultType="com.linkwechat.wecom.domain.WeChatSide">
SELECT
side_id,
media_type,
side_name,
total,
`using`
FROM
we_chat_side
<where>
<if test="h5!=null and h5!='' and h5=='1'.toString()">
`using`=0
</if>
</where>
</select>
</mapper>