|
|
@@ -400,6 +400,7 @@ public class CmsOrderController {
|
|
|
if (orderComment.getCommentTime() == null) {
|
|
|
orderComment.setCommentTime(DateTime.now().toDateStr());
|
|
|
}
|
|
|
+ orderComment.setVerifyStatus(OrderComment.VerifyStatus.success);
|
|
|
orderCommentMapper.insert(orderComment);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult("新增成功");
|
|
|
}
|
|
|
@@ -409,10 +410,13 @@ public class CmsOrderController {
|
|
|
*/
|
|
|
@PutMapping("/put/orderComment")
|
|
|
public Result<String> updateOrderComment(@RequestBody @Validated OrderComment orderComment) {
|
|
|
- orderCommentMapper.updateById(orderComment);
|
|
|
if (orderComment.getCommentTime() == null) {
|
|
|
orderComment.setCommentTime(DateTime.now().toDateStr());
|
|
|
}
|
|
|
+ if (orderComment.getVerifyStatus() == null) {
|
|
|
+ orderComment.setVerifyStatus(OrderComment.VerifyStatus.success);
|
|
|
+ }
|
|
|
+ orderCommentMapper.updateById(orderComment);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult("编辑成功");
|
|
|
}
|
|
|
|