|
@@ -31,9 +31,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
select id, order_id, applicant_type, applicant_id, amount, application_user_id, application_time, payee_method, payee_account, payee_bank_name, payee_name, payee_remark, auditor_user_id, auditor_time, auditor_status, auditor_remark, create_time, update_time, create_by, update_by from l_order_settlement_application
|
|
select id, order_id, applicant_type, applicant_id, amount, application_user_id, application_time, payee_method, payee_account, payee_bank_name, payee_name, payee_remark, auditor_user_id, auditor_time, auditor_status, auditor_remark, create_time, update_time, create_by, update_by from l_order_settlement_application
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
- <select id="selectOrderSettlementApplicationById" parameterType="Long" resultMap="OrderSettlementApplicationResult">
|
|
|
|
- <include refid="selectOrderSettlementApplicationVo"/>
|
|
|
|
- where id = #{id}
|
|
|
|
|
|
+ <select id="selectOrderSettlementApplicationById" resultType="com.leromro.core.domain.vo.OrderSettlementApplicationDetailVO">
|
|
|
|
+ SELECT
|
|
|
|
+ a.id as id,
|
|
|
|
+ a.application_time as applyTime,
|
|
|
|
+ application_user.nick_name AS applyUserName,
|
|
|
|
+ sys_dept.dept_name AS applyUserName,
|
|
|
|
+ l_second_order.second_order_id AS secondOrderId,
|
|
|
|
+ l_second_order.out_trade_no AS outTradeNo,
|
|
|
|
+ l_second_order.create_time AS orderTime,
|
|
|
|
+ su_user.nick_name AS userNickName,
|
|
|
|
+ su_volunteer.nick_name AS volunteerName,
|
|
|
|
+ lvi.business_describe AS businessDescribe,
|
|
|
|
+ lvi.business_tier_name AS businessTierName,
|
|
|
|
+ l_second_order.service_start_time AS serviceStartTime,
|
|
|
|
+ l_second_order.service_end_time AS serviceEndTime,
|
|
|
|
+ l_second_order.service_total_price AS orderTotalPrice,
|
|
|
|
+ l_second_order.order_status AS orderStatus,
|
|
|
|
+ area.dept_name AS areaName,
|
|
|
|
+ service_centre.dept_name AS serviceCentreName,
|
|
|
|
+ l_second_order.area_distribution_amount AS areaDistributionAmount,
|
|
|
|
+ l_second_order.area_settlement_status AS areaSettlementStatus,
|
|
|
|
+ l_second_order.area_settlement_time AS areaSettlementTime,
|
|
|
|
+ l_second_order.service_centre_distribution_amount AS serviceCentreDistributionAmount,
|
|
|
|
+ l_second_order.service_centre_settlement_status AS serviceCentreSettlementStatus,
|
|
|
|
+ l_second_order.service_centre_settlement_time AS serviceCentreSettlementTime,
|
|
|
|
+ auditor_user.nick_name as auditorUserNickName,
|
|
|
|
+ a.auditor_time as auditorTime,
|
|
|
|
+ a.auditor_status as auditorStatus,
|
|
|
|
+ a.auditor_remark as auditorRemark
|
|
|
|
+ FROM l_order_settlement_application a
|
|
|
|
+ left join l_second_order on a.order_id = l_second_order.second_order_id
|
|
|
|
+ LEFT JOIN l_main_orders mo ON l_second_order.main_order_id = mo.main_order_id
|
|
|
|
+ LEFT JOIN sys_user auditor_user ON a.auditor_user_id = auditor_user.user_id
|
|
|
|
+ LEFT JOIN sys_user application_user ON a.application_user_id = application_user.user_id
|
|
|
|
+ left join sys_dept on a.applicant_id = sys_dept.dept_id
|
|
|
|
+ LEFT JOIN sys_user su_user ON mo.user_id = su_user.user_id
|
|
|
|
+ LEFT JOIN sys_user su_volunteer ON l_second_order.volunteer_id = su_volunteer.user_id
|
|
|
|
+ left join l_volunteer_info lvi on l_second_order.volunteer_info_id = lvi.volunteer_info_id
|
|
|
|
+ left join sys_dept area on l_second_order.area_distribution_id = area.dept_id
|
|
|
|
+ left join sys_dept service_centre on l_second_order.service_center_id = service_centre.dept_id
|
|
|
|
+ where id = #{id}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectOrderSettlementApplicationList" resultType="com.leromro.core.domain.vo.OrderSettlementApplicationListVO">
|
|
<select id="selectOrderSettlementApplicationList" resultType="com.leromro.core.domain.vo.OrderSettlementApplicationListVO">
|