瀏覽代碼

08 11 code

hr 4 年之前
父節點
當前提交
d0b6a1d808
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/CostIncomeGroupMapper.xml

+ 2 - 2
src/main/resources/mapper/CostIncomeGroupMapper.xml

@@ -63,7 +63,7 @@
         from cost_income_group
         where hosp_id = #{hospId}
         <if test="date != null and date != ''">
-            date_year = YEAR(concat(#{date},'01')) and date_month = MONTH(concat(#{date},'01'))
+           and  date_year = YEAR(concat(#{date},'01')) and date_month = MONTH(concat(#{date},'01'))
         </if>
         group by date_month, date_year
         limit #{startIndex},#{pageSize}
@@ -74,7 +74,7 @@
         from cost_income_group
         where hosp_id = #{hospId}
         <if test="date != null and date != ''">
-            date_year = YEAR(concat(#{date},'01')) and date_month = MONTH(concat(#{date},'01'))
+           and date_year = YEAR(concat(#{date},'01')) and date_month = MONTH(concat(#{date},'01'))
         </if>
     </select>