|
|
@@ -3,7 +3,9 @@ package com.happy.action;
|
|
|
import com.google.gson.Gson;
|
|
|
import com.google.gson.reflect.TypeToken;
|
|
|
import com.happy.Model.BookingComment;
|
|
|
+import com.happy.Model.weixin.Users;
|
|
|
import com.happy.Until.*;
|
|
|
+import com.happy.dto.BookCommentDto;
|
|
|
import com.happy.dto.HotelEto;
|
|
|
import com.happy.dto.IPage;
|
|
|
import com.happy.dto.OrderRateDto;
|
|
|
@@ -454,13 +456,22 @@ public class AppBookingCommentAction extends ActionSupport implements ServletReq
|
|
|
*/
|
|
|
public JSONObject replyComment() {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
- if (Func.checkNull(content) || Func.checkNull(commentParentId)) {
|
|
|
+ if (Func.checkNull(content) || Func.checkNull(commentParentId)||Func.checkNull(commentId)) {
|
|
|
jsonObject.put("code", 400);
|
|
|
jsonObject.put("success", false);
|
|
|
jsonObject.put("message", "缺少数据---replyComment");
|
|
|
ResUtil.writeJson(ServletActionContext.getResponse(), jsonObject.toString());
|
|
|
return null;
|
|
|
}
|
|
|
+ String commentName=this.commentName;
|
|
|
+ BookingComment byId = bookingCommentService.getBycommentId(commentId);
|
|
|
+ if (byId!=null) {
|
|
|
+ Integer createId1 = byId.getCreateId();
|
|
|
+ Users users = userService.queryByUserId(createId1 + "");
|
|
|
+ if (users!=null) {
|
|
|
+ commentName=users.getUser_name();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
BookingComment bookingComment = BookingComment.builder().commentId(commentId).commentParentId(commentParentId).commentName(commentName).bookingId(bookingId)
|
|
|
.hotelId(hotelId).houseId(houseId).content(content).commentStatus(commentStatus)
|