|
@@ -22,7 +22,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="classId" column="class_id" />
|
|
|
<result property="className" column="class_name" />
|
|
|
<result property="insuranceIsBuy" column="insurance_is_buy" />
|
|
|
- <result property="dormIsAllot" column="dorm_is_allot" />
|
|
|
+ <result property="roomId" column="room_id" />
|
|
|
+ <result property="buildingId" column="building_id" />
|
|
|
<result property="uniformIsHandOut" column="uniform_is_hand_out" />
|
|
|
<result property="textbookIsHandOut" column="textbook_is_hand_out" />
|
|
|
<result property="score" column="score" />
|
|
@@ -71,7 +72,7 @@ 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.dorm_is_allot, 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, second_up_half_is, second_low_half_is, third_up_half_is, third_low_half_is, charge_times, sbi.create_by, sbi.create_time, sbi.update_by, sbi.update_time
|
|
|
+ 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, second_up_half_is, second_low_half_is, third_up_half_is, third_low_half_is, charge_times, sbi.create_by, sbi.create_time, sbi.update_by, sbi.update_time
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectStuBaseInfoList" parameterType="StuBaseInfo" resultMap="StuBaseInfoResult">
|
|
@@ -103,7 +104,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="classId != null "> and class_id = #{classId}</if>
|
|
|
<if test="className != null and className != ''"> and class_name like concat('%', #{className}, '%')</if>
|
|
|
<if test="insuranceIsBuy != null "> and insurance_is_buy = #{insuranceIsBuy}</if>
|
|
|
- <if test="dormIsAllot != null "> and dorm_is_allot = #{dormIsAllot}</if>
|
|
|
+ <if test="roomId != null "> and room_id = #{roomId}</if>
|
|
|
+ <if test="buildingId != null "> and building_id = #{buildingId}</if>
|
|
|
<if test="uniformIsHandOut != null "> and uniform_is_hand_out = #{uniformIsHandOut}</if>
|
|
|
<if test="textbookIsHandOut != null "> and textbook_is_hand_out = #{textbookIsHandOut}</if>
|
|
|
<if test="score != null "> and score = #{score}</if>
|
|
@@ -162,7 +164,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="classId != null">class_id,</if>
|
|
|
<if test="className != null">class_name,</if>
|
|
|
<if test="insuranceIsBuy != null">insurance_is_buy,</if>
|
|
|
- <if test="dormIsAllot != null">dorm_is_allot,</if>
|
|
|
+ <if test="roomId != null">room_id,</if>
|
|
|
+ <if test="buildingId != null">building_id,</if>
|
|
|
<if test="uniformIsHandOut != null">uniform_is_hand_out,</if>
|
|
|
<if test="textbookIsHandOut != null">textbook_is_hand_out,</if>
|
|
|
<if test="score != null">score,</if>
|
|
@@ -218,7 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="classId != null">#{classId},</if>
|
|
|
<if test="className != null">#{className},</if>
|
|
|
<if test="insuranceIsBuy != null">#{insuranceIsBuy},</if>
|
|
|
- <if test="dormIsAllot != null">#{dormIsAllot},</if>
|
|
|
+ <if test="roomId != null">#{roomId},</if>
|
|
|
<if test="uniformIsHandOut != null">#{uniformIsHandOut},</if>
|
|
|
<if test="textbookIsHandOut != null">#{textbookIsHandOut},</if>
|
|
|
<if test="score != null">#{score},</if>
|
|
@@ -278,7 +281,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
|
<if test="className != null">class_name = #{className},</if>
|
|
|
<if test="insuranceIsBuy != null">insurance_is_buy = #{insuranceIsBuy},</if>
|
|
|
- <if test="dormIsAllot != null">dorm_is_allot = #{dormIsAllot},</if>
|
|
|
+ <if test="roomId != null">room_id = #{roomId},</if>
|
|
|
+ <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="score != null">score = #{score},</if>
|
|
@@ -339,7 +343,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="classId != null">class_id = #{classId},</if>
|
|
|
<if test="className != null">class_name = #{className},</if>
|
|
|
<if test="insuranceIsBuy != null">insurance_is_buy = #{insuranceIsBuy},</if>
|
|
|
- <if test="dormIsAllot != null">dorm_is_allot = #{dormIsAllot},</if>
|
|
|
+ <if test="roomId != null">room_id = #{roomId},</if>
|
|
|
+ <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="score != null">score = #{score},</if>
|
|
@@ -404,9 +409,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
SELECT id,student_status AS studentStatus FROM stu_base_info WHERE datediff(CURDATE(),enrollment_date)>730
|
|
|
</select>
|
|
|
|
|
|
- <!-- 更新毕业学生的状态 -->
|
|
|
+ <!-- 更新学生的状态 -->
|
|
|
<update id="updateStudentStatus" parameterType="StudentGraduationStatusVo">
|
|
|
update stu_base_info set student_status=#{studentStatus} where id=#{id}
|
|
|
</update>
|
|
|
|
|
|
+ <!-- 学生财务信息列表 -->
|
|
|
+ <select id="selectStuFinanceInfoList" parameterType="StuBaseInfo" resultType="com.ruoyi.system.domain.vo.FinanceExportVo">
|
|
|
+ SELECT
|
|
|
+ student_name AS studentName,
|
|
|
+ sex AS sex,
|
|
|
+ id_card_number AS idCardNumber,
|
|
|
+ phone AS phone,
|
|
|
+ profession_name AS professionName,
|
|
|
+ student_number AS studentNumber,
|
|
|
+ register_date AS registerDate,
|
|
|
+ enrollment_date AS enrollmentDate,
|
|
|
+ receivable_incidentals AS receivableIncidentals,
|
|
|
+ payment_date AS paymentDate,
|
|
|
+ payment_method AS paymentMethod,
|
|
|
+ official_incidentals AS officialIncidentals,
|
|
|
+ incidentals_bill_no AS incidentalsBillNo,
|
|
|
+ official_quarterage AS officialQuarterage,
|
|
|
+ quarterage_bill_no AS quarterageBillNo,
|
|
|
+ official_total AS officialTotal,
|
|
|
+ charger_name AS chargerName,
|
|
|
+ drawer AS drawer,
|
|
|
+ poor_households_is AS poorHouseholdsIs
|
|
|
+ FROM
|
|
|
+ stu_base_info
|
|
|
+ </select>
|
|
|
+
|
|
|
</mapper>
|