linwei
2024-01-08 ad2ec97fe0c60eee4bb7c8cdacff7c876f280ea7
src/main/java/org/springblade/modules/checkInRecords/mapper/CheckInRecordsMapper.xml
@@ -35,8 +35,14 @@
            <if test="checkInRecords.address != null  and checkInRecords.address != ''"> and jcir.address = #{checkInRecords.address}</if>
            <if test="checkInRecords.deletedFlag != null "> and jcir.deleted_flag = #{checkInRecords.deletedFlag}</if>
            <if test="checkInRecords.name != null and checkInRecords.name !='' "> and bu.name like concat('%',#{checkInRecords.name},'%') </if>
            <if test="checkInRecords.startTime!=null and checkInRecords.startTime!=''">
                AND date_format(jcir.create_time,'%Y-%m-%d')&gt;= #{checkInRecords.startTime}
            </if>
            <if test="checkInRecords.endTime!=null and checkInRecords.endTime!=''">
                AND date_format(jcir.create_time,'%Y-%m-%d')&lt;= #{checkInRecords.endTime}
            </if>
        </where>
        order by jcir.create_time desc
    </select>
    <resultMap type="org.springblade.modules.checkInRecords.dto.CheckInRecordsDTO" id="CheckInRecordsDTOResult">
@@ -89,6 +95,4 @@
            <if test="deletedFlag != null "> and deleted_flag = #{deletedFlag}</if>
        </where>
    </select>
</mapper>