|
|
@@ -2,9 +2,9 @@
|
|
|
<!DOCTYPE mapper
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
-<mapper namespace="com.zd.smartlock.mapper.SlSubjectRelationMapper">
|
|
|
+<mapper namespace="com.zd.alg.smartlock.mapper.SlSubjectRelationMapper">
|
|
|
|
|
|
- <resultMap type="com.zd.smartlock.domain.vo.SlSubjectRelationVo" id="SlSubjectRelationResult">
|
|
|
+ <resultMap type="com.zd.alg.smartlock.domain.vo.SlSubjectRelationVo" id="SlSubjectRelationResult">
|
|
|
<result property="id" column="id"/>
|
|
|
<result property="subjectId" column="subject_id"/>
|
|
|
<result property="subjectName" column="subject_name"/>
|
|
|
@@ -64,7 +64,7 @@
|
|
|
t.creat_time
|
|
|
from sl_subject_relation as t
|
|
|
</sql>
|
|
|
- <select id="selectSlSubjectRelationList" parameterType="com.zd.smartlock.domain.SlSubjectRelation"
|
|
|
+ <select id="selectSlSubjectRelationList" parameterType="com.zd.alg.smartlock.domain.SlSubjectRelation"
|
|
|
resultMap="SlSubjectRelationResult">
|
|
|
<include refid="selectSlSubjectRelationVo"/>
|
|
|
<where>
|
|
|
@@ -98,7 +98,7 @@
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
- <insert id="insertSlSubjectRelation" parameterType="com.zd.smartlock.domain.SlSubjectRelation"
|
|
|
+ <insert id="insertSlSubjectRelation" parameterType="com.zd.alg.smartlock.domain.SlSubjectRelation"
|
|
|
useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into sl_subject_relation
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
@@ -153,7 +153,7 @@
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
- <update id="updateSlSubjectRelation" parameterType="com.zd.smartlock.domain.SlSubjectRelation">
|
|
|
+ <update id="updateSlSubjectRelation" parameterType="com.zd.alg.smartlock.domain.SlSubjectRelation">
|
|
|
update sl_subject_relation
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="subjectId != null">subject_id = #{subjectId},</if>
|