Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cdz_gateway_v2
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨苏杭
cdz_gateway_v2
Commits
59f668f9
Commit
59f668f9
authored
Dec 06, 2018
by
yangsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改功率上报的用电量更新开始充电的用电量
parent
277a93be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
.idea/workspace.xml
+11
-15
application/controller/business/power/PowerController.php
+1
-1
No files found.
.idea/workspace.xml
View file @
59f668f9
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"a4269ceb-5bf6-49dc-9b41-8690287f228c"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
beforePath=
"$PROJECT_DIR$/application/controller/business/charger/OverController.php"
afterPath=
"$PROJECT_DIR$/application/controller/business/charger/OverController.php"
/>
<change
beforePath=
"$PROJECT_DIR$/application/controller/business/power/PowerController.php"
afterPath=
"$PROJECT_DIR$/application/controller/business/power/PowerController.php"
/>
</list>
<list
default=
"true"
id=
"a4269ceb-5bf6-49dc-9b41-8690287f228c"
name=
"Default"
comment=
""
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -84,8 +80,8 @@
<file
leaf-file-name=
"PowerController.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/application/controller/business/power/PowerController.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
322
"
>
<caret
line=
"
88"
column=
"0"
lean-forward=
"true"
selection-start-line=
"88"
selection-start-column=
"0"
selection-end-line=
"88"
selection-end-column=
"0
"
/>
<state
relative-caret-position=
"
483
"
>
<caret
line=
"
180"
column=
"51"
lean-forward=
"false"
selection-start-line=
"180"
selection-start-column=
"51"
selection-end-line=
"180"
selection-end-column=
"51
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -249,7 +245,7 @@
<path
value=
"$PROJECT_DIR$/vendor/guzzlehttp/promises"
/>
</include_path>
</component>
<component
name=
"ProjectFrameBounds"
>
<component
name=
"ProjectFrameBounds"
extendedState=
"1"
>
<option
name=
"x"
value=
"122"
/>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1671"
/>
...
...
@@ -426,15 +422,15 @@
<workItem
from=
"1543236298483"
duration=
"15599000"
/>
<workItem
from=
"1543758787649"
duration=
"6279000"
/>
<workItem
from=
"1544066069732"
duration=
"114000"
/>
<workItem
from=
"1544066298232"
duration=
"2
08
4000"
/>
<workItem
from=
"1544066298232"
duration=
"2
55
4000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"439
50
9000"
/>
<option
name=
"totallyTimeSpent"
value=
"439
97
9000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"122"
y=
"23"
width=
"1671"
height=
"1057"
extended-state=
"
0
"
/>
<frame
x=
"122"
y=
"23"
width=
"1671"
height=
"1057"
extended-state=
"
1
"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.36586863"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
...
...
@@ -442,11 +438,11 @@
<window_info
id=
"Docker"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"false"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"File Transfer"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
tru
e"
show_stripe_button=
"true"
weight=
"0.04158004"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"File Transfer"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
fals
e"
show_stripe_button=
"true"
weight=
"0.04158004"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32969216"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"fals
e"
show_stripe_button=
"true"
weight=
"0.2068607"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
true"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"tru
e"
show_stripe_button=
"true"
weight=
"0.2068607"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"2"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -843,8 +839,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/application/controller/business/power/PowerController.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
322
"
>
<caret
line=
"
88"
column=
"0"
lean-forward=
"true"
selection-start-line=
"88"
selection-start-column=
"0"
selection-end-line=
"88"
selection-end-column=
"0
"
/>
<state
relative-caret-position=
"
483
"
>
<caret
line=
"
180"
column=
"51"
lean-forward=
"false"
selection-start-line=
"180"
selection-start-column=
"51"
selection-end-line=
"180"
selection-end-column=
"51
"
/>
<folding
/>
</state>
</provider>
...
...
application/controller/business/power/PowerController.php
View file @
59f668f9
...
...
@@ -176,7 +176,7 @@ class PowerController extends Controller
if
(
$i
===
(
$count
-
1
))
{
$orderModel
=
new
OrderModel
();
$capacity
=
hexdec
(
$capacitys
[
$i
]);
$orderModel
->
update
([
'start_capacity'
=>
$capacity
],
'id ='
.
$orderId
.
'and start_capacity = -1'
);
$orderModel
->
update
([
'start_capacity'
=>
hexdec
(
$capacitys
[
0
])
],
'id ='
.
$orderId
.
'and start_capacity = -1'
);
$orderModel
->
update
([
'end_capacity'
=>
$capacity
,
],
'id = '
.
$orderId
);
...
...
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