package com.ruoyi.production.controller; import com.ruoyi.framework.web.domain.AjaxResult; import com.ruoyi.production.service.IProductionSettlementDetailsService; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** *
* 生产成本核算对比明细表 前端控制器 *
* * @author deslrey * @since 2026-03-30 */ @RestController @RequestMapping("/productionSettlementDetails") @ApiModel(value = "ProductionSettlementDetailsController类", description = "生产成本核算对比明细表 前端控制器") public class ProductionSettlementDetailsController { @Autowired private IProductionSettlementDetailsService productionSettlementDetailsService; @GetMapping("/getDetailsByBatchId/{batchId}") @ApiOperation("根据批次ID获取明细数据") public AjaxResult getDetailsByBatchId(@PathVariable Long batchId) { return AjaxResult.success(productionSettlementDetailsService.selectByBatchId(batchId)); } }