src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -23,7 +23,7 @@
    </resultMap>
    <select id="listPageProductModel" resultMap="ProductModelVoResultMap">
        select pm.*,p.product_name
        select pm.*,p.product_name, ifnull(p.standard_quantity, 0) as product_standard_quantity
        from product_model pm
        left join product p on pm.product_id = p.id
        <where>
@@ -137,6 +137,7 @@
               pm.model as  model
        from product_model pm
        left join product p on p.id = pm.product_id
        where p.id is not null
        order by p.id,pm.id desc
    </select>