|  | @@ -209,6 +209,79 @@
 | 
	
		
			
				|  |  |          where id_ = #{id,jdbcType=INTEGER}
 | 
	
		
			
				|  |  |      </update>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    <update id="batchUpdate" parameterType="com.ym.mec.biz.dal.entity.DegreeRegistration">
 | 
	
		
			
				|  |  | +        <foreach collection="degrees" item="degree" separator=";">
 | 
	
		
			
				|  |  | +            update degree_registration
 | 
	
		
			
				|  |  | +            <set>
 | 
	
		
			
				|  |  | +                <if test="degree.userId != null">
 | 
	
		
			
				|  |  | +                    user_id_ = #{degree.userId},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.organId != null">
 | 
	
		
			
				|  |  | +                    organ_id_ = #{degree.organId,jdbcType=INTEGER},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.sporadicId != null">
 | 
	
		
			
				|  |  | +                    sporadic_id_ = #{degree.sporadicId,jdbcType=INTEGER},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.orderNo != null">
 | 
	
		
			
				|  |  | +                    order_no_ = #{degree.orderNo,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.transNo != null">
 | 
	
		
			
				|  |  | +                    trans_no_ = #{degree.transNo,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.name != null">
 | 
	
		
			
				|  |  | +                    name_ = #{degree.name,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.gender != null">
 | 
	
		
			
				|  |  | +                    gender_ = #{degree.gender,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.idcard != null">
 | 
	
		
			
				|  |  | +                    idcard_ = #{degree.idcard,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.city != null">
 | 
	
		
			
				|  |  | +                    city_ = #{degree.city,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.school != null">
 | 
	
		
			
				|  |  | +                    school_ = #{degree.school,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.subject != null">
 | 
	
		
			
				|  |  | +                    subject_ = #{degree.subject,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.level != null">
 | 
	
		
			
				|  |  | +                    level_ = #{degree.level,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.theoryLevel != null">
 | 
	
		
			
				|  |  | +                    theory_level_ = #{degree.theoryLevel,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.theoryLevel != null">
 | 
	
		
			
				|  |  | +                    theory_money_ = #{degree.theoryMoney,jdbcType=DECIMAL},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.theoryLevel != null">
 | 
	
		
			
				|  |  | +                    theory_cert_ = #{degree.theoryCert,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.mobile != null">
 | 
	
		
			
				|  |  | +                    mobile_ = #{degree.mobile,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.money != null">
 | 
	
		
			
				|  |  | +                    money_ = #{degree.money,jdbcType=DECIMAL},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.memo != null">
 | 
	
		
			
				|  |  | +                    memo_ = #{degree.memo,jdbcType=VARCHAR},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.createTime != null">
 | 
	
		
			
				|  |  | +                    create_time_ = #{degree.createTime},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.status != null">
 | 
	
		
			
				|  |  | +                    status_ = #{degree.status,jdbcType=INTEGER},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                <if test="degree.activityTag != null">
 | 
	
		
			
				|  |  | +                    activity_tag_ = #{degree.activityTag},
 | 
	
		
			
				|  |  | +                </if>
 | 
	
		
			
				|  |  | +                update_time_ = NOW()
 | 
	
		
			
				|  |  | +            </set>
 | 
	
		
			
				|  |  | +            where id_ = #{degree.id,jdbcType=INTEGER}
 | 
	
		
			
				|  |  | +        </foreach>
 | 
	
		
			
				|  |  | +    </update>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      <select id="findByMobileAndSporadicId" resultMap="DegreeRegistration">
 | 
	
		
			
				|  |  |          SELECT *
 | 
	
		
			
				|  |  |          FROM degree_registration
 | 
	
	
		
			
				|  | @@ -240,16 +313,6 @@
 | 
	
		
			
				|  |  |              </if>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <select id="getWithLevel" resultMap="DegreeRegistration">
 | 
	
		
			
				|  |  | -        select *
 | 
	
		
			
				|  |  | -            from degree_registration
 | 
	
		
			
				|  |  | -        where
 | 
	
		
			
				|  |  | -            user_id_ = #{degree.userId}
 | 
	
		
			
				|  |  | -            AND activity_tag_=#{degree.activityTag}
 | 
	
		
			
				|  |  | -            AND (sporadic_id_ = #{degree.sporadicId} OR theory_level_ = #{degree.theoryLevel})
 | 
	
		
			
				|  |  | -            AND status_=1
 | 
	
		
			
				|  |  | -    </select>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      <select id="getUserLevelDegrees" resultMap="DegreeRegistration">
 | 
	
		
			
				|  |  |          select *
 | 
	
		
			
				|  |  |              from degree_registration
 |