|
@@ -1,15 +1,15 @@
|
|
|
package com.xzl.system.service.impl;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import com.alibaba.fastjson2.JSON;
|
|
|
+import com.xzl.system.domain.RptDataConfig;
|
|
|
+import com.xzl.system.mapper.RptDataConfigMapper;
|
|
|
+import com.xzl.system.service.IRptDataConfigService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import com.xzl.system.mapper.RptDataConfigMapper;
|
|
|
-import com.xzl.system.domain.RptDataConfig;
|
|
|
-import com.xzl.system.service.IRptDataConfigService;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* 【请填写功能名称】Service业务层处理
|
|
@@ -19,6 +19,7 @@ import com.xzl.system.service.IRptDataConfigService;
|
|
|
*/
|
|
|
@Service
|
|
|
public class RptDataConfigServiceImpl implements IRptDataConfigService {
|
|
|
+
|
|
|
private static final Logger log = LoggerFactory.getLogger(RptDataConfigServiceImpl.class);
|
|
|
@Autowired
|
|
|
private RptDataConfigMapper rptDataConfigMapper;
|
|
@@ -97,15 +98,17 @@ public class RptDataConfigServiceImpl implements IRptDataConfigService {
|
|
|
*/
|
|
|
@Override
|
|
|
public List<RptDataConfig> saveList(List<RptDataConfig> rptDataConfigList) {
|
|
|
+ List<RptDataConfig> rs = new ArrayList<>();
|
|
|
if (rptDataConfigList != null) {
|
|
|
rptDataConfigList.forEach(o -> {
|
|
|
- //TODO 测试代码
|
|
|
- o.setReportName(o.getReportDataValue());
|
|
|
- o.setReportDataValue(null);
|
|
|
- rptDataConfigMapper.updateRptDataConfig(o);
|
|
|
+ RptDataConfig t = new RptDataConfig();
|
|
|
+ t.setId(o.getId());
|
|
|
+ t.setReportDataValue(o.getReportDataValue());
|
|
|
+ rptDataConfigMapper.updateRptDataConfig(t);
|
|
|
+ rs.add(t);
|
|
|
});
|
|
|
}
|
|
|
- return rptDataConfigList;
|
|
|
+ return rs;
|
|
|
}
|
|
|
|
|
|
@Override
|