删除无用mapper
This commit is contained in:
parent
8f4f974c88
commit
94f46396ee
|
|
@ -1,128 +0,0 @@
|
|||
<?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.ruoyi.task.mapper.TaskStatMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.task.mapper.entity.TaskStatEntity" id="TaskStatResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="airportCode" column="airport_code" />
|
||||
<result property="routeName" column="route_name" />
|
||||
<result property="taskCategory" column="task_category" />
|
||||
<result property="taskType" column="task_type" />
|
||||
<result property="taskStatus" column="task_status" />
|
||||
<result property="year" column="year" />
|
||||
<result property="month" column="month" />
|
||||
<result property="day" column="day" />
|
||||
<result property="taskCount" column="task_count" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTaskStatVo">
|
||||
select id, airport_code, route_name, task_category, task_type, task_status,
|
||||
year, month, day, task_count, create_by, create_time, update_by, update_time, remark
|
||||
from task_stat
|
||||
</sql>
|
||||
|
||||
<select id="selectTaskStatById" parameterType="Long" resultMap="TaskStatResult">
|
||||
<include refid="selectTaskStatVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectTaskStatList" parameterType="com.ruoyi.task.mapper.entity.TaskStatEntity" resultMap="TaskStatResult">
|
||||
<include refid="selectTaskStatVo"/>
|
||||
<where>
|
||||
<if test="airportCode != null and airportCode != ''">
|
||||
and airport_code = #{airportCode}
|
||||
</if>
|
||||
<if test="routeName != null and routeName != ''">
|
||||
and route_name like concat('%', #{routeName}, '%')
|
||||
</if>
|
||||
<if test="taskCategory != null and taskCategory != ''">
|
||||
and task_category = #{taskCategory}
|
||||
</if>
|
||||
<if test="taskType != null and taskType != ''">
|
||||
and task_type = #{taskType}
|
||||
</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">
|
||||
and task_status = #{taskStatus}
|
||||
</if>
|
||||
<if test="year != null">
|
||||
and year = #{year}
|
||||
</if>
|
||||
<if test="month != null">
|
||||
and month = #{month}
|
||||
</if>
|
||||
<if test="day != null">
|
||||
and day = #{day}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertTaskStat" parameterType="com.ruoyi.task.mapper.entity.TaskStatEntity" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
|
||||
insert into task_stat
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="airportCode != null and airportCode != ''">airport_code,</if>
|
||||
<if test="routeName != null and routeName != ''">route_name,</if>
|
||||
<if test="taskCategory != null and taskCategory != ''">task_category,</if>
|
||||
<if test="taskType != null and taskType != ''">task_type,</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">task_status,</if>
|
||||
<if test="year != null">year,</if>
|
||||
<if test="month != null">month,</if>
|
||||
<if test="day != null">day,</if>
|
||||
<if test="taskCount != null">task_count,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
create_time
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="airportCode != null and airportCode != ''">#{airportCode},</if>
|
||||
<if test="routeName != null and routeName != ''">#{routeName},</if>
|
||||
<if test="taskCategory != null and taskCategory != ''">#{taskCategory},</if>
|
||||
<if test="taskType != null and taskType != ''">#{taskType},</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">#{taskStatus},</if>
|
||||
<if test="year != null">#{year},</if>
|
||||
<if test="month != null">#{month},</if>
|
||||
<if test="day != null">#{day},</if>
|
||||
<if test="taskCount != null">#{taskCount},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
now()
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTaskStat" parameterType="com.ruoyi.task.mapper.entity.TaskStatEntity">
|
||||
update task_stat
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="airportCode != null and airportCode != ''">airport_code = #{airportCode},</if>
|
||||
<if test="routeName != null and routeName != ''">route_name = #{routeName},</if>
|
||||
<if test="taskCategory != null and taskCategory != ''">task_category = #{taskCategory},</if>
|
||||
<if test="taskType != null and taskType != ''">task_type = #{taskType},</if>
|
||||
<if test="taskStatus != null and taskStatus != ''">task_status = #{taskStatus},</if>
|
||||
<if test="year != null">year = #{year},</if>
|
||||
<if test="month != null">month = #{month},</if>
|
||||
<if test="day != null">day = #{day},</if>
|
||||
<if test="taskCount != null">task_count = #{taskCount},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
update_time = now()
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTaskStatById" parameterType="Long">
|
||||
delete from task_stat where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTaskStatByIds" parameterType="Long">
|
||||
delete from task_stat where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue