2 Commits 59616931e7 ... dd698d6139

Author SHA1 Message Date
  gydx_2024_lyh dd698d6139 Merge remote-tracking branch 'origin/master' 2 months ago
  gydx_2024_lyh 843cb3ba3d lyh 2 months ago

+ 5 - 0
src/main/java/com/gydx/controller/ManagerUserController.java

@@ -49,4 +49,9 @@ public class ManagerUserController {
         manageUserService.addUser(vo);
         return 1;
     }
+
+    @RequestMapping("queryRootlyh")
+    public List queryRootlyh(ManagerUserVO vo) {
+        return manageUserService.queryRootlyh(vo);
+    }
 }

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

@@ -24,6 +24,11 @@ public class VendorManagementController {
         vendorManagementService.addSupplier(foodSupplierVO);
     }
 
+    @RequestMapping("/queryLoginlyh")
+    public List queryLoginlyh(FoodSupplierVO foodSupplierVO) {
+        return vendorManagementService.queryLoginlyh(foodSupplierVO);
+    }
+
     @RequestMapping("/deleteSupplier")
     public void deleteSupplier(FoodSupplierVO foodSupplierVO) {
         vendorManagementService.deleteSupplier(foodSupplierVO);

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

@@ -11,4 +11,6 @@ public interface ManagerUserMapper {
     public ManagerUserVO queryUser(String username);
 
     public int addUser(ManagerUserVO vo);
+
+     public List queryRootlyh(ManagerUserVO vo);
 }

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

@@ -17,4 +17,5 @@ public interface VendorManagementMapper {
 
     public List querySupplier(FoodSupplierVO foodSupplierVO);
 
+    public List queryLoginlyh(FoodSupplierVO foodSupplierVO);
 }

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

@@ -8,4 +8,6 @@ public interface ManageUserService {
     ManagerUserVO queryUser(String username);
 
     int addUser(ManagerUserVO vo);
+
+    List queryRootlyh(ManagerUserVO vo);
 }

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

@@ -12,4 +12,6 @@ public interface VendorManagementService {
     public void updateSupplier(FoodSupplierVO foodSupplierVO);
     public void deleteSupplier(FoodSupplierVO foodSupplierVO);
     public List querySupplier(FoodSupplierVO foodSupplierVO);
+
+    public List queryLoginlyh(FoodSupplierVO foodSupplierVO);
 }

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

@@ -22,6 +22,11 @@ public class ManagerUserImpl implements ManageUserService {
     }
 
     @Override
+    public List queryRootlyh(ManagerUserVO vo) {
+        return managerUserMapper.queryRootlyh(vo);
+    }
+
+    @Override
     public int addUser(ManagerUserVO vo) {
         managerUserMapper.addUser(vo);
         return 0;

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

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

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

@@ -9,6 +9,9 @@
     <select id="queryUser" parameterMap="pm" resultMap="rm">
         select ManagerAcc,ManagerPass from ManageUser where ManagerAcc = #{ManagerAcc}
     </select>
+    <select id="queryRootlyh" parameterMap="pm" resultMap="rm">
+        select * from ManageUser where ManagerAcc = #{ManagerAcc} and ManagerPass = #{ManagerPass}
+    </select>
 
     <insert id="addUser" parameterMap="pm">
         insert into ManageUser (ManagerAcc,ManagerPass) values (#{ManagerAcc},#{ManagerPass})

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

@@ -27,4 +27,7 @@
     <select id="querySupplier" resultMap="rmlyh" parameterMap="pmlyh">
         select item.FoodSupplierName,item.FoodSupplierLink,item.FoodSupplierStatus,item.FoodSupplierID from FoodSupplier item
     </select>
+    <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>
 </mapper>