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.
42 lines
2.7 KiB
42 lines
2.7 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.produce.mapper.CancelStockHeadMapper">
|
|
|
|
|
|
<select id="selectCancelItemList" resultType="com.ruoyi.produce.domain.CancelStockHeadWithList" parameterType="com.ruoyi.produce.domain.CancelStockHeadWithList">
|
|
SELECT
|
|
cancel_stock_head.cancelStockNo as cancelStockNo,
|
|
cancel_stock_head.workOrderNo as workOrderNo,
|
|
cancel_stock_head.deptName as deptName,
|
|
cancel_stock_head.stockName as stockName,
|
|
cancel_stock_head.cancelStockMan as cancelStockMan,
|
|
cancel_stock_head.cancelStockDate as cancelStockDate,
|
|
cancel_stock_list.itemCode as itemCode,
|
|
cancel_stock_list.itemName as itemName,
|
|
cancel_stock_list.itemSpecification as itemSpecification,
|
|
cancel_stock_list.machineType as machineType,
|
|
cancel_stock_list.unit as unit,
|
|
cancel_stock_list.qty as qty
|
|
FROM
|
|
cancel_stock_list
|
|
LEFT JOIN cancel_stock_head ON cancel_stock_head.cancelStockNo = cancel_stock_list.cancelStockNo
|
|
<where>
|
|
<if test="cancelStockNo != null and cancelStockNo != ''"> and cancelStockNo like concat('%', #{cancelStockNo}, '%')</if>
|
|
<if test="workOrderNo != null and workOrderNo != ''"> and workOrderNo like concat('%', #{workOrderNo}, '%')</if>
|
|
<if test="deptName != null and deptName != ''"> and deptName like concat('%', #{deptName}, '%')</if>
|
|
<if test="cancelStockMan != null and cancelStockMan != ''"> and cancelStockMan like concat('%', #{cancelStockMan}, '%')</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="machineType != null and machineType != ''"> and machineType = #{machineType}</if>
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
<if test="qty != null and qty != ''"> and qty = #{qty}</if>
|
|
<if test="stockName != null and stockName != ''"> and stockName = #{stockName}</if>
|
|
<if test="params.beginCancelStockDate != null and params.beginCancelStockDate !=''"> and cancelStockDate >= #{params.beginCancelStockDate}</if>
|
|
<if test="params.endCancelStockDate != null and params.endCancelStockDate != ''">and #{params.endCancelStockDate} >= cancelStockDate</if>
|
|
</where>
|
|
</select>
|
|
|
|
</mapper>
|