mapper.DashboardFileDao.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.gccloud.dashboard.core.module.file.dao.DashboardFileDao"> <!-- 更新文件下载次数 --> <update id="updateDownloadCount"> update dashboard_file set download_count=download_count + #{addCount} where id = #{id}; </update> <select id="getAllExtension" resultType="java.lang.String"> select distinct extension from dashboard_file </select> </mapper>