gongchunyi
3 天以前 89601693cac022cd36288f67afc39c079ce70810
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
 
/**
 * <p>
 * 生产成本核算对比明细表 前端控制器
 * </p>
 *
 * @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));
    }
 
}