package com.jwipc.order.controller.pc;

import com.jwipc.security.LoginUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

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

/**
 * @Author: swq
 * @Date: 2024/4/1 10:16
 */
@Controller
@RequestMapping(MODULE_ROOT + "/purchaseOrderPlan/page")
@RequiredArgsConstructor
@Slf4j
public class PurchaseOrderPlanPageController {
    /**
     * 交货计划行列表页
     *
     * @return
     */
    @GetMapping("index")
    public String list(Model model) {
        model.addAttribute("isSupplier", LoginUtil.isSupplier());
        return MODULE_ROOT + "/purchaseOrderPlan/index";
    }
}
