| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.excel.EasyExcel; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | |
| | | @Slf4j |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 文件上传,关闭单据 |
| | | */ |
| | | @PostMapping("/order/close") |
| | | @ResponseBody |
| | | @ManagerAuth |
| | | public R upload(MultipartFile file) throws IOException { |
| | | EasyExcel.read(file.getInputStream(), ExcelOrder.class, new CloseOrderReadListener(orderService)).sheet().doRead(); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |