|
|
|
@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.logpm.basic.entity.BasicMaterialEntity; |
|
|
|
|
import com.logpm.basic.feign.IBasicMaterialClient; |
|
|
|
@ -27,6 +28,7 @@ import com.logpm.warehouse.entity.WarehouseWaybillEntity;
|
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseWaybillClient; |
|
|
|
|
import com.logpm.warehouse.feign.IWarehouseWaybillDetailClient; |
|
|
|
|
import com.logpm.warehouse.vo.WarehouseWaybillVO; |
|
|
|
|
import io.seata.spring.annotation.GlobalTransactional; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.constant.CodeNumConstant; |
|
|
|
@ -34,6 +36,7 @@ import org.springblade.common.constant.DictBizConstant;
|
|
|
|
|
import org.springblade.common.constant.order.*; |
|
|
|
|
import org.springblade.common.exception.CustomerException; |
|
|
|
|
import org.springblade.common.utils.CommonUtil; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
@ -270,7 +273,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
return R.success("验证成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
|
@Transactional(rollbackFor = ServiceException.class) |
|
|
|
|
@Override |
|
|
|
|
public R openWaybill(OpenOrderDTO openOrderDTO) { |
|
|
|
|
log.info("############openWaybill: 开单开始 openOrderDTO={}",openOrderDTO); |
|
|
|
@ -379,6 +382,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
waybillEntity.setDocumentMakingTime(CommonUtil.StringToDate(openOrderDTO.getOpenOrderDate())); |
|
|
|
|
|
|
|
|
|
Long waybillId = warehouseWaybillClient.addEnntity(waybillEntity); |
|
|
|
|
|
|
|
|
|
if(!Objects.isNull(waybillId)){ |
|
|
|
|
log.info("#################openWaybill: 运单保存成功"); |
|
|
|
|
//保存运单货物明细
|
|
|
|
|