如何在groovy中用字符串替换$后跟一个单词

时间:2018-04-12 19:07:39

标签: groovy

输入字符串是

import  { Injectable } from '@angular/core';
import { Couchbase } from 'nativescript-couchbase';

Injectable()
export class Database{

    private storage : any;
    private isInstantiated: boolean;

   public constructor(){
       if(!this.isInstantiated){
           this.storage = new Couchbase('myproject');
           this.storage.createView('people','1', (document, emitter)=> {
               emitter.emit(document._id, document);
           });
           this.isInstantiated = true;

       }
   } 
   public getStorage(){
       return this.storage;
   }

}

我需要用groovy中的字符串替换SELECT A.XYZ , CASE WHEN $greatestStart > $aggLocal THEN from_tz(CAST(to_date($greatestStart) AS TIMESTAMP), INTZ.ABC) AT TIME ZONE (:standardtz) ELSE from_tz(cast(to_date($aggStd) as TIMESTAMP), (:standardInstallTimeZone)) AT TIME ZONE (:standardtz) END START_DTTM ...... 。有人能为我提供投入吗?

当我喜欢这个时

$greatestStart

0 个答案:

没有答案
相关问题