You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.3 KiB
XML
27 lines
1.3 KiB
XML
<?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.glxp.udidl.admin.dao.udid.JobLogMapper">
|
|
<select id="list" parameterType="com.glxp.udidl.admin.req.udid.JobLogFilterRequest" resultType="com.glxp.udidl.admin.entity.udid.JobLog">
|
|
select * from job_log
|
|
<where>
|
|
<if test="type != '' and type != null">
|
|
and type = #{type}
|
|
</if>
|
|
<if test="downloadType != '' and downloadType != null">
|
|
and downloadType = #{downloadType}
|
|
</if>
|
|
<if test="startDate != '' and startDate != null">
|
|
and createTime >= #{startDate}
|
|
</if>
|
|
<if test="endDate != '' and endDate != null">
|
|
and createTime <= #{endDate}
|
|
|
|
</if>
|
|
</where>
|
|
order by downloadDate desc, createTime desc
|
|
</select>
|
|
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.JobLog">
|
|
insert into job_log (type,downloadType,downloadDate,totalCount,realCount,insertCount, msg, content,createTime)
|
|
values (#{type},#{downloadType},#{downloadDate},#{totalCount},#{realCount},#{insertCount},#{msg},#{content},#{createTime})
|
|
</insert>
|
|
</mapper> |