|
|
@@ -18,10 +18,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="locations" column="locations" />
|
|
|
<result property="examineeTypes" column="examineeTypes" />
|
|
|
<result property="conditions" column="conditions" />
|
|
|
+ <result property="modules" column="modules" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectLearnDirectedKnowledgeVo">
|
|
|
- select id, year, university_id, direct_key, enrollFormula, cultural, professional, subjects, question_types, knowledges, locations, examineeTypes, conditions from learn_directed_knowledge
|
|
|
+ select id, year, university_id, direct_key, enrollFormula, cultural, professional, subjects, question_types, knowledges, locations, examineeTypes, conditions,modules from learn_directed_knowledge
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectLearnDirectedKnowledgeList" parameterType="LearnDirectedKnowledge" resultMap="LearnDirectedKnowledgeResult">
|
|
|
@@ -67,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="locations != null">locations,</if>
|
|
|
<if test="examineeTypes != null">examineeTypes,</if>
|
|
|
<if test="conditions != null">conditions,</if>
|
|
|
+ <if test="modules != null">modules,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="year != null">#{year},</if>
|
|
|
@@ -81,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="locations != null">#{locations},</if>
|
|
|
<if test="examineeTypes != null">#{examineeTypes},</if>
|
|
|
<if test="conditions != null">#{conditions},</if>
|
|
|
+ <if test="modules != null">#{modules},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -99,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="locations != null">locations = #{locations},</if>
|
|
|
<if test="examineeTypes != null">examineeTypes = #{examineeTypes},</if>
|
|
|
<if test="conditions != null">conditions = #{conditions},</if>
|
|
|
+ <if test="modules != null">modules = #{modules},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|