package com.jiuqi.mobile.nigo.comeclose.manager.base; import com.jiuqi.mobile.nigo.comeclose.bean.base.KindsOfSupplyAndDemandBean; import com.jiuqi.mobile.nigo.comeclose.exception.NiGoException; import com.jiuqi.mobile.nigo.comeclose.manager.ISimpleManger; import com.jiuqi.mobile.nigo.comeclose.manager.ManagerAnnotation; import com.jiuqi.mobile.nigo.comeclose.manager.master.SelectSupplyAndDemandKey; import com.jiuqi.mobile.nigo.comeclose.portal.PortalAnnotation; import com.jiuqi.mobile.nigo.comeclose.portal.PortalMethodAnnctation; @ManagerAnnotation(implClass = "com.jiuqi.mobile.nigo.biz.base.manager.KindsOfSupplyAndDemandManagerImpl") @PortalAnnotation(implClass = "com.jiuqi.mobile.nigo.biz.base.manager.KindsOfSupplyAndDemandManagerImpl") public interface IKindsOfSupplyAndDemandManager extends ISimpleManger<KindsOfSupplyAndDemandBean> { /** * @Title: findByCode * @Description: TODO(根据农机种类code查询供需种类信息) * @param @param code * @param @return 设定文件 * @return KindsOfSupplyAndDemandBean 返回类型 * @throws */ @PortalMethodAnnctation KindsOfSupplyAndDemandBean findByCode(long code); /** * 创建供需种类 */ @PortalMethodAnnctation void create(KindsOfSupplyAndDemandBean bean) throws NiGoException; /** * @Title: getChildren * @Description: TODO(根据pCode查询供需种类信息) * @param @param code * @param @return 设定文件 * @return KindsOfSupplyAndDemandBean[] 返回类型 * @throws */ @PortalMethodAnnctation KindsOfSupplyAndDemandBean[] getChildren(long code); /** * @Title: getSupplyChildren * @Description: TODO(查询pCode供需种类信息,带分页) * @param @param key * @param @return 设定文件 * @return KindsOfSupplyAndDemandBean[] 返回类型 * @throws */ KindsOfSupplyAndDemandBean[] getSupplyChildren(SelectSupplyAndDemandKey key); /** * @Title: findRootNode * @Description: TODO(获取全部pcode为0的供需种类,供需大类) * @param @return 设定文件 * @return KindsOfSupplyAndDemandBean 返回类型 * @throws */ @PortalMethodAnnctation KindsOfSupplyAndDemandBean findRootNode(); /** * @Title: maxCode * @Description: TODO(根据供需种类的级别,供需种类code。获取相应供需种类最大code) * @param @param level * @param @param code * @param @return 设定文件 * @return String 返回类型 * @throws */ String maxCode(int level,long code) ; /** * 修改供需种类后清除緩存 * @return */ @PortalMethodAnnctation public int update(KindsOfSupplyAndDemandBean bean) throws NiGoException; /** * 刪除供需种类后清除緩存 * @param bean * @return * @throws NiGoException */ @PortalMethodAnnctation public boolean delete(String guid) throws NiGoException; /** * 获取供需种类的总条数 * @param code * @return integer */ int getSupplyTotal(long code); }