RegBusQlrywhrelationDao.xml 1016 Bytes
<?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>