|
@@ -414,4 +414,67 @@
|
|
|
and wio.in_out_date> #{beforeDay}
|
|
|
group BY wio.in_out_task_no
|
|
|
</select>
|
|
|
+
|
|
|
+ <!-- 获得导出列表 -->
|
|
|
+ <select id="getListByConditionOut" parameterType="Map"
|
|
|
+ resultType="com.yh.saas.plugin.yiliangyiyun.entity.PaymentManagement">
|
|
|
+ SELECT
|
|
|
+ a.id,
|
|
|
+ a.comp_id as compId,
|
|
|
+ a.warehouse_name as warehouseName,
|
|
|
+ a.create_date as createDate,
|
|
|
+ a.payment_no as paymentNo,
|
|
|
+ a.customer_name as customerName,
|
|
|
+ a.customer_number_card as customerNumberCard,
|
|
|
+ a.workflow_id as workflowId,
|
|
|
+ q.bin_number as binNumber,
|
|
|
+ i.supplier,
|
|
|
+ q.quality_inspector as qualityInspector,
|
|
|
+ q.re_inspector as reInspector,
|
|
|
+ w.skin_inspector as skinInspector,
|
|
|
+ a.goods_name as goodsName,
|
|
|
+ a.type,
|
|
|
+ q.grade,
|
|
|
+ q.bulk_density as bulkDensity,
|
|
|
+ q.water_content as waterContent,
|
|
|
+ q.mildew_grain as mildewGrain,
|
|
|
+ q.impurity,
|
|
|
+ q.imperfect_grain as imperfectGrain,
|
|
|
+ q.jiaorenli,
|
|
|
+ a.car_no as carNo,
|
|
|
+ a.tidal_grain_price as tidalGrainPrice,
|
|
|
+ a.gross_weight as grossWeight,
|
|
|
+ a.tare,
|
|
|
+ a.weight_deduction as weightDeduction,
|
|
|
+ a.net_weight as netWeight,
|
|
|
+ a.unit_deduction as unitDeduction,
|
|
|
+ a.solid_grain_price as solidGrainPrice,
|
|
|
+ a.pure_weight as pureWeight,
|
|
|
+ a.amount_ing_payable as amountIngPayable,
|
|
|
+ a.amount_ed_payable as amountEdPayable,
|
|
|
+ a.update_date as updateDate,
|
|
|
+ i.bank_card as bankCard,
|
|
|
+ i.bank_deposit as bankDeposit,
|
|
|
+ i.bank_deposit_branch as bankDepositBranch
|
|
|
+ FROM payment_management a
|
|
|
+ left join quality_inspection_management q on q.relation_id = a.relation_id and q.comp_id = a.comp_id and q.delete_flag = 0
|
|
|
+ left join weighing_management w on w.relation_id = a.relation_id and w.comp_id = a.comp_id and w.delete_flag = 0
|
|
|
+ left join identity_authentication_info i on i.customer_name = a.customer_name and i.customer_number_card = a.customer_number_card
|
|
|
+ and i.customer_phone = a.customer_phone and i.delete_flag = 0 and i.cover = 0
|
|
|
+ left join warehousing_order wo on wo.id = a.order_id and wo.delete_flag = 0
|
|
|
+ WHERE a.delete_flag = '0'
|
|
|
+ <if test="warehouseName != null and warehouseName != ''">
|
|
|
+ AND a.warehouse_name= #{warehouseName}
|
|
|
+ </if>
|
|
|
+ <if test="batchId != null and batchId != ''">
|
|
|
+ AND wo.batch_id= #{batchId}
|
|
|
+ </if>
|
|
|
+ <if test="businessKeys != null and businessKeys.size > 0">
|
|
|
+ and(
|
|
|
+ <foreach collection="businessKeys" item="businessValue" open="(" close=")" separator="or">
|
|
|
+ a.id = #{businessValue}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|