| | |
| | | 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.procurementrecord.dto.ProcurementPageDto; |
| | | import com.ruoyi.procurementrecord.dto.ProcurementRecordOutAdd; |
| | | import com.ruoyi.procurementrecord.dto.ProcurementRecordOutPageDto; |
| | | import com.ruoyi.procurementrecord.dto.ProcurementUpdateDto; |
| | | import com.ruoyi.procurementrecord.mapper.ProcurementRecordOutMapper; |
| | | import com.ruoyi.procurementrecord.service.ProcurementRecordOutService; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @date : 2025/7/8 13:30 |
| | | */ |
| | | @RestController |
| | | @Api(tags = "采购出库") |
| | | @Tag(name = "采购出库") |
| | | @RequestMapping("/stockmanagement") |
| | | @AllArgsConstructor |
| | | public class ProcurementRecordOutController extends BaseController { |
| | | |
| | | @Autowired |
| | | private ProcurementRecordOutService procurementRecordOutService; |
| | | private ProcurementRecordOutMapper procurementRecordOutMapper; |
| | | |
| | | @PostMapping("/stockout") |
| | | @Log(title = "采购出库-出库管理-出库", businessType = BusinessType.INSERT) |
| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @GetMapping("/listPageBySemiProduct") |
| | | @Log(title = "生产出库-出库台账-出库查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPageBySemiProduct(Page page, ProcurementRecordOutPageDto procurementDto) { |
| | | IPage<ProcurementRecordOutPageDto> result = procurementRecordOutService.listPageBySemiProduct(page, procurementDto); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @GetMapping("/listPageByCustom") |
| | | @Log(title = "自定义出库-出库台账-出库查询", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPageByCustom(Page page, ProcurementRecordOutPageDto procurementDto) { |
| | |
| | | |
| | | /** |
| | | * 采购出库导出 |
| | | * |
| | | * @param response |
| | | */ |
| | | @PostMapping("/export") |
| | |
| | | } |
| | | |
| | | |
| | | @Autowired |
| | | public ProcurementRecordOutMapper procurementRecordOutMapper; |
| | | /** |
| | | * 生产出库导出 |
| | | * |
| | | * @param response |
| | | */ |
| | | @PostMapping("/exportOne") |
| | |
| | | |
| | | /** |
| | | * 自定义出库导出 |
| | | * |
| | | * @param response |
| | | */ |
| | | @PostMapping("/exportTwo") |