|
@@ -13,7 +13,7 @@
|
|
<result column="sex_" property="sex" />
|
|
<result column="sex_" property="sex" />
|
|
<result column="birthday_" property="birthday" />
|
|
<result column="birthday_" property="birthday" />
|
|
<result column="city_" property="city" />
|
|
<result column="city_" property="city" />
|
|
- <result column="school_" property="school" />
|
|
|
|
|
|
+ <result column="school_id_" property="schoolId" />
|
|
<result column="course_id_" property="courseId" />
|
|
<result column="course_id_" property="courseId" />
|
|
<result column="class_id_" property="classId" />
|
|
<result column="class_id_" property="classId" />
|
|
<result column="branch_id_" property="branchId" />
|
|
<result column="branch_id_" property="branchId" />
|
|
@@ -37,7 +37,7 @@
|
|
<result column="sex_" property="sex" />
|
|
<result column="sex_" property="sex" />
|
|
<result column="birthday_" property="birthday" />
|
|
<result column="birthday_" property="birthday" />
|
|
<result column="city_" property="city" />
|
|
<result column="city_" property="city" />
|
|
- <result column="school_" property="school" />
|
|
|
|
|
|
+ <result column="school_id_" property="schoolId" />
|
|
<result column="course_id_" property="courseId" />
|
|
<result column="course_id_" property="courseId" />
|
|
<result column="class_id_" property="classId" />
|
|
<result column="class_id_" property="classId" />
|
|
<result column="branch_id_" property="branchId" />
|
|
<result column="branch_id_" property="branchId" />
|
|
@@ -68,8 +68,8 @@
|
|
|
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
<!-- 向数据库增加一条记录 -->
|
|
<insert id="insert" parameterType="com.ym.mec.collectfee.entity.ApplyInfo" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
<insert id="insert" parameterType="com.ym.mec.collectfee.entity.ApplyInfo" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
- INSERT INTO apply_info (course_id_,class_id_,user_id_,branch_id_,name_,sex_,birthday_,city_,school_,grade_,g_class_,sub_id_,is_adjust_,patriarch_phone_,patriarch_name_,patriarch_unit_,update_time_,create_time_) VALUES
|
|
|
|
- (#{courseId},#{classId},#{userId},#{branchId},#{name},#{sex},#{birthday},#{city},#{school},#{grade},#{gClass},#{subId},#{isAdjust},#{patriarchPhone},#{patriarchName},#{patriarchUnit},#{updateTime},#{createTime})
|
|
|
|
|
|
+ INSERT INTO apply_info (course_id_,class_id_,user_id_,branch_id_,name_,sex_,birthday_,city_,school_id_,grade_,g_class_,sub_id_,is_adjust_,patriarch_phone_,patriarch_name_,patriarch_unit_,update_time_,create_time_) VALUES
|
|
|
|
+ (#{courseId},#{classId},#{userId},#{branchId},#{name},#{sex},#{birthday},#{city},#{schoolId},#{grade},#{gClass},#{subId},#{isAdjust},#{patriarchPhone},#{patriarchName},#{patriarchUnit},#{updateTime},#{createTime})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -88,8 +88,8 @@
|
|
<if test="subId != null">
|
|
<if test="subId != null">
|
|
sub_id_ = #{subId},
|
|
sub_id_ = #{subId},
|
|
</if>
|
|
</if>
|
|
- <if test="school != null">
|
|
|
|
- school_ = #{school},
|
|
|
|
|
|
+ <if test="schoolId != null">
|
|
|
|
+ school_id_ = #{schoolId},
|
|
</if>
|
|
</if>
|
|
<if test="isAdjust != null">
|
|
<if test="isAdjust != null">
|
|
is_adjust_ = #{isAdjust},
|
|
is_adjust_ = #{isAdjust},
|