package org.jeecg.modules.pms.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.jeecg.common.api.vo.Result; import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.modules.pms.entity.PmsProcessBillMaterialsDetail; import org.jeecg.modules.pms.service.IPmsProcessBillMaterialsDetailService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * @Description: 物料清单 * @Author: jeecg-boot * @Date: 2025-07-01 * @Version: V1.0 */ @Api(tags = "物料清单") @RestController @RequestMapping("/pms/processBillMaterialsDetail") @Slf4j public class PmsProcessBillMaterialsDetailController extends JeecgController { @Autowired private IPmsProcessBillMaterialsDetailService pmsProcessBillMaterialsDetailService; @ApiOperation(value = "物料清单-通过生产物料ID查询", notes = "物料清单-通过id查询") @GetMapping(value = "/queryByMaterialId") public Result queryByMaterialId(@RequestParam(name = "materialId", required = true) String materialId) { List list = pmsProcessBillMaterialsDetailService.queryByMaterialId(materialId); return Result.OK(list); } }