From b1b59aac99c3d465d51e5fb4f7ab8185ddb733d2 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期二, 16 十二月 2025 17:24:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/hckx' into hckx
---
src/main/resources/mapper/procurementrecord/CustomStorageMapper.xml | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/procurementrecord/CustomStorageMapper.xml b/src/main/resources/mapper/procurementrecord/CustomStorageMapper.xml
new file mode 100644
index 0000000..e29cc8d
--- /dev/null
+++ b/src/main/resources/mapper/procurementrecord/CustomStorageMapper.xml
@@ -0,0 +1,26 @@
+<?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.procurementrecord.mapper.CustomStorageMapper">
+
+ <select id="listPageCopyByCustom" resultType="com.ruoyi.procurementrecord.pojo.CustomStorage">
+ select *,
+ sum(inbound_num) as inboundNum,
+ sum(inbound_num) as inboundNum0,
+ sum(tax_inclusive_total_price) as taxInclusiveTotalPrice
+ from custom_storage
+ <where>
+ <if test="req.productCategory != null and req.productCategory != ''">
+ and product_category like concat('%',#{req.productCategory},'%')
+ </if>
+ <if test="req.supplierName !=null and req.supplierName != ''">
+ and supplier_name like concat('%',#{req.supplierName},'%')
+ </if>
+ <if test="req.inboundDate !=null">
+ and inbound_date like concat('%',#{req.inboundDate},'%')
+ </if>
+
+ </where>
+ group by product_category, specification_model, tax_inclusive_unit_price
+ order by inbound_date desc
+ </select>
+</mapper>
\ No newline at end of file
--
Gitblit v1.9.3