提交 8ed34da2 authored 作者: 吴德鹏's avatar 吴德鹏

评论

上级 7a13fd8c
......@@ -81,7 +81,7 @@ public class FlutterWaveController extends Controller {
public ResponseEntity<String> payForOrderByCard(@RequestParam("orderId") String orderId, @RequestBody FlutterWaveCard flutterWaveCard) {
RaveConstant.PUBLIC_KEY = PUBLIC_KEY;
RaveConstant.SECRET_KEY = SECRET_KEY;
RaveConstant.ENVIRONMENT = Environment.STAGING; //or live
RaveConstant.ENVIRONMENT = Environment.LIVE; //or live
// Result result = new Result();
Optional<TbCfOrder> byId = repository.findById(orderId);
......@@ -135,7 +135,7 @@ public class FlutterWaveController extends Controller {
public ResponseEntity<String> payForOrderByPhone(@RequestParam("orderId") String orderId, @RequestBody FlutterWaveCard flutterWaveCard) {
RaveConstant.PUBLIC_KEY = PUBLIC_KEY;
RaveConstant.SECRET_KEY = SECRET_KEY;
RaveConstant.ENVIRONMENT = Environment.STAGING; //or live
RaveConstant.ENVIRONMENT = Environment.LIVE; //or live
// Result result = new Result();
Optional<TbCfOrder> byId = repository.findById(orderId);
......
......@@ -560,7 +560,7 @@ public class OrderController extends Controller {
@PostMapping("/add/comment")
public Result addComment(TbCfItemComment comment) throws Exception {
public Result addComment(@RequestBody TbCfItemComment comment) throws Exception {
logger.info("上传files:", comment);
......
......@@ -80,7 +80,8 @@ public class TbCfItemComment {
/**
* 点赞人数
*/
// private Long likeNum;
@Transient
private Long likeNum;
/**
* 删除标志 0:正常 1:已删除
*/
......@@ -114,7 +115,7 @@ public class TbCfItemComment {
@Transient
private MultipartFile[] files;
// @Formula(value = "(SELECT IFNULL(COUNT(*),0) FROM tb_cf_item_like lk where lk.comment_id = id)")
@Formula(value = "(SELECT IFNULL(COUNT(*),0) FROM tb_cf_item_like lk where lk.comment_id = id)")
@Transient
private int likeCount;
@Transient
......@@ -142,7 +143,7 @@ public class TbCfItemComment {
}
public double getScore() {
score = (double) (itemScore + serviceScore + logisticsScore + priceScore) / 4;
score = (double) (getItemScore() + getServiceScore() + getLogisticsScore() + getPriceScore()) / 4;
return Double.parseDouble(String.format("%.1f", score));
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论