Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
315e9dc7
Commit
315e9dc7
authored
Mar 14, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
户用光伏-运维工单代码调整。
parent
fdd6fa0b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
4 deletions
+62
-4
JpStation.java
...m/yeejoin/amos/boot/module/hygf/api/entity/JpStation.java
+4
-0
JpStationMapper.java
...oin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
+2
-0
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+41
-0
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+0
-0
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+15
-4
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/JpStation.java
View file @
315e9dc7
...
...
@@ -8,6 +8,7 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 第三方场站
...
...
@@ -218,4 +219,7 @@ public class JpStation extends BaseEntity {
@TableField
(
"amos_company_code"
)
private
String
amosCompanyCode
;
@TableField
(
exist
=
false
)
private
List
<
String
>
snCodes
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
View file @
315e9dc7
...
...
@@ -27,6 +27,8 @@ public interface JpStationMapper extends BaseMapper<JpStation> {
@UserEmpower
(
field
={
"regional_companies_code"
,
"amos_company_code"
}
,
fieldConditions
={
"in"
,
"in"
}
,
relationship
=
"and"
)
List
<
JpStation
>
getJpStation
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
List
<
JpStation
>
getJpStationList
(
@Param
(
"dto"
)
JpStationDto
reviewDto
);
@UserEmpower
(
field
={
"ORG_CODE"
}
,
fieldConditions
={
"in"
}
,
relationship
=
""
)
List
<
DropDown
>
getRegion
();
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
315e9dc7
...
...
@@ -200,6 +200,47 @@
</where>
</select>
<select
id=
"getJpStationList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.JpStation"
>
select
*
from hygf_jp_station
<where>
is_delete=0
<if
test=
"dto.name!=null"
>
and hygf_jp_station.name like concat(concat("%",#{dto.name}),"%")
</if>
<if
test=
"dto.userName!=null"
>
and hygf_jp_station.user_name like concat(concat("%",#{dto.userName}),"%")
</if>
<if
test=
"dto.address!=null"
>
and hygf_jp_station.address like concat(concat("%",#{dto.address}),"%")
</if>
<if
test=
"dto.area!=null"
>
and hygf_jp_station.area like concat(concat("%",#{dto.area}),"%")
</if>
<if
test=
"dto.thirdStationIds!=null and dto.thirdStationIds.size()> 0 "
>
and hygf_jp_station.third_station_id in
<foreach
collection=
"dto.thirdStationIds"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"dto.thirdStationId!=null"
>
and hygf_jp_station.third_station_id =#{dto.thirdStationId}
</if>
<if
test=
"dto.regionalCompaniesCode!=null and dto.regionalCompaniesCode!=''"
>
and hygf_jp_station.regional_companies_code =#{dto.regionalCompaniesCode}
</if>
<if
test=
"dto.amosCompanyCode!=null and dto.amosCompanyCode!=''"
>
and hygf_jp_station.amos_company_code =#{dto.amosCompanyCode}
</if>
<if
test=
"dto.state!=null"
>
and hygf_jp_station.`state` =#{dto.state}
</if>
</where>
</select>
<select
id=
"getRegion"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.DropDown"
>
SELECT privilege_company.ORG_CODE orgCode ,
privilege_company.COMPANY_NAME name
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
315e9dc7
This diff is collapsed.
Click to expand it.
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 @
315e9dc7
...
...
@@ -4,15 +4,14 @@ import cn.hutool.core.date.DateUtil;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.support.ExcelTypeEnum
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserLimits
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.*
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.DayGenerate
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.MonthGenerate
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.YearGenerate
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.*
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.JpInverterMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.JpStationMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IJpStationService
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.DayGenerateMapper
;
...
...
@@ -46,6 +45,8 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
@Autowired
JpStationMapper
jpStationMapper
;
@Autowired
JpInverterMapper
jpInverterMapper
;
@Autowired
MonthPowerMapper
monthPowerMapper
;
@Autowired
MonthPowerServiceImpl
monthPowerServiceImpl
;
...
...
@@ -175,6 +176,16 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
return
jpStationMapper
.
getcountStatetc
(
reviewDto
);
}
public
List
<
JpStation
>
getJpStationList
(
JpStationDto
reviewDto
){
List
<
JpInverter
>
dataJpInverter
=
jpInverterMapper
.
selectList
(
new
QueryWrapper
<
JpInverter
>().
isNotNull
(
"third_station_id"
));
Map
<
String
,
List
<
String
>>
inverterMap
=
dataJpInverter
.
stream
().
collect
(
Collectors
.
groupingBy
(
JpInverter:
:
getThirdStationId
,
Collectors
.
mapping
(
JpInverter:
:
getSnCode
,
Collectors
.
toList
())));
List
<
JpStation
>
list
=
jpStationMapper
.
getJpStationList
(
reviewDto
);
list
.
forEach
(
jpStation
->
{
jpStation
.
setSnCodes
(
inverterMap
.
get
(
jpStation
.
getThirdStationId
()));
});
return
list
;
}
@Override
@UserLimits
public
Map
<
String
,
Object
>
getcountStatejs
(
JpStationDto
reviewDto
)
{
...
...
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