<?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.nbclass.szxgl.mapper.ProjectFilesMapper">
	<resultMap id="BaseResultMap" type="com.nbclass.szxgl.model.ProjectFiles">
		<id column="id" jdbcType="CHAR" property="id" />
		<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
		<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
		<result column="project_id" jdbcType="VARCHAR" property="projectId" />
		<result column="file_ext" jdbcType="VARCHAR" property="fileExt" />
		<result column="file_size" jdbcType="BIGINT" property="fileSize" />
		<result column="original_name" jdbcType="VARCHAR" property="originalName" />
		<result column="file_path" jdbcType="VARCHAR" property="filePath" />
	</resultMap>

 	<select id="getList" resultType="com.nbclass.szxgl.model.ProjectFiles">
  		select id, project_id, file_ext, file_size, original_name, file_path from project_files where project_id = #{pid} order by create_time
	</select>

	<delete id="deleteByProjectId" parameterType="java.lang.String">
		delete from project_files where project_id = #{projectId}
	</delete>
</mapper>