Commit 426330b7 by guojx

数据通用接口&指标

parent f407fb7e
......@@ -11,13 +11,13 @@ import com.gic.haoban.manage.web.qo.data.DataIndexExplainVO;
import com.gic.haoban.manage.web.qo.data.DataIndexQO;
import com.gic.haoban.manage.web.qo.data.HandleQO;
import com.gic.haoban.manage.web.utils.StoreAuthUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.ArrayList;
import java.util.List;
......@@ -29,9 +29,8 @@ import java.util.stream.Collectors;
* @Author guojx
* @Date 2023/11/14 10:56
*/
@RestController
@Controller
@RequestMapping("data")
@Slf4j
public class DataController {
@Autowired
private StoreAuthUtils storeAuthUtils;
......@@ -45,6 +44,7 @@ public class DataController {
* @return
*/
@RequestMapping(value = "handle")
@ResponseBody
public RestResponse handle(@RequestBody HandleQO qo) {
String params = qo.getParams();
JSONObject jsonObject = JSONObject.parseObject(params);
......@@ -75,6 +75,7 @@ public class DataController {
* @return
*/
@RequestMapping("list-data-index-explain")
@ResponseBody
public RestResponse<List<DataIndexExplainVO>> listDataIndexExplain() {
List<DataIndexExplainDTO> list = dataIndexApiService.listDataIndexExplain();
return RestResponse.successResult(EntityUtil.changeEntityListNew(DataIndexExplainVO.class, list));
......@@ -86,6 +87,7 @@ public class DataController {
* @return
*/
@RequestMapping("evaluate-data-index")
@ResponseBody
public RestResponse saveDataIndexEvaluate(@RequestBody DataIndexQO qo) {
DataIndexEvaluateLogDTO log = EntityUtil.changeEntityNew(DataIndexEvaluateLogDTO.class, qo);
log.setAccountId(qo.getClerkId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment