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.TransferItem;
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.TransferItemQuery;
import com.dk.mdm.model.response.ivt.CheckItemResponse;
import com.dk.mdm.model.response.ivt.TransferItemResponse;
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.TransferItemService;

@Api(tags = "调整单明细API接口")
@RestController
@RequestMapping("/ivt/transferItem")
public class TransferItemController{

    public BaseService<TransferItem> getService() {
        return transferItemService;
    }

    @Autowired
    private TransferItemService transferItemService;

    /**
     * @desc   : desc
     * @author : 宋扬
     * @date   : 2024/4/18 14:50
     */
    @ApiOperation(
            value = "分页、关联、条件查询",
            notes = "分页、关联、条件查询"
    )
    @PostMapping({"list_by"})
    public ResponseResultVO<PageList<TransferItemResponse>> selectByCond(@RequestBody TransferItemQuery transferItemQuery) {
        return transferItemService.selectByCond(transferItemQuery);
    }
}
