package com.chy.borrow.controller;


import com.chy.borrow.entity.BorrowExamine;
import com.chy.borrow.entity.BorrowExamineZjl0754;
import com.chy.borrow.service.BorrowExamineService;
import com.chy.borrow.service.BorrowExamineZjl0754Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;
import com.chy.borrow.controller.BaseController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 沈晔浩
 * @since 2022-03-25
 */
@Controller
@CrossOrigin
@RequestMapping("/borrowExamineZjl0754")
public class BorrowExamineZjl0754Controller extends BaseController {
    @Autowired
    BorrowExamineZjl0754Service borrowExamineZjl0754Service;

    @RequestMapping("/check")
    @ResponseBody
    public String check(@RequestBody BorrowExamineZjl0754 borrowExamineZjl0754, @RequestHeader String userId) {
//        borrowExamine.setExamineType("1");
        return borrowExamineZjl0754Service.check(borrowExamineZjl0754,userId);
    }
    @RequestMapping("/getCheckById")
    @ResponseBody
    public String getCheckById(@RequestBody BorrowExamineZjl0754 borrowExamineZjl0754) {
//        borrowExamine.setExamineType("1");
        return borrowExamineZjl0754Service.getCheckById(borrowExamineZjl0754,null);
    }

}
