zoujiajian 3 anos atrás
pai
commit
6f179af2dc

+ 5 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/CmsOrderController.java

@@ -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("编辑成功");
 	}