|
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.fjhx.constants.logistics.LogisticsConstant;
|
|
|
-import com.fjhx.entity.apply.ApplyPurchase;
|
|
|
import com.fjhx.entity.logistics.LogisticsInfo;
|
|
|
import com.fjhx.mapper.logistics.LogisticsInfoMapper;
|
|
|
import com.fjhx.params.logistics.LogisticsInfoVo;
|
|
@@ -59,12 +58,6 @@ public class LogisticsInfoServiceImpl extends ServiceImpl<LogisticsInfoMapper, L
|
|
|
throw new ServiceException("物流信息不能为空");
|
|
|
}
|
|
|
|
|
|
- //查询采购明细信息
|
|
|
- List<ApplyPurchase> purchases = applyPurchaseService.lambdaQuery().eq(ApplyPurchase::getPurchaseId, logisticsInfoVo.getBusinessId()).list();
|
|
|
- if (Func.isEmpty(purchases)) {
|
|
|
- throw new ServiceException("操作异常,暂无采购信息,请联系管理员!");
|
|
|
- }
|
|
|
-
|
|
|
//查询快递100的物流信息
|
|
|
JSONObject result = KD100Util.queryTrack(logisticsInfoVo.getLogisticsCompanyCode(), logisticsInfoVo.getCode());
|
|
|
Integer state = result.getInteger("state");
|
|
@@ -73,12 +66,8 @@ public class LogisticsInfoServiceImpl extends ServiceImpl<LogisticsInfoMapper, L
|
|
|
KD100Util.subscribe(logisticsInfoVo.getLogisticsCompanyCode(), logisticsInfoVo.getCode());
|
|
|
}
|
|
|
logisticsInfoVo.setLogisticsStatus(state);
|
|
|
-
|
|
|
logisticsInfoVo.setStatus(LogisticsConstant.Status.STATUS_0);
|
|
|
logisticsInfoVo.setInStockStatus(LogisticsConstant.InStockStatus.STATUS_10);
|
|
|
-
|
|
|
- //采购总数量
|
|
|
-
|
|
|
save(logisticsInfoVo);
|
|
|
|
|
|
logisticsInfoVo.getDetails().forEach(o -> {
|