Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
A
AnchorCollect
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hywang
AnchorCollect
Commits
68bec6cf
Commit
68bec6cf
authored
Oct 25, 2022
by
hywang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复性能测定重量带不过来的bug
parent
bb5c5da0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BasicsCollectVM.java
...om/phlx/anchorcollect/ui/fragment/vm/BasicsCollectVM.java
+1
-1
WeightManVM.java
...va/com/phlx/anchorcollect/ui/fragment/vm/WeightManVM.java
+1
-1
No files found.
app/src/main/java/com/phlx/anchorcollect/ui/fragment/vm/BasicsCollectVM.java
View file @
68bec6cf
...
@@ -574,9 +574,9 @@ public class BasicsCollectVM extends BaseViewModel<Repository> implements OnInve
...
@@ -574,9 +574,9 @@ public class BasicsCollectVM extends BaseViewModel<Repository> implements OnInve
if
(
eventType
.
getAction
().
equals
(
EventTag
.
EVENT_WEIGHT_DATA_BASICS
))
{
if
(
eventType
.
getAction
().
equals
(
EventTag
.
EVENT_WEIGHT_DATA_BASICS
))
{
Double
weightNum
=
Double
.
parseDouble
(
eventType
.
getObj
().
toString
().
trim
());
Double
weightNum
=
Double
.
parseDouble
(
eventType
.
getObj
().
toString
().
trim
());
if
(
weightNum
>
25
)
{
if
(
weightNum
>
25
)
{
scanRfid
();
if
(
isWeightScan
)
if
(
isWeightScan
)
Configs
.
tempWeight
=
weightNum
;
Configs
.
tempWeight
=
weightNum
;
scanRfid
();
isWeightScan
=
false
;
isWeightScan
=
false
;
}
else
{
}
else
{
String
lastWeight
=
weight
.
get
();
String
lastWeight
=
weight
.
get
();
...
...
app/src/main/java/com/phlx/anchorcollect/ui/fragment/vm/WeightManVM.java
View file @
68bec6cf
...
@@ -656,9 +656,9 @@ public class WeightManVM extends BaseViewModel<Repository> implements OnInventor
...
@@ -656,9 +656,9 @@ public class WeightManVM extends BaseViewModel<Repository> implements OnInventor
if
(
eventType
.
getAction
().
equals
(
EventTag
.
EVENT_WEIGHT_DATA_WEIGHT
))
{
if
(
eventType
.
getAction
().
equals
(
EventTag
.
EVENT_WEIGHT_DATA_WEIGHT
))
{
Double
weightNum
=
Double
.
parseDouble
(
eventType
.
getObj
().
toString
().
trim
());
Double
weightNum
=
Double
.
parseDouble
(
eventType
.
getObj
().
toString
().
trim
());
if
(
weightNum
>
25
)
{
if
(
weightNum
>
25
)
{
scanRfid
();
if
(
isWeightScan
)
if
(
isWeightScan
)
Configs
.
tempWeight
=
weightNum
;
Configs
.
tempWeight
=
weightNum
;
scanRfid
();
isWeightScan
=
false
;
isWeightScan
=
false
;
}
else
{
}
else
{
if
(
weight
.
get
()
!=
null
&&
weight
.
get
()
>
25
)
{
if
(
weight
.
get
()
!=
null
&&
weight
.
get
()
>
25
)
{
...
...
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