package com.dk.mdm.controller.ivt;

import com.dk.common.model.pojo.PageList;
import com.dk.common.response.ResponseResultVO;
import com.dk.mdm.model.pojo.ivt.CheckItem;
import com.dk.common.controller.BaseController;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.query.ivt.CheckItemQuery;
import com.dk.mdm.model.query.ivt.FreezeItemQuery;
import com.dk.mdm.model.response.ivt.CheckItemResponse;
import com.dk.mdm.model.response.ivt.FreezeItemResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import com.dk.mdm.service.ivt.CheckItemService;

@Api(tags = "盘点单明细API接口")
@RestController
@RequestMapping("/ivt/checkItem")
public class CheckItemController{

    public BaseService<CheckItem> getService() {
        return checkItemService;
    }

    @Autowired
    private CheckItemService checkItemService;

    /**
     * @desc   : desc
     * @author : 宋扬
     * @date   : 2024/3/28 13:58
     */
    @ApiOperation(
            value = "分页、关联、条件查询",
            notes = "分页、关联、条件查询"
    )
    @PostMapping({"list_by"})
    public ResponseResultVO<PageList<CheckItemResponse>> selectByCond(@RequestBody CheckItemQuery checkItemQuery) {
        return checkItemService.selectByCond(checkItemQuery);
    }
}
