| | |
| | | order by b.SORTNUM |
| | | </select> |
| | | <select id="selectStatisticsList" parameterType="doumeemes.dao.ext.dto.QueryPlansExtDTO" resultType="doumeemes.dao.business.dto.statistics.ProcedurePlansPageModel"> |
| | | select a.status,a.NUM,m.name as categoryName,m.code as materialCode |
| | | select a.status,a.NUM,m.name as categoryName,m.code as materialCode,m.name as materialName |
| | | ,(select sum(b.UNQUALIFIED_NUM) from workorder_record b where b.type=1 and b.DELETED=0 and b.PLAN_ID=a.id) as unqualifiedNum |
| | | ,(select sum(b.QUALIFIED_NUM) from workorder_record b where b.type=1 and b.DELETED=0 and b.PLAN_ID=a.id) as qualifiedNum |
| | | FROM `plans` `a` |