소스 검색

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>