| | |
| | | <?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.lf.server.mapper.sys.DownlogMapper"> |
| | | <mapper namespace="com.terra.system.mapper.sys.DownlogMapper"> |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_downlog a inner join lf.sys_user b on a.create_user = b.id |
| | | inner join lf.sys_download c on a.downid = c.id |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByPage" resultType="com.lf.server.entity.sys.DownlogEntity"> |
| | | <select id="selectByPage" resultType="com.terra.system.entity.sys.DownlogEntity"> |
| | | select a.*,b.uname,c.name,c.type,c.sizes from lf.sys_downlog a inner join lf.sys_user b on a.create_user = b.id |
| | | inner join lf.sys_download c on a.downid = c.id |
| | | <where> |
| | |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | <select id="selectAll" resultType="com.lf.server.entity.sys.DownlogEntity"> |
| | | <select id="selectAll" resultType="com.terra.system.entity.sys.DownlogEntity"> |
| | | select * from lf.sys_downlog order by id desc |
| | | </select> |
| | | |
| | | <select id="selectById" resultType="com.lf.server.entity.sys.DownlogEntity"> |
| | | <select id="selectById" resultType="com.terra.system.entity.sys.DownlogEntity"> |
| | | select * from lf.sys_downlog where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.sys.DownlogEntity"> |
| | | <insert id="insert" parameterType="com.terra.system.entity.sys.DownlogEntity"> |
| | | insert into lf.sys_downlog |
| | | (downid,ip,create_user,create_time) |
| | | values |