{{#if logicNodeModel.pSDELogicNode.pSDELogicNodeParams}}
    Map param =new HashMap();
    {{#each logicNodeModel.pSDELogicNode.pSDELogicNodeParams as |nodeParam|}}
        {{#if (eq nodeParam.srcValueType "SRCDLPARAM")}}
    param.put("param{{@index}}",param_{{lowerCase nodeParam.srcPSDELogicParam.codeName}}.get("{{lowerCase nodeParam.srcFieldName}}"));
        {{/if}}
        {{#if (eq nodeParam.srcValueType "WEBCONTEXT")}}
    param.put("param{{@index}}",default.get("{{lowerCase nodeParam.srcFieldName}}"));
        {{/if}}
        {{#if (eq nodeParam.srcValueType "APPDATA")}}
        {{/if}}
        {{#if (eq nodeParam.srcValueType "APPLICATION")}}
        {{/if}}
        {{#if (eq nodeParam.srcValueType "SESSION")}}
    param.put("param{{@index}}",curuser.getSessionParams().get("{{lowerCase nodeParam.srcFieldName}}"));
        {{/if}}
        {{#if (eq nodeParam.srcValueType "DATACONTEXT")}}
    param.put("param{{@index}}",default.get("{{lowerCase nodeParam.srcFieldName}}"));
        {{/if}}
        {{#if (eq nodeParam.srcValueType "ENVPARAM")}}
        {{/if}}
        {{#if (eq nodeParam.srcValueType "VIEWPARAM")}}
        {{/if}}
        {{#if (eq nodeParam.srcValueType "NONE")}}
        {{/if}}
        {{#if (eq nodeParam.srcValueType "NULLVALUE")}}
        {{/if}}
        {{#if (eq nodeParam.srcValueType "SRCVALUE")}}
    param.put("param{{@index}}",default.get("{{lowerCase nodeParam.srcValue}}"));
        {{/if}}
    {{/each}}
{{else}}
    Map param = null;
{{/if}}
    String strSql="{{logicNodeModel.rawSql}}";
    java.util.List<JSONObject> entities=iBzSys{{logicNodeModel.logicModel.entity.codeName}}DefaultService.select(strSql,param);//SQL调用
    if(entities.size()>0 && !ObjectUtils.isEmpty(entities.get(0))){
        for(JSONObject entity:entities){
            {{packageName}}.core.{{lowerCase logicNodeModel.pSDELogicNode.dstPSDataEntity.pSSystemModule.codeName}}.domain.{{logicNodeModel.pSDELogicNode.dstPSDataEntity.codeName}} targetEntity =new {{packageName}}.core.{{lowerCase logicNodeModel.pSDELogicNode.dstPSDataEntity.pSSystemModule.codeName}}.domain.{{logicNodeModel.pSDELogicNode.dstPSDataEntity.codeName}}();
            for (Map.Entry<String,Object> entry : entity.entrySet()) {
                targetEntity.set(entry.getKey(),entry.getValue());
            }
            {{lowerCase logicNodeModel.pSDELogicNode.dstPSDataEntity.codeName}}service.${logicNodeModel.pSDELogicNode.dstPSDEAction}(targetEntity);
        }
    }