| | |
| | | import com.example.erp.common.Constants; |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.dto.mm.FinishedOperateLogDTO; |
| | | import com.example.erp.dto.mm.MaterialLogDTO; |
| | | import com.example.erp.entity.mm.*; |
| | | import com.example.erp.entity.pp.OptimizeUse; |
| | | import com.example.erp.exception.ServiceException; |
| | |
| | | public Result saveMaterialInventory( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(materialInventoryService.saveMaterialInventory(object)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("物料库存加时间查询接口") |
| | | @SaCheckPermission("selectIngredientsStock.search") |
| | |
| | | @PostMapping("/exportMaterialLogReport/{type}") |
| | | public void exportMaterialLogReport(@PathVariable String type, HttpServletResponse response, @RequestBody List<LocalDate> dates) throws IOException, IllegalAccessException, InstantiationException { |
| | | //参数:相应的数据,实体类信息,相应的方法(数据获取),生成的excel名字 |
| | | DownExcel.download(response, MaterialLog.class, materialInventoryService.exportMaterialLogReport(dates,type),"orderReport"); |
| | | DownExcel.download(response, MaterialLogDTO.class, materialInventoryService.exportMaterialLogReport(dates,type),"orderReport"); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | @ApiOperation("物料库存修改接口") |
| | | @SaCheckPermission("selectIngredientsStock.add") |
| | | @PostMapping("/updateMaterialInventory") |
| | | public Result updateMaterialInventory( @RequestBody Map<String,Object> object){ |
| | | return Result.seccess(materialInventoryService.updateMaterialInventory(object)); |
| | | } |
| | | |
| | | |
| | | } |