Shanks 7 jaren geleden
bovenliggende
commit
a71209b2a7

+ 2 - 2
src/main/java/com/ygj/yuemum/controller/maternitymatron/MmInfoResumeController.java

@@ -32,6 +32,6 @@ public class MmInfoResumeController {
     @PostMapping("/updateMmInfoResume")
     public int update(@ModelAttribute MmInfoResume mmInfoResume) { return mmInfoResumeService.updateMmInfoResume(mmInfoResume);}
 
-    @GetMapping("/getMmInfoResume/{id}")
-    public MmInfoResume getOne(@PathVariable("id") Integer id) {return  mmInfoResumeService.getMmInfoResume(id);}
+    @GetMapping("/getMmInfoResume")
+    public MmInfoResume getMmInfoResume(@RequestParam("id") Integer id) {return  mmInfoResumeService.getMmInfoResume(id);}
 }

+ 21 - 17
src/main/java/com/ygj/yuemum/domain/maternitymatron/MmInfoResume.java

@@ -4,12 +4,10 @@ public class MmInfoResume {
 
     private Integer id;
     private Integer servant_code;
-    private Integer resume_code;
+    private Integer module_code;
     private String resume_path;
-
-    public MmInfoResume() {
-        super();
-    }
+    private String rqcode_path;
+    private String resume_comment;
 
     public Integer getId() {
         return id;
@@ -27,12 +25,12 @@ public class MmInfoResume {
         this.servant_code = servant_code;
     }
 
-    public Integer getResume_code() {
-        return resume_code;
+    public Integer getModule_code() {
+        return module_code;
     }
 
-    public void setResume_code(Integer resume_code) {
-        this.resume_code = resume_code;
+    public void setModule_code(Integer module_code) {
+        this.module_code = module_code;
     }
 
     public String getResume_path() {
@@ -43,13 +41,19 @@ public class MmInfoResume {
         this.resume_path = resume_path;
     }
 
-    @Override
-    public String toString() {
-        return "MmInfoResume{" +
-                "id=" + id +
-                ", servant_code='" + servant_code + '\'' +
-                ", resume_code='" + resume_code + '\'' +
-                ", resume_path='" + resume_path + '\'' +
-                '}';
+    public String getRqcode_path() {
+        return rqcode_path;
+    }
+
+    public void setRqcode_path(String rqcode_path) {
+        this.rqcode_path = rqcode_path;
+    }
+
+    public String getResume_comment() {
+        return resume_comment;
+    }
+
+    public void setResume_comment(String resume_comment) {
+        this.resume_comment = resume_comment;
     }
 }

+ 14 - 3
src/main/resources/mybatis/mapper/maternitymatron/MmInfoResumeMapper.xml

@@ -7,10 +7,12 @@
         <result column="servant_code" property="servant_code" jdbcType="INTEGER" />
         <result column="resume_code" property="resume_code" jdbcType="INTEGER" />
         <result column="resume_path" property="resume_path" jdbcType="VARCHAR" />
+        <result column="rqcode_path" property="rqcode_path" jdbcType="VARCHAR" />
+        <result column="resume_comment" property="resume_comment" jdbcType="VARCHAR" />
     </resultMap>
 
     <sql id="Base_Column_List" >
-        id, servant_code, resume_code,resume_path
+        id, servant_code, module_code,resume_path,rqcode_path,resume_comment
     </sql>
 
     <!-- 得到所有的简历信息 -->
@@ -44,7 +46,10 @@
                 resume_code,
             </if>
             <if test="resume_path != null" >
-                resume_path
+                resume_path,
+            </if>
+            <if test="rqcode_path != null" >
+                rqcode_path
             </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides="," >
@@ -55,7 +60,10 @@
                 #{resume_code,jdbcType=INTEGER},
             </if>
             <if test="resume_path != null" >
-                #{resume_path,jdbcType=VARCHAR}
+                #{resume_path,jdbcType=VARCHAR},
+            </if>
+            <if test="rqcode_path != null" >
+                #{rqcode_path,jdbcType=VARCHAR}
             </if>
         </trim>
     </insert>
@@ -73,6 +81,9 @@
             <if test="resume_path != null" >
                 resume_path = #{resume_path,jdbcType=VARCHAR}
             </if>
+            <if test="rqcode_path != null" >
+                rqcode_path = #{rqcode_path,jdbcType=VARCHAR}
+            </if>
         </set>
         where id = #{id,jdbcType=INTEGER}
     </update>