Merge remote-tracking branch 'origin/2.0-dev' into 2.0-dev

new-dev
袁野 2 years ago
commit d96457f424
  1. 33
      hai-service/src/main/java/com/hai/dao/HighGoodsTypeMapper.java
  2. 14
      hai-service/src/main/java/com/hai/dao/HighGoodsTypeSqlProvider.java
  3. 16
      hai-service/src/main/java/com/hai/entity/HighGoodsType.java
  4. 60
      hai-service/src/main/java/com/hai/entity/HighGoodsTypeExample.java
  5. 2
      hai-user/src/main/java/com/web/config/AuthConfig.java

@ -39,18 +39,20 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt {
int deleteByPrimaryKey(Integer id); int deleteByPrimaryKey(Integer id);
@Insert({ @Insert({
"insert into high_goods_type (parent_id, title, ", "insert into high_goods_type (parent_id, company_id, ",
"business_type, user_service, ", "title, business_type, ",
"img, created_user_id, ", "user_service, img, ",
"created_time, updated_user_id, ", "created_user_id, created_time, ",
"updated_time, `status`, ", "updated_user_id, updated_time, ",
"ext_1, ext_2, ext_3)", "`status`, ext_1, ext_2, ",
"values (#{parentId,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, ", "ext_3)",
"#{businessType,jdbcType=INTEGER}, #{userService,jdbcType=VARCHAR}, ", "values (#{parentId,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ",
"#{img,jdbcType=VARCHAR}, #{createdUserId,jdbcType=INTEGER}, ", "#{title,jdbcType=VARCHAR}, #{businessType,jdbcType=INTEGER}, ",
"#{createdTime,jdbcType=TIMESTAMP}, #{updatedUserId,jdbcType=INTEGER}, ", "#{userService,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ",
"#{updatedTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", "#{createdUserId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, ",
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" "#{updatedUserId,jdbcType=INTEGER}, #{updatedTime,jdbcType=TIMESTAMP}, ",
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ",
"#{ext3,jdbcType=VARCHAR})"
}) })
@Options(useGeneratedKeys=true,keyProperty="id") @Options(useGeneratedKeys=true,keyProperty="id")
int insert(HighGoodsType record); int insert(HighGoodsType record);
@ -63,6 +65,7 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt {
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), @Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR),
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), @Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER),
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), @Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR),
@ -80,14 +83,15 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt {
@Select({ @Select({
"select", "select",
"id, parent_id, title, business_type, user_service, img, created_user_id, created_time, ", "id, parent_id, company_id, title, business_type, user_service, img, created_user_id, ",
"updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3", "created_time, updated_user_id, updated_time, `status`, ext_1, ext_2, ext_3",
"from high_goods_type", "from high_goods_type",
"where id = #{id,jdbcType=INTEGER}" "where id = #{id,jdbcType=INTEGER}"
}) })
@Results({ @Results({
@Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true), @Result(column="id", property="id", jdbcType=JdbcType.INTEGER, id=true),
@Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER), @Result(column="parent_id", property="parentId", jdbcType=JdbcType.INTEGER),
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT),
@Result(column="title", property="title", jdbcType=JdbcType.VARCHAR), @Result(column="title", property="title", jdbcType=JdbcType.VARCHAR),
@Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER), @Result(column="business_type", property="businessType", jdbcType=JdbcType.INTEGER),
@Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR), @Result(column="user_service", property="userService", jdbcType=JdbcType.VARCHAR),
@ -115,6 +119,7 @@ public interface HighGoodsTypeMapper extends HighGoodsTypeMapperExt {
@Update({ @Update({
"update high_goods_type", "update high_goods_type",
"set parent_id = #{parentId,jdbcType=INTEGER},", "set parent_id = #{parentId,jdbcType=INTEGER},",
"company_id = #{companyId,jdbcType=BIGINT},",
"title = #{title,jdbcType=VARCHAR},", "title = #{title,jdbcType=VARCHAR},",
"business_type = #{businessType,jdbcType=INTEGER},", "business_type = #{businessType,jdbcType=INTEGER},",
"user_service = #{userService,jdbcType=VARCHAR},", "user_service = #{userService,jdbcType=VARCHAR},",

@ -32,6 +32,10 @@ public class HighGoodsTypeSqlProvider {
sql.VALUES("parent_id", "#{parentId,jdbcType=INTEGER}"); sql.VALUES("parent_id", "#{parentId,jdbcType=INTEGER}");
} }
if (record.getCompanyId() != null) {
sql.VALUES("company_id", "#{companyId,jdbcType=BIGINT}");
}
if (record.getTitle() != null) { if (record.getTitle() != null) {
sql.VALUES("title", "#{title,jdbcType=VARCHAR}"); sql.VALUES("title", "#{title,jdbcType=VARCHAR}");
} }
@ -91,6 +95,7 @@ public class HighGoodsTypeSqlProvider {
sql.SELECT("id"); sql.SELECT("id");
} }
sql.SELECT("parent_id"); sql.SELECT("parent_id");
sql.SELECT("company_id");
sql.SELECT("title"); sql.SELECT("title");
sql.SELECT("business_type"); sql.SELECT("business_type");
sql.SELECT("user_service"); sql.SELECT("user_service");
@ -128,6 +133,10 @@ public class HighGoodsTypeSqlProvider {
sql.SET("parent_id = #{record.parentId,jdbcType=INTEGER}"); sql.SET("parent_id = #{record.parentId,jdbcType=INTEGER}");
} }
if (record.getCompanyId() != null) {
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
}
if (record.getTitle() != null) { if (record.getTitle() != null) {
sql.SET("title = #{record.title,jdbcType=VARCHAR}"); sql.SET("title = #{record.title,jdbcType=VARCHAR}");
} }
@ -186,6 +195,7 @@ public class HighGoodsTypeSqlProvider {
sql.SET("id = #{record.id,jdbcType=INTEGER}"); sql.SET("id = #{record.id,jdbcType=INTEGER}");
sql.SET("parent_id = #{record.parentId,jdbcType=INTEGER}"); sql.SET("parent_id = #{record.parentId,jdbcType=INTEGER}");
sql.SET("company_id = #{record.companyId,jdbcType=BIGINT}");
sql.SET("title = #{record.title,jdbcType=VARCHAR}"); sql.SET("title = #{record.title,jdbcType=VARCHAR}");
sql.SET("business_type = #{record.businessType,jdbcType=INTEGER}"); sql.SET("business_type = #{record.businessType,jdbcType=INTEGER}");
sql.SET("user_service = #{record.userService,jdbcType=VARCHAR}"); sql.SET("user_service = #{record.userService,jdbcType=VARCHAR}");
@ -212,6 +222,10 @@ public class HighGoodsTypeSqlProvider {
sql.SET("parent_id = #{parentId,jdbcType=INTEGER}"); sql.SET("parent_id = #{parentId,jdbcType=INTEGER}");
} }
if (record.getCompanyId() != null) {
sql.SET("company_id = #{companyId,jdbcType=BIGINT}");
}
if (record.getTitle() != null) { if (record.getTitle() != null) {
sql.SET("title = #{title,jdbcType=VARCHAR}"); sql.SET("title = #{title,jdbcType=VARCHAR}");
} }

@ -23,6 +23,11 @@ public class HighGoodsType implements Serializable {
*/ */
private Integer parentId; private Integer parentId;
/**
* 公司id
*/
private Long companyId;
/** /**
* 标题 * 标题
*/ */
@ -101,6 +106,14 @@ public class HighGoodsType implements Serializable {
this.parentId = parentId; this.parentId = parentId;
} }
public Long getCompanyId() {
return companyId;
}
public void setCompanyId(Long companyId) {
this.companyId = companyId;
}
public String getTitle() { public String getTitle() {
return title; return title;
} }
@ -211,6 +224,7 @@ public class HighGoodsType implements Serializable {
HighGoodsType other = (HighGoodsType) that; HighGoodsType other = (HighGoodsType) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId())) && (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
&& (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
&& (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle())) && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
&& (this.getBusinessType() == null ? other.getBusinessType() == null : this.getBusinessType().equals(other.getBusinessType())) && (this.getBusinessType() == null ? other.getBusinessType() == null : this.getBusinessType().equals(other.getBusinessType()))
&& (this.getUserService() == null ? other.getUserService() == null : this.getUserService().equals(other.getUserService())) && (this.getUserService() == null ? other.getUserService() == null : this.getUserService().equals(other.getUserService()))
@ -231,6 +245,7 @@ public class HighGoodsType implements Serializable {
int result = 1; int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode()); result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode()); result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
result = prime * result + ((getBusinessType() == null) ? 0 : getBusinessType().hashCode()); result = prime * result + ((getBusinessType() == null) ? 0 : getBusinessType().hashCode());
result = prime * result + ((getUserService() == null) ? 0 : getUserService().hashCode()); result = prime * result + ((getUserService() == null) ? 0 : getUserService().hashCode());
@ -254,6 +269,7 @@ public class HighGoodsType implements Serializable {
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", parentId=").append(parentId); sb.append(", parentId=").append(parentId);
sb.append(", companyId=").append(companyId);
sb.append(", title=").append(title); sb.append(", title=").append(title);
sb.append(", businessType=").append(businessType); sb.append(", businessType=").append(businessType);
sb.append(", userService=").append(userService); sb.append(", userService=").append(userService);

@ -245,6 +245,66 @@ public class HighGoodsTypeExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCompanyIdIsNull() {
addCriterion("company_id is null");
return (Criteria) this;
}
public Criteria andCompanyIdIsNotNull() {
addCriterion("company_id is not null");
return (Criteria) this;
}
public Criteria andCompanyIdEqualTo(Long value) {
addCriterion("company_id =", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotEqualTo(Long value) {
addCriterion("company_id <>", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThan(Long value) {
addCriterion("company_id >", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) {
addCriterion("company_id >=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThan(Long value) {
addCriterion("company_id <", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThanOrEqualTo(Long value) {
addCriterion("company_id <=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdIn(List<Long> values) {
addCriterion("company_id in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotIn(List<Long> values) {
addCriterion("company_id not in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdBetween(Long value1, Long value2) {
addCriterion("company_id between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotBetween(Long value1, Long value2) {
addCriterion("company_id not between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andTitleIsNull() { public Criteria andTitleIsNull() {
addCriterion("title is null"); addCriterion("title is null");
return (Criteria) this; return (Criteria) this;

@ -91,6 +91,8 @@ public class AuthConfig implements WebMvcConfigurer {
.excludePathPatterns("/**/swagger-ui.html") .excludePathPatterns("/**/swagger-ui.html")
.excludePathPatterns("/login/*") .excludePathPatterns("/login/*")
.excludePathPatterns("/wechat/*") .excludePathPatterns("/wechat/*")
.excludePathPatterns("/discount/hzfUserDiscountUse")
.excludePathPatterns("/discount/hzfUserDiscountReturn")
.excludePathPatterns("/sms/*") .excludePathPatterns("/sms/*")
; ;
} }

Loading…
Cancel
Save