|
@@ -82,6 +82,110 @@
|
|
|
<result column="create_time" jdbcType="DATE" property="createTime"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap id="oldRefundManageAppList" type="com.gree.mall.miniapp.bean.material.parts.OldRefundManageBean">
|
|
|
+ <id column="applyNo" jdbcType="VARCHAR" property="applyNo"/>
|
|
|
+ <result column="apply_category" jdbcType="VARCHAR" property="applyCategory"/>
|
|
|
+ <result column="apply_category_name" jdbcType="VARCHAR" property="applyCategoryName"/>
|
|
|
+ <result column="apply_type" jdbcType="VARCHAR" property="applyType"/>
|
|
|
+ <result column="apply_type_name" jdbcType="VARCHAR" property="applyTypeName"/>
|
|
|
+ <result column="refund_mode" jdbcType="VARCHAR" property="refundMode"/>
|
|
|
+ <result column="refund_mode_name" jdbcType="VARCHAR" property="refundModeName"/>
|
|
|
+ <result column="repair_flag" jdbcType="VARCHAR" property="repairFlag"/>
|
|
|
+ <result column="repair_flag_name" jdbcType="VARCHAR" property="repairFlagName"/>
|
|
|
+ <result column="express_no" jdbcType="VARCHAR" property="expressNo"/>
|
|
|
+ <result column="receive_address" jdbcType="VARCHAR" property="receiveAddress"/>
|
|
|
+ <result column="receive_websit_id" jdbcType="VARCHAR" property="receiveWebsitId"/>
|
|
|
+ <result column="receive_websit_name" jdbcType="VARCHAR" property="receiveWebsitName"/>
|
|
|
+ <result column="receiveParts_websit_id" jdbcType="VARCHAR" property="receivePartsWebsitId"/>
|
|
|
+ <result column="websit_address" jdbcType="VARCHAR" property="websitAddress"/>
|
|
|
+ <result column="identity" jdbcType="VARCHAR" property="identity"/>
|
|
|
+ <result column="worker_id" jdbcType="VARCHAR" property="workerId"/>
|
|
|
+ <result column="worker_name" jdbcType="VARCHAR" property="workerName"/>
|
|
|
+ <result column="work_order_no" jdbcType="VARCHAR" property="workOrderNo"/>
|
|
|
+ <result column="pg_id" jdbcType="VARCHAR" property="pgId"/>
|
|
|
+ <result column="refund_amount" jdbcType="DECIMAL" property="refundAmount"/>
|
|
|
+ <result column="refund_amount_mode" jdbcType="VARCHAR" property="refundAmountMode"/>
|
|
|
+ <result column="settlement_state" jdbcType="BOOLEAN" property="settlementState"/>
|
|
|
+ <result column="settlement_state_name" jdbcType="VARCHAR" property="settlementStateName"/>
|
|
|
+ <result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
+ <result column="examine_remark" jdbcType="VARCHAR" property="examineRemark"/>
|
|
|
+ <result column="flag" jdbcType="VARCHAR" property="flag"/>
|
|
|
+ <result column="flag_name" jdbcType="VARCHAR" property="flagName"/>
|
|
|
+ <result column="create_by" jdbcType="VARCHAR" property="createBy"/>
|
|
|
+ <result column="create_time" jdbcType="DATE" property="createTime"/>
|
|
|
+ <result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
|
|
|
+ <result column="update_time" jdbcType="DATE" property="updateTime"/>
|
|
|
+ <result column="submit_by" jdbcType="VARCHAR" property="submitBy"/>
|
|
|
+ <result column="submit_time" jdbcType="DATE" property="submitTime"/>
|
|
|
+ <result column="examine_by" jdbcType="VARCHAR" property="examineBy"/>
|
|
|
+ <result column="examine_time" jdbcType="DATE" property="examineTime"/>
|
|
|
+ <result column="refunded_by" jdbcType="VARCHAR" property="refundedBy"/>
|
|
|
+ <result column="refunded_time" jdbcType="DATE" property="refundedTime"/>
|
|
|
+ <collection property="oldRefundManageItemBeanList" ofType="com.gree.mall.miniapp.bean.material.parts.OldRefundManageItemBean"
|
|
|
+ column="apply_no"
|
|
|
+ select="selectOldRefundManageItemByApplyNo">
|
|
|
+ </collection>
|
|
|
+ <collection property="partsOldRefundManageRecordList" ofType="com.gree.mall.miniapp.bean.material.parts.OldRefundManageRecordBean"
|
|
|
+ column="apply_no"
|
|
|
+ select="selectOldRefundManageRecordByApplyNo">
|
|
|
+ </collection>
|
|
|
+ </resultMap>
|
|
|
+ <resultMap id="oldRefundManageItemResultMap" type="com.gree.mall.miniapp.bean.material.parts.OldRefundManageItemBean">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id"/>
|
|
|
+ <result column="apply_no" jdbcType="VARCHAR" property="applyNo"/>
|
|
|
+ <result column="old_parts_number" jdbcType="VARCHAR" property="oldPartsNumber"/>
|
|
|
+ <result column="old_parts_name" jdbcType="VARCHAR" property="oldPartsName"/>
|
|
|
+ <result column="qty" jdbcType="DECIMAL" property="qty"/>
|
|
|
+ <result column="old_image" jdbcType="VARCHAR" property="oldImage"/>
|
|
|
+ <result column="tab" jdbcType="VARCHAR" property="tab"/>
|
|
|
+ <result column="new_parts_number" jdbcType="VARCHAR" property="newPartsNumber"/>
|
|
|
+ <result column="new_parts_name" jdbcType="VARCHAR" property="newPartsName"/>
|
|
|
+ <result column="newMaterialGroupName" jdbcType="VARCHAR" property="newMaterialGroupName"/>
|
|
|
+ <result column="new_goods_stock_unit" jdbcType="VARCHAR" property="newGoodsStockUnit"/>
|
|
|
+ <result column="repair_record_number" jdbcType="VARCHAR" property="repairRecordNumber"/>
|
|
|
+ <result column="machine_barcode" jdbcType="VARCHAR" property="machineBarcode"/>
|
|
|
+ <result column="repair_time" jdbcType="DATE" property="repairTime"/>
|
|
|
+ <result column="old_compress_number" jdbcType="VARCHAR" property="oldCompressNumber"/>
|
|
|
+ <result column="new_compress_number" jdbcType="VARCHAR" property="newCompressNumber"/>
|
|
|
+ <result column="parts_barcode" jdbcType="VARCHAR" property="partsBarcode"/>
|
|
|
+ <result column="install_time" jdbcType="DATE" property="installTime"/>
|
|
|
+ <result column="custom_no" jdbcType="VARCHAR" property="customNo"/>
|
|
|
+ <result column="is_backup" jdbcType="BOOLEAN" property="isBackup"/>
|
|
|
+ <result column="is_backup_name" jdbcType="VARCHAR" property="isBackupName"/>
|
|
|
+ <result column="remark" jdbcType="VARCHAR" property="remark"/>
|
|
|
+ <result column="create_time" jdbcType="DATE" property="createTime"/>
|
|
|
+ </resultMap>
|
|
|
+ <resultMap id="oldRefundManageRecordResultMap" type="com.gree.mall.miniapp.bean.material.parts.OldRefundManageRecordBean">
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id"/>
|
|
|
+ <result column="item_id" jdbcType="VARCHAR" property="itemId"/>
|
|
|
+ <result column="apply_no" jdbcType="VARCHAR" property="applyNo"/>
|
|
|
+ <result column="sales_id" jdbcType="VARCHAR" property="salesId"/>
|
|
|
+ <result column="sales_item_id" jdbcType="VARCHAR" property="salesItemId"/>
|
|
|
+ <result column="parts_number" jdbcType="VARCHAR" property="partsNumber"/>
|
|
|
+ <result column="parts_name" jdbcType="VARCHAR" property="partsName"/>
|
|
|
+ <result column="sales_price" jdbcType="DECIMAL" property="salesPrice"/>
|
|
|
+ <result column="market_price" jdbcType="DECIMAL" property="marketPrice"/>
|
|
|
+ <result column="second_price" jdbcType="DECIMAL" property="secondPrice"/>
|
|
|
+ <result column="qty" jdbcType="DECIMAL" property="qty"/>
|
|
|
+ <result column="total_amount" jdbcType="DECIMAL" property="totalAmount"/>
|
|
|
+ <result column="refund_amount" jdbcType="DECIMAL" property="refundAmount"/>
|
|
|
+ <result column="refund_time" jdbcType="DATE" property="refundTime"/>
|
|
|
+ <result column="refund_state" jdbcType="VARCHAR" property="refundState"/>
|
|
|
+ <result column="refund_state_name" jdbcType="VARCHAR" property="refundStateName"/>
|
|
|
+ <result column="refund_mch_no" jdbcType="VARCHAR" property="refundMchNo"/>
|
|
|
+ <result column="refund_account_no" jdbcType="VARCHAR" property="refundAccountNo"/>
|
|
|
+ <result column="refund_serialnumber" jdbcType="VARCHAR" property="refundSerialnumber"/>
|
|
|
+ <result column="repair_flag" jdbcType="VARCHAR" property="repairFlag"/>
|
|
|
+ <result column="repair_flag_name" jdbcType="VARCHAR" property="repairFlagName"/>
|
|
|
+ <result column="work_order_no" jdbcType="VARCHAR" property="workOrderNo"/>
|
|
|
+ <result column="pg_id" jdbcType="VARCHAR" property="pgId"/>
|
|
|
+ <result column="customer_name" jdbcType="VARCHAR" property="customerName"/>
|
|
|
+ <result column="customer_tel" jdbcType="VARCHAR" property="customerTel"/>
|
|
|
+ <result column="is_backup" jdbcType="BOOLEAN" property="isBackup"/>
|
|
|
+ <result column="is_backup_name" jdbcType="VARCHAR" property="isBackupName"/>
|
|
|
+ <result column="create_time" jdbcType="DATE" property="createTime"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<select id="buyList" resultType="com.gree.mall.miniapp.bean.material.SalesOrderBean">
|
|
|
SELECT
|
|
|
a.*
|
|
@@ -678,7 +782,7 @@
|
|
|
a.identity
|
|
|
</select>
|
|
|
|
|
|
- <select id="appOldRefundList" resultType="com.gree.mall.miniapp.bean.material.parts.OldRefundManageBean">
|
|
|
+ <select id="appOldRefundList" resultMap="oldRefundManageAppList">
|
|
|
SELECT
|
|
|
a.company_wechat_id,
|
|
|
a.company_wechat_name,
|
|
@@ -765,6 +869,77 @@
|
|
|
ORDER BY a.create_time DESC
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectOldRefundManageItemByApplyNo" resultMap="oldRefundManageItemResultMap">
|
|
|
+ SELECT
|
|
|
+ id,
|
|
|
+ apply_no,
|
|
|
+ old_parts_number,
|
|
|
+ old_parts_name,
|
|
|
+ old_material_group_name,
|
|
|
+ old_unit_name,
|
|
|
+ qty,
|
|
|
+ old_image,
|
|
|
+ tab,
|
|
|
+ new_parts_number,
|
|
|
+ new_parts_name,
|
|
|
+ new_material_group_name,
|
|
|
+ new_unit_name,
|
|
|
+ work_old_parts_number,
|
|
|
+ work_old_parts_name,
|
|
|
+ repair_record_number,
|
|
|
+ machine_barcode,
|
|
|
+ repair_time,
|
|
|
+ old_compress_number,
|
|
|
+ new_compress_number,
|
|
|
+ parts_barcode,
|
|
|
+ install_time,
|
|
|
+ custom_no,
|
|
|
+ is_backup,
|
|
|
+ remark,
|
|
|
+ create_time,
|
|
|
+ CASE is_backup WHEN 0 THEN '否'
|
|
|
+ WHEN 1 THEN '是'
|
|
|
+ ELSE '' END AS isBackupName
|
|
|
+ FROM
|
|
|
+ websit_parts_old_refund_manage_item
|
|
|
+ WHERE
|
|
|
+ apply_no = #{applyNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectOldRefundManageRecordByApplyNo" resultMap="oldRefundManageRecordResultMap">
|
|
|
+ SELECT
|
|
|
+ id,
|
|
|
+ item_id,
|
|
|
+ apply_no,
|
|
|
+ sales_id,
|
|
|
+ sales_item_id,
|
|
|
+ parts_number,
|
|
|
+ parts_name,
|
|
|
+ sales_price,
|
|
|
+ market_price,
|
|
|
+ second_price,
|
|
|
+ qty,
|
|
|
+ total_amount,
|
|
|
+ refund_amount_mode,
|
|
|
+ refund_amount,
|
|
|
+ refund_time,
|
|
|
+ refund_state,
|
|
|
+ refund_mch_no,
|
|
|
+ refund_account_no,
|
|
|
+ refund_serialnumber,
|
|
|
+ repair_flag,
|
|
|
+ work_order_no,
|
|
|
+ pg_id,
|
|
|
+ customer_name,
|
|
|
+ customer_tel,
|
|
|
+ is_backup,
|
|
|
+ create_time
|
|
|
+ FROM
|
|
|
+ websit_parts_old_refund_manage_record
|
|
|
+ WHERE
|
|
|
+ apply_no = #{applyNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="queryWebsitList" resultType="com.gree.mall.miniapp.bean.material.parts.WebsitExtends">
|
|
|
SELECT
|
|
|
a.*,
|