mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
20 lines
534 B
Groovy
20 lines
534 B
Groovy
|
|
package scripts.dict
|
|
|
|
import cn.lihongjie.coal.base.dto.CommonQuery
|
|
import cn.lihongjie.coal.organizationInfo.controller.OrganizationInfoController
|
|
import com.fasterxml.jackson.databind.ObjectMapper
|
|
import org.springframework.context.ApplicationContext
|
|
|
|
ApplicationContext ioc = ioc
|
|
|
|
def controller = ioc.getBean(OrganizationInfoController.class)
|
|
def objectMapper = ioc.getBean(ObjectMapper.class) as ObjectMapper
|
|
|
|
|
|
|
|
|
|
return controller.list(params!=null ? objectMapper.convertValue(params, CommonQuery.class ) : new CommonQuery())
|
|
|
|
|