diff --git a/share_project/pom.xml b/share_project/pom.xml
index 602cb017edc64a3c81c7a1c8a105a89becfe44fa..732f81f2118324f62ff43032ffb3ade2693a47da 100644
--- a/share_project/pom.xml
+++ b/share_project/pom.xml
@@ -72,6 +72,13 @@
druid-spring-boot-starter
1.1.20
+
+
+
+ org.projectlombok
+ lombok
+ 1.18.12
+
diff --git a/share_project/src/main/java/com/share/domain/DemandProject.java b/share_project/src/main/java/com/share/domain/DemandProject.java
new file mode 100644
index 0000000000000000000000000000000000000000..cde1c82789484c5e8a5ba5f2145efc3ddbad03db
--- /dev/null
+++ b/share_project/src/main/java/com/share/domain/DemandProject.java
@@ -0,0 +1,69 @@
+package com.share.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/23 - 22:45
+ * @description demand_project 需求项目实体类
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ToString
+public class DemandProject implements Serializable {
+ /**
+ * 项目编号
+ */
+ private Integer id;
+ /**
+ * 项目名称
+ */
+ private String projectName;
+ /**
+ * 项目描述
+ */
+ private String projectDesc;
+ /**
+ * 公司补贴
+ */
+ private String subsidy;
+ /**
+ * 价钱
+ */
+ private Float price;
+ /**
+ * 地址
+ */
+ private String address;
+ /**
+ * 所需技能
+ */
+ private String skill;
+ /**
+ * 项目类型
+ */
+ private String type;
+ /**
+ * 发布方式
+ */
+ private String method;
+ /**
+ * 发布人(用户名)
+ */
+ private String publisher;
+ /**
+ * 发布时间
+ */
+ private Date startTime;
+ /**
+ * 截止时间
+ */
+ private Date endTime;
+}
diff --git a/share_project/src/main/java/com/share/domain/SkillProject.java b/share_project/src/main/java/com/share/domain/SkillProject.java
new file mode 100644
index 0000000000000000000000000000000000000000..39d7fbbb365499192630c8723d65e8384d2f6506
--- /dev/null
+++ b/share_project/src/main/java/com/share/domain/SkillProject.java
@@ -0,0 +1,64 @@
+package com.share.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+import java.util.Date;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/24 - 15:20
+ * @description skill_project 技能项目表实体类
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ToString
+public class SkillProject {
+ /**
+ * 项目编号
+ */
+ private Integer id;
+ /**
+ * 项目名称
+ */
+ private String projectName;
+ /**
+ * 项目描述
+ */
+ private String projectDesc;
+ /**
+ * 地址
+ */
+ private String address;
+ /**
+ * 所需技能
+ */
+ private String skill;
+ /**
+ * 价钱
+ */
+ private Float price;
+ /**
+ * 项目类型
+ */
+ private String type;
+ /**
+ * 发布方式
+ */
+ private String method;
+ /**
+ * 发布人(用户名)
+ */
+ private String publisher;
+ /**
+ * 发布时间
+ */
+ private Date startTime;
+ /**
+ * 截止时间
+ */
+ private Date endTime;
+}
diff --git a/share_project/src/main/java/com/share/domain/UserDemandProject.java b/share_project/src/main/java/com/share/domain/UserDemandProject.java
new file mode 100644
index 0000000000000000000000000000000000000000..06d158880696a32ce720a8c0ac3cd780a5569580
--- /dev/null
+++ b/share_project/src/main/java/com/share/domain/UserDemandProject.java
@@ -0,0 +1,36 @@
+package com.share.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+import java.io.Serializable;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/24 - 15:08
+ * @description user_demand_project 用户需求项目关联表的实体类
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ToString
+public class UserDemandProject implements Serializable {
+ /**
+ * 需求项目id
+ */
+ private Integer projectId;
+ /**
+ * 发布者用户名
+ */
+ private String username;
+ /**
+ * 发布者电话号码
+ */
+ private String telephone;
+ /**
+ * 项目状态 TODO(待发布状态--0;待审核状态--1)
+ */
+ private Integer status;
+}
diff --git a/share_project/src/main/java/com/share/domain/UserSkillProject.java b/share_project/src/main/java/com/share/domain/UserSkillProject.java
new file mode 100644
index 0000000000000000000000000000000000000000..918ffd2e7ee3889a451ea2b8afd8935c53b270e4
--- /dev/null
+++ b/share_project/src/main/java/com/share/domain/UserSkillProject.java
@@ -0,0 +1,34 @@
+package com.share.domain;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.ToString;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/24 - 15:25
+ * @description user_skill_project 用户技能项目关联表的实体类
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ToString
+public class UserSkillProject {
+ /**
+ * 需求项目id
+ */
+ private Integer projectId;
+ /**
+ * 发布者用户名
+ */
+ private String username;
+ /**
+ * 发布者电话号码
+ */
+ private String telephone;
+ /**
+ * 项目状态 TODO(待发布状态--0;待审核状态--1)
+ */
+ private Integer status;
+}
diff --git a/share_project/src/main/java/com/share/mapper/DemandProjectMapper.java b/share_project/src/main/java/com/share/mapper/DemandProjectMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..020f3e357544e2710f371700c6bdc506dd9d7bae
--- /dev/null
+++ b/share_project/src/main/java/com/share/mapper/DemandProjectMapper.java
@@ -0,0 +1,22 @@
+package com.share.mapper;
+
+import com.share.domain.DemandProject;
+import org.springframework.stereotype.Repository;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/23 - 22:24
+ * @description demand_project--需求项目表接口类
+ */
+@Repository
+public interface DemandProjectMapper {
+
+ /**
+ * 插入需求项目数据
+ * @param demandProject 需求项目表单数据 TODO 用户名如何填写到项目表单中!
+ * @return
+ */
+ int insertDemandProject(DemandProject demandProject);
+
+
+}
diff --git a/share_project/src/main/java/com/share/mapper/SkillProjectMapper.java b/share_project/src/main/java/com/share/mapper/SkillProjectMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..d4b2bfc5d35bd2c64bf45a2fc5ecc60181e7e39e
--- /dev/null
+++ b/share_project/src/main/java/com/share/mapper/SkillProjectMapper.java
@@ -0,0 +1,20 @@
+package com.share.mapper;
+
+import com.share.domain.SkillProject;
+import org.springframework.stereotype.Repository;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/23 - 22:33
+ * @description skill_project--个人技能项目表接口类
+ */
+@Repository
+public interface SkillProjectMapper {
+
+ /**
+ * 插入技能项目数据
+ * @param skillProject 技能项目表单数据 TODO 用户名如何填写到项目表单中!
+ * @return
+ */
+ int insertSkillProject(SkillProject skillProject);
+}
diff --git a/share_project/src/main/java/com/share/mapper/UserDemandProjectMapper.java b/share_project/src/main/java/com/share/mapper/UserDemandProjectMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..ac4089e8515dff87516d68b2debdcf2cfc83d8fd
--- /dev/null
+++ b/share_project/src/main/java/com/share/mapper/UserDemandProjectMapper.java
@@ -0,0 +1,28 @@
+package com.share.mapper;
+
+import com.share.domain.UserDemandProject;
+import org.springframework.stereotype.Repository;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/24 - 15:18
+ * @description user_demand_project 用户需求项目关联表的接口类
+ */
+@Repository
+public interface UserDemandProjectMapper {
+
+ /**
+ * 添加关联 (项目-用户)
+ * @param userDemandProject 关联数据
+ * @return
+ */
+ int addAssociation(UserDemandProject userDemandProject);
+
+ /**
+ * 更新项目状态
+ * @param id 项目id
+ * @param status 状态
+ * @return
+ */
+ int updateStatus(Integer id ,Integer status);
+}
diff --git a/share_project/src/main/java/com/share/mapper/UserSkillProjectMapper.java b/share_project/src/main/java/com/share/mapper/UserSkillProjectMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..048cd7a55dedd8a3143b3e9714872a75542a6d35
--- /dev/null
+++ b/share_project/src/main/java/com/share/mapper/UserSkillProjectMapper.java
@@ -0,0 +1,29 @@
+package com.share.mapper;
+
+import com.share.domain.UserDemandProject;
+import com.share.domain.UserSkillProject;
+import org.springframework.stereotype.Repository;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/24 - 15:18
+ * @description user_skill_project 用户技能项目关联表的接口类
+ */
+@Repository
+public interface UserSkillProjectMapper {
+
+ /**
+ * 添加关联 (项目-用户)
+ * @param userSkillProject 关联数据
+ * @return
+ */
+ int addAssociation(UserSkillProject userSkillProject);
+
+ /**
+ * 更新项目状态
+ * @param id 项目id
+ * @param status 状态
+ * @return
+ */
+ int updateStatus(Integer id ,Integer status);
+}
diff --git a/share_project/src/main/resources/application.yml b/share_project/src/main/resources/application.yml
index fb8464566d3ef865c655a67d8983f6bf666047ca..c7c24558c047e13c964938d869194e08727ab211 100644
--- a/share_project/src/main/resources/application.yml
+++ b/share_project/src/main/resources/application.yml
@@ -13,9 +13,9 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/share_database?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&allowMultiQueries=true
- data-username: root
- data-password: '0803' # 玄学一定要用引号
+ url: jdbc:mysql://112.74.80.172:3306/share_database?serverTimezone=Asia/Shanghai&characterEncoding=UTF-8&allowMultiQueries=true
+ data-username: gduf
+ data-password: '1218' # 玄学一定要用引号
druid:
max-active: 20
initial-size: 5
diff --git a/share_project/src/main/resources/mapper/DemandProjectMapper.xml b/share_project/src/main/resources/mapper/DemandProjectMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1d07d3e6c25af989bb37b506c33e03f78ac3e2be
--- /dev/null
+++ b/share_project/src/main/resources/mapper/DemandProjectMapper.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ insert into demand_project
+ (project_name, project_desc, subsidy, price,
+ address, skill, type,
+ method, publisher, start_time, end_time)
+ VALUE (#{projectName}, #{projectDesc}, #{subsidy}, #{price}, #{address}, #{skill},
+ #{type}, #{method}, #{publisher}, #{startTime}, #{endTime});
+
+
+
\ No newline at end of file
diff --git a/share_project/src/main/resources/mapper/SkillProjectMapper.xml b/share_project/src/main/resources/mapper/SkillProjectMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..7d2d7d8439f0ac696e4ed5aae0adfeb58002a930
--- /dev/null
+++ b/share_project/src/main/resources/mapper/SkillProjectMapper.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ insert into skill_project
+ (project_name, project_desc,
+ address, skill, price, type,
+ method, publisher, start_time, end_time)
+ VALUE (#{projectName}, #{projectDesc}, #{address}, #{skill}, #{price},
+ #{type}, #{method}, #{publisher}, #{startTime}, #{endTime});
+
+
+
\ No newline at end of file
diff --git a/share_project/src/main/resources/mapper/UserDemandProjectMapper.xml b/share_project/src/main/resources/mapper/UserDemandProjectMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..a49efa25b34a7640a0db102abf00974546576354
--- /dev/null
+++ b/share_project/src/main/resources/mapper/UserDemandProjectMapper.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ insert into user_demand_project(project_id, username, telephone, status)
+ VALUE(#{projectId}, #{username}, #{telephone}, #{status});
+
+
+
+
+ update user_demand_project set status = #{status} where project_id = #{id};
+
+
\ No newline at end of file
diff --git a/share_project/src/main/resources/mapper/UserSkillProjectMapper.xml b/share_project/src/main/resources/mapper/UserSkillProjectMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1f942a34dbed197e1227dfa8a4dd0de4ea6e2b62
--- /dev/null
+++ b/share_project/src/main/resources/mapper/UserSkillProjectMapper.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ insert into user_skill_project(project_id, username, telephone, status)
+ VALUE(#{projectId}, #{username}, #{telephone}, #{status});
+
+
+
+
+ update user_skill_project set status = #{status} where project_id = #{id};
+
+
\ No newline at end of file
diff --git a/share_project/src/test/java/com/share/publishTest.java b/share_project/src/test/java/com/share/publishTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..bb394940cc1e43c1463282ecb1ac829ab49f67ce
--- /dev/null
+++ b/share_project/src/test/java/com/share/publishTest.java
@@ -0,0 +1,28 @@
+package com.share;
+
+import com.share.domain.DemandProject;
+import com.share.mapper.DemandProjectMapper;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+
+/**
+ * @author 谢佳豪
+ * @data 2020/11/23 - 23:04
+ * @description
+ */
+@SpringBootTest
+public class publishTest {
+
+ @Autowired
+ private DemandProjectMapper demandProjectMapper;
+
+ @Test
+ void testDomain(){
+ DemandProject demandProject = new DemandProject();
+ demandProject.setId(1);
+ demandProject.setProjectName("招募前端");
+ System.out.println(demandProject);
+ }
+
+}