菠萝派修改订单备注,添加输出异常日志信息
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
... | @@ -36,12 +36,12 @@ public class UpdateSellerMemoBizServiceImpl extends AbstractBizService<UpdateS | ... | @@ -36,12 +36,12 @@ public class UpdateSellerMemoBizServiceImpl extends AbstractBizService<UpdateS |
36 | params.put("sellerId",callRequest.getSupplier().getId()); | 36 | params.put("sellerId",callRequest.getSupplier().getId()); |
37 | Orders orders = pineappleDao.getOrdersByMap(params); | 37 | Orders orders = pineappleDao.getOrdersByMap(params); |
38 | if(StringUtil.isNull(orders)){ | 38 | if(StringUtil.isNull(orders)){ |
39 | log.error("获取订单数据业务异常"); | 39 | log.error(String.format("修改订单备注,获取订单数据业务异常,订单号:[%s]",callRequest.getBizModel().getPlatOrderNo())); |
40 | throw new BizException("获取订单数据业务异常"); | 40 | throw new BizException(String.format("修改订单备注,获取订单数据业务异常,订单号:[%s]",callRequest.getBizModel().getPlatOrderNo())); |
41 | } | 41 | } |
42 | if(pineappleDao.updateOdersRemark(params) != 1){ | 42 | if(pineappleDao.updateOdersRemark(params) != 1){ |
43 | log.error("获取订单数据业务异常"); | 43 | log.error(String.format("修改订单备注,修改失败,订单号:[%s]",callRequest.getBizModel().getPlatOrderNo())); |
44 | throw new BizException("获取订单数据业务异常"); | 44 | throw new BizException(String.format("修改订单备注,修改失败,订单号:[%s]",callRequest.getBizModel().getPlatOrderNo())); |
45 | } | 45 | } |
46 | UpdateSellerMemoResponse.setCode(PineappleEnum.SUCCESS.getCode()); | 46 | UpdateSellerMemoResponse.setCode(PineappleEnum.SUCCESS.getCode()); |
47 | UpdateSellerMemoResponse.setMessage(PineappleEnum.SUCCESS.getMsg()); | 47 | UpdateSellerMemoResponse.setMessage(PineappleEnum.SUCCESS.getMsg()); | ... | ... |
-
请 注册 或 登录 后发表评论