Browse Source

添加切换数据库

523096025 4 years ago
parent
commit
f52f429a9a

+ 1 - 2
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/IndexProductionGroup2Controller.java

@@ -9,8 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 @RestController
-@CrossOrigin
-@RequestMapping("/IndexProductionGroup2")
+@RequestMapping("/indexProductionGroup2")
 public class IndexProductionGroup2Controller {
 
 	@Autowired

+ 1 - 2
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/IndexVariety2Controller.java

@@ -9,8 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 @RestController
-@CrossOrigin
-@RequestMapping("/IndexVariety2")
+@RequestMapping("/indexVariety2")
 public class IndexVariety2Controller {
 
 	@Autowired

+ 0 - 1
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/controller/IndexVarietyController.java

@@ -9,7 +9,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 @RestController
-@CrossOrigin
 @RequestMapping("/indexVariety")
 public class IndexVarietyController {
 

+ 9 - 6
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/domain/IndexProductionGroup2.java

@@ -15,13 +15,16 @@ public class IndexProductionGroup2 implements Serializable {
 	@Column(name = "id")
 	private Integer id;
 
-	@Column(name = "variety")
-	private String variety;
+	@Column(name = "veriety")
+	private String veriety;
 
-	@Column(name = "frequency")
-	private String frequency;
+	@Column(name = "re_estrus")
+	private String reEstrus;
 
-	@Column(name = "production_type")
-	private String productionType;
+	@Column(name = "parturition")
+	private String parturition;
+
+	@Column(name = "mate_quantity")
+	private String mateQuantity;
 
 }

+ 1 - 1
huimv-ql-farm/huimv-ql-production/src/main/java/com/huimv/production/service/IndexProductionGroup2Service.java

@@ -22,5 +22,5 @@ public interface IndexProductionGroup2Service {
    Result findAllById(Integer id);
 
     //查询
-   Result findAllFrom(String name, Integer pageNum, Integer pageSize);
+//   Result findAllFrom(String name, Integer pageNum, Integer pageSize);
 }