|
@@ -71,6 +71,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="quitApplyStatus" column="quit_apply_status" />
|
|
|
<result property="outApplyStatus" column="out_apply_status" />
|
|
|
<result property="bookApplyStatus" column="book_apply_status" />
|
|
|
+
|
|
|
+ <result property="beddingFee" column="bedding_fee" />
|
|
|
+ <result property="quiltIsHandOut" column="quilt_is_hand_out" />
|
|
|
+ <result property="roomType" column="room_type" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap id="allBaseInfo" type="StuBaseInfo" extends="StuBaseInfoResult">
|
|
@@ -82,7 +86,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectStuBaseInfoVo">
|
|
|
- select sbi.id, sbi.student_name, sbi.sex, sbi.education_background, sbi.fresh_student, sbi.id_card_number,sbi.student_number, sbi.student_status, sbi.phone,sbi.should_register_date,sbi.origin_of_student, sbi.graduated_from, sbi.profession_id, sbi.profession_name, sbi.class_id, sbi.class_name, sbi.insurance_is_buy, sbi.room_id, sbi.building_id,sbi.uniform_is_hand_out, sbi.textbook_is_hand_out, sbi.score, sbi.score_by, sbi.remark, sbi.company_name, sbi.entry_date, company_address, contact_name, company_phone, poor_households_is, register_date, enrollment_date, receivable_incidentals, receivable_quarterage, official_incidentals,receivable_total,official_total, incidentals_bill_no, official_quarterage, quarterage_bill_no, charger_name, payment_date,payment_method, drawer, contact_teacher, incidentals_bill_serial, first_low_half_is, first_low_fees, second_up_half_is, second_up_fees, second_low_half_is, second_low_fees, third_up_half_is, third_up_fees, third_low_half_is, third_low_fees, charge_times, sbi.create_by, sbi.create_time, sbi.update_by, sbi.update_time,sbi.quit_apply_status,sbi.out_apply_status,sbi.book_apply_status
|
|
|
+ select sbi.id, sbi.student_name, sbi.sex, sbi.education_background, sbi.fresh_student, sbi.id_card_number,sbi.student_number, sbi.student_status,
|
|
|
+ sbi.phone,sbi.should_register_date,sbi.origin_of_student, sbi.graduated_from, sbi.profession_id, sbi.profession_name, sbi.class_id, sbi.class_name,
|
|
|
+ sbi.insurance_is_buy, sbi.room_id, sbi.building_id,sbi.uniform_is_hand_out, sbi.textbook_is_hand_out, sbi.score, sbi.score_by, sbi.remark, sbi.company_name,
|
|
|
+ sbi.entry_date, company_address, contact_name, company_phone, poor_households_is, register_date, enrollment_date, receivable_incidentals, receivable_quarterage,
|
|
|
+ official_incidentals,receivable_total,official_total, incidentals_bill_no, official_quarterage, quarterage_bill_no, charger_name, payment_date,payment_method, drawer,
|
|
|
+ contact_teacher, incidentals_bill_serial, first_low_half_is, first_low_fees, second_up_half_is, second_up_fees, second_low_half_is, second_low_fees, third_up_half_is,
|
|
|
+ third_up_fees, third_low_half_is, third_low_fees, charge_times, sbi.create_by, sbi.create_time, sbi.update_by, sbi.update_time,sbi.quit_apply_status,sbi.out_apply_status,
|
|
|
+ sbi.book_apply_status,sbi.bedding_fee,sbi.quilt_is_hand_out,sbi.room_type,sbi.bill_code,sbi.project_code,sbi.ticket_date
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectStuBaseInfoList" parameterType="StuBaseInfo" resultMap="StuBaseInfoResult">
|
|
@@ -94,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</if>
|
|
|
|
|
|
<where>
|
|
|
+ del_flag = '0'
|
|
|
<if test="studentName != null and studentName != ''"> and student_name like concat('%', #{studentName}, '%')</if>
|
|
|
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
|
|
|
<if test="educationBackground != null and educationBackground != ''"> and education_background = #{educationBackground}</if>
|
|
@@ -106,6 +118,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<when test="studentStatus==99 ">
|
|
|
and student_status IN(2,3,4,5,6,7)
|
|
|
</when>
|
|
|
+ <when test="studentStatus==111">
|
|
|
+ and student_status <![CDATA[ >= 1]]>
|
|
|
+ </when>
|
|
|
+ <when test="studentStatus==222">
|
|
|
+ and student_status <![CDATA[ >= 2]]>
|
|
|
+ </when>
|
|
|
<otherwise>
|
|
|
and student_status = #{studentStatus}
|
|
|
</otherwise>
|
|
@@ -148,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="chargeTimes != null "> and charge_times = #{chargeTimes}</if>
|
|
|
<if test="shouldRegisterDate != null "> and should_register_date = #{shouldRegisterDate}</if>
|
|
|
</where>
|
|
|
- order by update_time desc,student_name asc
|
|
|
+ ORDER BY update_time DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="selectStuBaseInfoById" parameterType="Long" resultMap="allBaseInfo">
|
|
@@ -223,6 +241,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
+
|
|
|
+ <if test="billCode != null">bill_code,</if>
|
|
|
+ <if test="projectCode != null">project_code,</if>
|
|
|
+ <if test="ticketDate != null">ticket_date,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="studentName != null">#{studentName},</if>
|
|
@@ -284,6 +306,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
+ <if test="billCode != null">#{billCode},</if>
|
|
|
+ <if test="projectCode != null">#{projectCode},</if>
|
|
|
+ <if test="ticketDate != null">#{ticketDate},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -310,6 +335,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="buildingId != null">building_id = #{buildingId},</if>
|
|
|
<if test="uniformIsHandOut != null">uniform_is_hand_out = #{uniformIsHandOut},</if>
|
|
|
<if test="textbookIsHandOut != null">textbook_is_hand_out = #{textbookIsHandOut},</if>
|
|
|
+ <if test="quiltIsHandOut != null">quilt_is_hand_out = #{quiltIsHandOut},</if>
|
|
|
<if test="score != null">score = #{score},</if>
|
|
|
<if test="scoreBy != null">score_by = #{scoreBy},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
@@ -322,6 +348,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="registerDate != null">register_date = #{registerDate},</if>
|
|
|
<if test="enrollmentDate != null">enrollment_date = #{enrollmentDate},</if>
|
|
|
<if test="receivableIncidentals != null">receivable_incidentals = #{receivableIncidentals},</if>
|
|
|
+ <if test="beddingFee != null">bedding_fee = #{beddingFee},</if>
|
|
|
<if test="receivableQuarterage != null">receivable_quarterage = #{receivableQuarterage},</if>
|
|
|
<if test="receivableTotal != null">receivable_total = #{receivableTotal},</if>
|
|
|
<if test="officialIncidentals != null">official_incidentals = #{officialIncidentals},</if>
|
|
@@ -353,6 +380,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="quitApplyStatus != null">quit_apply_status = #{quitApplyStatus},</if>
|
|
|
<if test="outApplyStatus != null">out_apply_status = #{outApplyStatus},</if>
|
|
|
<if test="bookApplyStatus != null">book_apply_status = #{bookApplyStatus},</if>
|
|
|
+ <if test="roomType != null">room_type = #{roomType},</if>
|
|
|
+ <if test="billCode != null">bill_code = #{billCode},</if>
|
|
|
+ <if test="projectCode != null">project_code = #{projectCode},</if>
|
|
|
+ <if test="ticketDate != null">ticket_date = #{ticketDate},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -380,6 +411,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="buildingId != null">building_id = #{buildingId},</if>
|
|
|
<if test="uniformIsHandOut != null">uniform_is_hand_out = #{uniformIsHandOut},</if>
|
|
|
<if test="textbookIsHandOut != null">textbook_is_hand_out = #{textbookIsHandOut},</if>
|
|
|
+ <if test="quiltIsHandOut != null">quilt_is_hand_out = #{quiltIsHandOut},</if>
|
|
|
<if test="score != null">score = #{score},</if>
|
|
|
<if test="scoreBy != null">score_by = #{scoreBy},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
@@ -392,6 +424,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="registerDate != null">register_date = #{registerDate},</if>
|
|
|
<if test="enrollmentDate != null">enrollment_date = #{enrollmentDate},</if>
|
|
|
<if test="receivableIncidentals != null">receivable_incidentals = #{receivableIncidentals},</if>
|
|
|
+ <if test="beddingFee != null">bedding_fee = #{beddingFee},</if>
|
|
|
<if test="receivableQuarterage != null">receivable_quarterage = #{receivableQuarterage},</if>
|
|
|
<if test="receivableTotal != null">receivable_total = #{receivableTotal},</if>
|
|
|
<if test="officialIncidentals != null">official_incidentals = #{officialIncidentals},</if>
|
|
@@ -423,6 +456,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="quitApplyStatus != null">quit_apply_status = #{quitApplyStatus},</if>
|
|
|
<if test="outApplyStatus != null">out_apply_status = #{outApplyStatus},</if>
|
|
|
<if test="bookApplyStatus != null">book_apply_status = #{bookApplyStatus},</if>
|
|
|
+ <if test="roomType != null">room_type = #{roomType},</if>
|
|
|
</trim>
|
|
|
where id_card_number = #{idCardNumber}
|
|
|
</update>
|