RegBusQlrywhrelationDao.xml
1016 Bytes
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
41
42
43
44
<?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.thinkgem.jeesite.modules.reg.dao.bus.RegBusQlrRelationYwhDao">
<sql id="regBusQlrRelationYwhColumns">
a.ywh AS "ywh",
a.qlrid AS "qlrid",
a.isuse AS "isuse"
</sql>
<sql id="regBusQlrRelationYwhJoins">
</sql>
<select id="findList" resultType="RegBusQlrRelationYwh">
SELECT
<include refid="regBusQlrRelationYwhColumns"/>
FROM reg_bus_qlrywhrelation a
<include refid="regBusQlrRelationYwhJoins"/>
<where>
<if test="ywh != null and ywh != ''">
AND a.ywh = #{ywh} AND a.isuse = '1'
</if>
</where>
</select>
<insert id="saveqlr">
INSERT INTO reg_bus_qlrywhrelation(
ywh,
qlrid,
isuse
) VALUES (
#{ywh},
#{qlrid},
#{isuse}
)
</insert>
<update id="updateqlr">
UPDATE reg_bus_qlrywhrelation SET
ywh = #{ywh},
isuse = #{isuse}
WHERE qlrid = #{qlrid}
</update>
</mapper>