Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gf_back
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianchao
gf_back
Commits
fbc45936
Commit
fbc45936
authored
Nov 22, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
得到的
parent
a9e0c7d0
Changes
26
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
152 additions
and
346 deletions
+152
-346
C00-common/pps-common/src/main/java/pps/core/common/session/MediaTypes.java
...mon/src/main/java/pps/core/common/session/MediaTypes.java
+8
-24
C00-common/pps-common/src/main/java/pps/core/common/utils/BaseUtils.java
...common/src/main/java/pps/core/common/utils/BaseUtils.java
+4
-5
C02-system/pps-core-system/src/main/java/pps/core/system/entity/SysAuthOuScopeView.java
.../main/java/pps/core/system/entity/SysAuthOuScopeView.java
+8
-120
C02-system/pps-core-system/src/main/java/pps/core/system/provider/impl/PpsUserSessionInjectProviderImpl.java
...ystem/provider/impl/PpsUserSessionInjectProviderImpl.java
+5
-76
C02-system/pps-core-system/src/main/java/pps/core/system/service/SystemAreaServiceImpl.java
...n/java/pps/core/system/service/SystemAreaServiceImpl.java
+2
-2
C09-base/pps-core-base/src/main/java/pps/core/base/enums/WeatherIconEnum.java
...se/src/main/java/pps/core/base/enums/WeatherIconEnum.java
+15
-15
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseDataService.java
.../src/main/java/pps/core/base/service/BaseDataService.java
+5
-5
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseLineService.java
.../src/main/java/pps/core/base/service/BaseLineService.java
+2
-2
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWellheadCloudServiceImpl.java
...a/pps/core/base/service/BaseWellheadCloudServiceImpl.java
+2
-1
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWindTurbineService.java
...in/java/pps/core/base/service/BaseWindTurbineService.java
+1
-1
C09-base/pps-core-base/src/main/java/pps/core/base/service/ConfigOilFieldCloudServiceImpl.java
...pps/core/base/service/ConfigOilFieldCloudServiceImpl.java
+2
-1
C09-base/pps-core-base/src/main/java/pps/core/base/service/ConfigOilFieldService.java
...ain/java/pps/core/base/service/ConfigOilFieldService.java
+2
-1
C09-base/pps-core-base/src/main/java/pps/core/base/service/ThirdWeatherDataService.java
...n/java/pps/core/base/service/ThirdWeatherDataService.java
+2
-2
C09-base/pps-core-base/src/main/java/pps/core/base/service/WindPredictionFutureService.java
...va/pps/core/base/service/WindPredictionFutureService.java
+2
-2
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceCalibrationCloudServiceImpl.java
.../core/space/service/SpaceCalibrationCloudServiceImpl.java
+1
-1
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceCalibrationService.java
.../java/pps/core/space/service/SpaceCalibrationService.java
+4
-4
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceInstitutionDetailService.java
...pps/core/space/service/SpaceInstitutionDetailService.java
+2
-2
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceOptimizeShortPeriodService.java
...s/core/space/service/SpaceOptimizeShortPeriodService.java
+2
-1
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/mapper/StationDailyProductionSituationMapper.java
...diction/mapper/StationDailyProductionSituationMapper.java
+1
-1
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PlantTrainPowerTaskService.java
...s/core/prediction/service/PlantTrainPowerTaskService.java
+2
-2
C13-middle/pps-core-middle/src/main/java/pps/core/middle/mapper/WellBaseMapper.java
.../src/main/java/pps/core/middle/mapper/WellBaseMapper.java
+1
-1
C13-middle/pps-core-middle/src/main/java/pps/core/middle/mapper/WellBaseViewMapper.java
.../main/java/pps/core/middle/mapper/WellBaseViewMapper.java
+3
-2
C13-middle/pps-core-middle/src/main/java/pps/core/middle/service/StationMappingService.java
...n/java/pps/core/middle/service/StationMappingService.java
+72
-73
C13-middle/pps-core-middle/src/main/resources/mybatis/mapper/pps/core/middle/ThirdActivePowerViewMapper.xml
...tis/mapper/pps/core/middle/ThirdActivePowerViewMapper.xml
+2
-1
C13-middle/pps-core-middle/src/main/resources/mybatis/mapper/pps/core/middle/ThirdPhotovoltaicPowerViewMapper.xml
...pper/pps/core/middle/ThirdPhotovoltaicPowerViewMapper.xml
+2
-1
数据字典.md
数据字典.md
+0
-0
No files found.
C00-common/pps-common/src/main/java/pps/core/common/session/MediaTypes.java
View file @
fbc45936
package
pps.core.common.session
;
package
pps.core.common.session
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
MediaTypes
{
public
class
MediaTypes
{
@XText
(
"介质类型编码"
)
@XText
(
"介质类型编码"
)
...
@@ -12,28 +20,4 @@ public class MediaTypes {
...
@@ -12,28 +20,4 @@ public class MediaTypes {
@XText
(
"序号"
)
@XText
(
"序号"
)
private
Integer
sort
;
private
Integer
sort
;
public
Integer
getSort
()
{
return
sort
;
}
public
void
setSort
(
Integer
sort
)
{
this
.
sort
=
sort
;
}
public
String
getMediaTypeCode
()
{
return
MediaTypeCode
;
}
public
void
setMediaTypeCode
(
String
mediaTypeCode
)
{
MediaTypeCode
=
mediaTypeCode
;
}
public
String
getMediaTypeName
()
{
return
MediaTypeName
;
}
public
void
setMediaTypeName
(
String
mediaTypeName
)
{
MediaTypeName
=
mediaTypeName
;
}
}
}
\ No newline at end of file
C00-common/pps-common/src/main/java/pps/core/common/utils/BaseUtils.java
View file @
fbc45936
...
@@ -26,6 +26,10 @@ import java.util.stream.Stream;
...
@@ -26,6 +26,10 @@ import java.util.stream.Stream;
*/
*/
public
class
BaseUtils
{
public
class
BaseUtils
{
/**
* 按每500个一组分割
*/
public
static
final
Integer
BATCH_SIZE
=
500
;
/**
/**
* 数据库类型
* 数据库类型
*/
*/
...
@@ -45,11 +49,6 @@ public class BaseUtils {
...
@@ -45,11 +49,6 @@ public class BaseUtils {
}
}
}
}
/**
* 按每500个一组分割
*/
public
static
final
Integer
BATCH_SIZE
=
500
;
/**
/**
* 计算批次数
* 计算批次数
*/
*/
...
...
C02-system/pps-core-system/src/main/java/pps/core/system/entity/SysAuthOuScopeView.java
View file @
fbc45936
package
pps.core.system.entity
;
package
pps.core.system.entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
import
javax.persistence.Transient
;
import
javax.persistence.Transient
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
SysAuthOuScopeView
implements
Serializable
{
public
class
SysAuthOuScopeView
implements
Serializable
{
@XText
(
"范围授权id(主键)"
)
@XText
(
"范围授权id(主键)"
)
@TableField
@TableField
...
@@ -63,124 +71,4 @@ public class SysAuthOuScopeView implements Serializable {
...
@@ -63,124 +71,4 @@ public class SysAuthOuScopeView implements Serializable {
@XText
(
"介质类型"
)
@XText
(
"介质类型"
)
@Transient
@Transient
private
String
mediaType
;
private
String
mediaType
;
public
Date
getEndTime
()
{
return
endTime
;
}
public
void
setEndTime
(
Date
endTime
)
{
this
.
endTime
=
endTime
;
}
public
String
getMediaType
()
{
return
mediaType
;
}
public
void
setMediaType
(
String
mediaType
)
{
this
.
mediaType
=
mediaType
;
}
public
String
getId
()
{
return
this
.
id
;
}
public
void
setId
(
String
value
)
{
this
.
id
=
value
;
}
public
String
getOuId
()
{
return
this
.
ouId
;
}
public
void
setOuId
(
String
value
)
{
this
.
ouId
=
value
;
}
public
String
getUserId
()
{
return
this
.
userId
;
}
public
void
setUserId
(
String
value
)
{
this
.
userId
=
value
;
}
public
String
getUserGroupId
()
{
return
this
.
userGroupId
;
}
public
void
setUserGroupId
(
String
value
)
{
this
.
userGroupId
=
value
;
}
public
String
getMenuId
()
{
return
this
.
menuId
;
}
public
void
setMenuId
(
String
value
)
{
this
.
menuId
=
value
;
}
public
String
getCreateById
()
{
return
this
.
createById
;
}
public
void
setCreateById
(
String
value
)
{
this
.
createById
=
value
;
}
public
String
getCreateByName
()
{
return
this
.
createByName
;
}
public
void
setCreateByName
(
String
value
)
{
this
.
createByName
=
value
;
}
public
Date
getCreateTime
()
{
return
this
.
createTime
;
}
public
void
setCreateTime
(
Date
value
)
{
this
.
createTime
=
value
;
}
public
String
getModifyById
()
{
return
this
.
modifyById
;
}
public
void
setModifyById
(
String
value
)
{
this
.
modifyById
=
value
;
}
public
String
getModifyByName
()
{
return
this
.
modifyByName
;
}
public
void
setModifyByName
(
String
value
)
{
this
.
modifyByName
=
value
;
}
public
Date
getModifyTime
()
{
return
this
.
modifyTime
;
}
public
void
setModifyTime
(
Date
value
)
{
this
.
modifyTime
=
value
;
}
public
String
getOuName
()
{
return
ouName
;
}
public
void
setOuName
(
String
ouName
)
{
this
.
ouName
=
ouName
;
}
public
String
getMenuName
()
{
return
menuName
;
}
public
void
setMenuName
(
String
menuName
)
{
this
.
menuName
=
menuName
;
}
}
}
C02-system/pps-core-system/src/main/java/pps/core/system/provider/impl/PpsUserSessionInjectProviderImpl.java
View file @
fbc45936
...
@@ -5,10 +5,7 @@ import cn.hutool.core.text.CharSequenceUtil;
...
@@ -5,10 +5,7 @@ import cn.hutool.core.text.CharSequenceUtil;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
pps.cloud.system.service.SysOrganizationCloudService
;
import
pps.cloud.system.service.SysOrganizationCloudService
;
import
pps.cloud.system.service.SystemDictionaryService
;
import
pps.cloud.system.service.SystemUserRoleRelService
;
import
pps.cloud.system.service.SystemUserRoleRelService
;
import
pps.cloud.system.service.data.sys_dictionary.CreateSysDictionaryInput
;
import
pps.cloud.system.service.data.sys_dictionary.QuerySysDictionaryViewOutput
;
import
pps.cloud.system.service.data.sys_organization.GetSysOrganizationViewInput
;
import
pps.cloud.system.service.data.sys_organization.GetSysOrganizationViewInput
;
import
pps.cloud.system.service.data.sys_organization.GetSysOrganizationViewOutput
;
import
pps.cloud.system.service.data.sys_organization.GetSysOrganizationViewOutput
;
import
pps.cloud.system.service.data.user_role.GetSysUserRoleRelInput
;
import
pps.cloud.system.service.data.user_role.GetSysUserRoleRelInput
;
...
@@ -20,11 +17,9 @@ import pps.core.common.session.SysOrganization;
...
@@ -20,11 +17,9 @@ import pps.core.common.session.SysOrganization;
import
pps.core.system.config.LoginConfig
;
import
pps.core.system.config.LoginConfig
;
import
pps.core.system.constant.OuLevelConstant
;
import
pps.core.system.constant.OuLevelConstant
;
import
pps.core.system.entity.SysAuthOuScopeView
;
import
pps.core.system.entity.SysAuthOuScopeView
;
import
pps.core.system.entity.SysMenuView
;
import
pps.core.system.entity.SysOrganizationRelEnt
;
import
pps.core.system.entity.SysOrganizationRelEnt
;
import
pps.core.system.entity.SysUserEnt
;
import
pps.core.system.entity.SysUserEnt
;
import
pps.core.system.mapper.SysAuthOuScopeViewMapper
;
import
pps.core.system.mapper.SysAuthOuScopeViewMapper
;
import
pps.core.system.mapper.SysMenuViewMapper
;
import
pps.core.system.mapper.SysOrganizationRelMapper
;
import
pps.core.system.mapper.SysOrganizationRelMapper
;
import
pps.core.system.mapper.SysUserMapper
;
import
pps.core.system.mapper.SysUserMapper
;
import
xstartup.annotation.XImplement
;
import
xstartup.annotation.XImplement
;
...
@@ -95,77 +90,11 @@ public class PpsUserSessionInjectProviderImpl implements XSessionInjectProvider
...
@@ -95,77 +90,11 @@ public class PpsUserSessionInjectProviderImpl implements XSessionInjectProvider
}
}
//获取当前用户所属组织机构的介质类型和当前用户授权的组织机构(最终获取组织机构的介质类型)
//获取当前用户所属组织机构的介质类型和当前用户授权的组织机构(最终获取组织机构的介质类型)
if
(
CharSequenceUtil
.
isNotBlank
(
session
.
getId
()))
{
if
(
CharSequenceUtil
.
isNotBlank
(
session
.
getId
()))
{
SysAuthOuScopeView
scopeView
=
new
SysAuthOuScopeView
();
session
.
setMediaTypes
(
CollUtil
.
list
(
false
,
MediaTypes
.
builder
()
scopeView
.
setUserId
(
session
.
getId
());
.
MediaTypeCode
(
"GAS"
)
scopeView
.
setEndTime
(
new
Date
());
.
MediaTypeName
(
"天然气"
)
SysAuthOuScopeView
mediaTypesView
=
scopeViewMapper
.
selectOuMediaTypeByUserId
(
scopeView
);
.
sort
(
2
)
Set
<
String
>
set
=
new
HashSet
<>();
.
build
()));
if
(
ObjectUtil
.
isNotNull
(
mediaTypesView
))
{
String
mediaType
=
mediaTypesView
.
getMediaType
();
if
(
CharSequenceUtil
.
isNotBlank
(
mediaType
))
{
set
.
addAll
(
CharSequenceUtil
.
split
(
mediaType
,
','
));
}
}
if
(
CollUtil
.
isNotEmpty
(
set
))
{
SystemDictionaryService
dictService
=
context
.
getBean
(
SystemDictionaryService
.
class
);
CreateSysDictionaryInput
mediaTypesInput
=
new
CreateSysDictionaryInput
();
mediaTypesInput
.
setAlias
(
"MEDIUM_TYPE"
);
XListResult
<
QuerySysDictionaryViewOutput
>
mediaTypes
=
dictService
.
querySysDictionarysByAlias
(
context
,
mediaTypesInput
);
List
<
String
>
menuMediaTypes
=
new
ArrayList
<>();
//通过用户角色加载当前用户可操作的介质类型
//获取当前用户所属角色绑定菜单的介质类型(最终获取菜单的介质类型)
SysMenuViewMapper
menuViewMapper
=
context
.
getBean
(
SysMenuViewMapper
.
class
);
SysMenuView
menuView
=
new
SysMenuView
();
menuView
.
setUserId
(
session
.
getId
());
menuView
.
setOuId
(
session
.
getOuId
());
List
<
SysMenuView
>
menuViews
=
menuViewMapper
.
selectMediumTypeByUserId
(
menuView
);
for
(
SysMenuView
sysMenuView
:
menuViews
)
{
menuMediaTypes
.
add
(
sysMenuView
.
getMediaType
());
}
//根据菜单的介质类型过滤组织机构的介质类型,最终只显示菜单的介质类型和组织机构的介质类型是一致的。
//如果菜单中有全介质的话就把组织机构的所有介质类型都展示
if
(!
CollUtil
.
contains
(
menuMediaTypes
,
"ALL"
))
{
set
=
set
.
stream
().
filter
(
menuMediaTypes:
:
contains
).
collect
(
Collectors
.
toSet
());
}
List
<
MediaTypes
>
list
=
new
ArrayList
<>();
for
(
String
media
:
set
)
{
if
(
CharSequenceUtil
.
equals
(
"ALL"
,
media
))
{
list
.
clear
();
for
(
QuerySysDictionaryViewOutput
dict
:
mediaTypes
.
getResult
())
{
if
(!
CharSequenceUtil
.
equals
(
dict
.
getDicKey
(),
"ALL"
))
{
MediaTypes
mediaType
=
new
MediaTypes
();
mediaType
.
setMediaTypeCode
(
dict
.
getDicKey
());
mediaType
.
setMediaTypeName
(
dict
.
getDicName
());
if
(
ObjectUtil
.
isNull
(
dict
.
getSort
()))
{
mediaType
.
setSort
(
999
);
}
else
{
mediaType
.
setSort
(
dict
.
getSort
());
}
list
.
add
(
mediaType
);
}
}
break
;
}
else
{
for
(
QuerySysDictionaryViewOutput
dict
:
mediaTypes
.
getResult
())
{
if
(
CharSequenceUtil
.
equals
(
dict
.
getDicKey
(),
media
))
{
MediaTypes
mediaType
=
new
MediaTypes
();
mediaType
.
setMediaTypeCode
(
media
);
mediaType
.
setMediaTypeName
(
dict
.
getDicName
());
if
(
ObjectUtil
.
isNull
(
dict
.
getSort
()))
{
mediaType
.
setSort
(
999
);
}
else
{
mediaType
.
setSort
(
dict
.
getSort
());
}
list
.
add
(
mediaType
);
break
;
}
}
}
}
list
.
sort
(
Comparator
.
comparing
(
MediaTypes:
:
getSort
));
list
=
list
.
stream
().
distinct
().
collect
(
Collectors
.
toList
());
session
.
setMediaTypes
(
list
);
}
}
}
if
(
user
.
getOrgId
().
equals
(
LOGIN_FLAG_SIMULATE
))
{
if
(
user
.
getOrgId
().
equals
(
LOGIN_FLAG_SIMULATE
))
{
session
.
setDevops
(
1
);
session
.
setDevops
(
1
);
...
...
C02-system/pps-core-system/src/main/java/pps/core/system/service/SystemAreaServiceImpl.java
View file @
fbc45936
...
@@ -8,7 +8,7 @@ import pps.cloud.system.service.data.sys_area.GetSysAreaInput;
...
@@ -8,7 +8,7 @@ import pps.cloud.system.service.data.sys_area.GetSysAreaInput;
import
pps.cloud.system.service.data.sys_area.GetSysAreaOutput
;
import
pps.cloud.system.service.data.sys_area.GetSysAreaOutput
;
import
pps.cloud.system.service.data.sys_area.QuerySysAreaInput
;
import
pps.cloud.system.service.data.sys_area.QuerySysAreaInput
;
import
pps.cloud.system.service.data.sys_area.QuerySysAreaOutput
;
import
pps.cloud.system.service.data.sys_area.QuerySysAreaOutput
;
import
pps.core.common.
constant.BusinessConstant
;
import
pps.core.common.
utils.BaseUtils
;
import
pps.core.system.entity.SysAreaEnt
;
import
pps.core.system.entity.SysAreaEnt
;
import
pps.core.system.entity.SysAreaView
;
import
pps.core.system.entity.SysAreaView
;
import
pps.core.system.mapper.SysAreaMapper
;
import
pps.core.system.mapper.SysAreaMapper
;
...
@@ -51,7 +51,7 @@ public class SystemAreaServiceImpl implements SystemAreaService {
...
@@ -51,7 +51,7 @@ public class SystemAreaServiceImpl implements SystemAreaService {
.
eq
(
ObjectUtil
.
isNotNull
(
id
),
SysAreaEnt:
:
getId
,
id
)
.
eq
(
ObjectUtil
.
isNotNull
(
id
),
SysAreaEnt:
:
getId
,
id
)
.
eq
(
ObjectUtil
.
isNotNull
(
parentId
),
SysAreaEnt:
:
getParentId
,
parentId
)
.
eq
(
ObjectUtil
.
isNotNull
(
parentId
),
SysAreaEnt:
:
getParentId
,
parentId
)
.
eq
(
CharSequenceUtil
.
isNotBlank
(
name
),
SysAreaEnt:
:
getName
,
name
)
.
eq
(
CharSequenceUtil
.
isNotBlank
(
name
),
SysAreaEnt:
:
getName
,
name
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
return
XSingleResult
.
success
(
XCopyUtils
.
copyNewObject
(
sysAreaEnt
,
GetSysAreaOutput
.
class
));
return
XSingleResult
.
success
(
XCopyUtils
.
copyNewObject
(
sysAreaEnt
,
GetSysAreaOutput
.
class
));
}
}
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/enums/WeatherIconEnum.java
View file @
fbc45936
...
@@ -58,6 +58,21 @@ public enum WeatherIconEnum {
...
@@ -58,6 +58,21 @@ public enum WeatherIconEnum {
this
.
type
=
type
;
this
.
type
=
type
;
}
}
/**
* 按值查找
*
* @param icon 图标
* @return {@link WeatherIconEnum }
*/
public
static
WeatherIconEnum
findByValue
(
String
icon
)
{
for
(
WeatherIconEnum
item
:
values
())
{
if
(
CharSequenceUtil
.
equals
(
item
.
getIcon
(),
icon
))
{
return
item
;
}
}
return
WeatherIconEnum
.
w99
;
}
public
String
getIcon
()
{
public
String
getIcon
()
{
return
icon
;
return
icon
;
}
}
...
@@ -73,19 +88,4 @@ public enum WeatherIconEnum {
...
@@ -73,19 +88,4 @@ public enum WeatherIconEnum {
public
void
setType
(
Integer
type
)
{
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
this
.
type
=
type
;
}
}
/**
* 按值查找
*
* @param icon 图标
* @return {@link WeatherIconEnum }
*/
public
static
WeatherIconEnum
findByValue
(
String
icon
)
{
for
(
WeatherIconEnum
item
:
values
())
{
if
(
CharSequenceUtil
.
equals
(
item
.
getIcon
(),
icon
))
{
return
item
;
}
}
return
WeatherIconEnum
.
w99
;
}
}
}
\ No newline at end of file
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseDataService.java
View file @
fbc45936
...
@@ -15,7 +15,7 @@ import pps.core.base.mapper.BaseDataImportLogMapper;
...
@@ -15,7 +15,7 @@ import pps.core.base.mapper.BaseDataImportLogMapper;
import
pps.core.base.mapper.BaseDataMapper
;
import
pps.core.base.mapper.BaseDataMapper
;
import
pps.core.base.mapper.BaseModelValMapper
;
import
pps.core.base.mapper.BaseModelValMapper
;
import
pps.core.base.service.data.base_data.*
;
import
pps.core.base.service.data.base_data.*
;
import
pps.core.common.
constant.BusinessConstant
;
import
pps.core.common.
utils.BaseUtils
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
import
xstartup.base.XContext
;
import
xstartup.base.XContext
;
...
@@ -131,7 +131,7 @@ public class BaseDataService {
...
@@ -131,7 +131,7 @@ public class BaseDataService {
BaseDataImportLogEnt
ent
=
logMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseDataImportLogEnt
>()
BaseDataImportLogEnt
ent
=
logMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseDataImportLogEnt
>()
.
eq
(
BaseDataImportLogEnt:
:
getLineId
,
input
.
getLineId
())
.
eq
(
BaseDataImportLogEnt:
:
getLineId
,
input
.
getLineId
())
.
orderByDesc
(
BaseDataImportLogEnt:
:
getCreateTime
)
.
orderByDesc
(
BaseDataImportLogEnt:
:
getCreateTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
));
.
last
(
B
aseUtils
.
getLastLimit
()
));
List
<
QueryBaseDataOutput
>
outputs
=
new
ArrayList
<>();
List
<
QueryBaseDataOutput
>
outputs
=
new
ArrayList
<>();
if
(
ObjectUtil
.
isNotNull
(
ent
))
{
if
(
ObjectUtil
.
isNotNull
(
ent
))
{
BaseDataMapper
mapper
=
context
.
getBean
(
BaseDataMapper
.
class
);
BaseDataMapper
mapper
=
context
.
getBean
(
BaseDataMapper
.
class
);
...
@@ -152,7 +152,7 @@ public class BaseDataService {
...
@@ -152,7 +152,7 @@ public class BaseDataService {
BaseDataImportLogEnt
ent
=
logMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseDataImportLogEnt
>()
BaseDataImportLogEnt
ent
=
logMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseDataImportLogEnt
>()
.
eq
(
BaseDataImportLogEnt:
:
getLineId
,
input
.
getLineId
())
.
eq
(
BaseDataImportLogEnt:
:
getLineId
,
input
.
getLineId
())
.
orderByDesc
(
BaseDataImportLogEnt:
:
getCreateTime
)
.
orderByDesc
(
BaseDataImportLogEnt:
:
getCreateTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
));
.
last
(
B
aseUtils
.
getLastLimit
()
));
List
<
GetBaseDataOutput
>
outputs
=
new
ArrayList
<>();
List
<
GetBaseDataOutput
>
outputs
=
new
ArrayList
<>();
if
(
ObjectUtil
.
isNotNull
(
ent
))
{
if
(
ObjectUtil
.
isNotNull
(
ent
))
{
BaseDataMapper
mapper
=
context
.
getBean
(
BaseDataMapper
.
class
);
BaseDataMapper
mapper
=
context
.
getBean
(
BaseDataMapper
.
class
);
...
@@ -302,7 +302,7 @@ public class BaseDataService {
...
@@ -302,7 +302,7 @@ public class BaseDataService {
BaseDataImportLogEnt
ent
=
logMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseDataImportLogEnt
>()
BaseDataImportLogEnt
ent
=
logMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseDataImportLogEnt
>()
.
eq
(
BaseDataImportLogEnt:
:
getLineId
,
input
.
getLineId
())
.
eq
(
BaseDataImportLogEnt:
:
getLineId
,
input
.
getLineId
())
.
orderByDesc
(
BaseDataImportLogEnt:
:
getCreateTime
)
.
orderByDesc
(
BaseDataImportLogEnt:
:
getCreateTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
));
.
last
(
B
aseUtils
.
getLastLimit
()
));
if
(
ObjectUtil
.
isNull
(
ent
))
if
(
ObjectUtil
.
isNull
(
ent
))
return
XServiceResult
.
OK
;
return
XServiceResult
.
OK
;
if
(
CollUtil
.
isNotEmpty
(
input
.
getKeyNames
()))
{
if
(
CollUtil
.
isNotEmpty
(
input
.
getKeyNames
()))
{
...
@@ -330,7 +330,7 @@ public class BaseDataService {
...
@@ -330,7 +330,7 @@ public class BaseDataService {
BaseModelValEnt
baseModelValEnt
=
baseModelValMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseModelValEnt
>()
BaseModelValEnt
baseModelValEnt
=
baseModelValMapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseModelValEnt
>()
.
eq
(
BaseModelValEnt:
:
getLineId
,
input
.
getLineId
())
.
eq
(
BaseModelValEnt:
:
getLineId
,
input
.
getLineId
())
.
eq
(
BaseModelValEnt:
:
getKeyname
,
input
.
getKeyNames
())
.
eq
(
BaseModelValEnt:
:
getKeyname
,
input
.
getKeyNames
())
.
orderByDesc
(
BaseModelValEnt:
:
getCreatetime
).
last
(
B
usinessConstant
.
LAST_LIMIT
));
.
orderByDesc
(
BaseModelValEnt:
:
getCreatetime
).
last
(
B
aseUtils
.
getLastLimit
()
));
TrainBaseModelValOutput
output
=
XCopyUtils
.
copyNewObject
(
baseModelValEnt
,
TrainBaseModelValOutput
.
class
);
TrainBaseModelValOutput
output
=
XCopyUtils
.
copyNewObject
(
baseModelValEnt
,
TrainBaseModelValOutput
.
class
);
if
(
ObjectUtil
.
isNotNull
(
baseModelValEnt
)
&&
CharSequenceUtil
.
isAllNotBlank
(
output
.
getYtrue
(),
output
.
getYpred
()))
{
if
(
ObjectUtil
.
isNotNull
(
baseModelValEnt
)
&&
CharSequenceUtil
.
isAllNotBlank
(
output
.
getYtrue
(),
output
.
getYpred
()))
{
Map
<
String
,
Object
>
ytrueMap
=
XJsonUtils
.
toMap
(
output
.
getYtrue
().
replace
(
"\\"
,
""
));
Map
<
String
,
Object
>
ytrueMap
=
XJsonUtils
.
toMap
(
output
.
getYtrue
().
replace
(
"\\"
,
""
));
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseLineService.java
View file @
fbc45936
...
@@ -30,6 +30,8 @@ import java.util.Map;
...
@@ -30,6 +30,8 @@ import java.util.Map;
@XService
@XService
public
class
BaseLineService
{
public
class
BaseLineService
{
private
static
final
String
storeDir
=
XStartup
.
getCurrent
().
getProperty
(
"weather.file.temp.path"
);
@XText
(
"线路列表"
)
@XText
(
"线路列表"
)
@XApiPost
@XApiPost
public
XListResult
<
DynamicQueryBasePowerLineOutput
>
queryBaseLineList
(
XContext
context
,
DynamicQueryBasePowerLineInput
input
)
{
public
XListResult
<
DynamicQueryBasePowerLineOutput
>
queryBaseLineList
(
XContext
context
,
DynamicQueryBasePowerLineInput
input
)
{
...
@@ -59,8 +61,6 @@ public class BaseLineService {
...
@@ -59,8 +61,6 @@ public class BaseLineService {
return
XServiceResult
.
OK
;
return
XServiceResult
.
OK
;
}
}
private
static
final
String
storeDir
=
XStartup
.
getCurrent
().
getProperty
(
"weather.file.temp.path"
);
/**
/**
* 创建文件路径
* 创建文件路径
*
*
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWellheadCloudServiceImpl.java
View file @
fbc45936
...
@@ -10,6 +10,7 @@ import pps.core.base.entity.BaseWellheadEnt;
...
@@ -10,6 +10,7 @@ import pps.core.base.entity.BaseWellheadEnt;
import
pps.core.base.mapper.BaseWellheadMapper
;
import
pps.core.base.mapper.BaseWellheadMapper
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.entity.BaseModel
;
import
pps.core.common.entity.BaseModel
;
import
pps.core.common.utils.BaseUtils
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
import
xstartup.base.XContext
;
import
xstartup.base.XContext
;
import
xstartup.base.util.XCopyUtils
;
import
xstartup.base.util.XCopyUtils
;
...
@@ -73,7 +74,7 @@ public class BaseWellheadCloudServiceImpl implements IBaseWellheadCloudService {
...
@@ -73,7 +74,7 @@ public class BaseWellheadCloudServiceImpl implements IBaseWellheadCloudService {
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
in
(
BaseModel:
:
getId
,
input
.
getWellheadIds
())
.
in
(
BaseModel:
:
getId
,
input
.
getWellheadIds
())
.
orderByDesc
(
BaseWellheadEnt:
:
getServiceRating
)
.
orderByDesc
(
BaseWellheadEnt:
:
getServiceRating
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
return
XSingleResult
.
success
(
XCopyUtils
.
copyNewObject
(
one
,
DynamicQueryBaseWellheadOutput
.
class
));
return
XSingleResult
.
success
(
XCopyUtils
.
copyNewObject
(
one
,
DynamicQueryBaseWellheadOutput
.
class
));
}
}
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/BaseWindTurbineService.java
View file @
fbc45936
...
@@ -214,7 +214,7 @@ public class BaseWindTurbineService {
...
@@ -214,7 +214,7 @@ public class BaseWindTurbineService {
return
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseWindTurbineEnt
>()
return
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
BaseWindTurbineEnt
>()
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
BaseModel:
:
getId
,
id
)
.
eq
(
BaseModel:
:
getId
,
id
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
}
}
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/ConfigOilFieldCloudServiceImpl.java
View file @
fbc45936
...
@@ -7,6 +7,7 @@ import pps.cloud.base.service.data.config_oil_field.GetConfigOilFieldOutput;
...
@@ -7,6 +7,7 @@ import pps.cloud.base.service.data.config_oil_field.GetConfigOilFieldOutput;
import
pps.core.base.entity.ConfigOilFieldEnt
;
import
pps.core.base.entity.ConfigOilFieldEnt
;
import
pps.core.base.mapper.ConfigOilFieldMapper
;
import
pps.core.base.mapper.ConfigOilFieldMapper
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.utils.BaseUtils
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
import
xstartup.base.XContext
;
import
xstartup.base.XContext
;
import
xstartup.base.util.XCopyUtils
;
import
xstartup.base.util.XCopyUtils
;
...
@@ -32,7 +33,7 @@ public class ConfigOilFieldCloudServiceImpl implements IConfigOilFieldCloudServi
...
@@ -32,7 +33,7 @@ public class ConfigOilFieldCloudServiceImpl implements IConfigOilFieldCloudServi
ConfigOilFieldMapper
mapper
=
context
.
getBean
(
ConfigOilFieldMapper
.
class
);
ConfigOilFieldMapper
mapper
=
context
.
getBean
(
ConfigOilFieldMapper
.
class
);
ConfigOilFieldEnt
ent
=
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
ConfigOilFieldEnt
>()
ConfigOilFieldEnt
ent
=
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
ConfigOilFieldEnt
>()
.
eq
(
ConfigOilFieldEnt:
:
getIsEnable
,
BusinessConstant
.
ZERO
)
.
eq
(
ConfigOilFieldEnt:
:
getIsEnable
,
BusinessConstant
.
ZERO
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
GetConfigOilFieldOutput
output
;
GetConfigOilFieldOutput
output
;
if
(
ObjectUtil
.
isNull
(
ent
))
{
if
(
ObjectUtil
.
isNull
(
ent
))
{
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/ConfigOilFieldService.java
View file @
fbc45936
...
@@ -9,6 +9,7 @@ import pps.core.base.mapper.ConfigOilFieldMapper;
...
@@ -9,6 +9,7 @@ import pps.core.base.mapper.ConfigOilFieldMapper;
import
pps.core.base.service.data.config_oil_field.GetConfigOilFieldOutput
;
import
pps.core.base.service.data.config_oil_field.GetConfigOilFieldOutput
;
import
pps.core.base.service.data.config_oil_field.GetProjectTitleOutput
;
import
pps.core.base.service.data.config_oil_field.GetProjectTitleOutput
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.utils.BaseUtils
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
import
xstartup.base.XContext
;
import
xstartup.base.XContext
;
...
@@ -74,7 +75,7 @@ public class ConfigOilFieldService {
...
@@ -74,7 +75,7 @@ public class ConfigOilFieldService {
ConfigOilFieldMapper
mapper
=
context
.
getBean
(
ConfigOilFieldMapper
.
class
);
ConfigOilFieldMapper
mapper
=
context
.
getBean
(
ConfigOilFieldMapper
.
class
);
return
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
ConfigOilFieldEnt
>()
return
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
ConfigOilFieldEnt
>()
.
eq
(
ConfigOilFieldEnt:
:
getIsEnable
,
BusinessConstant
.
ZERO
)
.
eq
(
ConfigOilFieldEnt:
:
getIsEnable
,
BusinessConstant
.
ZERO
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
}
}
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/ThirdWeatherDataService.java
View file @
fbc45936
...
@@ -11,7 +11,7 @@ import pps.core.base.entity.ThirdWeatherDataEnt;
...
@@ -11,7 +11,7 @@ import pps.core.base.entity.ThirdWeatherDataEnt;
import
pps.core.base.mapper.ThirdWeatherDataMapper
;
import
pps.core.base.mapper.ThirdWeatherDataMapper
;
import
pps.core.base.service.data.third_weather_data.GetThirdWeatherDataInput
;
import
pps.core.base.service.data.third_weather_data.GetThirdWeatherDataInput
;
import
pps.core.base.service.data.third_weather_data.GetThirdWeatherDataOutput
;
import
pps.core.base.service.data.third_weather_data.GetThirdWeatherDataOutput
;
import
pps.core.common.
constant.BusinessConstant
;
import
pps.core.common.
utils.BaseUtils
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
import
xstartup.base.XContext
;
import
xstartup.base.XContext
;
...
@@ -52,7 +52,7 @@ public class ThirdWeatherDataService {
...
@@ -52,7 +52,7 @@ public class ThirdWeatherDataService {
.
lambda
()
.
lambda
()
.
ge
(
ThirdWeatherDataEnt:
:
getForecastTime
,
DateUtil
.
date
())
.
ge
(
ThirdWeatherDataEnt:
:
getForecastTime
,
DateUtil
.
date
())
.
orderByAsc
(
ThirdWeatherDataEnt:
:
getForecastTime
)
.
orderByAsc
(
ThirdWeatherDataEnt:
:
getForecastTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
output
=
XCopyUtils
.
copyNewObject
(
ent
,
GetThirdWeatherDataOutput
.
class
);
output
=
XCopyUtils
.
copyNewObject
(
ent
,
GetThirdWeatherDataOutput
.
class
);
}
else
{
}
else
{
...
...
C09-base/pps-core-base/src/main/java/pps/core/base/service/WindPredictionFutureService.java
View file @
fbc45936
...
@@ -506,7 +506,7 @@ public class WindPredictionFutureService {
...
@@ -506,7 +506,7 @@ public class WindPredictionFutureService {
.
eq
(
WindPredictionFutureEnt:
:
getStationId
,
input
.
getStationId
())
.
eq
(
WindPredictionFutureEnt:
:
getStationId
,
input
.
getStationId
())
.
between
(
WindPredictionFutureEnt:
:
getDataTime
,
beginTime
,
endTime
)
.
between
(
WindPredictionFutureEnt:
:
getDataTime
,
beginTime
,
endTime
)
.
orderByDesc
(
WindPredictionFutureEnt:
:
getDataTime
)
.
orderByDesc
(
WindPredictionFutureEnt:
:
getDataTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
if
(
ObjectUtil
.
isNotNull
(
futureEnt
))
{
if
(
ObjectUtil
.
isNotNull
(
futureEnt
))
{
output
.
setWindDirection
(
WindDirection
.
findByCode
(
futureEnt
.
getWindDirection
()));
output
.
setWindDirection
(
WindDirection
.
findByCode
(
futureEnt
.
getWindDirection
()));
...
@@ -529,7 +529,7 @@ public class WindPredictionFutureService {
...
@@ -529,7 +529,7 @@ public class WindPredictionFutureService {
.
eq
(
ThirdWindPowerGenerationUpdateEnt:
:
getStationId
,
input
.
getStationId
())
.
eq
(
ThirdWindPowerGenerationUpdateEnt:
:
getStationId
,
input
.
getStationId
())
.
eq
(
ThirdWindPowerGenerationUpdateEnt:
:
getSystemSource
,
oilFieldCode
)
.
eq
(
ThirdWindPowerGenerationUpdateEnt:
:
getSystemSource
,
oilFieldCode
)
.
orderByDesc
(
ThirdWindPowerGenerationUpdateEnt:
:
getCollectTime
)
.
orderByDesc
(
ThirdWindPowerGenerationUpdateEnt:
:
getCollectTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
//todo 型号暂时不知道从哪来
//todo 型号暂时不知道从哪来
output
.
setModelNumber
(
BusinessConstant
.
DEFAULT_VALUE
);
output
.
setModelNumber
(
BusinessConstant
.
DEFAULT_VALUE
);
...
...
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceCalibrationCloudServiceImpl.java
View file @
fbc45936
...
@@ -98,7 +98,7 @@ public class SpaceCalibrationCloudServiceImpl implements ISpaceCalibrationCloudS
...
@@ -98,7 +98,7 @@ public class SpaceCalibrationCloudServiceImpl implements ISpaceCalibrationCloudS
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
SpaceCalibrationHistoryEnt:
:
getInstitutionId
,
institutionId
)
.
eq
(
SpaceCalibrationHistoryEnt:
:
getInstitutionId
,
institutionId
)
.
orderByDesc
(
SpaceCalibrationHistoryEnt:
:
getCalibrationDate
)
.
orderByDesc
(
SpaceCalibrationHistoryEnt:
:
getCalibrationDate
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
if
(
ObjectUtil
.
isNull
(
lastHistory
))
{
if
(
ObjectUtil
.
isNull
(
lastHistory
))
{
//创建周期
//创建周期
...
...
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceCalibrationService.java
View file @
fbc45936
...
@@ -243,7 +243,7 @@ public class SpaceCalibrationService {
...
@@ -243,7 +243,7 @@ public class SpaceCalibrationService {
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getInstitutionId
,
historyEnt
.
getInstitutionId
())
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getInstitutionId
,
historyEnt
.
getInstitutionId
())
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getOptimizeDate
,
inputDate
)
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getOptimizeDate
,
inputDate
)
.
orderByDesc
(
BaseModel:
:
getCreateTime
)
.
orderByDesc
(
BaseModel:
:
getCreateTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
//通过井口ID查区间
//通过井口ID查区间
if
(
ObjectUtil
.
isNotNull
(
shortPeriodEnt
))
{
if
(
ObjectUtil
.
isNotNull
(
shortPeriodEnt
))
{
...
@@ -263,7 +263,7 @@ public class SpaceCalibrationService {
...
@@ -263,7 +263,7 @@ public class SpaceCalibrationService {
.
ge
(
SpaceOptimizeMidPeriodEnt:
:
getOptimizeDeadline
,
inputDate
)
.
ge
(
SpaceOptimizeMidPeriodEnt:
:
getOptimizeDeadline
,
inputDate
)
.
apply
(
"DATE_FORMAT( create_time, '%Y-%m-%d' ) <= {0}"
,
inputDate
)
.
apply
(
"DATE_FORMAT( create_time, '%Y-%m-%d' ) <= {0}"
,
inputDate
)
.
orderByDesc
(
BaseModel:
:
getCreateTime
)
.
orderByDesc
(
BaseModel:
:
getCreateTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
if
(
ObjectUtil
.
isNotNull
(
midPeriodEnt
))
{
if
(
ObjectUtil
.
isNotNull
(
midPeriodEnt
))
{
SpaceOptimizeMidDurationMapper
midDurationMapper
=
context
.
getBean
(
SpaceOptimizeMidDurationMapper
.
class
);
SpaceOptimizeMidDurationMapper
midDurationMapper
=
context
.
getBean
(
SpaceOptimizeMidDurationMapper
.
class
);
...
@@ -283,7 +283,7 @@ public class SpaceCalibrationService {
...
@@ -283,7 +283,7 @@ public class SpaceCalibrationService {
.
ge
(
SpaceOptimizeLongPeriodEnt:
:
getOptimizeDeadline
,
inputDate
)
.
ge
(
SpaceOptimizeLongPeriodEnt:
:
getOptimizeDeadline
,
inputDate
)
.
apply
(
"DATE_FORMAT( create_time, '%Y-%m-%d' ) <= {0}"
,
inputDate
)
.
apply
(
"DATE_FORMAT( create_time, '%Y-%m-%d' ) <= {0}"
,
inputDate
)
.
orderByDesc
(
BaseModel:
:
getCreateTime
)
.
orderByDesc
(
BaseModel:
:
getCreateTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
if
(
ObjectUtil
.
isNotNull
(
longPeriodEnt
))
{
if
(
ObjectUtil
.
isNotNull
(
longPeriodEnt
))
{
SpaceOptimizeLongDurationMapper
longDurationMapper
=
context
.
getBean
(
SpaceOptimizeLongDurationMapper
.
class
);
SpaceOptimizeLongDurationMapper
longDurationMapper
=
context
.
getBean
(
SpaceOptimizeLongDurationMapper
.
class
);
...
@@ -330,7 +330,7 @@ public class SpaceCalibrationService {
...
@@ -330,7 +330,7 @@ public class SpaceCalibrationService {
.
eq
(
SpaceCalibrationPeriodEnt:
:
getLineId
,
lineId
)
.
eq
(
SpaceCalibrationPeriodEnt:
:
getLineId
,
lineId
)
.
eq
(
SpaceCalibrationPeriodEnt:
:
getOuId
,
ouId
)
.
eq
(
SpaceCalibrationPeriodEnt:
:
getOuId
,
ouId
)
.
orderByDesc
(
BaseModel:
:
getModifyTime
)
.
orderByDesc
(
BaseModel:
:
getModifyTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
}
}
...
...
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceInstitutionDetailService.java
View file @
fbc45936
...
@@ -630,7 +630,7 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
...
@@ -630,7 +630,7 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
BaseModel:
:
getIsDeleted
,
BusinessConstant
.
ONE
)
.
eq
(
SpaceCalibrationHistoryEnt:
:
getInstitutionId
,
detail
.
getId
())
.
eq
(
SpaceCalibrationHistoryEnt:
:
getInstitutionId
,
detail
.
getId
())
.
orderByDesc
(
SpaceCalibrationHistoryEnt:
:
getCalibrationDate
)
.
orderByDesc
(
SpaceCalibrationHistoryEnt:
:
getCalibrationDate
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
DateTime
now
=
DateUtil
.
beginOfDay
(
DateUtil
.
date
());
DateTime
now
=
DateUtil
.
beginOfDay
(
DateUtil
.
date
());
boolean
isCreate
=
false
;
boolean
isCreate
=
false
;
...
@@ -652,7 +652,7 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
...
@@ -652,7 +652,7 @@ public class SpaceInstitutionDetailService extends SpaceOptimizeBaseService {
.
eq
(
SpaceCalibrationPeriodEnt:
:
getLineId
,
detail
.
getLineId
())
.
eq
(
SpaceCalibrationPeriodEnt:
:
getLineId
,
detail
.
getLineId
())
.
eq
(
SpaceCalibrationPeriodEnt:
:
getOuId
,
detail
.
getOuId
())
.
eq
(
SpaceCalibrationPeriodEnt:
:
getOuId
,
detail
.
getOuId
())
.
orderByDesc
(
BaseModel:
:
getModifyTime
)
.
orderByDesc
(
BaseModel:
:
getModifyTime
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
if
(
ObjectUtil
.
isNotNull
(
periodEnt
))
{
if
(
ObjectUtil
.
isNotNull
(
periodEnt
))
{
mapper
.
insert
(
this
.
createCalibrationHistory
(
session
,
detail
,
now
,
Integer
.
valueOf
(
periodEnt
.
getDayNumber
())));
mapper
.
insert
(
this
.
createCalibrationHistory
(
session
,
detail
,
now
,
Integer
.
valueOf
(
periodEnt
.
getDayNumber
())));
...
...
C11-space/pps-core-space/src/main/java/pps/core/space/service/SpaceOptimizeShortPeriodService.java
View file @
fbc45936
...
@@ -14,6 +14,7 @@ import pps.cloud.system.service.data.sys_organization.GetSysOrganizationViewOutp
...
@@ -14,6 +14,7 @@ import pps.cloud.system.service.data.sys_organization.GetSysOrganizationViewOutp
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.constant.BusinessConstant
;
import
pps.core.common.entity.BaseModel
;
import
pps.core.common.entity.BaseModel
;
import
pps.core.common.session.PpsUserSession
;
import
pps.core.common.session.PpsUserSession
;
import
pps.core.common.utils.BaseUtils
;
import
pps.core.space.entity.*
;
import
pps.core.space.entity.*
;
import
pps.core.space.mapper.*
;
import
pps.core.space.mapper.*
;
import
pps.core.space.service.data.SpaceOptimizeDateDuration
;
import
pps.core.space.service.data.SpaceOptimizeDateDuration
;
...
@@ -117,7 +118,7 @@ public class SpaceOptimizeShortPeriodService extends SpaceOptimizeBaseService {
...
@@ -117,7 +118,7 @@ public class SpaceOptimizeShortPeriodService extends SpaceOptimizeBaseService {
SpaceOptimizeShortPeriodEnt
periodEnt
=
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
SpaceOptimizeShortPeriodEnt
>()
SpaceOptimizeShortPeriodEnt
periodEnt
=
mapper
.
selectOne
(
new
LambdaQueryWrapper
<
SpaceOptimizeShortPeriodEnt
>()
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getOptimizeDate
,
now
)
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getOptimizeDate
,
now
)
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getLineId
,
lineId
)
.
eq
(
SpaceOptimizeShortPeriodEnt:
:
getLineId
,
lineId
)
.
last
(
B
usinessConstant
.
LAST_LIMIT
)
.
last
(
B
aseUtils
.
getLastLimit
()
)
);
);
if
(
ObjectUtil
.
isEmpty
(
periodEnt
))
{
if
(
ObjectUtil
.
isEmpty
(
periodEnt
))
{
return
XListResult
.
success
(
Collections
.
emptyList
());
return
XListResult
.
success
(
Collections
.
emptyList
());
...
...
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/mapper/StationDailyProductionSituationMapper.java
View file @
fbc45936
...
@@ -10,6 +10,6 @@ import pps.core.prediction.entity.StationDailyProductionSituationEnt;
...
@@ -10,6 +10,6 @@ import pps.core.prediction.entity.StationDailyProductionSituationEnt;
* @author ZWT
* @author ZWT
* @date 2024/10/20
* @date 2024/10/20
*/
*/
@Repository
(
value
=
"pps.core.prediction.mapper.StationDailyProductionSituationMapper"
)
@Repository
(
value
=
"pps.core.prediction.mapper.StationDailyProductionSituationMapper"
)
public
interface
StationDailyProductionSituationMapper
extends
BaseMapper
<
StationDailyProductionSituationEnt
>
{
public
interface
StationDailyProductionSituationMapper
extends
BaseMapper
<
StationDailyProductionSituationEnt
>
{
}
}
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/PlantTrainPowerTaskService.java
View file @
fbc45936
...
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
...
@@ -4,7 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
pps.cloud.prediction.service.PlantTrainPowerTaskCloudService
;
import
pps.cloud.prediction.service.PlantTrainPowerTaskCloudService
;
import
pps.cloud.prediction.service.data.plant_train_power_task.GetPlantTrainPowerTaskCloudInput
;
import
pps.cloud.prediction.service.data.plant_train_power_task.GetPlantTrainPowerTaskCloudInput
;
import
pps.cloud.prediction.service.data.plant_train_power_task.GetPlantTrainPowerTaskCloudOutput
;
import
pps.cloud.prediction.service.data.plant_train_power_task.GetPlantTrainPowerTaskCloudOutput
;
import
pps.core.common.
constant.BusinessConstant
;
import
pps.core.common.
utils.BaseUtils
;
import
pps.core.prediction.entity.PlantTrainPowerTaskEnt
;
import
pps.core.prediction.entity.PlantTrainPowerTaskEnt
;
import
pps.core.prediction.mapper.PlantTrainPowerTaskMapper
;
import
pps.core.prediction.mapper.PlantTrainPowerTaskMapper
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
...
@@ -19,7 +19,7 @@ public class PlantTrainPowerTaskService implements PlantTrainPowerTaskCloudServi
...
@@ -19,7 +19,7 @@ public class PlantTrainPowerTaskService implements PlantTrainPowerTaskCloudServi
PlantTrainPowerTaskMapper
mapper
=
context
.
getBean
(
PlantTrainPowerTaskMapper
.
class
);
PlantTrainPowerTaskMapper
mapper
=
context
.
getBean
(
PlantTrainPowerTaskMapper
.
class
);
LambdaQueryWrapper
<
PlantTrainPowerTaskEnt
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
PlantTrainPowerTaskEnt
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
PlantTrainPowerTaskEnt:
:
getPlantId
,
input
.
getPlantId
())
queryWrapper
.
eq
(
PlantTrainPowerTaskEnt:
:
getPlantId
,
input
.
getPlantId
())
.
last
(
B
usinessConstant
.
LAST_LIMIT
);
.
last
(
B
aseUtils
.
getLastLimit
()
);
PlantTrainPowerTaskEnt
ent
=
mapper
.
selectOne
(
queryWrapper
);
PlantTrainPowerTaskEnt
ent
=
mapper
.
selectOne
(
queryWrapper
);
GetPlantTrainPowerTaskCloudOutput
output
=
XCopyUtils
.
copyNewObject
(
ent
,
GetPlantTrainPowerTaskCloudOutput
.
class
);
GetPlantTrainPowerTaskCloudOutput
output
=
XCopyUtils
.
copyNewObject
(
ent
,
GetPlantTrainPowerTaskCloudOutput
.
class
);
return
XSingleResult
.
success
(
output
);
return
XSingleResult
.
success
(
output
);
...
...
C13-middle/pps-core-middle/src/main/java/pps/core/middle/mapper/WellBaseMapper.java
View file @
fbc45936
...
@@ -4,6 +4,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
...
@@ -4,6 +4,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
pps.core.middle.entity.WellBaseEnt
;
import
pps.core.middle.entity.WellBaseEnt
;
@Repository
(
value
=
"pps.core.middle.mapper.WellBaseMapper"
)
@Repository
(
value
=
"pps.core.middle.mapper.WellBaseMapper"
)
public
interface
WellBaseMapper
extends
BaseMapper
<
WellBaseEnt
>
{
public
interface
WellBaseMapper
extends
BaseMapper
<
WellBaseEnt
>
{
}
}
C13-middle/pps-core-middle/src/main/java/pps/core/middle/mapper/WellBaseViewMapper.java
View file @
fbc45936
package
pps.core.middle.mapper
;
package
pps.core.middle.mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
pps.core.middle.entity.WellBaseView
;
import
pps.core.middle.entity.WellBaseView
;
import
java.util.List
;
import
java.util.List
;
@Repository
(
value
=
"pps.core.middle.mapper.WellBaseViewMapper"
)
@Repository
(
value
=
"pps.core.middle.mapper.WellBaseViewMapper"
)
public
interface
WellBaseViewMapper
{
public
interface
WellBaseViewMapper
{
WellBaseView
selectOne
(
WellBaseView
record
);
WellBaseView
selectOne
(
WellBaseView
record
);
List
<
WellBaseView
>
selectList
(
WellBaseView
record
);
List
<
WellBaseView
>
selectList
(
WellBaseView
record
);
}
}
C13-middle/pps-core-middle/src/main/java/pps/core/middle/service/StationMappingService.java
View file @
fbc45936
...
@@ -30,30 +30,6 @@ import java.util.List;
...
@@ -30,30 +30,6 @@ import java.util.List;
@XService
@XService
public
class
StationMappingService
{
public
class
StationMappingService
{
@XApiAnonymous
@XApiGet
(
anonymous
=
true
)
public
XSingleResult
<
GetStationMappingOutput
>
getStationMapping
(
XContext
context
,
GetStationMappingInput
input
)
{
StationMappingMapper
mapper
=
context
.
getBean
(
StationMappingMapper
.
class
);
List
<
StationMappingEnt
>
list
=
mapper
.
selectList
(
new
LambdaQueryWrapper
<>());
for
(
StationMappingEnt
stationMappingEnt
:
list
)
{
context
.
getLogger
().
info
(
JSONUtil
.
toJsonStr
(
stationMappingEnt
));
}
try
{
String
storeDir
=
XStartup
.
getCurrent
().
getProperty
(
"weather.file.temp.path"
);
StringBuilder
stringBuilder
=
new
StringBuilder
(
storeDir
)
.
append
(
File
.
separator
)
.
append
(
DateTime
.
now
().
toString
(
"yyyyMMdd"
));
String
filePath
=
stringBuilder
.
append
(
File
.
separator
).
append
(
"test.json"
).
toString
();
String
url
=
"http://192.168.100.128/tqfj/202410181200天气预测数据SY.json"
;
HttpUtil
.
downloadFile
(
url
,
filePath
);
context
.
getLogger
().
info
(
filePath
);
context
.
getLogger
().
info
(
FileUtil
.
readUtf8String
(
filePath
));
}
catch
(
Exception
e
)
{
context
.
getLogger
().
error
(
e
.
getMessage
(),
e
);
}
return
XSingleResult
.
success
();
}
//Oracle数据库的ip和端口(可以是服务器上的)
//Oracle数据库的ip和端口(可以是服务器上的)
private
static
final
String
URL
=
"192.168.0.128:1521"
;
private
static
final
String
URL
=
"192.168.0.128:1521"
;
//服务名称(SID)
//服务名称(SID)
...
@@ -74,55 +50,6 @@ public class StationMappingService {
...
@@ -74,55 +50,6 @@ public class StationMappingService {
" OR U.OBJECT_TYPE = 'TRIGGER' "
+
" OR U.OBJECT_TYPE = 'TRIGGER' "
+
" ORDER BY U.OBJECT_TYPE DESC"
;
" ORDER BY U.OBJECT_TYPE DESC"
;
@XApiAnonymous
@XApiGet
(
anonymous
=
true
)
public
XServiceResult
test
(
XContext
context
)
throws
SQLException
{
List
<
String
>
list
=
new
ArrayList
<>();
Connection
conn
=
null
;
try
{
File
saveFile
=
new
File
(
PATH
);
if
(!
saveFile
.
exists
())
{
// 如果目录不存在
saveFile
.
mkdirs
();
// 创建文件夹
}
Class
.
forName
(
"oracle.jdbc.driver.OracleDriver"
);
//三个参数的分别为连接的URL,用户名,密码
//JDBC三件套
// conn = DriverManager.getConnection("jdbc:oracle:thin:@" + URL + ":" + SERVICE_NAME, USERNAME, PASSWORD);
conn
=
DriverManager
.
getConnection
(
"jdbc:oracle:thin:@192.168.100.128:1521/ORCL"
,
USERNAME
,
PASSWORD
);
PreparedStatement
ps
=
conn
.
prepareStatement
(
SQL
);
ResultSet
res
=
ps
.
executeQuery
();
String
sql_statement
=
""
;
FileWriter
writer
;
//在导出的脚本名称上加时间起到记录的作用,同时避免被覆盖,注意日期格式不要加空格(文件不支持)
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd_HH-mm-ss"
);
String
format
=
simpleDateFormat
.
format
(
new
Date
());
writer
=
new
FileWriter
(
PATH
+
"gqdc_"
+
format
+
".sql"
);
list
.
add
(
PATH
);
list
.
add
(
"gqdc_"
+
format
+
".sql"
);
//得到的字符串较大,不能直接写入到脚本
while
(
res
.
next
())
{
sql_statement
=
res
.
getString
(
1
)
+
";"
;
writer
.
write
(
sql_statement
);
}
writer
.
flush
();
writer
.
close
();
//查询某个用户(数据库)下所有表
String
sql
=
"select * from all_tables a where a.OWNER = upper('DB_CONTRACT')"
;
ResultSet
resultSet
=
ps
.
executeQuery
(
sql
);
while
(
resultSet
.
next
())
{
String
Bname
=
getTableInsertSql
(
conn
,
resultSet
.
getString
(
2
));
list
.
add
(
Bname
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
conn
.
close
();
}
return
XServiceResult
.
OK
;
}
//导出单表,conn为连接,tableName为表名称
//导出单表,conn为连接,tableName为表名称
public
static
String
getTableInsertSql
(
@NotNull
Connection
conn
,
String
tableName
)
throws
Exception
{
public
static
String
getTableInsertSql
(
@NotNull
Connection
conn
,
String
tableName
)
throws
Exception
{
ResultSet
rs
=
null
;
ResultSet
rs
=
null
;
...
@@ -178,4 +105,76 @@ public class StationMappingService {
...
@@ -178,4 +105,76 @@ public class StationMappingService {
statement
.
close
();
statement
.
close
();
}
}
}
}
@XApiAnonymous
@XApiGet
(
anonymous
=
true
)
public
XSingleResult
<
GetStationMappingOutput
>
getStationMapping
(
XContext
context
,
GetStationMappingInput
input
)
{
StationMappingMapper
mapper
=
context
.
getBean
(
StationMappingMapper
.
class
);
List
<
StationMappingEnt
>
list
=
mapper
.
selectList
(
new
LambdaQueryWrapper
<>());
for
(
StationMappingEnt
stationMappingEnt
:
list
)
{
context
.
getLogger
().
info
(
JSONUtil
.
toJsonStr
(
stationMappingEnt
));
}
try
{
String
storeDir
=
XStartup
.
getCurrent
().
getProperty
(
"weather.file.temp.path"
);
StringBuilder
stringBuilder
=
new
StringBuilder
(
storeDir
)
.
append
(
File
.
separator
)
.
append
(
DateTime
.
now
().
toString
(
"yyyyMMdd"
));
String
filePath
=
stringBuilder
.
append
(
File
.
separator
).
append
(
"test.json"
).
toString
();
String
url
=
"http://192.168.100.128/tqfj/202410181200天气预测数据SY.json"
;
HttpUtil
.
downloadFile
(
url
,
filePath
);
context
.
getLogger
().
info
(
filePath
);
context
.
getLogger
().
info
(
FileUtil
.
readUtf8String
(
filePath
));
}
catch
(
Exception
e
)
{
context
.
getLogger
().
error
(
e
.
getMessage
(),
e
);
}
return
XSingleResult
.
success
();
}
@XApiAnonymous
@XApiGet
(
anonymous
=
true
)
public
XServiceResult
test
(
XContext
context
)
throws
SQLException
{
List
<
String
>
list
=
new
ArrayList
<>();
Connection
conn
=
null
;
try
{
File
saveFile
=
new
File
(
PATH
);
if
(!
saveFile
.
exists
())
{
// 如果目录不存在
saveFile
.
mkdirs
();
// 创建文件夹
}
Class
.
forName
(
"oracle.jdbc.driver.OracleDriver"
);
//三个参数的分别为连接的URL,用户名,密码
//JDBC三件套
// conn = DriverManager.getConnection("jdbc:oracle:thin:@" + URL + ":" + SERVICE_NAME, USERNAME, PASSWORD);
conn
=
DriverManager
.
getConnection
(
"jdbc:oracle:thin:@192.168.100.128:1521/ORCL"
,
USERNAME
,
PASSWORD
);
PreparedStatement
ps
=
conn
.
prepareStatement
(
SQL
);
ResultSet
res
=
ps
.
executeQuery
();
String
sql_statement
=
""
;
FileWriter
writer
;
//在导出的脚本名称上加时间起到记录的作用,同时避免被覆盖,注意日期格式不要加空格(文件不支持)
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd_HH-mm-ss"
);
String
format
=
simpleDateFormat
.
format
(
new
Date
());
writer
=
new
FileWriter
(
PATH
+
"gqdc_"
+
format
+
".sql"
);
list
.
add
(
PATH
);
list
.
add
(
"gqdc_"
+
format
+
".sql"
);
//得到的字符串较大,不能直接写入到脚本
while
(
res
.
next
())
{
sql_statement
=
res
.
getString
(
1
)
+
";"
;
writer
.
write
(
sql_statement
);
}
writer
.
flush
();
writer
.
close
();
//查询某个用户(数据库)下所有表
String
sql
=
"select * from all_tables a where a.OWNER = upper('DB_CONTRACT')"
;
ResultSet
resultSet
=
ps
.
executeQuery
(
sql
);
while
(
resultSet
.
next
())
{
String
Bname
=
getTableInsertSql
(
conn
,
resultSet
.
getString
(
2
));
list
.
add
(
Bname
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
conn
.
close
();
}
return
XServiceResult
.
OK
;
}
}
}
C13-middle/pps-core-middle/src/main/resources/mybatis/mapper/pps/core/middle/ThirdActivePowerViewMapper.xml
View file @
fbc45936
...
@@ -44,7 +44,8 @@
...
@@ -44,7 +44,8 @@
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectThirdActivePowerList"
parameterType=
"pps.core.middle.entity.ThirdActivePowerView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectThirdActivePowerList"
parameterType=
"pps.core.middle.entity.ThirdActivePowerView"
resultMap=
"BaseResultMap"
>
SELECT
SELECT
S.SYSTEM_STATION_NAME AS STATION_NAME,
S.SYSTEM_STATION_NAME AS STATION_NAME,
SUM( T.PHOTOVOLTAIC_POWER ) AS PHOTOVOLTAIC_POWER,
SUM( T.PHOTOVOLTAIC_POWER ) AS PHOTOVOLTAIC_POWER,
...
...
C13-middle/pps-core-middle/src/main/resources/mybatis/mapper/pps/core/middle/ThirdPhotovoltaicPowerViewMapper.xml
View file @
fbc45936
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
ID=#{id}
ID=#{id}
</select>
</select>
<select
id=
"selectPhotovoltaicPowerList"
parameterType=
"pps.core.middle.entity.ThirdPhotovoltaicPowerView"
resultMap=
"BaseResultMap"
>
<select
id=
"selectPhotovoltaicPowerList"
parameterType=
"pps.core.middle.entity.ThirdPhotovoltaicPowerView"
resultMap=
"BaseResultMap"
>
SELECT S.SYSTEM_STATION_NAME AS STATION_NAME,
SELECT S.SYSTEM_STATION_NAME AS STATION_NAME,
AVG(T.PHOTOVOLTAIC_POWER) AS PHOTOVOLTAIC_POWER,
AVG(T.PHOTOVOLTAIC_POWER) AS PHOTOVOLTAIC_POWER,
TRUNC( T.CREATE_DATE ) AS CREATE_DATE
TRUNC( T.CREATE_DATE ) AS CREATE_DATE
...
...
数据字典.md
View file @
fbc45936
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment