package com.ffii.fpsms.modules.jobOrder.web

import OperatorRequest
import com.ffii.core.response.RecordsRes
import com.ffii.core.utils.CriteriaArgsBuilder
import com.ffii.fpsms.modules.jobOrder.service.JobOrderProcessService
import com.ffii.fpsms.modules.master.web.models.MessageResponse
import com.ffii.fpsms.modules.purchaseOrder.entity.projections.PurchaseOrderDataClass
import com.ffii.fpsms.modules.purchaseOrder.service.PurchaseOrderService
import com.ffii.fpsms.modules.purchaseOrder.web.model.PagingRequest
import jakarta.servlet.http.HttpServletRequest
import org.springframework.web.bind.annotation.*

@RestController
@RequestMapping("/jop")
class JobOrderProcessController(
    private val jobOrderProcessService: JobOrderProcessService
) {
    @PostMapping("/isOperatorExist")
    fun checkPolAndCompletePo(@RequestBody request: OperatorRequest): MessageResponse {
        println(request)
        return jobOrderProcessService.isOperatorExist(request)
    }
}