package scripts.dict

import cn.lihongjie.coal.common.Ctx
import cn.lihongjie.coal.dictionary.dto.AutoCompleteRequest
import cn.lihongjie.coal.dictionary.service.DictionaryService
import org.springframework.context.ApplicationContext

ApplicationContext ioc = ioc

def service = ioc.getBean(DictionaryService.class)




return service.autoComplete(new AutoCompleteRequest(tableName: "t_coal_washing_daily_analysis_kf_items kf inner join t_coal_washing_daily_analysis a on kf.coal_washing_daily_analysis_id = a.id", fieldName: "kf.name",organizationId: Ctx.currentUser().organizationId, query: params.get("query", null)?.asText()))

