package com.jwipc.finance.controller.rest;

import com.jwipc.finance.logic.AttachmentManualCheckLogic;
import com.jwipc.finance.model.query.AttachmentManualCheckQuery;
import com.jwipc.finance.model.query.PaymentNoticeQuery;
import com.jwipc.page.PageView;
import com.jwipc.security.LoginUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

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

/**
 * <p>
 * 附件人工检查表 前端控制器
 * </p>
 *
 * @author shenyang.ou
 * @since 2025-12-11
 */
@RestController
@RequestMapping(MODULE_ROOT + "/attachment/manual/check/rest")
@RequiredArgsConstructor
public class AttachmentManualCheckRestController {
    private final AttachmentManualCheckLogic attachmentManualCheckLogic;
    @PostMapping("/list")
    public PageView list(AttachmentManualCheckQuery query){
        return attachmentManualCheckLogic.findByPage(query);
    }

    @PostMapping("/listByPayment")
    public PageView listByPayment(AttachmentManualCheckQuery query){
        return attachmentManualCheckLogic.findByPaymentByPage(query);
    }
}
