kongzy
2024-08-09 a2a1f2a22db7c2e53275359fb5f8d6c0dd15d8d6
assess-system/src/main/resources/mapper/AssProjectSupplementMapper.xml
@@ -28,11 +28,17 @@
        left join sys_agency a on a.id=s.agency_id
        <where>
             <if test="name!=null and name!=''">
                 and s.name like ('%',#{name},'%')
                 and s.name like concat('%',#{name},'%')
             </if>
            <if test="agencyId!=null">
                and s.agency_id =#{agencyId}
            </if>
            <if test="params.startTime!=null and params.startTime!=''">
                and s.filing_date &gt;= #{params.startTime}
            </if>
            <if test="params.endTime!=null and params.endTime!=''">
                and s.filing_date &lt;= #{params.endTime}
            </if>
        </where>
        order by s.create_time desc
    </select>