<?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.newfiber.api.pc.dao.RiverManage.PatrolManageLawFileMapper"> <!-- 通用映射列 --> <resultMap id="BaseResultMap" type="com.newfiber.api.pc.model.River.PatrolManageLawFile"> <result column="id" property="id"/> <result column="taskNum" property="taskNum"/> <result column="mediaName" property="mediaName"/> <result column="mediaURL" property="mediaURL"/> <result column="mediaUsage" property="mediaUsage"/> <result column="mediaType" property="mediaType"/> <result column="content" property="content"/> </resultMap> <!-- 通用数据库列 --> <sql id="Base_Column_List"> id, taskNum, mediaName, mediaURL, mediaUsage, mediaType, content </sql> <delete id="deleteByTaskNum" parameterType="string" > delete from patrol_manage_law_file where task_num = #{taskNum} </delete> </mapper>