代码更新

This commit is contained in:
2023-02-11 14:00:58 +08:00
parent 5ee83fa27d
commit 933e61dd3c

View File

@@ -456,6 +456,16 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
// 1.回传sap
JSONArray paramSapMstArr = new JSONArray();
String estimated_freight = jo_mst.getString("estimated_freight");
String trans_code = jo_mst.getString("trans_code");
if (ObjectUtil.isEmpty(estimated_freight)) {
throw new BadRequestException("运费不能为空");
}
if (ObjectUtil.isEmpty(trans_code)) {
throw new BadRequestException("物流公司不能为空");
}
JSONObject paramSapMst = new JSONObject();
paramSapMst.put("ZACTION", "P");
paramSapMst.put("BUDAT", jo_mst.getString("biz_date"));
@@ -921,6 +931,16 @@ public class InAndOutRetrunServiceImpl implements InAndOutReturnService {
// 1.回传sap
JSONArray paramSapMstArr = new JSONArray();
String estimated_freight = jo_mst.getString("estimated_freight");
String trans_code = jo_mst.getString("trans_code");
if (ObjectUtil.isEmpty(estimated_freight)) {
throw new BadRequestException("运费不能为空");
}
if (ObjectUtil.isEmpty(trans_code)) {
throw new BadRequestException("物流公司不能为空");
}
JSONObject paramSapMst = new JSONObject();
paramSapMst.put("ZACTION", "P");
paramSapMst.put("BUDAT", jo_mst.getString("biz_date"));