| | |
| | | @Repository |
| | | public interface PlaMapper extends BaseMapper<Pla> { |
| | | |
| | | @Select("select brand, matnr, sum(weight_anfme) as weight from asr_pla_detl where brand = #{brand} GROUP BY brand,matnr ORDER BY weight") |
| | | @Select("select brand, matnr,workshop, sum(weight_anfme) as weight from asr_pla_detl where brand = #{brand} GROUP BY brand,matnr,workshop ORDER BY matnr,workshop") |
| | | List<Pla> getStockStatisAllByBrand(@Param("brand") String brand); |
| | | |
| | | @Select("select brand, matnr, sum(weight_anfme) as weight from asr_pla_detl GROUP BY brand,matnr ORDER BY weight") |
| | | @Select("select brand, matnr,workshop , sum(weight_anfme) as weight from asr_pla_detl GROUP BY brand,matnr,workshop ORDER BY matnr,workshop desc") |
| | | List<Pla> getStockStatisAll(); |
| | | |
| | | |
| | |
| | | var cols = [ |
| | | {field: 'brand', align: 'center',title: '牌号', style: 'font-weight: bold'}, |
| | | {field: 'matnr', align: 'center',title: '商品编号', style: 'font-weight: bold'}, |
| | | {field: 'workshop', align: 'center',title: '车间', style: 'font-weight: bold'}, |
| | | {field: 'weight', align: 'center',title: '库存重量(KG)', style: 'font-weight: bold'} |
| | | ]; |
| | | // arrRemove(detlCols, "field", "anfme") |