| | |
| | | |
| | | package com.chinaztt.mes.plan.controller; |
| | | |
| | | import cn.hutool.core.util.BooleanUtil; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.chinaztt.mes.common.wrapper.QueryWrapperUtil; |
| | |
| | | /** |
| | | * 同步otc订单数据 |
| | | * |
| | | * @param selectTime |
| | | * @param pathCode 0:原路径;1:订单所属公司为ZTKJ的订单 |
| | | * @param selectTime 选择日期,查询该日期后至当前时间的数据 |
| | | * @param orderNo 订单编号 |
| | | * @return |
| | | */ |
| | | @GetMapping("/otcCustomerOrderSync") |
| | | public R otcCustomerOrderSync(@RequestParam("selectTime") String selectTime, @RequestParam("pathCode") String pathCode) { |
| | | return customerOrderService.otcCustomerOrderSync(selectTime, pathCode); |
| | | public R otcCustomerOrderSync(@RequestParam("selectTime") String selectTime, @RequestParam("orderNo") String orderNo) { |
| | | return customerOrderService.otcCustomerOrderSync(selectTime, orderNo); |
| | | } |
| | | |
| | | |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/upload") |
| | | @ApiOperation(value = "上传工艺配置单", notes = "上传工艺配置单") |
| | | @ApiOperation(value = "上传附件", notes = "上传附件") |
| | | public R upload(@RequestParam("file") MultipartFile file, |
| | | @RequestParam("orderNumber") String orderNumber, |
| | | @RequestParam("lineNumber") String lineNumber) { |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/processConfigFiles") |
| | | @ApiOperation("获取工艺配置单上传记录") |
| | | @ApiOperation("获取附件上传记录") |
| | | @Inner(false) |
| | | public R processConfigFiles(String orderNumber, String lineNumber) { |
| | | try { |
| | |
| | | * @param fileName |
| | | * @param response |
| | | */ |
| | | @GetMapping("/processConfig/{bucket}/{fileName}") |
| | | @PostMapping("/processConfig/{bucket}/{fileName}") |
| | | @Inner(false) |
| | | public void file(@PathVariable String bucket, @PathVariable String fileName, HttpServletResponse response) { |
| | | customerOrderService.getFile(bucket, fileName, response); |