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
596ee3ac
Commit
596ee3ac
authored
Dec 31, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量更新电站配置
parent
7fab8e20
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
1 deletion
+52
-1
JpStationBatchDto.java
...join/amos/boot/module/hygf/api/dto/JpStationBatchDto.java
+30
-0
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+1
-1
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+9
-0
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+12
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpStationBatchDto.java
0 → 100644
View file @
596ee3ac
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.List
;
/**
* 第三方场站
*
* @author system_generator
* @date 2023-09-19
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"JpStationBatchDto"
,
description
=
"第三方场站批量"
)
public
class
JpStationBatchDto
extends
BaseDto
{
private
List
<
Long
>
sequenceNbrList
;
@ApiModelProperty
(
"项目公司Code"
)
private
String
regionalCompaniesCode
;
@ApiModelProperty
(
"项目公司名称"
)
private
String
regionalCompaniesName
;
@ApiModelProperty
(
"经销商名称"
)
private
String
amosCompanyName
;
@ApiModelProperty
(
"经销商Code"
)
private
String
amosCompanyCode
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
596ee3ac
...
@@ -866,7 +866,7 @@
...
@@ -866,7 +866,7 @@
and (amos_company_code is not null and regional_companies_code is not null )
and (amos_company_code is not null and regional_companies_code is not null )
</if>
</if>
</where>
</where>
order by
rec_date
DESC
order by
sequence_nbr
DESC
</select>
</select>
<select
id=
"queryUnitInfo"
resultType=
"java.util.Map"
>
<select
id=
"queryUnitInfo"
resultType=
"java.util.Map"
>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
596ee3ac
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.module.hygf.api.config.DealerRestrict
;
import
com.yeejoin.amos.boot.module.hygf.api.config.DealerRestrict
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserLimits
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserLimits
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.DropDown
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.DropDown
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationBatchDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationStatistics
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationStatistics
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
...
@@ -846,6 +847,14 @@ public class JpStationController extends BaseController {
...
@@ -846,6 +847,14 @@ public class JpStationController extends BaseController {
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/updateBatchCompanyCode"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量更新项目公司和经销商"
,
notes
=
"批量更新项目公司和经销商"
)
public
ResponseModel
<?>
updateBatchCompanyCode
(
@RequestBody
JpStationBatchDto
jpStationBatchDto
)
{
jpStationServiceImpl
.
updateBatchCompanyCode
(
jpStationBatchDto
);
return
ResponseHelper
.
buildResponse
(
null
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/queryStation"
)
@PostMapping
(
value
=
"/queryStation"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询场站"
,
notes
=
"查询场站"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"查询场站"
,
notes
=
"查询场站"
)
public
ResponseModel
<?>
queryStation
(
@RequestBody
JpStationDto
reviewDto
)
{
public
ResponseModel
<?>
queryStation
(
@RequestBody
JpStationDto
reviewDto
)
{
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
596ee3ac
...
@@ -1150,4 +1150,15 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
...
@@ -1150,4 +1150,15 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
}
}
return
result
;
return
result
;
}
}
public
void
updateBatchCompanyCode
(
JpStationBatchDto
jpStationBatchDto
)
{
if
(
CollectionUtil
.
isNotEmpty
(
jpStationBatchDto
.
getSequenceNbrList
())){
LambdaUpdateWrapper
<
JpStation
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
set
(
JpStation:
:
getRegionalCompaniesCode
,
jpStationBatchDto
.
getRegionalCompaniesCode
())
.
set
(
JpStation:
:
getAmosCompanyCode
,
jpStationBatchDto
.
getAmosCompanyCode
())
.
in
(
JpStation:
:
getSequenceNbr
,
jpStationBatchDto
.
getSequenceNbrList
());
this
.
update
(
wrapper
);
}
}
}
}
\ No newline at end of file
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