You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
4.1 KiB
54 lines
4.1 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.ruoyi.buyorderHead.mapper.ProcurementCheckMapper">
|
|
|
|
|
|
<select id="selectProcurementCheckList" resultType="com.ruoyi.buyorderHead.domain.ProcurementCheck"
|
|
parameterType="com.ruoyi.buyorderHead.domain.ProcurementCheck">
|
|
SELECT
|
|
warehousing_record.warehousingRecord_no as warehousingRecordNo,
|
|
warehousing_record.purchaseOrder_no as purchaseOrderNo,
|
|
warehousing_record.customer_id as providerNo,
|
|
warehousing_record.customer_name as providerName,
|
|
warehousing_record.warehousingRecord_date as warehousingRecordDate,
|
|
warehousing_record.item_NO as itemNo,
|
|
warehousing_record.item_name as itemName,
|
|
warehousing_record.specificationModel as specificationModel,
|
|
warehousing_record.unit as unit,
|
|
warehousing_record.customer_name as customerName,
|
|
warehousing_record.spell_1 as isChecked,
|
|
warehousing_record.warehousing_amt as warehousingAmt,
|
|
buyorder_head.GetMoneyMemo as paymentCondition,
|
|
buyorder_list.Crl_Name as crlName,
|
|
buyorder_list.SendDate as sendDate,
|
|
buyorder_list.Price as price
|
|
FROM
|
|
warehousing_record
|
|
LEFT JOIN buyorder_head ON warehousing_record.purchaseOrder_no = buyorder_head.PO_ID
|
|
LEFT JOIN buyorder_list ON warehousing_record.purchaseOrder_no = buyorder_list.PO_ID
|
|
<where>
|
|
<if test="warehousingRecordNo!=null and warehousingRecordNo!=''">and warehousing_record.warehousingRecord_no like concat('%', #{warehousingRecordNo}, '%')</if>
|
|
<if test="purchaseOrderNo!=null and purchaseOrderNo!=''">and warehousing_record.purchaseOrder_no like concat('%', #{purchaseOrderNo}, '%')</if>
|
|
<if test="providerNo!=null and providerNo!=''">and warehousing_record.customer_id like concat('%', #{providerNo}, '%')</if>
|
|
<if test="providerName!=null and providerName!=''">and warehousing_record.customer_name like concat('%', #{providerName}, '%')</if>
|
|
<if test="params.beginWarehousingRecordDate != null and params.beginWarehousingRecordDate !=''"> and warehousing_record.warehousingRecord_date >= #{params.beginWarehousingRecordDate}</if>
|
|
<if test="params.endWarehousingRecordDate != null and params.endWarehousingRecordDate != ''">and #{params.endWarehousingRecordDate} >= warehousing_record.warehousingRecord_date</if>
|
|
<if test="itemNo!=null and itemNo!=''">and warehousing_record.item_NO like concat('%', #{itemNo}, '%')</if>
|
|
<if test="itemName!=null and itemName!=''">and warehousing_record.item_name like concat('%', #{itemName}, '%')</if>
|
|
<if test="specificationModel!=null and specificationModel!=''">and warehousing_record.specificationModel like concat('%', #{specificationModel}, '%')</if>
|
|
<if test="unit!=null and unit!=''">and warehousing_record.unit like concat('%', #{unit}, '%')</if>
|
|
<if test="warehousingAmt!=null and warehousingAmt!=''">and warehousing_record.warehousing_amt like concat('%', #{warehousingAmt}, '%')</if>
|
|
<if test="paymentCondition!=null and paymentCondition!=''">and buyorder_head.GetMoneyMemo like concat('%', #{paymentCondition}, '%')</if>
|
|
<if test="crlName!=null and crlName!=''">and buyorder_list.Crl_Name like concat('%', #{crlName}, '%')</if>
|
|
<if test="price!=null and price!=''">and buyorder_list.Price like concat('%', #{price}, '%')</if>
|
|
<if test="customerName!=null and customerName!=''">and warehousing_record.customer_name like concat('%', #{customerName}, '%')</if>
|
|
<if test="isChecked!=null and isChecked!=''">and warehousing_record.spell_1 = #{isChecked}</if>
|
|
<if test="params.beginSendDate != null and params.beginSendDate !=''"> and buyorder_list.SendDate >= #{params.beginSendDate}</if>
|
|
<if test="params.endSendDate != null and params.endSendDate != ''">and #{params.endSendDate} >= buyorder_list.SendDate</if>
|
|
and warehousing_record.purchaseOrder_no is not null
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|