package com.dk.mdm.controller.mac;

import com.dk.common.model.pojo.PageList;
import com.dk.common.response.ResponseResultVO;
import com.dk.mdm.model.pojo.mac.MacTransferItem;
import com.dk.common.service.BaseService;
import com.dk.mdm.model.query.mac.MacTransferItemQuery;
import com.dk.mdm.model.query.pur.PurchaseItemQuery;
import com.dk.mdm.model.response.mac.MacTransferItemResponse;
import com.dk.mdm.model.response.pur.PurchaseItemResponse;
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.mac.MacTransferItemService;

@Api(tags = "资金转账明细API接口")
@RestController
@RequestMapping("/mac/transferItem")
public class MacTransferItemController {

    public BaseService<MacTransferItem> getService() {
        return macTransferItemService;
    }

    @Autowired
    private MacTransferItemService macTransferItemService;

    /**
     * @desc   : 条件查询
     * @author : 常皓宁
     * @date   : 2024/2/28 15:11
     */
    @ApiOperation(
            value = "分页、关联、条件查询",
            notes = "分页、关联、条件查询"
    )
    @PostMapping({"list_by"})
    public ResponseResultVO<PageList<MacTransferItemResponse>> selectByCond(@RequestBody MacTransferItemQuery macTransferItemQuery) {
        return macTransferItemService.selectByCond(macTransferItemQuery);
    }

}
