| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | 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; |
| | |
| | | |
| | | private final SysDictItemService sysDictItemService; |
| | | |
| | | private final StaffService staffService; |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * |
| | |
| | | @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)); |
| | | } |
| | | |
| | | /** |
| | | * 同步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()); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R validatePackageCodeSnCustomerOrder(@RequestBody PackagingDTO packagingDTO) { |
| | | return R.ok(customerOrderService.validatePackageCodeSnCustomerOrder(packagingDTO)); |
| | | } |
| | | |
| | | /** |
| | | * 同步otc订单数据 |
| | | * |
| | | * @param selectTime 选择日期,查询该日期后至当前时间的数据 |
| | | * @param orderNo 订单编号 |
| | | * @return |
| | | */ |
| | | @GetMapping("/otcCustomerOrderSync") |
| | | public R otcCustomerOrderSync(@RequestParam("selectTime") String selectTime, @RequestParam("orderNo") String orderNo) { |
| | | return customerOrderService.otcCustomerOrderSync(selectTime, orderNo); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 更新订单行说明 |