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.IntoReturnItem;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.query.ivt.IntoReturnItemQuery;
import com.dk.mdm.model.response.ivt.IntoReturnItemResponse;
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.IntoReturnItemService;

@Api(tags = "入库退货明细API接口")
@RestController
@RequestMapping("/ivt/intoReturnItem")
public class IntoReturnItemController{

    public BaseService<IntoReturnItem> getService() {
        return intoReturnItemService;
    }

    @Autowired
    private IntoReturnItemService intoReturnItemService;



    /**
     * @desc : 查询
     * @author : 于继渤
     * @date : 2023/1/5 9:39
     */
    @ApiOperation(
            value = "分页、关联、条件查询",
            notes = "分页、关联、条件查询"
    )
    @PostMapping({"list_by"})
    public ResponseResultVO<PageList<IntoReturnItemResponse>> selectByCond(@RequestBody IntoReturnItemQuery intoReturnItemQuery) {
        return intoReturnItemService.selectByCond(intoReturnItemQuery);
    }
}
