gydx_2024_lyh 2 months ago
parent
commit
ab188b1814

+ 4 - 0
src/main/java/com/gydx/controller/RuleManagementController.java

@@ -37,6 +37,10 @@ public class RuleManagementController {
     public List queryRule(FoodRuleVO foodRuleVO){
         return ruleManagementService.queryRule(foodRuleVO);
     }
+    @RequestMapping("/queryRulenum")
+    public List queryRulenum(FoodRuleVO foodRuleVO){
+        return ruleManagementService.queryRulenum(foodRuleVO);
+    }
 
     @RequestMapping("/queryRuleByID")
     public List queryRuleByID(FoodRuleVO foodRuleVO){

+ 4 - 0
src/main/java/com/gydx/controller/VendorManagementController.java

@@ -43,4 +43,8 @@ public class VendorManagementController {
     public List querySupplier(FoodSupplierVO foodSupplierVO){
         return vendorManagementService.querySupplier(foodSupplierVO);
     }
+    @RequestMapping("/querypeoplenum")
+    public List querypeoplenum(FoodSupplierVO foodSupplierVO){
+        return vendorManagementService.querypeoplenum(foodSupplierVO);
+    }
 }

+ 2 - 0
src/main/java/com/gydx/mapper/RuleManagementMapper.java

@@ -19,4 +19,6 @@ public interface RuleManagementMapper {
     List queryRule(FoodRuleVO foodRuleVO);
 
     List queryRuleByID(FoodRuleVO foodRuleVO);
+
+    List queryRulenum(FoodRuleVO foodRuleVO);
 }

+ 2 - 0
src/main/java/com/gydx/mapper/VendorManagementMapper.java

@@ -18,4 +18,6 @@ public interface VendorManagementMapper {
     public List querySupplier(FoodSupplierVO foodSupplierVO);
 
     public List queryLoginlyh(FoodSupplierVO foodSupplierVO);
+
+    List querypeoplenum(FoodSupplierVO foodSupplierVO);
 }

+ 2 - 0
src/main/java/com/gydx/service/RuleManagementService.java

@@ -15,4 +15,6 @@ public interface RuleManagementService {
     public List queryRule(FoodRuleVO foodRuleVO);
 
     List queryRuleByID(FoodRuleVO foodRuleVO);
+
+    List queryRulenum(FoodRuleVO foodRuleVO);
 }

+ 2 - 0
src/main/java/com/gydx/service/VendorManagementService.java

@@ -14,4 +14,6 @@ public interface VendorManagementService {
     public List querySupplier(FoodSupplierVO foodSupplierVO);
 
     public List queryLoginlyh(FoodSupplierVO foodSupplierVO);
+
+    List querypeoplenum(FoodSupplierVO foodSupplierVO);
 }

+ 4 - 0
src/main/java/com/gydx/service/impl/RuleManagementServiceImpl.java

@@ -34,6 +34,10 @@ public class RuleManagementServiceImpl implements RuleManagementService {
     public List queryRule(FoodRuleVO foodRuleVO) {
         return ruleManagementMapper.queryRule(foodRuleVO);
     }
+    @Override
+    public List queryRulenum(FoodRuleVO foodRuleVO) {
+        return ruleManagementMapper.queryRulenum(foodRuleVO);
+    }
 
     @Override
     public List queryRuleByID(FoodRuleVO foodRuleVO) {

+ 5 - 0
src/main/java/com/gydx/service/impl/VendorManagementServiceImpl.java

@@ -39,4 +39,9 @@ public class VendorManagementServiceImpl implements VendorManagementService {
     public List queryLoginlyh(FoodSupplierVO foodSupplierVO){
         return vendorManagementMapper.queryLoginlyh(foodSupplierVO);
     }
+
+    @Override
+    public List querypeoplenum(FoodSupplierVO foodSupplierVO) {
+        return vendorManagementMapper.querypeoplenum(foodSupplierVO);
+    }
 }

+ 1 - 0
src/main/java/com/gydx/vo/FoodRuleVO.java

@@ -10,6 +10,7 @@ public class FoodRuleVO {
     private Integer TotalRounds;//轮次数
     private Integer RoundsTime;//每次轮次时间
     private Integer RoundSpacingTime;//间隔时长
+    private Integer totalDataCount;//每轮数量
 
 
 

+ 1 - 0
src/main/java/com/gydx/vo/FoodSupplierVO.java

@@ -13,5 +13,6 @@ public class FoodSupplierVO {
     private String FoodSupplierPass;
     private String FoodSupplierLocationlatitude;
     private String FoodSupplierLocationlongitude;
+    private Integer totalDataCount;//每轮数量
 
 }

+ 3 - 0
src/main/resources/mapper/RuleManagementMapper.xml

@@ -34,4 +34,7 @@
         select * from FoodRule where FoodRuleID = #{FoodRuleID}
 
     </select>
+    <select id="queryRulenum" resultMap="rulerm">
+        select count(*) as totalDataCount from FoodRule
+    </select>
 </mapper>

+ 3 - 0
src/main/resources/mapper/VendorManagementMapper.xml

@@ -46,4 +46,7 @@
     <select id="queryLoginlyh" resultMap="rmlyh" parameterMap="pmlyh">
         select item.FoodSupplierName,item.FoodSupplierLink,item.FoodSupplierStatus,item.FoodSupplierID from FoodSupplier item where item.FoodSupplierLink = #{FoodSupplierLink} and item.FoodSupplierPass = #{FoodSupplierPass}
     </select>
+    <select id="querypeoplenum" resultType="java.util.List">
+        select count(*) as totalDataCount from FoodSupplier
+    </select>
 </mapper>