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
a36ff5a7
Commit
a36ff5a7
authored
Mar 30, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
902d00dc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
HouseholdPvDistrictMapper.xml
...i/src/main/resources/mapper/HouseholdPvDistrictMapper.xml
+9
-6
HouseholdPvDeviceController.java
...ule/jxiop/biz/controller/HouseholdPvDeviceController.java
+3
-0
HouseholdPvServiceImpl.java
...module/jxiop/biz/service/impl/HouseholdPvServiceImpl.java
+8
-6
householdExport.xls
...xiop-biz/src/main/resources/templates/householdExport.xls
+0
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/HouseholdPvDistrictMapper.xml
View file @
a36ff5a7
...
...
@@ -16,12 +16,15 @@
hpd.parent_id = #{id}
</select>
<select
id=
"countHouseholdById"
resultType=
"java.lang.Integer"
>
SELECT COUNT(1)
FROM household_pv hp
WHERE hp.platform_company_id IN
(SELECT hpd.sequence_nbr
FROM household_pv_district hpd
WHERE hpd.sequence_nbr = #{id} OR hpd.parent_id = #{id})
SELECT
COUNT( 1 )
FROM
household_pv hp
LEFT JOIN household_pv_install hpi ON hp.sequence_nbr = hpi.household_pv_id
WHERE
hp.platform_company_id = #{id}
OR hp.district_id = #{id}
OR hpi.platform_company_id = #{id}
</select>
<select
id=
"selectIds"
resultType=
"java.lang.Long"
>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/HouseholdPvDeviceController.java
View file @
a36ff5a7
...
...
@@ -177,6 +177,9 @@ public class HouseholdPvDeviceController extends BaseController {
if
(
EquipType
.
OTHER
.
getName
().
equals
(
dto
.
getType
())
&&
ObjectUtils
.
isEmpty
(
dto
.
getDescription
()))
{
return
"第"
+
line
+
"行"
+
"描述不能为空!"
;
}
if
(
EquipType
.
OTHER
.
getName
().
equals
(
dto
.
getType
())
&&
dto
.
getDescription
().
length
()
>
1000
){
return
"第"
+
line
+
"行"
+
"描述最多输入1000个字符!"
;
}
line
=
line
+
1
;
}
}
...
...
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 @
a36ff5a7
...
...
@@ -255,16 +255,18 @@ public class HouseholdPvServiceImpl extends BaseService<HouseholdPvDto, Househol
StringBuilder
stringBuilder
=
new
StringBuilder
();
list
.
forEach
(
item
->
{
stringBuilder
.
append
(
"类型:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getType
())
?
""
:
item
.
getType
());
stringBuilder
.
append
(
" 名称:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getName
())
?
""
:
item
.
getName
());
stringBuilder
.
append
(
" 品牌:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getBrand
())
?
""
:
item
.
getBrand
());
stringBuilder
.
append
(
" SN编码:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getSNCode
())
?
""
:
item
.
getSNCode
());
if
(!
ObjectUtils
.
isEmpty
(
item
.
getType
())
&&
item
.
getType
().
equals
(
EquipType
.
OTHER
.
getName
()))
{
stringBuilder
.
append
(
" 描述:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getDescription
())
?
""
:
item
.
getDescription
());
}
else
{
stringBuilder
.
append
(
" 名称:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getName
())
?
""
:
item
.
getName
());
stringBuilder
.
append
(
" 品牌:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getBrand
())
?
""
:
item
.
getBrand
());
stringBuilder
.
append
(
" 型号:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getModel
())
?
""
:
item
.
getModel
());
stringBuilder
.
append
(
" SN编码:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getSNCode
())
?
""
:
item
.
getSNCode
());
}
if
(!
ObjectUtils
.
isEmpty
(
item
.
getType
())
&&
item
.
getType
().
equals
(
EquipType
.
INVERTER
.
getName
()))
{
stringBuilder
.
append
(
" 序列号:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getSerialNumber
())
?
""
:
item
.
getSerialNumber
());
stringBuilder
.
append
(
" 功率:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getPower
())
?
""
:
item
.
getPower
());
}
if
(!
ObjectUtils
.
isEmpty
(
item
.
getType
())
&&
item
.
getType
().
equals
(
EquipType
.
OTHER
.
getName
()))
{
stringBuilder
.
append
(
" 描述:"
).
append
(
ObjectUtils
.
isEmpty
(
item
.
getDescription
())
?
""
:
item
.
getDescription
());
}
stringBuilder
.
append
(
"\r\n"
);
});
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/resources/templates/householdExport.xls
View file @
a36ff5a7
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