|
|
@ -9,6 +9,7 @@ import com.hfkj.common.exception.ErrorHelp; |
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
import com.hfkj.common.security.SessionObject; |
|
|
|
import com.hfkj.common.security.SessionObject; |
|
|
|
import com.hfkj.common.security.UserCenter; |
|
|
|
import com.hfkj.common.security.UserCenter; |
|
|
|
|
|
|
|
import com.hfkj.common.utils.OrderUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.common.utils.ResponseMsgUtil; |
|
|
|
import com.hfkj.entity.BsOrderGoods; |
|
|
|
import com.hfkj.entity.BsOrderGoods; |
|
|
|
import com.hfkj.entity.GoodsLogistics; |
|
|
|
import com.hfkj.entity.GoodsLogistics; |
|
|
@ -129,7 +130,7 @@ public class BsOrderGoodsController { |
|
|
|
|
|
|
|
|
|
|
|
// 删除缓存
|
|
|
|
// 删除缓存
|
|
|
|
orderService.cacheDelete(goodsOrder.getOrderNo()); |
|
|
|
orderService.cacheDelete(goodsOrder.getOrderNo()); |
|
|
|
bsOrderGoodsService.cacheDelete(goodsOrder.getId()); |
|
|
|
bsOrderGoodsService.cacheDelete(goodsOrder.getLogisticsNo()); |
|
|
|
bsOrderGoodsService.update(goodsOrder); |
|
|
|
bsOrderGoodsService.update(goodsOrder); |
|
|
|
return ResponseMsgUtil.success("更新成功!"); |
|
|
|
return ResponseMsgUtil.success("更新成功!"); |
|
|
|
|
|
|
|
|
|
|
@ -145,7 +146,17 @@ public class BsOrderGoodsController { |
|
|
|
public ResponseData getLogisticsMsg(@RequestParam(value = "id" , required = false) Long id) { |
|
|
|
public ResponseData getLogisticsMsg(@RequestParam(value = "id" , required = false) Long id) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
GoodsLogistics logistics = (GoodsLogistics) bsOrderGoodsService.getLogisticsMsg(id); |
|
|
|
|
|
|
|
|
|
|
|
BsOrderGoods orderGoods = bsOrderGoodsService.queryDetail(id); |
|
|
|
|
|
|
|
if (orderGoods == null || orderGoods.getLogisticsNo() == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "暂未发货!"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GoodsLogistics logistics = (GoodsLogistics) bsOrderGoodsService.getLogisticsMsg(orderGoods.getLogisticsNo()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
orderGoods.setLogisticsStatus(logistics.getLogisticsStatus()); |
|
|
|
|
|
|
|
orderGoods.setLogisticsStatusDesc(logistics.getLogisticsStatusDesc()); |
|
|
|
|
|
|
|
bsOrderGoodsService.update(orderGoods); |
|
|
|
|
|
|
|
|
|
|
|
map.put("logistics", logistics); |
|
|
|
map.put("logistics", logistics); |
|
|
|
JSONArray object = JSONArray.parseArray(logistics.getLogisticsTraceDetails()); |
|
|
|
JSONArray object = JSONArray.parseArray(logistics.getLogisticsTraceDetails()); |
|
|
|