Explorar o código

上级领导首页:本年待审装置数量查询语句修改

wangggziwen hai 11 meses
pai
achega
361a2e9d89
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rc-buisness/src/main/resources/mapper/rc/TAuditMapper.xml

+ 1 - 1
rc-buisness/src/main/resources/mapper/rc/TAuditMapper.xml

@@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
 
     <select id="selectHomeData1" resultType="int">
-      select count(*) from t_audit where audit_time > now() and extract(year from audit_time) = extract(year from now());
+      select count(*) from t_audit where year = extract(year from now());
     </select>
 
     <select id="selectHomeData2" resultType="java.math.BigDecimal">