|
|
|
@ -2,6 +2,7 @@ package com.ms.api.spi.move;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.jinritemai.cloud.base.api.BaseRequest;
|
|
|
|
|
import com.jinritemai.cloud.base.api.BaseResponse;
|
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionService;
|
|
|
|
@ -22,13 +23,13 @@ import java.util.HashMap;
|
|
|
|
|
*/
|
|
|
|
|
@ExtensionService("searchChoicenessSourceItem")
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class SearchChoicenessSourceItemService extends SPIBaseService implements ExtensionServiceHandler<SearchChoicenessSourceItemRequestDTO, String> {
|
|
|
|
|
public class SearchChoicenessSourceItemService extends SPIBaseService implements ExtensionServiceHandler<SearchChoicenessSourceItemRequestDTO, JSONObject> {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private DsJsonRequestTemplate dsJsonRequestTemplate;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse<String> handle(BaseRequest<SearchChoicenessSourceItemRequestDTO> req) {
|
|
|
|
|
public BaseResponse<JSONObject> handle(BaseRequest<SearchChoicenessSourceItemRequestDTO> req) {
|
|
|
|
|
initHandle(req);
|
|
|
|
|
// ----参数校验----
|
|
|
|
|
SearchChoicenessSourceItemRequestDTO fields = req.getData();
|
|
|
|
@ -57,6 +58,6 @@ public class SearchChoicenessSourceItemService extends SPIBaseService implements
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ----结果返回----
|
|
|
|
|
return R.ok(res);
|
|
|
|
|
return R.ok(JSON.parseObject(res));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|