zss
2023-11-15 64065aae1700dc271ab4a852f586dfc9de284784
mes-plan/src/main/java/com/chinaztt/mes/plan/controller/CustomerOrderController.java
@@ -17,7 +17,7 @@
package com.chinaztt.mes.plan.controller;
import cn.hutool.core.util.BooleanUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaztt.mes.common.wrapper.QueryWrapperUtil;
@@ -50,6 +50,7 @@
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.List;
@@ -96,6 +97,7 @@
   @ApiOperation(value = "分页查询", notes = "分页查询")
   @GetMapping("/page/{type}")
   public R getCustomerOrderPage(Page page, CustomerOrderDTO planCustomerOrder, @PathVariable("type") String type) {
      log.info("条件=================》"+ JSONObject.toJSONString(planCustomerOrder));
      return R.ok(customerOrderService.getCustomerOrderPage(page, QueryWrapperUtil.gen(planCustomerOrder), type));
   }
@@ -113,15 +115,15 @@
   }
   /**
    * 对接志邦国际鹰联 erp
    * 通过id作废
    *
    * @param contractNo
    * @param id
    * @return
    */
   @ApiOperation(value = "通过合同编码作废", notes = "通过合同编码作废")
   @GetMapping("/dropByContractNo/{contractNo}")
   public R dropByContractNo(@PathVariable("contractNo") String contractNo) {
      customerOrderService.dropByContractNo(contractNo);
   @ApiOperation(value = "通过id作废", notes = "通过id作废")
   @GetMapping("/dropByContractNo")
   public R dropByContractNo(@RequestParam("id") Long id) {
      customerOrderService.removeById(id);
      return R.ok();
   }
@@ -305,13 +307,13 @@
   /**
    * 同步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);
   }
@@ -449,7 +451,7 @@
    * @return
    */
   @PostMapping("/upload")
   @ApiOperation(value = "上传工艺配置单", notes = "上传工艺配置单")
   @ApiOperation(value = "上传附件", notes = "上传附件")
   public R upload(@RequestParam("file") MultipartFile file,
               @RequestParam("orderNumber") String orderNumber,
               @RequestParam("lineNumber") String lineNumber) {
@@ -462,7 +464,7 @@
    * @return
    */
   @GetMapping("/processConfigFiles")
   @ApiOperation("获取工艺配置单上传记录")
   @ApiOperation("获取附件上传记录")
   @Inner(false)
   public R processConfigFiles(String orderNumber, String lineNumber) {
      try {
@@ -504,7 +506,7 @@
    * @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);