diff --git a/entity/src/main/java/com/sv/entity/HealthDoc.java b/entity/src/main/java/com/sv/entity/HealthDoc.java
new file mode 100644
index 0000000..175ed9b
--- /dev/null
+++ b/entity/src/main/java/com/sv/entity/HealthDoc.java
@@ -0,0 +1,122 @@
+package com.sv.entity;
+
+import java.util.Date;
+
+public class HealthDoc {
+ private Integer id;
+
+ private Integer memberId;
+
+ private String docName;
+
+ private String docType;
+
+ private String fileType;
+
+ private String docPath;
+
+ private Integer platformId;
+
+ private Date createdTime;
+
+ private Date modifiedTime;
+
+ private Byte deleted;
+
+ public HealthDoc(Integer id, Integer memberId, String docName, String docType, String fileType, String docPath, Integer platformId, Date createdTime, Date modifiedTime, Byte deleted) {
+ this.id = id;
+ this.memberId = memberId;
+ this.docName = docName;
+ this.docType = docType;
+ this.fileType = fileType;
+ this.docPath = docPath;
+ this.platformId = platformId;
+ this.createdTime = createdTime;
+ this.modifiedTime = modifiedTime;
+ this.deleted = deleted;
+ }
+
+ public HealthDoc() {
+ super();
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getMemberId() {
+ return memberId;
+ }
+
+ public void setMemberId(Integer memberId) {
+ this.memberId = memberId;
+ }
+
+ public String getDocName() {
+ return docName;
+ }
+
+ public void setDocName(String docName) {
+ this.docName = docName == null ? null : docName.trim();
+ }
+
+ public String getDocType() {
+ return docType;
+ }
+
+ public void setDocType(String docType) {
+ this.docType = docType == null ? null : docType.trim();
+ }
+
+ public String getFileType() {
+ return fileType;
+ }
+
+ public void setFileType(String fileType) {
+ this.fileType = fileType == null ? null : fileType.trim();
+ }
+
+ public String getDocPath() {
+ return docPath;
+ }
+
+ public void setDocPath(String docPath) {
+ this.docPath = docPath == null ? null : docPath.trim();
+ }
+
+ public Integer getPlatformId() {
+ return platformId;
+ }
+
+ public void setPlatformId(Integer platformId) {
+ this.platformId = platformId;
+ }
+
+ public Date getCreatedTime() {
+ return createdTime;
+ }
+
+ public void setCreatedTime(Date createdTime) {
+ this.createdTime = createdTime;
+ }
+
+ public Date getModifiedTime() {
+ return modifiedTime;
+ }
+
+ public void setModifiedTime(Date modifiedTime) {
+ this.modifiedTime = modifiedTime;
+ }
+
+ public Byte getDeleted() {
+ return deleted;
+ }
+
+ public void setDeleted(Byte deleted) {
+ this.deleted = deleted;
+ }
+}
\ No newline at end of file
diff --git a/oms/oms-h5/src/views/member/health/index.vue b/oms/oms-h5/src/views/member/health/index.vue
index 117fb8f..0c00491 100644
--- a/oms/oms-h5/src/views/member/health/index.vue
+++ b/oms/oms-h5/src/views/member/health/index.vue
@@ -23,10 +23,10 @@
-
-
+
+
- {{scope.row.docId}}
+ {{scope.row.docName}}
@@ -44,6 +44,11 @@
+
+
+ 查看
+
+
@@ -54,7 +59,7 @@ import waves from '@/directive/waves.js'// 水波纹指令
import Pagination from '@/components/Pagination'
export default {
- name: 'memberCard_list',
+ name: 'healthDocs_list',
components: { Pagination },
directives: {
waves
@@ -62,10 +67,8 @@ export default {
data() {
return {
params: {
- veneuType: undefined,
- search_eq_card_type: undefined,
+ search_eq_doc_type: undefined,
search_like_nickname: undefined,
- venueName: undefined
},
options: {
docType: [
@@ -83,15 +86,14 @@ export default {
},
methods: {
/**
- * 搜索用户会员卡
+ * 搜索健康报告
*/
handleSearch() {
- // this.$refs.pagination.pageRequest()
this.$refs.pagination.handleSearch()
},
/**
- * 编辑用户会员卡
+ * 编辑健康报告
*/
handleEdit(id) {
this.$router.push({ path: '/member/card/edit', query: { id: id }})
diff --git a/service/pom.xml b/service/pom.xml
index 930ba19..071578b 100644
--- a/service/pom.xml
+++ b/service/pom.xml
@@ -23,4 +23,29 @@
+
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.3.2
+
+ true
+ true
+ src/main/resources/tools/generatorConfig.xml
+
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.41
+ runtime
+
+
+
+
+
+
diff --git a/service/src/main/java/com/sv/mapper/HealthDocMapper.java b/service/src/main/java/com/sv/mapper/HealthDocMapper.java
new file mode 100644
index 0000000..d385be1
--- /dev/null
+++ b/service/src/main/java/com/sv/mapper/HealthDocMapper.java
@@ -0,0 +1,17 @@
+package com.sv.mapper;
+
+import com.sv.entity.HealthDoc;
+
+public interface HealthDocMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(HealthDoc record);
+
+ int insertSelective(HealthDoc record);
+
+ HealthDoc selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(HealthDoc record);
+
+ int updateByPrimaryKey(HealthDoc record);
+}
\ No newline at end of file
diff --git a/service/src/main/resources/mybatis/mapper/sv/HealthDocMapper.xml b/service/src/main/resources/mybatis/mapper/sv/HealthDocMapper.xml
new file mode 100644
index 0000000..42af0f1
--- /dev/null
+++ b/service/src/main/resources/mybatis/mapper/sv/HealthDocMapper.xml
@@ -0,0 +1,444 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, member_id, doc_name, doc_type, file_type, doc_path, platform_id, created_time,
+ modified_time, deleted
+
+
+
+ delete from sv_health_docs
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into sv_health_docs (id, member_id, doc_name,
+ doc_type, file_type, doc_path,
+ platform_id, created_time, modified_time,
+ deleted)
+ values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, #{docName,jdbcType=VARCHAR},
+ #{docType,jdbcType=CHAR}, #{fileType,jdbcType=CHAR}, #{docPath,jdbcType=VARCHAR},
+ #{platformId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP},
+ #{deleted,jdbcType=TINYINT})
+
+
+ insert into sv_health_docs
+
+
+ id,
+
+
+ member_id,
+
+
+ doc_name,
+
+
+ doc_type,
+
+
+ file_type,
+
+
+ doc_path,
+
+
+ platform_id,
+
+
+ created_time,
+
+
+ modified_time,
+
+
+ deleted,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{memberId,jdbcType=INTEGER},
+
+
+ #{docName,jdbcType=VARCHAR},
+
+
+ #{docType,jdbcType=CHAR},
+
+
+ #{fileType,jdbcType=CHAR},
+
+
+ #{docPath,jdbcType=VARCHAR},
+
+
+ #{platformId,jdbcType=INTEGER},
+
+
+ #{createdTime,jdbcType=TIMESTAMP},
+
+
+ #{modifiedTime,jdbcType=TIMESTAMP},
+
+
+ #{deleted,jdbcType=TINYINT},
+
+
+
+
+ update sv_health_docs
+
+
+ member_id = #{memberId,jdbcType=INTEGER},
+
+
+ doc_name = #{docName,jdbcType=VARCHAR},
+
+
+ doc_type = #{docType,jdbcType=CHAR},
+
+
+ file_type = #{fileType,jdbcType=CHAR},
+
+
+ doc_path = #{docPath,jdbcType=VARCHAR},
+
+
+ platform_id = #{platformId,jdbcType=INTEGER},
+
+
+ created_time = #{createdTime,jdbcType=TIMESTAMP},
+
+
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{deleted,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update sv_health_docs
+ set member_id = #{memberId,jdbcType=INTEGER},
+ doc_name = #{docName,jdbcType=VARCHAR},
+ doc_type = #{docType,jdbcType=CHAR},
+ file_type = #{fileType,jdbcType=CHAR},
+ doc_path = #{docPath,jdbcType=VARCHAR},
+ platform_id = #{platformId,jdbcType=INTEGER},
+ created_time = #{createdTime,jdbcType=TIMESTAMP},
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+ deleted = #{deleted,jdbcType=TINYINT}
+ where id = #{id,jdbcType=INTEGER}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, member_id, doc_name, doc_type, file_type, doc_path, platform_id, created_time,
+ modified_time, deleted
+
+
+
+
+ delete from sv_health_docs
+ where id = #{id,jdbcType=INTEGER}
+
+
+ delete from sv_health_docs
+
+
+
+
+
+ insert into sv_health_docs (id, member_id, doc_name,
+ doc_type, file_type, doc_path,
+ platform_id, created_time, modified_time,
+ deleted)
+ values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, #{docName,jdbcType=VARCHAR},
+ #{docType,jdbcType=CHAR}, #{fileType,jdbcType=CHAR}, #{docPath,jdbcType=VARCHAR},
+ #{platformId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP},
+ #{deleted,jdbcType=TINYINT})
+
+
+ insert into sv_health_docs
+
+
+ id,
+
+
+ member_id,
+
+
+ doc_name,
+
+
+ doc_type,
+
+
+ file_type,
+
+
+ doc_path,
+
+
+ platform_id,
+
+
+ created_time,
+
+
+ modified_time,
+
+
+ deleted,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{memberId,jdbcType=INTEGER},
+
+
+ #{docName,jdbcType=VARCHAR},
+
+
+ #{docType,jdbcType=CHAR},
+
+
+ #{fileType,jdbcType=CHAR},
+
+
+ #{docPath,jdbcType=VARCHAR},
+
+
+ #{platformId,jdbcType=INTEGER},
+
+
+ #{createdTime,jdbcType=TIMESTAMP},
+
+
+ #{modifiedTime,jdbcType=TIMESTAMP},
+
+
+ #{deleted,jdbcType=TINYINT},
+
+
+
+
+
+ update sv_health_docs
+
+
+ id = #{record.id,jdbcType=INTEGER},
+
+
+ member_id = #{record.memberId,jdbcType=INTEGER},
+
+
+ doc_name = #{record.docName,jdbcType=VARCHAR},
+
+
+ doc_type = #{record.docType,jdbcType=CHAR},
+
+
+ file_type = #{record.fileType,jdbcType=CHAR},
+
+
+ doc_path = #{record.docPath,jdbcType=VARCHAR},
+
+
+ platform_id = #{record.platformId,jdbcType=INTEGER},
+
+
+ created_time = #{record.createdTime,jdbcType=TIMESTAMP},
+
+
+ modified_time = #{record.modifiedTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{record.deleted,jdbcType=TINYINT},
+
+
+
+
+
+
+
+ update sv_health_docs
+ set id = #{record.id,jdbcType=INTEGER},
+ member_id = #{record.memberId,jdbcType=INTEGER},
+ doc_name = #{record.docName,jdbcType=VARCHAR},
+ doc_type = #{record.docType,jdbcType=CHAR},
+ file_type = #{record.fileType,jdbcType=CHAR},
+ doc_path = #{record.docPath,jdbcType=VARCHAR},
+ platform_id = #{record.platformId,jdbcType=INTEGER},
+ created_time = #{record.createdTime,jdbcType=TIMESTAMP},
+ modified_time = #{record.modifiedTime,jdbcType=TIMESTAMP},
+ deleted = #{record.deleted,jdbcType=TINYINT}
+
+
+
+
+
+ update sv_health_docs
+
+
+ member_id = #{memberId,jdbcType=INTEGER},
+
+
+ doc_name = #{docName,jdbcType=VARCHAR},
+
+
+ doc_type = #{docType,jdbcType=CHAR},
+
+
+ file_type = #{fileType,jdbcType=CHAR},
+
+
+ doc_path = #{docPath,jdbcType=VARCHAR},
+
+
+ platform_id = #{platformId,jdbcType=INTEGER},
+
+
+ created_time = #{createdTime,jdbcType=TIMESTAMP},
+
+
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+
+
+ deleted = #{deleted,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update sv_health_docs
+ set member_id = #{memberId,jdbcType=INTEGER},
+ doc_name = #{docName,jdbcType=VARCHAR},
+ doc_type = #{docType,jdbcType=CHAR},
+ file_type = #{fileType,jdbcType=CHAR},
+ doc_path = #{docPath,jdbcType=VARCHAR},
+ platform_id = #{platformId,jdbcType=INTEGER},
+ created_time = #{createdTime,jdbcType=TIMESTAMP},
+ modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
+ deleted = #{deleted,jdbcType=TINYINT}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/entity/src/main/resources/tools/generatorConfig.xml b/service/src/main/resources/tools/generatorConfig.xml
similarity index 91%
rename from entity/src/main/resources/tools/generatorConfig.xml
rename to service/src/main/resources/tools/generatorConfig.xml
index e673f48..78efa97 100644
--- a/entity/src/main/resources/tools/generatorConfig.xml
+++ b/service/src/main/resources/tools/generatorConfig.xml
@@ -66,7 +66,7 @@
所以,如果 javaClientGenerator配置中配置了需要生成XML的话,这个元素就必须配置
targetPackage/targetProject:同javaModelGenerator
-->
-
+
@@ -80,7 +80,7 @@
3,XMLMAPPER:会生成Mapper接口,接口完全依赖XML;
注意,如果context是MyBatis3Simple:只支持ANNOTATEDMAPPER和XMLMAPPER
-->
-
+
@@ -90,7 +90,11 @@
domainObjectName 给表对应的 model 起名字
注意:大小写敏感问题。
-->
-