| | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.chinaztt.mes.basic.service.StaffService; |
| | | import com.chinaztt.mes.common.wrapper.QueryWrapperUtil; |
| | | import com.chinaztt.mes.plan.dto.*; |
| | | import com.chinaztt.mes.plan.entity.CustomerOrder; |
| | | import com.chinaztt.mes.plan.entity.MoTestStandardParam; |
| | | import com.chinaztt.mes.plan.service.*; |
| | | import com.chinaztt.mes.plan.vo.CustomerOrderVO1; |
| | | import com.chinaztt.mes.quality.dto.CustomOrderSyncDTO; |
| | | import com.chinaztt.mes.quality.entity.TestStandardParam; |
| | | import com.chinaztt.mes.quality.service.TestStandardParamService; |
| | |
| | | |
| | | private final SysDictItemService sysDictItemService; |
| | | |
| | | private final StaffService staffService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | |
| | | @GetMapping("/page/{type}") |
| | | public R getCustomerOrderPage(Page page, CustomerOrderDTO planCustomerOrder, @PathVariable("type") String type) { |
| | | return R.ok(customerOrderService.getCustomerOrderPage(page, QueryWrapperUtil.gen(planCustomerOrder), type)); |
| | | } |
| | | |
| | | /** |
| | | * 同步otc订单数据 |
| | | * |
| | | * @param selectTime 选择日期,查询该日期后至当前时间的数据 |
| | | * @param orderNo 订单编号 |
| | | * @return |
| | | */ |
| | | @GetMapping("/otcCustomerOrderSync") |
| | | public R otcCustomerOrderSync(@RequestParam("selectTime") String selectTime, @RequestParam("orderNo") String orderNo) { |
| | | return customerOrderService.otcCustomerOrderSync(selectTime, orderNo); |
| | | } |
| | | |
| | | /** |
| | | *选择绑定人员 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "选择绑定人员", notes = "选择绑定人员") |
| | | @GetMapping("/chooseStaff") |
| | | public R chooseStaff() { |
| | | return R.ok(staffService.chooseStaff()); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 对接志邦国际鹰联 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(); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiOperation(value = "修改客户订单表", notes = "修改客户订单表") |
| | | @SysLog("修改客户订单表") |
| | | @PutMapping |
| | | public R updateById(@RequestBody CustomerOrderDTO customerOrderDTO) { |
| | | @PutMapping("/updateById") |
| | | public R updateById(@RequestBody CustomerOrderVO1 customerOrderDTO) { |
| | | return customerOrderService.fullUpdate(customerOrderDTO); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 同步otc订单数据 |
| | | * |
| | | * @param selectTime 选择日期,查询该日期后至当前时间的数据 |
| | | * @param orderNo 订单编号 |
| | | * @return |
| | | */ |
| | | @GetMapping("/otcCustomerOrderSync") |
| | | public R otcCustomerOrderSync(@RequestParam("selectTime") String selectTime, @RequestParam("orderNo") String orderNo) { |
| | | return customerOrderService.otcCustomerOrderSync(selectTime, orderNo); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 更新订单行说明 |
| | | * |
| | | * @param customerOrder |
| | |
| | | * @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); |
| | |
| | | */ |
| | | @DeleteMapping("/processConfigFile/{id}") |
| | | public R processConfigFile(@PathVariable Long id) { |
| | | System.out.println("执行删除------>"+id); |
| | | return customerOrderService.deleteProcessConfigFile(id); |
| | | } |
| | | |