feat: 货架查询支持参数

This commit is contained in:
2024-11-19 22:50:33 +08:00
parent 1d110285b5
commit eff1224640

View File

@@ -3,15 +3,16 @@ package scripts.dict
import cn.lihongjie.coal.base.dto.CommonQuery
import cn.lihongjie.coal.warehouseShelve.controller.WarehouseShelveController
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.context.ApplicationContext
ApplicationContext ioc = ioc
def controller = ioc.getBean(WarehouseShelveController.class)
def objectMapper = ioc.getBean(ObjectMapper.class) as ObjectMapper
return controller.list(new CommonQuery())
return controller.list(params!=null ? objectMapper.convertValue(params, CommonQuery.class ) : new CommonQuery())