chenhj
17 小时以前 a22d860591efa32da8ed394f201e01ff0b619ca3
src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -13,6 +13,9 @@
        <result column="tenant_id" property="tenantId" />
        <result column="product_name" property="productName" />
        <result column="product_id" property="productId" />
        <result column="validity_period" property="validityPeriod" />
        <result column="filing_certificate_no" property="filingCertificateNo" />
        <result column="uid_no" property="uidNo" />
    </resultMap>
    <select id="listPageProductModel" resultType="com.ruoyi.basic.pojo.ProductModel">
        select pm.*,p.product_name
@@ -97,5 +100,14 @@
        ORDER BY pm.id DESC
    </select>
    <select id="getProductAndModelList" resultType="java.util.Map">
        select p.id as id,
               pm.id as modelId,
               p.product_name as productName ,
               pm.model as  model
        from product_model pm
        left join product p on p.id = pm.product_id
        order by p.id,pm.id desc
    </select>
</mapper>