Commit ab86d3be authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.添加easy excel配置,增加转换器,增加全局excel导出样式,增加场站下拉选解析器;
2.开发光伏电站模板导出接口,增加模板导出类,并完成接口冒烟测试及接口文档;
3.间开制度管理模块新增设为基础制度开关接口,添加线上接口文档并完成接口冒烟测试;
4.开发井口配置模板导出接口,增加模板导出类,并完成接口冒烟测试及接口文档;
5.开发第三方有功功率历史数据导入接口,增加模板配置类,添加线上接口文档并完成接口冒烟测试;
6.开发给长庆使用的获取第三方认证token接口,验证获取token后是否能正常跳转指定页面,创建长庆用演示用户及角色;
7.开发柴发设备配置模板导出接口,增加模板导出类,并完成接口冒烟测试及接口文档;
8.开发储能设备配置模板导出接口,增加模板导出类,并完成接口冒烟测试及接口文档;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 9ab74bef
package pps.core.base.mapper; package pps.core.base.mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import pps.core.base.entity.BasePhotovoltaicPlantView; import pps.core.base.entity.BasePhotovoltaicPlantView;
...@@ -25,4 +26,12 @@ public interface BasePhotovoltaicPlantViewMapper { ...@@ -25,4 +26,12 @@ public interface BasePhotovoltaicPlantViewMapper {
* @return {@link List}<{@link BasePhotovoltaicPlantView}> * @return {@link List}<{@link BasePhotovoltaicPlantView}>
*/ */
List<BasePhotovoltaicPlantView> selectPlantList(BasePhotovoltaicPlantView view); List<BasePhotovoltaicPlantView> selectPlantList(BasePhotovoltaicPlantView view);
/**
* 批插入列表
*
* @param list 列表
* @return int
*/
int batchInsertList(@Param(value = "list") List<BasePhotovoltaicPlantView> list);
} }
...@@ -13,6 +13,7 @@ import pps.core.base.entity.BasePhotovoltaicPlantEnt; ...@@ -13,6 +13,7 @@ import pps.core.base.entity.BasePhotovoltaicPlantEnt;
import pps.core.base.entity.BasePhotovoltaicPlantView; import pps.core.base.entity.BasePhotovoltaicPlantView;
import pps.core.base.enums.BusinessError; import pps.core.base.enums.BusinessError;
import pps.core.base.mapper.BasePhotovoltaicPlantMapper; import pps.core.base.mapper.BasePhotovoltaicPlantMapper;
import pps.core.base.mapper.BasePhotovoltaicPlantViewMapper;
import pps.core.base.service.data.base_excel.ExcelDieselGeneratorTemplate; import pps.core.base.service.data.base_excel.ExcelDieselGeneratorTemplate;
import pps.core.base.service.data.base_excel.ExcelEnergyStorageDeviceTemplate; import pps.core.base.service.data.base_excel.ExcelEnergyStorageDeviceTemplate;
import pps.core.base.service.data.base_excel.ExcelPhotovoltaicPlantTemplate; import pps.core.base.service.data.base_excel.ExcelPhotovoltaicPlantTemplate;
...@@ -213,8 +214,10 @@ public class ExcelService { ...@@ -213,8 +214,10 @@ public class ExcelService {
rowNum++; rowNum++;
} }
return XTransactionHelper.begin(context, () -> { return XTransactionHelper.begin(context, () -> {
if (CollUtil.isNotEmpty(insertList)) {
BasePhotovoltaicPlantViewMapper viewMapper = context.getBean(BasePhotovoltaicPlantViewMapper.class);
viewMapper.batchInsertList(insertList);
}
if (stringBuilder.length() > 0) { if (stringBuilder.length() > 0) {
return XServiceResult.error(-1, stringBuilder.toString()); return XServiceResult.error(-1, stringBuilder.toString());
} }
......
...@@ -126,4 +126,35 @@ ...@@ -126,4 +126,35 @@
</if> </if>
ORDER BY modify_time DESC ORDER BY modify_time DESC
</select> </select>
<insert id="batchInsertList" parameterType="list">
INSERT INTO base_photovoltaic_plant (is_deleted, create_by_id, create_by_name, create_time, modify_by_id,
modify_by_name, modify_time, ou_id, ou_name, station_name, maker_number, photovoltaic_model_name,
mounting_angle, total_power, array_orientation, longitude, latitude, elevation,
area_code)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.isDeleted},
#{item.createById},
#{item.createByName},
#{item.createTime},
#{item.modifyById},
#{item.modifyByName},
#{item.modifyTime},
#{item.ouId},
#{item.ouName},
#{item.stationName},
#{item.makerNumber},
#{item.photovoltaicModelName},
#{item.mountingAngle},
#{item.totalPower},
#{item.arrayOrientation},
#{item.longitude},
#{item.latitude},
#{item.elevation},
#{item.areaCode}
)
</foreach>
</insert>
</mapper> </mapper>
\ No newline at end of file
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