| | |
| | | package com.ruoyi.production.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.production.bean.dto.ProductionAccountDto; |
| | | import com.ruoyi.production.bean.dto.ProductionProductMainDto; |
| | | import com.ruoyi.production.bean.vo.ProductionAccountVo; |
| | | import com.ruoyi.production.service.ProductionAccountService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | * <p> |
| | | * 生产核算表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @since 2026-04-21 03:55:52 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/productionAccount") |
| | | @RequiredArgsConstructor |
| | | @Tag(name = "生产核算") |
| | | public class ProductionAccountController { |
| | | |
| | | private final ProductionAccountService productionAccountService; |
| | | |
| | | @GetMapping("/listPage") |
| | | @Operation(summary = "生产核算分页查询") |
| | | public R<IPage<ProductionAccountVo>> listPage(Page<ProductionAccountDto> page, ProductionAccountDto dto) { |
| | | return R.ok(productionAccountService.listPage(page, dto)); |
| | | } |
| | | |
| | | @GetMapping("/listProductionDetails") |
| | | @Operation(summary ="查询工人生产工资信息") |
| | | public R<IPage<ProductionProductMainDto>> listProductionDetails(ProductionAccountDto productionAccountDto, Page page) { |
| | | return R.ok(productionAccountService.listProductionDetails(productionAccountDto,page)); |
| | | } |
| | | } |