package com.ruoyi.production.controller;
|
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
import com.ruoyi.production.service.IProductionSettlementBatchesService;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.multipart.MultipartFile;
|
|
import java.time.LocalDate;
|
|
/**
|
* <p>
|
* 生产成本核算批次主表 前端控制器
|
* </p>
|
*
|
* @author deslrey
|
* @since 2026-03-30
|
*/
|
@RestController
|
@RequestMapping("/productionSettlementBatches")
|
@ApiModel(value = "ProductionSettlementBatchesController类", description = "生产成本核算批次主表 前端控制器")
|
public class ProductionSettlementBatchesController {
|
|
@Autowired
|
private IProductionSettlementBatchesService productionSettlementBatchesService;
|
|
@PostMapping("/import")
|
@ApiOperation("导入生产成本核算表")
|
public AjaxResult importProductionSettlement(@RequestParam("file") MultipartFile file, @RequestParam(required = false) LocalDate periodTime, @RequestParam(required = false) String batchName) {
|
productionSettlementBatchesService.importProductionSettlement(file, periodTime, batchName);
|
return AjaxResult.success();
|
}
|
|
}
|