Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MR_支持微信小程序相关修改 #400

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## 前言

`mall`项目致力于打造一个完整的电商系统,采用现阶段流行技术实现。

[码云地址](https://gitee.com/tPrograming/mall): https://gitee.com/tPrograming/mall
## 项目文档

- 文档地址:[http://www.macrozheng.com](http://www.macrozheng.com)
Expand Down
15 changes: 15 additions & 0 deletions document/sql/mall.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2578,3 +2578,18 @@ INSERT INTO `ums_role_resource_relation` VALUES ('174', '1', '5');
INSERT INTO `ums_role_resource_relation` VALUES ('175', '1', '6');
INSERT INTO `ums_role_resource_relation` VALUES ('176', '1', '23');
INSERT INTO `ums_role_resource_relation` VALUES ('177', '1', '24');

-- ----------------------------
-- Table structure for ums_feedback
-- ----------------------------
DROP TABLE IF EXISTS `ums_feedback`;
CREATE TABLE `ums_feedback` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`type` varchar(100) NOT NULL DEFAULT '' COMMENT '',
`typeString` varchar(100) NOT NULL DEFAULT '' COMMENT '',
`desc` varchar(512) NOT NULL DEFAULT '' COMMENT '',
`tel` varchar(11) NOT NULL DEFAULT '' COMMENT '',
`uID` bigint(20) NOT NULL DEFAULT 0 COMMENT '',
`time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 COMMENT='用户反馈表';
30 changes: 30 additions & 0 deletions mall-mbg/src/main/java/com/macro/mall/mapper/CommentMapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.macro.mall.mapper;

import com.macro.mall.model.Comment;
import com.macro.mall.model.CommentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface CommentMapper {
long countByExample(CommentExample example);

int deleteByExample(CommentExample example);

int deleteByPrimaryKey(Integer id);

int insert(Comment record);

int insertSelective(Comment record);

List<Comment> selectByExample(CommentExample example);

Comment selectByPrimaryKey(Integer id);

int updateByExampleSelective(@Param("record") Comment record, @Param("example") CommentExample example);

int updateByExample(@Param("record") Comment record, @Param("example") CommentExample example);

int updateByPrimaryKeySelective(Comment record);

int updateByPrimaryKey(Comment record);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.macro.mall.mapper;

import com.macro.mall.model.UmsFeedback;
import com.macro.mall.model.UmsFeedbackExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UmsFeedbackMapper {
long countByExample(UmsFeedbackExample example);

int deleteByExample(UmsFeedbackExample example);

int deleteByPrimaryKey(Long id);

int insert(UmsFeedback record);

int insertSelective(UmsFeedback record);

List<UmsFeedback> selectByExample(UmsFeedbackExample example);

UmsFeedback selectByPrimaryKey(Long id);

int updateByExampleSelective(@Param("record") UmsFeedback record, @Param("example") UmsFeedbackExample example);

int updateByExample(@Param("record") UmsFeedback record, @Param("example") UmsFeedbackExample example);

int updateByPrimaryKeySelective(UmsFeedback record);

int updateByPrimaryKey(UmsFeedback record);
}
97 changes: 97 additions & 0 deletions mall-mbg/src/main/java/com/macro/mall/model/Comment.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
package com.macro.mall.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class Comment implements Serializable {
private Integer id;

private String type;

private String typestring;

private String desc;

private Integer tel;

private Integer uid;

private Date time;

private static final long serialVersionUID = 1L;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getType() {
return type;
}

public void setType(String type) {
this.type = type;
}

public String getTypestring() {
return typestring;
}

public void setTypestring(String typestring) {
this.typestring = typestring;
}

public String getDesc() {
return desc;
}

public void setDesc(String desc) {
this.desc = desc;
}

public Integer getTel() {
return tel;
}

public void setTel(Integer tel) {
this.tel = tel;
}

public Integer getUid() {
return uid;
}

public void setUid(Integer uid) {
this.uid = uid;
}

public Date getTime() {
return time;
}

public void setTime(Date time) {
this.time = time;
}

@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(", type=").append(type);
sb.append(", typestring=").append(typestring);
sb.append(", desc=").append(desc);
sb.append(", tel=").append(tel);
sb.append(", uid=").append(uid);
sb.append(", time=").append(time);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
Loading