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
cee6219f
Commit
cee6219f
authored
Mar 18, 2024
by
ZWT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nocommit
parent
853ac8a7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
7 deletions
+63
-7
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/WellheadDailyProductionSituationService.java
...tion/service/WellheadDailyProductionSituationService.java
+25
-7
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/data/wellhead_daily_production_situation/GetWellRealPvInput.java
...llhead_daily_production_situation/GetWellRealPvInput.java
+19
-0
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/data/wellhead_daily_production_situation/GetWellRealPvOutput.java
...lhead_daily_production_situation/GetWellRealPvOutput.java
+19
-0
No files found.
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/WellheadDailyProductionSituationService.java
View file @
cee6219f
...
@@ -12,10 +12,7 @@ import pps.core.auth.HttpRequestClient;
...
@@ -12,10 +12,7 @@ import pps.core.auth.HttpRequestClient;
import
pps.core.prediction.constant.ThirdPartyApiConstant
;
import
pps.core.prediction.constant.ThirdPartyApiConstant
;
import
pps.core.prediction.entity.WellheadDailyProductionSituationEnt
;
import
pps.core.prediction.entity.WellheadDailyProductionSituationEnt
;
import
pps.core.prediction.mapper.WellheadDailyProductionSituationMapper
;
import
pps.core.prediction.mapper.WellheadDailyProductionSituationMapper
;
import
pps.core.prediction.service.data.wellhead_daily_production_situation.GetWellheadDailyProductionSituationInput
;
import
pps.core.prediction.service.data.wellhead_daily_production_situation.*
;
import
pps.core.prediction.service.data.wellhead_daily_production_situation.GetWellheadDailyProductionSituationOutput
;
import
pps.core.prediction.service.data.wellhead_daily_production_situation.QueryWellheadDailyProductionSituationInput
;
import
pps.core.prediction.service.data.wellhead_daily_production_situation.QueryWellheadDailyProductionSituationOutput
;
import
pps.core.prediction.utils.ServiceUtil
;
import
pps.core.prediction.utils.ServiceUtil
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XService
;
import
xstartup.annotation.XText
;
import
xstartup.annotation.XText
;
...
@@ -51,8 +48,8 @@ public class WellheadDailyProductionSituationService {
...
@@ -51,8 +48,8 @@ public class WellheadDailyProductionSituationService {
* @param input 输入
* @param input 输入
* @return {@link XPageResult}<{@link QueryWellheadDailyProductionSituationOutput}>
* @return {@link XPageResult}<{@link QueryWellheadDailyProductionSituationOutput}>
*/
*/
@XText
(
"井口生产情况--分页列表"
)
@XApiAnonymous
@XApiAnonymous
@XText
(
"井口生产情况--分页列表"
)
@XApiPost
@XApiPost
public
XPageResult
<
QueryWellheadDailyProductionSituationOutput
>
queryWellheadDailyProductionSituationView
(
XContext
context
,
QueryWellheadDailyProductionSituationInput
input
)
{
public
XPageResult
<
QueryWellheadDailyProductionSituationOutput
>
queryWellheadDailyProductionSituationView
(
XContext
context
,
QueryWellheadDailyProductionSituationInput
input
)
{
WellheadDailyProductionSituationMapper
mapper
=
context
.
getBean
(
WellheadDailyProductionSituationMapper
.
class
);
WellheadDailyProductionSituationMapper
mapper
=
context
.
getBean
(
WellheadDailyProductionSituationMapper
.
class
);
...
@@ -74,14 +71,17 @@ public class WellheadDailyProductionSituationService {
...
@@ -74,14 +71,17 @@ public class WellheadDailyProductionSituationService {
}
}
/**
/**
* 井口生产情况-甘特图
* 甘特图
* POST /prediction/wellhead-daily-production-situation/query-rpt-system-start-stop
* 接口ID:156546795
* 接口地址:https://app.apifox.com/project/3196988/apis/api-156546795
*
*
* @param context 上下文
* @param context 上下文
* @param input 输入
* @param input 输入
* @return {@link XListResult}<{@link GetWellheadDailyProductionSituationOutput}>
* @return {@link XListResult}<{@link GetWellheadDailyProductionSituationOutput}>
*/
*/
@XText
(
"井口生产情况--甘特图"
)
@XApiAnonymous
@XApiAnonymous
@XText
(
"井口生产情况--甘特图"
)
@XApiPost
@XApiPost
public
XListResult
<
GetWellheadDailyProductionSituationOutput
>
queryRptSystemStartStop
(
XContext
context
,
GetWellheadDailyProductionSituationInput
input
)
{
public
XListResult
<
GetWellheadDailyProductionSituationOutput
>
queryRptSystemStartStop
(
XContext
context
,
GetWellheadDailyProductionSituationInput
input
)
{
String
token
=
ServiceUtil
.
getToken
(
context
);
String
token
=
ServiceUtil
.
getToken
(
context
);
...
@@ -101,6 +101,24 @@ public class WellheadDailyProductionSituationService {
...
@@ -101,6 +101,24 @@ public class WellheadDailyProductionSituationService {
return
XListResult
.
success
(
outputs
);
return
XListResult
.
success
(
outputs
);
}
}
@XApiAnonymous
@XText
(
"井口生产情况--油井状态"
)
@XApiPost
public
XListResult
<
GetWellRealPvOutput
>
queryWellRealPvData
(
XContext
context
,
GetWellRealPvInput
input
)
{
String
token
=
ServiceUtil
.
getToken
(
context
);
HttpRequestClient
client
=
new
HttpRequestClient
(
token
);
String
url
=
XStartup
.
getCurrent
().
getProperty
(
"third-party.chang-qing.url"
);
url
+=
ThirdPartyApiConstant
.
CQ_WELL_REAL_PV_DATA
;
String
resultStr
=
client
.
doPostForm
(
url
,
new
HashMap
<>(
0
));
JSONObject
jsonObject
=
JSON
.
parseObject
(
resultStr
);
String
data
=
jsonObject
.
getString
(
"data"
);
List
<
GetWellRealPvOutput
>
outputs
=
JSON
.
parseArray
(
data
,
GetWellRealPvOutput
.
class
);
if
(
CollUtil
.
isEmpty
(
outputs
))
{
outputs
=
new
ArrayList
<>(
0
);
}
return
XListResult
.
success
(
outputs
);
}
@XApiAnonymous
@XApiAnonymous
@XText
(
"井口生产情况--test"
)
@XText
(
"井口生产情况--test"
)
...
...
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/data/wellhead_daily_production_situation/GetWellRealPvInput.java
0 → 100644
View file @
cee6219f
package
pps.core.prediction.service.data.wellhead_daily_production_situation
;
import
jakarta.validation.constraints.NotBlank
;
import
lombok.Data
;
import
xstartup.annotation.XText
;
/**
* 油井状态
*
* @author ZWT
* @date 2024/03/18 17:24
*/
@Data
public
class
GetWellRealPvInput
{
@XText
(
"线路ID"
)
@NotBlank
(
message
=
"缺少线路ID"
)
private
String
lineId
;
}
C12-prediction/pps-core-prediction/src/main/java/pps/core/prediction/service/data/wellhead_daily_production_situation/GetWellRealPvOutput.java
0 → 100644
View file @
cee6219f
package
pps.core.prediction.service.data.wellhead_daily_production_situation
;
import
jakarta.validation.constraints.NotBlank
;
import
lombok.Data
;
import
xstartup.annotation.XText
;
/**
* 油井状态
*
* @author ZWT
* @date 2024/03/18 17:24
*/
@Data
public
class
GetWellRealPvOutput
{
@XText
(
"线路ID"
)
@NotBlank
(
message
=
"缺少线路ID"
)
private
String
lineId
;
}
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