|
@@ -851,6 +851,14 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
TWarehouseBills warehouseBills = JSONArray.parseObject(tWarehousebills, TWarehouseBills.class);
|
|
TWarehouseBills warehouseBills = JSONArray.parseObject(tWarehousebills, TWarehouseBills.class);
|
|
JSONArray jsonCrArray = JSONArray.parseArray(tWarehousebillsCntr);
|
|
JSONArray jsonCrArray = JSONArray.parseArray(tWarehousebillsCntr);
|
|
List<TWarehousebillsCntr> tWarehousebillsCntrs = JSONObject.parseArray(jsonCrArray.toJSONString(), TWarehousebillsCntr.class);
|
|
List<TWarehousebillsCntr> tWarehousebillsCntrs = JSONObject.parseArray(jsonCrArray.toJSONString(), TWarehousebillsCntr.class);
|
|
|
|
+ if (warehouseBills.getfVslid() == null){
|
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
+ return AjaxResult.error("船名不能为空");
|
|
|
|
+ }
|
|
|
|
+ if (warehouseBills.getfVoyid() == null){
|
|
|
|
+ TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
|
|
|
+ return AjaxResult.error("航次不能为空");
|
|
|
|
+ }
|
|
//获取客户单位
|
|
//获取客户单位
|
|
Long clientFid = tCorpsMapper.getClientFid(loginUser.getUser().getPhonenumber());
|
|
Long clientFid = tCorpsMapper.getClientFid(loginUser.getUser().getPhonenumber());
|
|
if (warehouseBills.getfId() == null) {
|
|
if (warehouseBills.getfId() == null) {
|