package com.jwipc.order.controller.pc;

import com.jwipc.order.dto.PcnChangeMaterialDTO;
import com.jwipc.order.logic.PcnManagerLogic;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static com.jwipc.order.constant.ModuleConst.MODULE_ROOT;

/**
 * <p>
 * PCN受影响对象（物料）表 前端控制器
 * </p>
 *
 * @author zx
 * @since 2024-03-19
 */
@RestController
@RequestMapping(MODULE_ROOT + "/pcn/material/rest")
@RequiredArgsConstructor
@Slf4j
public class PcnChangeMaterialRestController {

    @Autowired
    PcnManagerLogic pcnManagerLogic;


    @RequestMapping("/getMaterialList")
    public ResponseEntity queryMaterial(Long appListId) {
        return ResponseEntity.ok(pcnManagerLogic.queryMaterial(appListId));

    }



}
