gongchunyi
3 天以前 89601693cac022cd36288f67afc39c079ce70810
src/main/java/com/ruoyi/production/controller/ProductionSettlementDetailsController.java
@@ -1,9 +1,13 @@
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;
/**
@@ -15,8 +19,17 @@
 * @since 2026-03-30
 */
@RestController
@RequestMapping("/production-settlement-details")
@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));
    }
}