提交代码

dev-discount
胡锐 3 years ago
parent 15e4671e70
commit 0874be55bc
  1. 142
      hai-service/src/main/java/com/hai/dao/HighReserveMsgMapper.java
  2. 7
      hai-service/src/main/java/com/hai/dao/HighReserveMsgMapperExt.java
  3. 388
      hai-service/src/main/java/com/hai/dao/HighReserveMsgSqlProvider.java
  4. 306
      hai-service/src/main/java/com/hai/entity/HighReserveMsg.java
  5. 1284
      hai-service/src/main/java/com/hai/entity/HighReserveMsgExample.java

@ -0,0 +1,142 @@
package com.hai.dao;
import com.hai.entity.HighReserveMsg;
import com.hai.entity.HighReserveMsgExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;
/**
*
* 代码由工具生成,请勿修改!!!
* 如果需要扩展请在其父类进行扩展
*
**/
@Repository
public interface HighReserveMsgMapper extends HighReserveMsgMapperExt {
@SelectProvider(type=HighReserveMsgSqlProvider.class, method="countByExample")
long countByExample(HighReserveMsgExample example);
@DeleteProvider(type=HighReserveMsgSqlProvider.class, method="deleteByExample")
int deleteByExample(HighReserveMsgExample example);
@Delete({
"delete from high_reserve_msg",
"where id = #{id,jdbcType=INTEGER}"
})
int deleteByPrimaryKey(Integer id);
@Insert({
"insert into high_reserve_msg (goods_name, order_id, ",
"pay_price, reserve_remark, ",
"reserve_time, user_name, ",
"user_phone, created_user_id, ",
"created_time, updated_user_id, ",
"updated_time, `status`, ",
"ext_1, ext_2, ext_3)",
"values (#{goodsName,jdbcType=VARCHAR}, #{orderId,jdbcType=VARCHAR}, ",
"#{payPrice,jdbcType=DECIMAL}, #{reserveRemark,jdbcType=VARCHAR}, ",
"#{reserveTime,jdbcType=TIMESTAMP}, #{userName,jdbcType=VARCHAR}, ",
"#{userPhone,jdbcType=VARCHAR}, #{createdUserId,jdbcType=VARCHAR}, ",
"#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=VARCHAR}, ",
"#{updatedTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})"
})
@Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighReserveMsg record);
@InsertProvider(type=HighReserveMsgSqlProvider.class, method="insertSelective")
@Options(useGeneratedKeys=true,keyProperty="id")
int insertSelective(HighReserveMsg record);
@SelectProvider(type=HighReserveMsgSqlProvider.class, method="selectByExample")
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="reserve_remark", property="reserveRemark", jdbcType=JdbcType.VARCHAR),
@Result(column="reserve_time", property="reserveTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.VARCHAR),
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.VARCHAR),
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
})
List<HighReserveMsg> selectByExample(HighReserveMsgExample example);
@Select({
"select",
"id, goods_name, order_id, pay_price, reserve_remark, reserve_time, user_name, ",
"user_phone, created_user_id, created_time, updated_user_id, updated_time, `status`, ",
"ext_1, ext_2, ext_3",
"from high_reserve_msg",
"where id = #{id,jdbcType=INTEGER}"
})
@Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR),
@Result(column="order_id", property="orderId", jdbcType=JdbcType.VARCHAR),
@Result(column="pay_price", property="payPrice", jdbcType=JdbcType.DECIMAL),
@Result(column="reserve_remark", property="reserveRemark", jdbcType=JdbcType.VARCHAR),
@Result(column="reserve_time", property="reserveTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR),
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR),
@Result(column="created_user_id", property="createdUserId", jdbcType=JdbcType.VARCHAR),
@Result(column="created_time", property="createdTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="updated_user_id", property="updatedUserId", jdbcType=JdbcType.VARCHAR),
@Result(column="updated_time", property="updatedTime", jdbcType=JdbcType.TIMESTAMP),
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER),
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR),
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR)
})
HighReserveMsg selectByPrimaryKey(Integer id);
@UpdateProvider(type=HighReserveMsgSqlProvider.class, method="updateByExampleSelective")
int updateByExampleSelective(@Param("record") HighReserveMsg record, @Param("example") HighReserveMsgExample example);
@UpdateProvider(type=HighReserveMsgSqlProvider.class, method="updateByExample")
int updateByExample(@Param("record") HighReserveMsg record, @Param("example") HighReserveMsgExample example);
@UpdateProvider(type=HighReserveMsgSqlProvider.class, method="updateByPrimaryKeySelective")
int updateByPrimaryKeySelective(HighReserveMsg record);
@Update({
"update high_reserve_msg",
"set goods_name = #{goodsName,jdbcType=VARCHAR},",
"order_id = #{orderId,jdbcType=VARCHAR},",
"pay_price = #{payPrice,jdbcType=DECIMAL},",
"reserve_remark = #{reserveRemark,jdbcType=VARCHAR},",
"reserve_time = #{reserveTime,jdbcType=TIMESTAMP},",
"user_name = #{userName,jdbcType=VARCHAR},",
"user_phone = #{userPhone,jdbcType=VARCHAR},",
"created_user_id = #{createdUserId,jdbcType=VARCHAR},",
"created_time = #{createdTime,jdbcType=TIMESTAMP},",
"updated_user_id = #{updatedUserId,jdbcType=VARCHAR},",
"updated_time = #{updatedTime,jdbcType=TIMESTAMP},",
"`status` = #{status,jdbcType=INTEGER},",
"ext_1 = #{ext1,jdbcType=VARCHAR},",
"ext_2 = #{ext2,jdbcType=VARCHAR},",
"ext_3 = #{ext3,jdbcType=VARCHAR}",
"where id = #{id,jdbcType=INTEGER}"
})
int updateByPrimaryKey(HighReserveMsg record);
}

