Jelajahi Sumber

年份查询

LIVE_YE 1 tahun lalu
induk
melakukan
4c1a398173

+ 6 - 0
ruoyi-system/src/main/resources/mapper/system/ProposalInfoMapper.xml

@@ -324,6 +324,9 @@
             <if test="outstandingArgument != null  and outstandingArgument != ''">and p.outstanding_argument =
                 #{outstandingArgument}
             </if>
+            <if test="year != null and year != ''"><!-- 开始时间检索 -->
+                AND date_format(p.update_time,'%Y') = #{year}
+            </if>
         </where>
         order by p.update_time desc
     </select>
@@ -390,6 +393,9 @@
             <if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
                 AND date_format(create_time,'%y%m%d') &lt;= date_format(#{endTime},'%y%m%d')
             </if>
+            <if test="year != null and year != ''"><!-- 开始时间检索 -->
+                AND date_format(update_time,'%Y') = #{year}
+            </if>
         </where>
         order by create_time desc
     </select>

+ 3 - 0
ruoyi-system/src/main/resources/mapper/system/SqmyInfoMapper.xml

@@ -183,6 +183,9 @@
             <if test="outstandingArgument != null  and outstandingArgument != ''">and s.outstanding_argument =
                 #{outstandingArgument}
             </if>
+            <if test="year != null and year != ''"><!-- 开始时间检索 -->
+                AND date_format(s.create_time,'%Y') = #{year}
+            </if>
         </where>
         order by s.update_time desc
     </select>