Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
4cfad79c
Commit
4cfad79c
authored
Oct 24, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
2d51e056
9d894db5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
IdxBizFanWeightController.java
...odule/jxiop/biz/controller/IdxBizFanWeightController.java
+12
-5
IdxBizPvWeightController.java
...module/jxiop/biz/controller/IdxBizPvWeightController.java
+11
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizFanWeightController.java
View file @
4cfad79c
...
...
@@ -21,7 +21,10 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.DecimalFormat
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @description:
...
...
@@ -116,7 +119,7 @@ public class IdxBizFanWeightController extends BaseController {
@Transactional
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/update"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
IdxBizFanWeight
>
update
(
@RequestBody
List
<
IdxBizFanWeight
>
list
)
{
...
...
@@ -159,14 +162,18 @@ public class IdxBizFanWeightController extends BaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/list"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
List
<
IdxBizFanWeight
>>
list
(
@RequestBody
List
<
String
>
list
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
list
(
String
ids
)
{
List
<
String
>
list
=
Arrays
.
asList
(
ids
.
split
(
","
));
LambdaQueryWrapper
<
IdxBizFanWeight
>
qu
=
new
LambdaQueryWrapper
<>();
qu
.
in
(!
list
.
isEmpty
(),
IdxBizFanWeight:
:
getSequenceNbr
,
list
);
List
<
IdxBizFanWeight
>
listdata
=
idxBizFanWeightMapper
.
selectList
(
qu
);
return
ResponseHelper
.
buildResponse
(
listdata
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"data"
,
listdata
);
return
ResponseHelper
.
buildResponse
(
data
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizPvWeightController.java
View file @
4cfad79c
...
...
@@ -23,7 +23,10 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
java.text.DecimalFormat
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @description:
...
...
@@ -167,14 +170,18 @@ public class IdxBizPvWeightController extends BaseController {
}
return
ResponseHelper
.
buildResponse
(
null
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/list"
)
@ApiOperation
(
httpMethod
=
"get"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
List
<
IdxBizPvWeight
>>
list
(
@RequestBody
List
<
String
>
list
)
{
public
ResponseModel
<
Map
<
String
,
Object
>>
list
(
String
ids
)
{
List
<
String
>
list
=
Arrays
.
asList
(
ids
.
split
(
","
));
LambdaQueryWrapper
<
IdxBizPvWeight
>
qu
=
new
LambdaQueryWrapper
<>();
qu
.
in
(!
list
.
isEmpty
(),
IdxBizPvWeight:
:
getSequenceNbr
,
list
);
List
<
IdxBizPvWeight
>
listdata
=
idxBizPvWeightMapper
.
selectList
(
qu
);
return
ResponseHelper
.
buildResponse
(
listdata
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"data"
,
listdata
);
return
ResponseHelper
.
buildResponse
(
data
);
}
}
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