@ -0,0 +1,7 @@
package com.hai.dao;
/**
* mapper扩展类
*/
public interface HighReserveMsgMapperExt {
}

@ -0,0 +1,388 @@
package com.hai.dao;
import com.hai.entity.HighReserveMsg;
import com.hai.entity.HighReserveMsgExample.Criteria;
import com.hai.entity.HighReserveMsgExample.Criterion;
import com.hai.entity.HighReserveMsgExample;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.jdbc.SQL;
public class HighReserveMsgSqlProvider {
public String countByExample(HighReserveMsgExample example) {
SQL sql = new SQL();
sql.SELECT("count(*)").FROM("high_reserve_msg");
applyWhere(sql, example, false);
return sql.toString();
}
public String deleteByExample(HighReserveMsgExample example) {
SQL sql = new SQL();
sql.DELETE_FROM("high_reserve_msg");
applyWhere(sql, example, false);
return sql.toString();
}
public String insertSelective(HighReserveMsg record) {
SQL sql = new SQL();
sql.INSERT_INTO("high_reserve_msg");
if (record.getGoodsName() != null) {
sql.VALUES("goods_name", "#{goodsName,jdbcType=VARCHAR}");
}
if (record.getOrderId() != null) {
sql.VALUES("order_id", "#{orderId,jdbcType=VARCHAR}");
}
if (record.getPayPrice() != null) {
sql.VALUES("pay_price", "#{payPrice,jdbcType=DECIMAL}");
}
if (record.getReserveRemark() != null) {
sql.VALUES("reserve_remark", "#{reserveRemark,jdbcType=VARCHAR}");
}
if (record.getReserveTime() != null) {
sql.VALUES("reserve_time", "#{reserveTime,jdbcType=TIMESTAMP}");
}
if (record.getUserName() != null) {
sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}");
}
if (record.getUserPhone() != null) {
sql.VALUES("user_phone", "#{userPhone,jdbcType=VARCHAR}");
}
if (record.getCreatedUserId() != null) {
sql.VALUES("created_user_id", "#{createdUserId,jdbcType=VARCHAR}");
}
if (record.getCreatedTime() != null) {
sql.VALUES("created_time", "#{createdTime,jdbcType=TIMESTAMP}");
}
if (record.getUpdatedUserId() != null) {
sql.VALUES("updated_user_id", "#{updatedUserId,jdbcType=VARCHAR}");
}
if (record.getUpdatedTime() != null) {
sql.VALUES("updated_time", "#{updatedTime,jdbcType=TIMESTAMP}");
}
if (record.getStatus() != null) {
sql.VALUES("`status`", "#{status,jdbcType=INTEGER}");
}
if (record.getExt1() != null) {
sql.VALUES("ext_1", "#{ext1,jdbcType=VARCHAR}");
}
if (record.getExt2() != null) {
sql.VALUES("ext_2", "#{ext2,jdbcType=VARCHAR}");
}
if (record.getExt3() != null) {
sql.VALUES("ext_3", "#{ext3,jdbcType=VARCHAR}");
}
return sql.toString();
}
public String selectByExample(HighReserveMsgExample example) {
SQL sql = new SQL();
if (example != null && example.isDistinct()) {
sql.SELECT_DISTINCT("id");
} else {
sql.SELECT("id");
}
sql.SELECT("goods_name");
sql.SELECT("order_id");
sql.SELECT("pay_price");
sql.SELECT("reserve_remark");
sql.SELECT("reserve_time");
sql.SELECT("user_name");
sql.SELECT("user_phone");
sql.SELECT("created_user_id");
sql.SELECT("created_time");
sql.SELECT("updated_user_id");
sql.SELECT("updated_time");
sql.SELECT("`status`");
sql.SELECT("ext_1");
sql.SELECT("ext_2");
sql.SELECT("ext_3");
sql.FROM("high_reserve_msg");
applyWhere(sql, example, false);
if (example != null && example.getOrderByClause() != null) {
sql.ORDER_BY(example.getOrderByClause());
}
return sql.toString();
}
public String updateByExampleSelective(Map<String, Object> parameter) {
HighReserveMsg record = (HighReserveMsg) parameter.get("record");
HighReserveMsgExample example = (HighReserveMsgExample) parameter.get("example");
SQL sql = new SQL();
sql.UPDATE("high_reserve_msg");
if (record.getId() != null) {
sql.SET("id = #{record.id,jdbcType=INTEGER}");
}
if (record.getGoodsName() != null) {
sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}");
}
if (record.getOrderId() != null) {
sql.SET("order_id = #{record.orderId,jdbcType=VARCHAR}");
}
if (record.getPayPrice() != null) {
sql.SET("pay_price = #{record.payPrice,jdbcType=DECIMAL}");
}
if (record.getReserveRemark() != null) {
sql.SET("reserve_remark = #{record.reserveRemark,jdbcType=VARCHAR}");
}
if (record.getReserveTime() != null) {
sql.SET("reserve_time = #{record.reserveTime,jdbcType=TIMESTAMP}");
}
if (record.getUserName() != null) {
sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}");
}
if (record.getUserPhone() != null) {
sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}");
}
if (record.getCreatedUserId() != null) {
sql.SET("created_user_id = #{record.createdUserId,jdbcType=VARCHAR}");
}
if (record.getCreatedTime() != null) {
sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}");
}
if (record.getUpdatedUserId() != null) {
sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=VARCHAR}");
}
if (record.getUpdatedTime() != null) {
sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
}
if (record.getExt1() != null) {
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
}
if (record.getExt2() != null) {
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}");
}
if (record.getExt3() != null) {
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}");
}
applyWhere(sql, example, true);
return sql.toString();
}
public String updateByExample(Map<String, Object> parameter) {
SQL sql = new SQL();
sql.UPDATE("high_reserve_msg");
sql.SET("id = #{record.id,jdbcType=INTEGER}");
sql.SET("goods_name = #{record.goodsName,jdbcType=VARCHAR}");
sql.SET("order_id = #{record.orderId,jdbcType=VARCHAR}");
sql.SET("pay_price = #{record.payPrice,jdbcType=DECIMAL}");
sql.SET("reserve_remark = #{record.reserveRemark,jdbcType=VARCHAR}");
sql.SET("reserve_time = #{record.reserveTime,jdbcType=TIMESTAMP}");
sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}");
sql.SET("user_phone = #{record.userPhone,jdbcType=VARCHAR}");
sql.SET("created_user_id = #{record.createdUserId,jdbcType=VARCHAR}");
sql.SET("created_time = #{record.createdTime,jdbcType=TIMESTAMP}");
sql.SET("updated_user_id = #{record.updatedUserId,jdbcType=VARCHAR}");
sql.SET("updated_time = #{record.updatedTime,jdbcType=TIMESTAMP}");
sql.SET("`status` = #{record.status,jdbcType=INTEGER}");
sql.SET("ext_1 = #{record.ext1,jdbcType=VARCHAR}");
sql.SET("ext_2 = #{record.ext2,jdbcType=VARCHAR}");
sql.SET("ext_3 = #{record.ext3,jdbcType=VARCHAR}");
HighReserveMsgExample example = (HighReserveMsgExample) parameter.get("example");
applyWhere(sql, example, true);
return sql.toString();
}
public String updateByPrimaryKeySelective(HighReserveMsg record) {
SQL sql = new SQL();
sql.UPDATE("high_reserve_msg");
if (record.getGoodsName() != null) {
sql.SET("goods_name = #{goodsName,jdbcType=VARCHAR}");
}
if (record.getOrderId() != null) {
sql.SET("order_id = #{orderId,jdbcType=VARCHAR}");
}
if (record.getPayPrice() != null) {
sql.SET("pay_price = #{payPrice,jdbcType=DECIMAL}");
}
if (record.getReserveRemark() != null) {
sql.SET("reserve_remark = #{reserveRemark,jdbcType=VARCHAR}");
}
if (record.getReserveTime() != null) {
sql.SET("reserve_time = #{reserveTime,jdbcType=TIMESTAMP}");
}
if (record.getUserName() != null) {
sql.SET("user_name = #{userName,jdbcType=VARCHAR}");
}
if (record.getUserPhone() != null) {
sql.SET("user_phone = #{userPhone,jdbcType=VARCHAR}");
}
if (record.getCreatedUserId() != null) {
sql.SET("created_user_id = #{createdUserId,jdbcType=VARCHAR}");
}
if (record.getCreatedTime() != null) {
sql.SET("created_time = #{createdTime,jdbcType=TIMESTAMP}");
}
if (record.getUpdatedUserId() != null) {
sql.SET("updated_user_id = #{updatedUserId,jdbcType=VARCHAR}");
}
if (record.getUpdatedTime() != null) {
sql.SET("updated_time = #{updatedTime,jdbcType=TIMESTAMP}");
}
if (record.getStatus() != null) {
sql.SET("`status` = #{status,jdbcType=INTEGER}");
}
if (record.getExt1() != null) {
sql.SET("ext_1 = #{ext1,jdbcType=VARCHAR}");
}
if (record.getExt2() != null) {
sql.SET("ext_2 = #{ext2,jdbcType=VARCHAR}");
}
if (record.getExt3() != null) {
sql.SET("ext_3 = #{ext3,jdbcType=VARCHAR}");
}
sql.WHERE("id = #{id,jdbcType=INTEGER}");
return sql.toString();
}
protected void applyWhere(SQL sql, HighReserveMsgExample example, boolean includeExamplePhrase) {
if (example == null) {
return;
}
String parmPhrase1;
String parmPhrase1_th;
String parmPhrase2;
String parmPhrase2_th;
String parmPhrase3;
String parmPhrase3_th;
if (includeExamplePhrase) {
parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}";
parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}";
parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}";
parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
} else {
parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}";
parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}";
parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}";
parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}";
parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}";
parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}";
}
StringBuilder sb = new StringBuilder();
List<Criteria> oredCriteria = example.getOredCriteria();
boolean firstCriteria = true;
for (int i = 0; i < oredCriteria.size(); i++) {
Criteria criteria = oredCriteria.get(i);
if (criteria.isValid()) {
if (firstCriteria) {
firstCriteria = false;
} else {
sb.append(" or ");
}
sb.append('(');
List<Criterion> criterions = criteria.getAllCriteria();
boolean firstCriterion = true;
for (int j = 0; j < criterions.size(); j++) {
Criterion criterion = criterions.get(j);
if (firstCriterion) {
firstCriterion = false;
} else {
sb.append(" and ");
}
if (criterion.isNoValue()) {
sb.append(criterion.getCondition());
} else if (criterion.isSingleValue()) {
if (criterion.getTypeHandler() == null) {
sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j));
} else {
sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler()));
}
} else if (criterion.isBetweenValue()) {
if (criterion.getTypeHandler() == null) {
sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j));
} else {
sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler()));
}
} else if (criterion.isListValue()) {
sb.append(criterion.getCondition());
sb.append(" (");
List<?> listItems = (List<?>) criterion.getValue();
boolean comma = false;
for (int k = 0; k < listItems.size(); k++) {
if (comma) {
sb.append(", ");
} else {
comma = true;
}
if (criterion.getTypeHandler() == null) {
sb.append(String.format(parmPhrase3, i, j, k));
} else {
sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler()));
}
}
sb.append(')');
}
}
sb.append(')');
}
}
if (sb.length() > 0) {
sql.WHERE(sb.toString());
}
}
}

