| | |
| | | JSONArray params = paramsFormat(objParams); |
| | | List<Customer> customerList = JSON.parseArray(params.toJSONString(), Customer.class); |
| | | // 数据处理,转发server |
| | | return CommonResponse.ok(); |
| | | String resultMsg = erpReportService.syncCustomer(customerList); |
| | | if ("200".equals(resultMsg)){ |
| | | return CommonResponse.ok(resultMsg); |
| | | } |
| | | return CommonResponse.error(resultMsg); |
| | | } |
| | | |
| | | @ApiOperation("供应商信息同步") |
| | |
| | | JSONArray params = paramsFormat(objParams); |
| | | List<Supplier> supplierList = JSON.parseArray(params.toJSONString(), Supplier.class); |
| | | // 数据处理,转发server |
| | | String resultMsg = erpReportService.syncSupplier(supplierList); |
| | | if ("200".equals(resultMsg)){ |
| | | return CommonResponse.ok(resultMsg); |
| | | } |
| | | return CommonResponse.ok(); |
| | | } |
| | | |
| | |
| | | String i = erpReportService.addOrderToServer(order); |
| | | if (i.equals("200")){ |
| | | errorMsg.append(order.getOrderNo()+"下发成功;"); |
| | | if (orderList.size()==1){ |
| | | return CommonResponse.ok(errorMsg.toString()); |
| | | } |
| | | } else { |
| | | errorMsg.append(order.getOrderNo()+"下发失败,原因:"+i+";"); |
| | | if (orderList.size()==1){ |