手动增加仓库调拨明细过滤查询
This commit is contained in:
@@ -28,6 +28,7 @@ warehouse.stock_transfer_order.validate.product_spec.not_null=物料型号不能
|
||||
warehouse.stock_transfer_order.validate.product_count.not_null=调拨数量不能为空
|
||||
warehouse.stock_transfer_order.validate.product_count.min=调拨数量不能小于 1
|
||||
warehouse.stock_transfer_order.validate.part_id.not_null=物料 ID 不能为空
|
||||
warehouse.stock_transfer_order.validate.order_id.not_null=调拨单 ID 不能为空
|
||||
|
||||
|
||||
# ==========>> 生产管理
|
||||
|
||||
@@ -30,4 +30,24 @@
|
||||
<result column="CustomerId" property="customerId" />
|
||||
</resultMap>
|
||||
|
||||
<select id="selectPageByPartNumber" resultType="Document">
|
||||
SELECT DISTINCT f.*
|
||||
FROM productionform f
|
||||
LEFT JOIN materialinout m ON m.DocumentNo = f.Id
|
||||
<where>
|
||||
<if test="searchCode != null and searchCode != ''">
|
||||
AND (f.FormCode LIKE CONCAT('%', #{searchCode}, '%')
|
||||
OR f.FormMark LIKE CONCAT('%', #{searchCode}, '%')
|
||||
OR f.FormName LIKE CONCAT('%', #{searchCode}, '%'))
|
||||
</if>
|
||||
<if test="partNumber != null and partNumber != ''">
|
||||
AND m.PartNumber LIKE CONCAT('%', #{partNumber}, '%')
|
||||
</if>
|
||||
<if test="documentType != null">
|
||||
AND f.FormType = #{documentType}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY f.CreateDate DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -24,4 +24,21 @@
|
||||
<result column="PartId" property="partId" />
|
||||
</resultMap>
|
||||
|
||||
<select id="selectByPartNumber" resultType="DocumentMaterialWithInfo">
|
||||
SELECT m.*, p.ProductSpecs
|
||||
FROM materialinout m
|
||||
LEFT JOIN product p ON p.PartNumber = m.PartNumber
|
||||
<where>
|
||||
<if test="documentIds != null and !documentIds.isEmpty()">
|
||||
AND m.DocumentNo IN
|
||||
<foreach collection="documentIds" open="(" separator="," close=")" item="documentId">
|
||||
#{documentId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="partNumber != null and partNumber != ''">
|
||||
AND m.PartNumber LIKE CONCAT('%', #{partNumber}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user