| | |
| | | too.name as processName, |
| | | cp.dept_type as deptType, |
| | | ppo.product_model_id as productModelId, |
| | | ppm.major_category as majorCategory, |
| | | p.product_name as productName, |
| | | pm.model as modelName, |
| | | sum(ifnull(ppo.quantity, 0)) as quantity |
| | |
| | | </if> |
| | | </if> |
| | | </where> |
| | | group by ppm.user_id, ppm.user_name, yearMonth, too.id, too.name, cp.dept_type, ppo.product_model_id, p.product_name, pm.model |
| | | group by ppm.user_id, ppm.user_name, yearMonth, too.id, too.name, cp.dept_type, ppo.product_model_id, ppm.major_category, p.product_name, pm.model |
| | | order by yearMonth desc, ppm.user_id, too.id |
| | | </select> |
| | | |