| | |
| | | |
| | | package com.chinaztt.mes.plan.controller; |
| | | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | @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)); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 对接志邦国际鹰联 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(); |
| | | } |
| | | |