|
@@ -278,7 +278,7 @@ public class BookingCommentDaoImpl implements BookingCommentDao {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public int insterCommpent(BookingComment bookingComment) {
|
|
public int insterCommpent(BookingComment bookingComment) {
|
|
|
- String sql = "INSERT INTO booking_comment (id, comment_id, comment_parent_id, comment_name, content,create_date,modify_date, status,comment_status) VALUES (:id, :comment_id, :comment_parent_id, :comment_name, :content, :create_date, :modify_date, :status,:comment_status)";
|
|
|
|
|
|
|
+ String sql = "INSERT INTO booking_comment (id, comment_id, comment_parent_id, comment_name, content,create_date,modify_date, status,comment_status,create_id,create_username) VALUES (:id, :comment_id, :comment_parent_id, :comment_name, :content, :create_date, :modify_date, :status,:comment_status,:create_id,:create_username)";
|
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
MapSqlParameterSource sps = new MapSqlParameterSource();
|
|
|
sps.addValue("comment_id",bookingComment.getCommentId());
|
|
sps.addValue("comment_id",bookingComment.getCommentId());
|
|
|
sps.addValue("comment_parent_id",bookingComment.getCommentParentId());
|
|
sps.addValue("comment_parent_id",bookingComment.getCommentParentId());
|
|
@@ -288,6 +288,8 @@ public class BookingCommentDaoImpl implements BookingCommentDao {
|
|
|
sps.addValue("modify_date",UUIDUtil.getNewDate());
|
|
sps.addValue("modify_date",UUIDUtil.getNewDate());
|
|
|
sps.addValue("status",1);
|
|
sps.addValue("status",1);
|
|
|
sps.addValue("comment_status",1);
|
|
sps.addValue("comment_status",1);
|
|
|
|
|
+ sps.addValue("create_id",bookingComment.getCreateId());
|
|
|
|
|
+ sps.addValue("create_username",bookingComment.getCreateUsername());
|
|
|
if(bookingComment.getId()==null){
|
|
if(bookingComment.getId()==null){
|
|
|
sps.addValue("id", String.valueOf(UUID.randomUUID()));
|
|
sps.addValue("id", String.valueOf(UUID.randomUUID()));
|
|
|
}else{
|
|
}else{
|