Browse Source

优化代码

1098226878@qq.com 4 years ago
parent
commit
614e5b1108

+ 6 - 1
service-fee/src/main/java/com/java110/fee/cmd/tempCarFee/QueryTempCarFeeOrderCmd.java

@@ -80,9 +80,14 @@ public class QueryTempCarFeeOrderCmd extends AbstractServiceCmdListener {
         }
         fee.put("receivedAmount", receivedAmount);
         fee.put("oId", GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_oId));
+        JSONObject outParm = new JSONObject();
+        outParm.put("data",fee);
+        outParm.put("code","0");
+        outParm.put("msg","成功");
+        ResponseEntity<String> responseEntitys = new ResponseEntity<>(outParm.toJSONString(), HttpStatus.OK);
         fee.putAll(reqJson);
         CommonCache.setValue("getTempCarFeeOrder" + fee.getString("oId"), fee.toJSONString(), 24 * 60 * 60);
-        cmdDataFlowContext.setResponseEntity(responseEntity);
+        cmdDataFlowContext.setResponseEntity(responseEntitys);
     }
 
     private double checkCouponUser(JSONObject paramObj) {