Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
bd8b2da8
Commit
bd8b2da8
authored
Oct 17, 2024
by
位宇华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
范各庄电--代码提交
parent
38ec8ee5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
7 deletions
+30
-7
ruoyi-wages/src/main/java/com/ruoyi/system/model/power/dto/PowerDisplayDto.java
...ava/com/ruoyi/system/model/power/dto/PowerDisplayDto.java
+20
-0
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/PowerDisplayServiceImpl.java
...om/ruoyi/system/service/impl/PowerDisplayServiceImpl.java
+7
-5
ruoyi-wages/src/main/resources/mapper/system/PowerDisplayMapper.xml
...s/src/main/resources/mapper/system/PowerDisplayMapper.xml
+3
-2
No files found.
ruoyi-wages/src/main/java/com/ruoyi/system/model/power/dto/PowerDisplayDto.java
View file @
bd8b2da8
...
...
@@ -49,6 +49,10 @@ public class PowerDisplayDto {
private
String
levelThreeClassification
;
// 基本电费
private
String
basicElectricityTariff
;
//照明
private
String
lighting
;
//动力
private
String
motivation
;
public
String
getDateColumn
()
{
return
dateColumn
;
...
...
@@ -217,4 +221,20 @@ public class PowerDisplayDto {
public
void
setBasicElectricityTariff
(
String
basicElectricityTariff
)
{
this
.
basicElectricityTariff
=
basicElectricityTariff
;
}
public
String
getLighting
()
{
return
lighting
;
}
public
void
setLighting
(
String
lighting
)
{
this
.
lighting
=
lighting
;
}
public
String
getMotivation
()
{
return
motivation
;
}
public
void
setMotivation
(
String
motivation
)
{
this
.
motivation
=
motivation
;
}
}
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/PowerDisplayServiceImpl.java
View file @
bd8b2da8
...
...
@@ -263,14 +263,14 @@ public class PowerDisplayServiceImpl implements PowerDisplayService {
}
@Override
public
AjaxResult
save
(
List
<
NewRuleRequestModel
>
powerDisplayDto
List
)
{
if
(!
CollectionUtils
.
isEmpty
(
powerDisplayDto
List
))
{
String
mineid
=
powerDisplayDto
List
.
get
(
0
).
getMineid
();
public
AjaxResult
save
(
List
<
NewRuleRequestModel
>
newRuleRequestModel
List
)
{
if
(!
CollectionUtils
.
isEmpty
(
newRuleRequestModel
List
))
{
String
mineid
=
newRuleRequestModel
List
.
get
(
0
).
getMineid
();
if
(
StringUtils
.
equals
(
"011702"
,
mineid
))
{
saveLJTPowerData
(
powerDisplayDto
List
);
saveLJTPowerData
(
newRuleRequestModel
List
);
}
if
(
StringUtils
.
equals
(
"011701"
,
mineid
))
{
saveFGZPowerData
(
powerDisplayDto
List
);
saveFGZPowerData
(
newRuleRequestModel
List
);
}
}
else
{
return
AjaxResult
.
error
();
...
...
@@ -403,6 +403,8 @@ public class PowerDisplayServiceImpl implements PowerDisplayService {
existingData
.
setLevelTwoClassification
(
StringUtils
.
isEmpty
(
existingData
.
getLevelTwoClassification
())
?
newData
.
getLevelTwoClassification
()
:
existingData
.
getLevelTwoClassification
());
existingData
.
setLevelThreeClassification
(
StringUtils
.
isEmpty
(
existingData
.
getLevelThreeClassification
())
?
newData
.
getLevelThreeClassification
()
:
existingData
.
getLevelThreeClassification
());
existingData
.
setBasicElectricityTariff
(
StringUtils
.
isEmpty
(
existingData
.
getBasicElectricityTariff
())
?
newData
.
getBasicElectricityTariff
()
:
existingData
.
getBasicElectricityTariff
());
existingData
.
setLighting
(
StringUtils
.
isEmpty
(
existingData
.
getLighting
())
?
newData
.
getLighting
()
:
existingData
.
getLighting
());
existingData
.
setMotivation
(
StringUtils
.
isEmpty
(
existingData
.
getMotivation
())
?
newData
.
getMotivation
()
:
existingData
.
getMotivation
());
return
existingData
;
}),
map
->
map
.
values
().
iterator
().
next
()));
}
...
...
ruoyi-wages/src/main/resources/mapper/system/PowerDisplayMapper.xml
View file @
bd8b2da8
...
...
@@ -9,7 +9,7 @@
power_total, power_tip, power_peak, power_flat, power_valley,
electricity_total, electricity_tip, electricity_peak, electricity_flat, electricity_valley,
electricity_price_tip, electricity_price_peak, electricity_price_flat, electricity_price_valley,
level_three_classification, basic_electricity_tariff)
level_three_classification, basic_electricity_tariff
,lighting,motivation
)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.dateColumn}, #{item.mindId}, #{item.levelOneClassification}, #{item.levelTwoClassification},
...
...
@@ -18,7 +18,8 @@
, #{item.electricityTotal}, #{item.electricityTip}, #{item.electricityPeak}, #{item.electricityFlat},
#{item.electricityValley}
, #{item.electricityPriceTip}, #{item.electricityPricePeak}, #{item.electricityPriceFlat},
#{item.electricityPriceValley}, #{item.levelThreeClassification}, #{item.basicElectricityTariff})
#{item.electricityPriceValley}, #{item.levelThreeClassification},
#{item.basicElectricityTariff},#{item.lighting},#{item.motivation})
</foreach>
</insert>
<update
id=
"update"
>
...
...
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