|  |  |  | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | id, org_name, ext_name, new_name, hash, file_path, dt | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | <sql id="Join_Column_List"> | 
|---|
|  |  |  | ${alias}.id, ${alias}.org_name, ${alias}.ext_name, ${alias}.new_name, ${alias}.hash, ${alias}.file_path, ${alias}.dt | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | id, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="orgName != null"> | 
|---|
|  |  |  | <if test="orgName!= null and orgName !=''"> | 
|---|
|  |  |  | org_name, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="extName != null"> | 
|---|
|  |  |  | <if test="extName!= null and extName !=''"> | 
|---|
|  |  |  | ext_name, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="newName != null"> | 
|---|
|  |  |  | <if test="newName!= null and newName !=''"> | 
|---|
|  |  |  | new_name, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="hash != null"> | 
|---|
|  |  |  | <if test="hash!= null"> | 
|---|
|  |  |  | hash, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="filePath != null"> | 
|---|
|  |  |  | <if test="filePath!= null and filePath !=''"> | 
|---|
|  |  |  | file_path, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dt != null"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | #{id}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="orgName != null"> | 
|---|
|  |  |  | <if test="orgName!= null and orgName !=''"> | 
|---|
|  |  |  | #{orgName}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="extName != null"> | 
|---|
|  |  |  | <if test="extName!= null and extName !=''"> | 
|---|
|  |  |  | #{extName}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="newName != null"> | 
|---|
|  |  |  | <if test="newName!= null and newName !=''"> | 
|---|
|  |  |  | #{newName}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="hash != null"> | 
|---|
|  |  |  | <if test="hash!= null"> | 
|---|
|  |  |  | #{hash}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="filePath != null"> | 
|---|
|  |  |  | <if test="filePath!= null and filePath !=''"> | 
|---|
|  |  |  | #{filePath}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dt != null"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | update oth_file | 
|---|
|  |  |  | <set> | 
|---|
|  |  |  | <if test="orgName != null"> | 
|---|
|  |  |  | <if test="orgName!= null and orgName !=''"> | 
|---|
|  |  |  | org_name = #{orgName}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="extName != null"> | 
|---|
|  |  |  | <if test="extName!= null and extName !=''"> | 
|---|
|  |  |  | ext_name = #{extName}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="newName != null"> | 
|---|
|  |  |  | <if test="newName!= null and newName !=''"> | 
|---|
|  |  |  | new_name = #{newName}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="hash != null"> | 
|---|
|  |  |  | <if test="hash!= null"> | 
|---|
|  |  |  | hash = #{hash}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="filePath != null"> | 
|---|
|  |  |  | <if test="filePath!= null and filePath !=''"> | 
|---|
|  |  |  | file_path = #{filePath}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="dt != null"> | 
|---|
|  |  |  | 
|---|
|  |  |  | dt = #{dt} | 
|---|
|  |  |  | where id = #{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectByProId" resultMap="BaseResultMap"> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | <include refid="Join_Column_List"> | 
|---|
|  |  |  | <property name="alias" value="f"/> | 
|---|
|  |  |  | </include> | 
|---|
|  |  |  | from oth_file f | 
|---|
|  |  |  | inner join plt_product_file pf on f.id = pf.file_id | 
|---|
|  |  |  | where pf.pro_id = #{proId} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </mapper> | 
|---|