liuxm
2024-05-23 dbf0844fc80f5bb0c4d44a4e211789e0be09cf2c
pms-parent/pms-global/src/main/resources/mapper/OthFileMapper.xml
@@ -16,6 +16,9 @@
    <!--@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 
@@ -121,4 +124,14 @@
      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>