@ -0,0 +1,306 @@
package com.hai.entity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* high_reserve_msg
* @author
*/
/**
*
* 代码由工具生成
*
**/
public class HighReserveMsg implements Serializable {
/**
* 主键
*/
private Integer id;
/**
* 商品名称
*/
private String goodsName;
/**
* 订单ID
*/
private String orderId;
/**
* 支付金额
*/
private BigDecimal payPrice;
/**
* 预约备注
*/
private String reserveRemark;
/**
* 预约时间
*/
private Date reserveTime;
/**
* 用户名称
*/
private String userName;
/**
* 用户电话
*/
private String userPhone;
/**
* 创建人
*/
private String createdUserId;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedUserId;
/**
* 更新时间
*/
private Date updatedTime;
/**
* 状态 1:预约中 2已预约 3完成 3: 异常
*/
private Integer status;
/**
* 扩展字段
*/
private String ext1;
/**
* 扩展字段
*/
private String ext2;
/**
* 扩展字段
*/
private String ext3;
private static final long serialVersionUID = 1L;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public BigDecimal getPayPrice() {
return payPrice;
}
public void setPayPrice(BigDecimal payPrice) {
this.payPrice = payPrice;
}
public String getReserveRemark() {
return reserveRemark;
}
public void setReserveRemark(String reserveRemark) {
this.reserveRemark = reserveRemark;
}
public Date getReserveTime() {
return reserveTime;
}
public void setReserveTime(Date reserveTime) {
this.reserveTime = reserveTime;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserPhone() {
return userPhone;
}
public void setUserPhone(String userPhone) {
this.userPhone = userPhone;
}
public String getCreatedUserId() {
return createdUserId;
}
public void setCreatedUserId(String createdUserId) {
this.createdUserId = createdUserId;
}
public Date getCreatedTime() {
return createdTime;
}
public void setCreatedTime(Date createdTime) {
this.createdTime = createdTime;
}
public String getUpdatedUserId() {
return updatedUserId;
}
public void setUpdatedUserId(String updatedUserId) {
this.updatedUserId = updatedUserId;
}
public Date getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getExt1() {
return ext1;
}
public void setExt1(String ext1) {
this.ext1 = ext1;
}
public String getExt2() {
return ext2;
}
public void setExt2(String ext2) {
this.ext2 = ext2;
}
public String getExt3() {
return ext3;
}
public void setExt3(String ext3) {
this.ext3 = ext3;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
HighReserveMsg other = (HighReserveMsg) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
&& (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
&& (this.getPayPrice() == null ? other.getPayPrice() == null : this.getPayPrice().equals(other.getPayPrice()))
&& (this.getReserveRemark() == null ? other.getReserveRemark() == null : this.getReserveRemark().equals(other.getReserveRemark()))
&& (this.getReserveTime() == null ? other.getReserveTime() == null : this.getReserveTime().equals(other.getReserveTime()))
&& (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
&& (this.getUserPhone() == null ? other.getUserPhone() == null : this.getUserPhone().equals(other.getUserPhone()))
&& (this.getCreatedUserId() == null ? other.getCreatedUserId() == null : this.getCreatedUserId().equals(other.getCreatedUserId()))
&& (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
&& (this.getUpdatedUserId() == null ? other.getUpdatedUserId() == null : this.getUpdatedUserId().equals(other.getUpdatedUserId()))
&& (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()))
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
&& (this.getExt1() == null ? other.getExt1() == null : this.getExt1().equals(other.getExt1()))
&& (this.getExt2() == null ? other.getExt2() == null : this.getExt2().equals(other.getExt2()))
&& (this.getExt3() == null ? other.getExt3() == null : this.getExt3().equals(other.getExt3()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
result = prime * result + ((getPayPrice() == null) ? 0 : getPayPrice().hashCode());
result = prime * result + ((getReserveRemark() == null) ? 0 : getReserveRemark().hashCode());
result = prime * result + ((getReserveTime() == null) ? 0 : getReserveTime().hashCode());
result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
result = prime * result + ((getUserPhone() == null) ? 0 : getUserPhone().hashCode());
result = prime * result + ((getCreatedUserId() == null) ? 0 : getCreatedUserId().hashCode());
result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
result = prime * result + ((getUpdatedUserId() == null) ? 0 : getUpdatedUserId().hashCode());
result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
result = prime * result + ((getExt1() == null) ? 0 : getExt1().hashCode());
result = prime * result + ((getExt2() == null) ? 0 : getExt2().hashCode());
result = prime * result + ((getExt3() == null) ? 0 : getExt3().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", goodsName=").append(goodsName);
sb.append(", orderId=").append(orderId);
sb.append(", payPrice=").append(payPrice);
sb.append(", reserveRemark=").append(reserveRemark);
sb.append(", reserveTime=").append(reserveTime);
sb.append(", userName=").append(userName);
sb.append(", userPhone=").append(userPhone);
sb.append(", createdUserId=").append(createdUserId);
sb.append(", createdTime=").append(createdTime);
sb.append(", updatedUserId=").append(updatedUserId);
sb.append(", updatedTime=").append(updatedTime);
sb.append(", status=").append(status);
sb.append(", ext1=").append(ext1);
sb.append(", ext2=").append(ext2);
sb.append(", ext3=").append(ext3);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
Loading…
Cancel
Save