瀏覽代碼

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

953954216 3 天之前
父節點
當前提交
1f8033d041
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      ruoyi-modules/mz-lnst/src/main/resources/mapper/lnst/ZwywJclrYcxxMapper.xml

+ 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>