|
@@ -1,6 +1,7 @@
|
|
|
package com.sundata.internalevaluation.configuration.service;
|
|
|
|
|
|
import com.sundata.common.exception.BusinessException;
|
|
|
+import com.sundata.common.util.JsonUtil;
|
|
|
import com.sundata.internalevaluation.configuration.controller.DataSetConfigAction;
|
|
|
import com.sundata.internalevaluation.configuration.mapper.DataSetConfigMapper;
|
|
|
import com.sundata.internalevaluation.configuration.model.DataSetConfigModel;
|
|
@@ -28,6 +29,8 @@ public class DataSetConfigService {
|
|
|
* @throws:
|
|
|
*/
|
|
|
public List<DataSetConfigModel> getDataList(DataSetConfigModel model) {
|
|
|
+ String dataSourceNo = JsonUtil.toJSONString(model.getDataSourcesNos());
|
|
|
+ model.setDataSetNo(dataSourceNo);
|
|
|
return dataSetConfigMapper.getDataList(model);
|
|
|
}
|
|
|
|
|
@@ -40,6 +43,8 @@ public class DataSetConfigService {
|
|
|
* @throws:
|
|
|
*/
|
|
|
public void createData(DataSetConfigModel model) {
|
|
|
+ String dataSourceNo = JsonUtil.toJSONString(model.getDataSourcesNos());
|
|
|
+ model.setDataSetNo(dataSourceNo);
|
|
|
dataSetConfigMapper.createData(model);
|
|
|
}
|
|
|
|
|
@@ -64,6 +69,8 @@ public class DataSetConfigService {
|
|
|
* @throws:
|
|
|
*/
|
|
|
public void updateExistData(DataSetConfigModel model) {
|
|
|
+ String dataSourceNo = JsonUtil.toJSONString(model.getDataSourcesNos());
|
|
|
+ model.setDataSetNo(dataSourceNo);
|
|
|
dataSetConfigMapper.updateExistData(model);
|
|
|
}
|
|
|
|
|
@@ -76,6 +83,8 @@ public class DataSetConfigService {
|
|
|
* @throws:
|
|
|
*/
|
|
|
public DataSetConfigModel selectDetailData(DataSetConfigModel model) {
|
|
|
+ DataSetConfigModel configModel = dataSetConfigMapper.selectDetailData(model);
|
|
|
+ model.setDataSourcesNos(JsonUtil.jsonToList(configModel.getDataSetNo()));
|
|
|
return dataSetConfigMapper.selectDetailData(model);
|
|
|
}
|
|
|
}
|