新增物接入流程
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.njcn.access.service;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
*/
|
||||
public interface IDataArrayService {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.njcn.access.service;
|
||||
|
||||
/**
|
||||
* @author xy
|
||||
*/
|
||||
public interface IDataSetService {
|
||||
|
||||
void add();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.njcn.access.service.serviceImpl;
|
||||
|
||||
import com.njcn.access.service.IDataArrayService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/4/18 11:06
|
||||
*/
|
||||
@Service
|
||||
public class DataArrayServiceImpl implements IDataArrayService {
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.njcn.access.service.serviceImpl;
|
||||
|
||||
import com.njcn.access.service.IDataSetService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 类的介绍:
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/4/18 11:06
|
||||
*/
|
||||
@Service
|
||||
public class DataSetServiceImpl implements IDataSetService {
|
||||
@Override
|
||||
public void add() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import com.njcn.access.utils.JsonUtil;
|
||||
import com.njcn.algorithm.api.DevModelFeignClient;
|
||||
import com.njcn.algorithm.pojo.param.CsDevModelAddParm;
|
||||
import com.njcn.algorithm.pojo.param.CsDevModelQueryListParm;
|
||||
import com.njcn.algorithm.pojo.po.CsDevModelPO;
|
||||
import com.njcn.algorithm.pojo.vo.CsDevModelPageVO;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
@@ -95,12 +96,11 @@ public class DevModelServiceImpl implements IDevModelService {
|
||||
log.info("文件路径为:" + filePath);
|
||||
csDevModelAddParm.setFilePath(filePath);
|
||||
//新增cs_dev_model表数据
|
||||
devModelFeignClient.addDevModel(csDevModelAddParm);
|
||||
CsDevModelPO csDevModelPO = devModelFeignClient.addDevModel(csDevModelAddParm).getData();
|
||||
//新增cs_data_set
|
||||
|
||||
//新增cs_data_array
|
||||
|
||||
|
||||
}
|
||||
} catch (IOException e) {
|
||||
log.error("文件转成json出现异常");
|
||||
@@ -111,4 +111,17 @@ public class DevModelServiceImpl implements IDevModelService {
|
||||
}
|
||||
return HttpResultUtil.assembleResult(CommonResponseEnum.SUCCESS.getCode(), null, CommonResponseEnum.SUCCESS.getMessage());
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增cs_data_set
|
||||
*/
|
||||
public void insertDataSet(List<DataSetDTO> dataSet,String id){
|
||||
dataSet.forEach(item->{
|
||||
DataSetDTO dataSetDTO = new DataSetDTO();
|
||||
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user