| | |
| | | return new Response().set(1,true,"记录下载日志"); |
| | | } |
| | | |
| | | @ApiOperation(tags = "产品管理",value = "获取所有产品信息") |
| | | @GetMapping("getAllBom") |
| | | public Response getAllBom(){ |
| | | return service.getAllBom(); |
| | | } |
| | | |
| | | } |
| | |
| | | public void updateUrl(List<ProductBomApproving> fileBomApprovingList) { |
| | | mapper.updateUrl(fileBomApprovingList); |
| | | } |
| | | /** |
| | | * 获取所有产品信息*/ |
| | | public Response getAllBom() { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.select("distinct parent_code","parent_name","parent_model").orderByAsc("id"); |
| | | List list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list!=null?true:false,list,"返回数据"); |
| | | } |
| | | } |