package com.ruoyi.production.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.framework.aspectj.lang.annotation.Log; import com.ruoyi.framework.aspectj.lang.enums.BusinessType; import com.ruoyi.framework.web.controller.BaseController; import com.ruoyi.framework.web.domain.AjaxResult; import com.ruoyi.production.dto.SalesLedgerProductionAccountingDto; import com.ruoyi.production.pojo.SalesLedgerProductionAccounting; import com.ruoyi.production.service.impl.SalesLedgerProductionAccountingServiceImpl; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author :yys * @date : 2025/7/21 14:43 */ @RestController @Api(tags = "生产核算") @RequestMapping("/salesLedger/productionAccounting") public class SalesLedgerProductionAccountingController extends BaseController { @Autowired private SalesLedgerProductionAccountingServiceImpl salesLedgerProductionAccountingService; @GetMapping("/listPage") @ApiOperation("生产核算-分页查询") @Log(title = "生产核算-分页查询", businessType = BusinessType.OTHER) public AjaxResult listPage(Page page, SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto) { IPage list = salesLedgerProductionAccountingService.listPage(page, salesLedgerProductionAccountingDto); return AjaxResult.success(list); } }