|
|
@@ -31,10 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="company" column="company" />
|
|
|
<result property="test" column="test" />
|
|
|
<result property="enrollFormula" column="enrollFormula" />
|
|
|
+ <result property="acceptanceRate" column="acceptanceRate" />
|
|
|
+ <result property="enrollCount" column="enrollCount" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectAMarjorPlanVo">
|
|
|
- select id, year, universityId, universityName, level, majorGroup, majorName, majorDirection, enrollCode, majorEnrollCode, examineeType, planTotal, xuefei, lengthOfSchooling, score, culturalScore, profScore, schoolScore, chinessScore, mathScore, englishScore, custCond, comment, company, test,enrollFormula from a_marjor_plan
|
|
|
+ select id, year, universityId, universityName, level, majorGroup, majorName, majorDirection, enrollCode, majorEnrollCode, examineeType, planTotal, xuefei, lengthOfSchooling, score, culturalScore, profScore, schoolScore, chinessScore, mathScore, englishScore, custCond, comment, company, test, enrollFormula, acceptanceRate, enrollCount from a_marjor_plan
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@@ -103,6 +105,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="custCond != null and custCond != ''"> and custCond = #{custCond}</if>
|
|
|
<if test="comment != null and comment != ''"> and comment = #{comment}</if>
|
|
|
<if test="company != null and company != ''"> and company = #{company}</if>
|
|
|
+ <if test="acceptanceRate != null and acceptanceRate != ''"> and acceptanceRate = #{acceptanceRate}</if>
|
|
|
+ <if test="enrollCount != null "> and enrollCount = #{enrollCount}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -150,6 +154,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="comment != null">comment,</if>
|
|
|
<if test="company != null">company,</if>
|
|
|
<if test="test != null">test,</if>
|
|
|
+ <if test="acceptanceRate != null">acceptanceRate,</if>
|
|
|
+ <if test="enrollCount != null">enrollCount,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="year != null">#{year},</if>
|
|
|
@@ -176,6 +182,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="comment != null">#{comment},</if>
|
|
|
<if test="company != null">#{company},</if>
|
|
|
<if test="test != null">#{test},</if>
|
|
|
+ <if test="acceptanceRate != null">#{acceptanceRate},</if>
|
|
|
+ <if test="enrollCount != null">#{enrollCount},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -206,6 +214,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="comment != null">comment = #{comment},</if>
|
|
|
<if test="company != null">company = #{company},</if>
|
|
|
<if test="test != null">test = #{test},</if>
|
|
|
+ <if test="acceptanceRate != null">acceptanceRate = #{acceptanceRate},</if>
|
|
|
+ <if test="enrollCount != null">enrollCount = #{enrollCount},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|