This commit is contained in:
linfso 2024-07-13 20:41:05 +08:00
parent 9a31d429be
commit 41e69c006f

View File

@ -114,24 +114,14 @@ public class Oms2cWaybillController extends BaseController
} }
@Log(title = "客户运单实时下单", businessType = BusinessType.INSERT) @Log(title = "客户运单实时下单", businessType = BusinessType.INSERT)
@PostMapping(value = "/realSubmitOrderByOms") @PostMapping(value = "/realSubmitOrder")
public AjaxResult realSubmitOrderByOms(@Valid @RequestBody WaybillOrder waybillOrder,Integer isModify) public AjaxResult realSubmitOrder(@Valid @RequestBody WaybillOrder waybillOrder,Integer isModify)
{ {
try { try {
//
// if(StringUtils.isEmpty(waybillOrder.getBillCode()) ){
// waybillOrder.setBillCode(emisElectronicSitePagService.realMatchWaybill(waybillOrder.getSendSiteCode(),"T7080"));
// }
EmisWaybill emisWaybillSave = waybillOrder.toDb(); EmisWaybill emisWaybillSave = waybillOrder.toDb();
emisWaybillService.realSubmitOrder(emisWaybillSave); emisWaybillService.realSubmitOrder(emisWaybillSave);
JSONObject jObjOut = new JSONObject(); JSONObject jObjOut = new JSONObject();
jObjOut.put("billCode", waybillOrder.getBillCode()); jObjOut.put("billCode", waybillOrder.getBillCode());
// jObjOut.put("prodName", waybillOrder.getProductType());
return AjaxResult.success("下单成功", jObjOut); return AjaxResult.success("下单成功", jObjOut);
}catch(EmisBizError ex){ }catch(EmisBizError ex){
ex.printStackTrace(); ex.printStackTrace();