| | |
| | | AND slp.product_category = #{req.productCategory} |
| | | </if> |
| | | <!-- 按产品大类分组聚合 --> |
| | | GROUP BY slp.product_category |
| | | GROUP BY slp.product_category,slp.specification_model,sl.supplier_name |
| | | <!-- 按产品大类排序 --> |
| | | ORDER BY slp.product_category |
| | | </select> |
| | |
| | | WHERE sl.id = #{salesLedegerId}) A |
| | | group by a.model, a.product_name, a.unit |
| | | </select> |
| | | <select id="selectProduct" resultType="com.ruoyi.sales.pojo.SalesLedgerProduct"> |
| | | <select id="selectProduct" resultType="com.ruoyi.sales.dto.SimpleProductDto"> |
| | | select |
| | | pm.id, |
| | | p.product_name as product_category, |
| | | pm.model as specification_model, |
| | | pm.id as product_model_id |
| | | pm.id as product_model_id, |
| | | pm.unit, |
| | | pm.sub_unit |
| | | from product_model pm |
| | | left join product p on pm.product_id = p.id |
| | | </select> |