Reiskuchen 5 éve
szülő
commit
b5a1b62407

+ 1 - 0
.idea/misc.xml

@@ -17,4 +17,5 @@
       </profile-state>
     </entry>
   </component>
+  <component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
 </project>

+ 2 - 0
fhKeeper/formulahousekeeper/.gitignore

@@ -21,3 +21,5 @@ gen
 out
 gen
 /.idea/modules.xml
+
+target/

+ 2 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/UserController.java

@@ -4,6 +4,7 @@ package com.management.platform.controller;
 import com.management.platform.service.UserService;
 import com.management.platform.util.HttpRespMsg;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 
 import org.springframework.web.bind.annotation.RequestParam;
@@ -31,7 +32,7 @@ public class UserController {
      * @return
      */
     @RequestMapping("/login")
-    public HttpRespMsg login(@RequestParam String username, @RequestParam String password){
+    public HttpRespMsg login(@RequestBody String username, @RequestBody String password){
         return userService.login(username, password);
     }
 }

+ 3 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/entity/Report.java

@@ -1,5 +1,6 @@
 package com.management.platform.entity;
 
+import com.baomidou.mybatisplus.annotation.FieldStrategy;
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.extension.activerecord.Model;
 import java.time.LocalDate;
@@ -42,7 +43,7 @@ public class Report extends Model<Report> {
      * 报告种类 0-日报 1-月报
      */
     @TableField("report_type")
-    private Boolean reportType;
+    private Integer reportType;
 
     /**
      * 日期
@@ -53,7 +54,7 @@ public class Report extends Model<Report> {
     /**
      * 报告内容
      */
-    @TableField("content")
+    @TableField(value = "content", updateStrategy = FieldStrategy.IGNORED)
     private String content;
 
     /**

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/util/CodeGenerator.java

@@ -204,7 +204,7 @@ public class CodeGenerator {
         //若想要生成的实体类继承某个Controller,则可打开下面注释。写上需要继承的Controller的位置即可
 //        strategy.setSuperControllerClass("com.baomidou.ant.common.BaseController");
         //此处user是表名,多个英文逗号分割
-        strategy.setInclude("screenshot");
+        strategy.setInclude("report");
 //        strategy.setExclude();//数据库表全生成
 //        strategy.setInclude(scanner("user").split(","));//表名,多个英文逗号分割
         strategy.setControllerMappingHyphenStyle(true);