• NCC参照开发2


    模板参照设置查询action

    请求:

       http://localhost:3008/nccloud/platform/templet/queryrefinfo.do

    处理action:

      nccloud.web.platform.template.action.QueryRefInfoAction

    查询参照类型设置接口:

      

      nccloud.pubitf.platform.template.IRoleRef.getRefInfos(String md_class_id );

    刷新参照类型设置的缓存:

      RefInfoAccessor.getInstance().refeshCache()

     
     
     
    参照查询框是否走模糊查询

    // refMeta.setFullTxtTabName("ORG_ORGS_V");

     只需要在重写的getRefMeta() 方法里面,不要给refMeta赋这个值就可以;
     
     
    原理:
    nccloud.framework.web.processor.refgrid.NCGridRefDBProcessor.class
    列表参照处理器查询参照pk方法里面:
    queryRefPks(){
    queryRefPks(){
           ...
          //这里会判断,走不走模糊查询的全文搜索
         if (getFulTxtFlg(para)) {
       
         }
           .....
    }      
    
    
    private boolean getFulTxtFlg(RefQueryInfo para) {
    		if ((para.getQueryCondition() != null)
    				&& (!StringUtils.isEmpty((CharSequence) para.getQueryCondition().get("batchQueryByName")))) {
    			return false;
    		}
    		if ((this.refMeta.getFullTxtTabName() != null) && (this.refMeta.getFullTxtTabName().trim().length() > 0)
    				&& (para.getKeyword() != null) && (para.getKeyword().trim().length() > 0)) {
    			if ((para instanceof TreeRefQueryInfo)) {
    				TreeRefQueryInfo par = (TreeRefQueryInfo) para;
    				if ((par.getPid() != null) && (par.getPid().trim().length() > 0)) {
    					return false;
    				}
    			}
    			return true;
    		}
    		return false;
    	}
    }

      



     
     
  • 相关阅读:
    JDK8的JVM内存模型小结
    揭开Service Mesh的神秘面纱
    通过Shell脚本读取properties文件中的参数时遇到 换行符的问题
    NodeJs+Express实现简单的Web增删改查
    SpringBoot之Thymeleaf模板引擎
    面向对象(下)
    内部类
    线程学习oneday
    Python-使用tkinter实现的Django服务进程管理工具
    Python-使用百度文字识别API实现的文字识别工具
  • 原文地址:https://www.cnblogs.com/zhongxiaoze/p/14184342.html
Copyright © 2020-2023  润新知