赞
踩
Hi,大家好,学长今天向大家介绍 一个小程序项目
微信小程序商城
大家可用于 毕业设计
废话不多说,学长先展示实现效果
Spring Boot
Vue
微信小程序
微信开发工具导入mall-wx项目;
项目配置,启用“不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书”
点击“编译”,即可在微信开发工具预览效果;
也可以点击“预览”,然后手机扫描登录。 注意,手机需要打开调试功能。
package com.goodstuff.mall.db.domain; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Arrays; public class LitemallAddress { /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public static final Boolean NOT_DELETED = false; /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public static final Boolean IS_DELETED = true; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.id * * @mbg.generated */ private Integer id; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.name * * @mbg.generated */ private String name; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.user_id * * @mbg.generated */ private Integer userId; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.province_id * * @mbg.generated */ private Integer provinceId; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.city_id * * @mbg.generated */ private Integer cityId; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.area_id * * @mbg.generated */ private Integer areaId; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.address * * @mbg.generated */ private String address; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.mobile * * @mbg.generated */ private String mobile; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.is_default * * @mbg.generated */ private Boolean isDefault; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.add_time * * @mbg.generated */ private LocalDateTime addTime; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.update_time * * @mbg.generated */ private LocalDateTime updateTime; /** * * This field was generated by MyBatis Generator. * This field corresponds to the database column litemall_address.deleted * * @mbg.generated */ private Boolean deleted; /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.id * * @return the value of litemall_address.id * * @mbg.generated */ public Integer getId() { return id; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.id * * @param id the value for litemall_address.id * * @mbg.generated */ public void setId(Integer id) { this.id = id; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.name * * @return the value of litemall_address.name * * @mbg.generated */ public String getName() { return name; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.name * * @param name the value for litemall_address.name * * @mbg.generated */ public void setName(String name) { this.name = name; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.user_id * * @return the value of litemall_address.user_id * * @mbg.generated */ public Integer getUserId() { return userId; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.user_id * * @param userId the value for litemall_address.user_id * * @mbg.generated */ public void setUserId(Integer userId) { this.userId = userId; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.province_id * * @return the value of litemall_address.province_id * * @mbg.generated */ public Integer getProvinceId() { return provinceId; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.province_id * * @param provinceId the value for litemall_address.province_id * * @mbg.generated */ public void setProvinceId(Integer provinceId) { this.provinceId = provinceId; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.city_id * * @return the value of litemall_address.city_id * * @mbg.generated */ public Integer getCityId() { return cityId; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.city_id * * @param cityId the value for litemall_address.city_id * * @mbg.generated */ public void setCityId(Integer cityId) { this.cityId = cityId; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.area_id * * @return the value of litemall_address.area_id * * @mbg.generated */ public Integer getAreaId() { return areaId; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.area_id * * @param areaId the value for litemall_address.area_id * * @mbg.generated */ public void setAreaId(Integer areaId) { this.areaId = areaId; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.address * * @return the value of litemall_address.address * * @mbg.generated */ public String getAddress() { return address; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.address * * @param address the value for litemall_address.address * * @mbg.generated */ public void setAddress(String address) { this.address = address; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.mobile * * @return the value of litemall_address.mobile * * @mbg.generated */ public String getMobile() { return mobile; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.mobile * * @param mobile the value for litemall_address.mobile * * @mbg.generated */ public void setMobile(String mobile) { this.mobile = mobile; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.is_default * * @return the value of litemall_address.is_default * * @mbg.generated */ public Boolean getIsDefault() { return isDefault; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.is_default * * @param isDefault the value for litemall_address.is_default * * @mbg.generated */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.add_time * * @return the value of litemall_address.add_time * * @mbg.generated */ public LocalDateTime getAddTime() { return addTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.add_time * * @param addTime the value for litemall_address.add_time * * @mbg.generated */ public void setAddTime(LocalDateTime addTime) { this.addTime = addTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.update_time * * @return the value of litemall_address.update_time * * @mbg.generated */ public LocalDateTime getUpdateTime() { return updateTime; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.update_time * * @param updateTime the value for litemall_address.update_time * * @mbg.generated */ public void setUpdateTime(LocalDateTime updateTime) { this.updateTime = updateTime; } /** * This method was generated by MyBatis Generator. * This method returns the value of the database column litemall_address.deleted * * @return the value of litemall_address.deleted * * @mbg.generated */ public Boolean getDeleted() { return deleted; } /** * This method was generated by MyBatis Generator. * This method sets the value of the database column litemall_address.deleted * * @param deleted the value for litemall_address.deleted * * @mbg.generated */ public void setDeleted(Boolean deleted) { this.deleted = deleted; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated */ @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(", name=").append(name); sb.append(", userId=").append(userId); sb.append(", provinceId=").append(provinceId); sb.append(", cityId=").append(cityId); sb.append(", areaId=").append(areaId); sb.append(", address=").append(address); sb.append(", mobile=").append(mobile); sb.append(", isDefault=").append(isDefault); sb.append(", addTime=").append(addTime); sb.append(", updateTime=").append(updateTime); sb.append(", deleted=").append(deleted); sb.append("]"); return sb.toString(); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated */ @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } LitemallAddress other = (LitemallAddress) that; return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())) && (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId())) && (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId())) && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId())) && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress())) && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile())) && (this.getIsDefault() == null ? other.getIsDefault() == null : this.getIsDefault().equals(other.getIsDefault())) && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted())); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode()); result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode()); result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode()); result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode()); result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode()); result = prime * result + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode()); result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode()); return result; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public void andLogicalDeleted(boolean deleted) { setDeleted(deleted ? IS_DELETED : NOT_DELETED); } /** * This enum was generated by MyBatis Generator. * This enum corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public enum Column { id("id", "id", "INTEGER", false), name("name", "name", "VARCHAR", true), userId("user_id", "userId", "INTEGER", false), provinceId("province_id", "provinceId", "INTEGER", false), cityId("city_id", "cityId", "INTEGER", false), areaId("area_id", "areaId", "INTEGER", false), address("address", "address", "VARCHAR", false), mobile("mobile", "mobile", "VARCHAR", false), isDefault("is_default", "isDefault", "BIT", false), addTime("add_time", "addTime", "TIMESTAMP", false), updateTime("update_time", "updateTime", "TIMESTAMP", false), deleted("deleted", "deleted", "BIT", false); /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String BEGINNING_DELIMITER = "`"; /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ private static final String ENDING_DELIMITER = "`"; /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String column; /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ private final boolean isColumnNameDelimited; /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String javaProperty; /** * This field was generated by MyBatis Generator. * This field corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ private final String jdbcType; /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String value() { return this.column; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getValue() { return this.column; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJavaProperty() { return this.javaProperty; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getJdbcType() { return this.jdbcType; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { this.column = column; this.javaProperty = javaProperty; this.jdbcType = jdbcType; this.isColumnNameDelimited = isColumnNameDelimited; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String desc() { return this.getEscapedColumnName() + " DESC"; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String asc() { return this.getEscapedColumnName() + " ASC"; } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public static Column[] excludes(Column ... excludes) { ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values())); if (excludes != null && excludes.length > 0) { columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); } return columns.toArray(new Column[]{}); } /** * This method was generated by MyBatis Generator. * This method corresponds to the database table litemall_address * * @mbg.generated * @project https://github.com/itfsw/mybatis-generator-plugin */ public String getEscapedColumnName() { if (this.isColumnNameDelimited) { return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); } else { return this.column; } } } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。