Bladeren bron

上传文件至 'Shop/src/cn/dao'

1801010538 5 jaren geleden
bovenliggende
commit
e1980d5d7f
4 gewijzigde bestanden met toevoegingen van 49 en 0 verwijderingen
  1. 10 0
      Shop/src/cn/dao/AgentDao.java
  2. 14 0
      Shop/src/cn/dao/CompanyDao.java
  3. 11 0
      Shop/src/cn/dao/OrderDao.java
  4. 14 0
      Shop/src/cn/dao/ProductDao.java

+ 10 - 0
Shop/src/cn/dao/AgentDao.java

@@ -0,0 +1,10 @@
+package cn.dao;
+
+import cn.domain.Agent;
+import cn.domain.Order;
+
+public interface AgentDao {
+    public Agent login(String name, String password)throws Exception;
+    public void register(Agent agent)throws Exception;
+    public Agent findByMid(String mid)throws Exception;
+}

+ 14 - 0
Shop/src/cn/dao/CompanyDao.java

@@ -0,0 +1,14 @@
+package cn.dao;
+
+import cn.domain.Company;
+
+import java.util.List;
+
+public interface CompanyDao {
+    public void register(Company company) throws Exception;
+    public List<Company> companyInfomation()throws Exception;
+    public List<Company> pendingMatters()throws Exception;
+    public void pass(String mid)throws Exception;
+    public List<Company> findCompany()throws Exception;
+
+}

+ 11 - 0
Shop/src/cn/dao/OrderDao.java

@@ -0,0 +1,11 @@
+package cn.dao;
+
+import cn.domain.Order;
+
+import java.util.List;
+
+public interface OrderDao {
+    void saveOrder(Order order)throws Exception;
+    public List<Order> findBySaler(String saler)throws Exception;
+    public List<Order> findByBuyer(String buyer)throws Exception;
+}

+ 14 - 0
Shop/src/cn/dao/ProductDao.java

@@ -0,0 +1,14 @@
+package cn.dao;
+
+import cn.domain.Product;
+
+import java.util.List;
+
+public interface ProductDao {
+    public List<Product> findProduct()throws Exception;
+    public Product findProductById(String mid)throws Exception;
+    public List<Product> findProductByScompany(String scompany)throws Exception;
+    public void addProduct(Product product)throws Exception;
+    public void deleteProduct(String mid)throws Exception;
+    public void updateProduct(Product product)throws Exception;
+}