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)
@PostMapping(value = "/realSubmitOrderByOms")
public AjaxResult realSubmitOrderByOms(@Valid @RequestBody WaybillOrder waybillOrder,Integer isModify)
@PostMapping(value = "/realSubmitOrder")
public AjaxResult realSubmitOrder(@Valid @RequestBody WaybillOrder waybillOrder,Integer isModify)
{
try {
//
// if(StringUtils.isEmpty(waybillOrder.getBillCode()) ){
// waybillOrder.setBillCode(emisElectronicSitePagService.realMatchWaybill(waybillOrder.getSendSiteCode(),"T7080"));
// }
EmisWaybill emisWaybillSave = waybillOrder.toDb();
emisWaybillService.realSubmitOrder(emisWaybillSave);
JSONObject jObjOut = new JSONObject();
jObjOut.put("billCode", waybillOrder.getBillCode());
// jObjOut.put("prodName", waybillOrder.getProductType());
return AjaxResult.success("下单成功", jObjOut);
}catch(EmisBizError ex){
ex.printStackTrace();