Sfoglia il codice sorgente

食堂机构-用餐统计修改2

953954216 3 giorni fa
parent
commit
1f8033d041

+ 6 - 0
ruoyi-modules/mz-lnst/src/main/resources/mapper/lnst/ZwywJclrYcxxMapper.xml

@@ -102,6 +102,8 @@
     <select id="seletYcxxStOf2023" parameterType="ZwywJclrYcxx" resultMap="ZwywJclrYcxxResult">
         SELECT * FROM lnst_ycxx_2023 a
         <where>
+            zt = '0'
+            <if test="stbm != null  and stbm != ''">and stbm = #{stbm}</if>
             <if test="ychz != null  and ychz != ''">and ycsj like concat(#{ychz},'%') </if>
         </where>
     </select>
@@ -109,6 +111,8 @@
     <select id="seletYcxxStOf2024" parameterType="ZwywJclrYcxx" resultMap="ZwywJclrYcxxResult">
         SELECT * FROM lnst_ycxx_2024 a
         <where>
+            zt = '0'
+            <if test="stbm != null  and stbm != ''">and stbm = #{stbm}</if>
             <if test="ychz != null  and ychz != ''">and ycsj like concat(#{ychz},'%') </if>
         </where>
     </select>
@@ -116,6 +120,8 @@
     <select id="seletYcxxSt" parameterType="ZwywJclrYcxx" resultMap="ZwywJclrYcxxResult">
         SELECT * FROM lnst_ycxx
         <where>
+            zt = '0'
+            <if test="stbm != null  and stbm != ''">and stbm = #{stbm}</if>
             <if test="ychz != null  and ychz != ''">and ycsj like concat(#{ychz},'%') </if>
         </where>
     </select>