All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.weisiliang.formui.FormUiFindOneService Maven / Gradle / Ivy

The newest version!
package com.weisiliang.formui;


import java.lang.reflect.InvocationTargetException;

/**
 * 用于自动生成编辑页面时查询原始数据
 */
public interface FormUiFindOneService {
//    /**
//     * 用于通过名字匹配id,和列表返回
//     * @param productCompanyId
//     * @param title
//     * @return
//     */
//    List findAll(int productCompanyId, String title);

    /**
     * 用于通过id匹配名字
     * 用于tablecell中id转换成文字
     * @param id
     */

//    default T findOne(Integer id){
//        return null;
//    }

    /**
     * 为了避免命名冲突,该用findOneFu代替findOne
     * 同时为了兼容和容易编辑,保留了findOne方法
     * @param id
     * @return Object
     */
    default T findOneFU(Integer id){

        T t= null;

//        T t=this.findOne(id);
//        if(t!=null){
//            return t;
//        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy