Commit c6b30649 by zhouhaibao

refactor(store): 优化门店上架审批单草稿创建的日志记录

- 移除原有的成功状态判断条件
- 添加JSON格式的结果日志输出
- 引入FastJSON用于对象序列化
- 简化代码逻辑结构
1 parent 7df02a6f
...@@ -26,6 +26,7 @@ import cn.com.glsx.framework.rop.response.RopResponse; ...@@ -26,6 +26,7 @@ import cn.com.glsx.framework.rop.response.RopResponse;
import cn.com.glsx.merchants.model.request.MerchantListOpenRequest; import cn.com.glsx.merchants.model.request.MerchantListOpenRequest;
import cn.com.glsx.merchants.model.response.MerchantResponse; import cn.com.glsx.merchants.model.response.MerchantResponse;
import cn.com.glsx.merchants.remote.MerchantRemote; import cn.com.glsx.merchants.remote.MerchantRemote;
import com.alibaba.fastjson.JSONObject;
import com.rop.annotation.NeedInSessionType; import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod; import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean; import com.rop.annotation.ServiceMethodBean;
...@@ -94,10 +95,7 @@ public class StoreApproveController { ...@@ -94,10 +95,7 @@ public class StoreApproveController {
RpcResponse<ExcelImportResult> draft = storeApproveService.createDraft(request); RpcResponse<ExcelImportResult> draft = storeApproveService.createDraft(request);
if (draft.isSuccess()) { if (draft.isSuccess()) {
ExcelImportResult result = draft.getResult(); ExcelImportResult result = draft.getResult();
if (result.getSuccess()) { log.info("创建门店上架审批单(草稿),结果:{}", JSONObject.toJSONString(result));
List<StoreTrafficPartyDetailDTO> trafficPartyDetails = result.getTrafficPartyDetails();
setParentName(trafficPartyDetails);
}
return RopResponse.success(draft.getResult()); return RopResponse.success(draft.getResult());
} }
return RopResponse.error(draft.getError(), draft.getMessage()); return RopResponse.error(draft.getError(), draft.getMessage());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!