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
2afdc84f
Commit
2afdc84f
authored
Apr 26, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改户用光伏导出、下载模板
parent
f2a97230
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
81 additions
and
4 deletions
+81
-4
EquipMessageExport.java
...in/amos/boot/module/jxiop/api/dto/EquipMessageExport.java
+15
-0
HouseholdPvMapper.java
.../amos/boot/module/jxiop/api/mapper/HouseholdPvMapper.java
+3
-0
IHouseholdPvService.java
...os/boot/module/jxiop/api/service/IHouseholdPvService.java
+11
-4
HouseholdPvMapper.xml
...jxiop-api/src/main/resources/mapper/HouseholdPvMapper.xml
+37
-0
HouseholdPvController.java
...ot/module/jxiop/biz/controller/HouseholdPvController.java
+0
-0
HouseholdPvServiceImpl.java
...module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
+15
-0
householdExportAll.xls
...p-biz/src/main/resources/templates/householdExportAll.xls
+0
-0
householdTemplates.xls
...p-biz/src/main/resources/templates/householdTemplates.xls
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/dto/EquipMessageExport.java
0 → 100644
View file @
2afdc84f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
dto
;
import
lombok.Data
;
@Data
public
class
EquipMessageExport
{
private
Integer
numSort
;
private
String
name
;
private
String
idNumber
;
private
String
type
;
private
String
equipName
;
private
String
brand
;
private
String
snCode
;
private
String
description
;
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/HouseholdPvMapper.java
View file @
2afdc84f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.EquipMessageExport
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDeviceDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDeviceDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvExport
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvExport
;
...
@@ -21,6 +22,8 @@ public interface HouseholdPvMapper extends BaseMapper<HouseholdPv> {
...
@@ -21,6 +22,8 @@ public interface HouseholdPvMapper extends BaseMapper<HouseholdPv> {
List
<
HouseholdPvExport
>
selectExportList
(
@Param
(
"dto"
)
HouseholdPvDto
dto
,
@Param
(
"ids"
)
List
<
Long
>
ids
);
List
<
HouseholdPvExport
>
selectExportList
(
@Param
(
"dto"
)
HouseholdPvDto
dto
,
@Param
(
"ids"
)
List
<
Long
>
ids
);
List
<
EquipMessageExport
>
selectExportEquipMessage
(
@Param
(
"dto"
)
HouseholdPvDto
dto
,
@Param
(
"ids"
)
List
<
Long
>
ids
);
List
<
HouseholdPvDeviceDto
>
selectEquipList
(
@Param
(
"id"
)
Long
id
);
List
<
HouseholdPvDeviceDto
>
selectEquipList
(
@Param
(
"id"
)
Long
id
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/service/IHouseholdPvService.java
View file @
2afdc84f
...
@@ -5,10 +5,7 @@ import java.util.List;
...
@@ -5,10 +5,7 @@ import java.util.List;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.CompanyTreeDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.*
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvExport
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.HouseholdPvImport
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPv
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.HouseholdPv
;
import
com.yeejoin.amos.boot.module.jxiop.api.util.CommonResponse
;
import
com.yeejoin.amos.boot.module.jxiop.api.util.CommonResponse
;
import
com.yeejoin.amos.feign.privilege.model.UserOrgTreeModel
;
import
com.yeejoin.amos.feign.privilege.model.UserOrgTreeModel
;
...
@@ -34,4 +31,14 @@ public interface IHouseholdPvService extends IService<HouseholdPv>{
...
@@ -34,4 +31,14 @@ public interface IHouseholdPvService extends IService<HouseholdPv>{
HouseholdPvDto
getBySeq
(
Long
id
);
HouseholdPvDto
getBySeq
(
Long
id
);
Integer
countRepeat
(
HouseholdPvDto
householdPvDto
,
String
type
);
Integer
countRepeat
(
HouseholdPvDto
householdPvDto
,
String
type
);
/**
* 导出-户用光伏运维表-设备信息
* @param dto
* @param ids
* @return
*/
List
<
EquipMessageExport
>
selectExportEquipMessage
(
HouseholdPvDto
dto
,
List
<
Long
>
ids
);
}
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvMapper.xml
View file @
2afdc84f
...
@@ -97,5 +97,42 @@
...
@@ -97,5 +97,42 @@
WHERE
WHERE
sequence_nbr = #{id}
sequence_nbr = #{id}
</select>
</select>
<select
id=
"selectExportEquipMessage"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.EquipMessageExport"
>
SELECT
(@i:= @i+1) as numSort,
hp.`name`,
hp.ID_number AS idNumber,
hpd.type,
hpd.name as equipName,
hpd.brand,
hpd.SN_code as snCode,
hpd.SN_code as description
FROM
(SELECT @i:=0) as i,
household_pv hp
left join household_pv_device hpd on hp.sequence_nbr = hpd.household_pv_id
<where>
<if
test=
"dto.name != null and dto.name != ''"
>
and hp.name like concat('%',#{dto.name},'%')
</if>
<if
test=
"dto.bizOrgCode != null and dto.bizOrgCode != ''"
>
and hp.biz_org_code like concat('%',#{dto.bizOrgCode},'%')
</if>
<if
test=
"dto.level != null and dto.level != ''"
>
and hp.level = #{dto.level}
</if>
<if
test=
"dto.number != null and dto.number != ''"
>
and hp.number like concat('%',#{dto.number},'%')
</if>
<if
test=
"ids != null and ids.size > 0"
>
and hp.sequence_nbr in
<foreach
collection=
"ids"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</where>
</select>
</mapper>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvController.java
View file @
2afdc84f
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
View file @
2afdc84f
...
@@ -522,4 +522,18 @@ public class HouseholdPvServiceImpl extends BaseService<HouseholdPvDto, Househol
...
@@ -522,4 +522,18 @@ public class HouseholdPvServiceImpl extends BaseService<HouseholdPvDto, Househol
return
householdPvDto
;
return
householdPvDto
;
}
}
@Override
public
List
<
EquipMessageExport
>
selectExportEquipMessage
(
HouseholdPvDto
dto
,
List
<
Long
>
ids
)
{
String
bizOrgCode
=
null
;
if
(!
ObjectUtils
.
isEmpty
(
dto
.
getPlatformCompanyId
()))
{
bizOrgCode
=
getOrgCode
(
dto
.
getPlatformCompanyId
());
if
(!
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
dto
.
setBizOrgCode
(
bizOrgCode
);
}
}
return
householdPvMapper
.
selectExportEquipMessage
(
dto
,
ids
);
}
}
}
\ No newline at end of file
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/household
TemplatesNew
.xls
→
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/household
ExportAll
.xls
View file @
2afdc84f
No preview for this file type
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/householdTemplates.xls
View file @
2afdc84f
No preview for this file type
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