Commit a35cd9c4 authored by ZWT's avatar ZWT

feat(零碳): 长庆

1.修改极短期间开预测定时任务逻辑,解决优化后部分优化结果时间段过短问题;
2.修改心知天气气象数据获取及接收定时任务,解决天气数据通过邮件下载后,部分数据精度丢失问题;
3.修改首页各个接口逻辑,对小数类型字段进行处理,修改首页接口,增加小时保留两位四舍五入逻辑,同时解决线路详情接口部分查询逻辑报错问题;
4.能耗分析模块,能耗概览接口修改,修改查询逻辑,修改数据获取逻辑及绿电占比计算逻辑;
5.能耗分析模块,消纳曲线用电趋势接口修改,修改查询逻辑,修改数据获取逻辑及绿电占比计算逻辑;
6.能耗分析模块,用电详情接口修改,修改查询逻辑,修改数据获取逻辑及绿电占比计算逻辑;
7.修改首页先导实验井间开制度模块接口查询逻辑,解决极短期间开优化修改后没有第一次开井时间标识导致数据查询不出来问题;
8.基础间开制度新增修改接口逻辑修改,删除防冻堵对井口处理逻辑;
9.极短期间开优化算法修改,增加防冻堵井开井时间优化逻辑;
10.提供长庆通过日期获取当日间开优化结果接口开发,完成接口冒烟测试并添加线上接口文档;
11.提供长庆1天光伏出力预测结果接口开发,完成接口冒烟测试并添加线上接口文档;
12.提供长庆15天光伏出力预测结果接口开发,完成接口冒烟测试并添加线上接口文档;
13.修改极短期间开优化算法,优化防冻堵策略;
14.开发第三方历史天气导入功能;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent dd5481fb
...@@ -49,7 +49,6 @@ import java.util.stream.Collectors; ...@@ -49,7 +49,6 @@ import java.util.stream.Collectors;
@XService @XService
public class SysUserService { public class SysUserService {
@XText("查询用户列表") @XText("查询用户列表")
@XApiPost @XApiPost
public XPageResult<QuerySysUserViewOutput> selectSysUserViewPage(XContext context, QuerySysUserViewInput input) { public XPageResult<QuerySysUserViewOutput> selectSysUserViewPage(XContext context, QuerySysUserViewInput input) {
...@@ -57,7 +56,7 @@ public class SysUserService { ...@@ -57,7 +56,7 @@ public class SysUserService {
SysUserView record = new SysUserView(); SysUserView record = new SysUserView();
XCopyUtils.copyObject(input, record); XCopyUtils.copyObject(input, record);
PageHelper.startPage(input.getPage(), input.getLimit()); PageHelper.startPage(input.getPage(), input.getLimit());
List<SysUserView> list = new ArrayList<>(); List<SysUserView> list;
record.setEndTime(new Date()); record.setEndTime(new Date());
PpsUserSession session = context.getSession(PpsUserSession.class); PpsUserSession session = context.getSession(PpsUserSession.class);
if (UserConstant.ISSUPERADMIN_FALSE.equals(session.getIsSuperAdmin())) { if (UserConstant.ISSUPERADMIN_FALSE.equals(session.getIsSuperAdmin())) {
...@@ -85,7 +84,6 @@ public class SysUserService { ...@@ -85,7 +84,6 @@ public class SysUserService {
@XText("新增用户") @XText("新增用户")
@XApiPost @XApiPost
public XServiceResult createSysUser(XContext context, CreateSysUserInput input) throws XServiceException { public XServiceResult createSysUser(XContext context, CreateSysUserInput input) throws XServiceException {
return XTransactionHelper.begin(context, () -> { return XTransactionHelper.begin(context, () -> {
SysUserMapper mapper = context.getBean(SysUserMapper.class); SysUserMapper mapper = context.getBean(SysUserMapper.class);
//查询是否存在相同的登录名,如果存在,提示错误信息 //查询是否存在相同的登录名,如果存在,提示错误信息
...@@ -123,12 +121,9 @@ public class SysUserService { ...@@ -123,12 +121,9 @@ public class SysUserService {
entity.setPhone(UserInfoUtil.encrypt(entity.getPhone())); entity.setPhone(UserInfoUtil.encrypt(entity.getPhone()));
entity.setIdentifyNo(UserInfoUtil.encrypt(entity.getIdentifyNo())); entity.setIdentifyNo(UserInfoUtil.encrypt(entity.getIdentifyNo()));
entity.setEmail(UserInfoUtil.encrypt(entity.getEmail())); entity.setEmail(UserInfoUtil.encrypt(entity.getEmail()));
mapper.insert(entity); mapper.insert(entity);
//新增用户和组织机构关系表 //新增用户和组织机构关系表
insertSysUserOrganizationRel(context, uuid, input.getOuId(), session); insertSysUserOrganizationRel(context, uuid, input.getOuId(), session);
//返回执行成功的结果,事务提交 //返回执行成功的结果,事务提交
return XServiceResult.OK; return XServiceResult.OK;
}); });
......
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