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.
51 lines
3.6 KiB
51 lines
3.6 KiB
2 years ago
|
<?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.produce.mapper.OutsourceOrderHeadMapper">
|
||
|
|
||
|
|
||
|
<select id="selectOutsourceCheckList" resultType="com.ruoyi.produce.domain.OutsourceCheck"
|
||
|
parameterType="com.ruoyi.produce.domain.OutsourceCheck">
|
||
|
SELECT
|
||
|
warehousing_record.warehousingRecord_no as warehousingRecordNo,
|
||
|
warehousing_record.warehousingRecord_date as warehousingRecordDate,
|
||
|
outsource_order_head.outsourceOrderNo as outsourceOrderNo,
|
||
|
outsource_order_head.appointName as appointName,
|
||
|
outsource_order_head.appointNo as appointNo,
|
||
|
outsource_order_head.processName as processName,
|
||
|
warehousing_record.warehouse_name as warehouseName,
|
||
|
outsource_order_list.itemCode as itemCode,
|
||
|
outsource_order_list.itemName as itemName,
|
||
|
outsource_order_list.itemSpecification as itemSpecification,
|
||
|
outsource_order_list.unit as unit,
|
||
|
warehousing_record.warehousing_amt as warehousingAmt,
|
||
|
outsource_order_list.price as price,
|
||
|
warehousing_record.spell_1 as checkFlag,
|
||
|
warehousing_record.remark as remark
|
||
|
FROM
|
||
|
warehousing_record
|
||
|
LEFT JOIN outsource_order_head ON warehousing_record.outsourceNo = outsource_order_head.outsourceOrderNo
|
||
|
LEFT JOIN outsource_order_list ON warehousing_record.outsourceNo = outsource_order_list.outsourceOrderNo
|
||
|
<where>
|
||
|
<if test="warehousingRecordNo!=null and warehousingRecordNo!=''">and warehousingRecordNo like concat('%', #{warehousingRecordNo}, '%')</if>
|
||
|
<if test="outsourceOrderNo!=null and outsourceOrderNo!=''">and outsourceOrderNo like concat('%', #{outsourceOrderNo}, '%')</if>
|
||
|
<if test="appointName!=null and appointName!=''">and appointName like concat('%', #{appointName}, '%')</if>
|
||
|
<if test="appointNo!=null and appointNo!=''">and appointNo like concat('%', #{appointNo}, '%')</if>
|
||
|
<if test="processName!=null and processName!=''">and processName like concat('%', #{processName}, '%')</if>
|
||
|
<if test="warehouseName!=null and warehouseName!=''">and warehouseName like concat('%', #{warehouseName}, '%')</if>
|
||
|
<if test="itemCode!=null and itemCode!=''">and itemCode like concat('%', #{itemCode}, '%')</if>
|
||
|
<if test="itemName!=null and itemName!=''">and itemName like concat('%', #{itemName}, '%')</if>
|
||
|
<if test="itemSpecification!=null and itemSpecification!=''">and itemSpecification like concat('%', #{itemSpecification}, '%')</if>
|
||
|
<if test="unit!=null and unit!=''">and unit like concat('%', #{unit}, '%')</if>
|
||
|
<if test="warehousingAmt!=null and warehousingAmt!=''">and warehousingAmt like concat('%', #{warehousingAmt}, '%')</if>
|
||
|
<if test="price!=null and price!=''">and price like concat('%', #{price}, '%')</if>
|
||
|
<if test="remark!=null and remark!=''">and remark like concat('%', #{remark}, '%')</if>
|
||
|
<if test="checkFlag!=null and checkFlag!=''">and checkFlag =#{checkFlag}</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>
|
||
|
and warehousing_record.outsourceNo is not null
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|