| | |
| | | import com.ruoyi.production.bean.dto.ProductionCostingQueryDto; |
| | | import com.ruoyi.production.bean.vo.ProductionCostingDetailVo; |
| | | import com.ruoyi.production.bean.vo.ProductionCostingSummaryVo; |
| | | import com.ruoyi.production.pojo.ProductionCostingDept; |
| | | import com.ruoyi.production.pojo.ProductionCostingProcess; |
| | | import com.ruoyi.production.pojo.ProductionCostingFactor; |
| | | import com.ruoyi.production.pojo.ProductionCostingStandard; |
| | | import com.ruoyi.production.pojo.ProductionCostingWorkday; |
| | |
| | | util.exportExcel(response, productionCostingService.detailList(dto), "生产核算明细"); |
| | | } |
| | | |
| | | /* ---------------- 部门类型配置 ---------------- */ |
| | | /* ---------------- 工序类型配置 ---------------- */ |
| | | |
| | | @GetMapping("/dept/list") |
| | | @Operation(summary = "部门类型配置列表") |
| | | public R<List<ProductionCostingDept>> deptList() { |
| | | return R.ok(productionCostingService.listDept()); |
| | | @GetMapping("/process/list") |
| | | @Operation(summary = "工序类型配置列表") |
| | | public R<List<ProductionCostingProcess>> processList(ProductionCostingProcess query) { |
| | | return R.ok(productionCostingService.listProcess(query)); |
| | | } |
| | | |
| | | @PostMapping("/dept") |
| | | @Log(title = "生产核算-部门类型配置新增", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增部门类型配置") |
| | | public R<Boolean> deptAdd(@RequestBody ProductionCostingDept dept) { |
| | | return R.ok(productionCostingService.saveDept(dept)); |
| | | @PostMapping("/process") |
| | | @Log(title = "生产核算-工序类型配置新增", businessType = BusinessType.INSERT) |
| | | @Operation(summary = "新增工序类型配置") |
| | | public R<Boolean> processAdd(@RequestBody ProductionCostingProcess process) { |
| | | return R.ok(productionCostingService.saveProcess(process)); |
| | | } |
| | | |
| | | @PutMapping("/dept") |
| | | @Log(title = "生产核算-部门类型配置修改", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改部门类型配置") |
| | | public R<Boolean> deptEdit(@RequestBody ProductionCostingDept dept) { |
| | | return R.ok(productionCostingService.updateDept(dept)); |
| | | @PutMapping("/process") |
| | | @Log(title = "生产核算-工序类型配置修改", businessType = BusinessType.UPDATE) |
| | | @Operation(summary = "修改工序类型配置") |
| | | public R<Boolean> processEdit(@RequestBody ProductionCostingProcess process) { |
| | | return R.ok(productionCostingService.updateProcess(process)); |
| | | } |
| | | |
| | | @DeleteMapping("/dept/{id}") |
| | | @Log(title = "生产核算-部门类型配置删除", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除部门类型配置") |
| | | public R<Boolean> deptRemove(@PathVariable Long id) { |
| | | return R.ok(productionCostingService.removeDept(id)); |
| | | @DeleteMapping("/process/{id}") |
| | | @Log(title = "生产核算-工序类型配置删除", businessType = BusinessType.DELETE) |
| | | @Operation(summary = "删除工序类型配置") |
| | | public R<Boolean> processRemove(@PathVariable Long id) { |
| | | return R.ok(productionCostingService.removeProcess(id)); |
| | | } |
| | | |
| | | /* ---------------- 标准数量配置 ---------------- */ |