src/com/business/StorageBusiness.java

(完整代码) 1KB

package com.business;
import java.util.List;
import com.dao.StorageDAO;
import com.entity.StorageEntity;
public class StorageBusiness {
/** Spring IOC DAO 注入 Business * */
private StorageDAO storageDAO;
public StorageDAO getStorageDAO() { return storageDAO; }
public void setStorageDAO(StorageDAO storageDAO) { this.storageDAO = storageDAO; }
/** save * */
public void save(StorageEntity storage) {this.storageDAO.save(storage);}
/** update * */
public void update(StorageEntity storage) {this.storageDAO.update(storage);}
/** delete * */
public void delete(StorageEntity storage) {this.storageDAO.delete(storage);}
/** show * */
public List<StorageEntity> show() {return storageDAO.show();}
/** check * */
public List<StorageEntity> checkEquipmentid(String name) {return this.storageDAO.queryByEquipmentid(name);}
/** check * */
public List<StorageEntity> checkNum(String name) {return this.storageDAO.queryByNum(name);}
/** check * */
public List<StorageEntity> checkByLikeEquipmentid(String name) {return this.storageDAO.queryLikeByEquipmentid(name);}
/** check * */
public List<StorageEntity> checkByLikeNum(String name) {return this.storageDAO.queryLikeByNum(name);}
/** checkId * */
public StorageEntity checkId(String id) {return this.storageDAO.queryById(id);}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。