Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PlayBill
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
jinny.wilkin
PlayBill
Commits
37bdf9c3
Commit
37bdf9c3
authored
Jun 06, 2023
by
jinny.wilkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Submission pt3 - missed a bug
parent
cb20825a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
DatabaseHelper.java
app/src/main/java/com/ysj/playbill/DatabaseHelper.java
+3
-0
No files found.
app/src/main/java/com/ysj/playbill/DatabaseHelper.java
View file @
37bdf9c3
...
@@ -537,6 +537,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
...
@@ -537,6 +537,9 @@ public class DatabaseHelper extends SQLiteOpenHelper {
if
(
cursor
.
moveToFirst
())
{
if
(
cursor
.
moveToFirst
())
{
ticketID
=
cursor
.
getInt
(
cursor
.
getColumnIndexOrThrow
(
"TicketID"
));
ticketID
=
cursor
.
getInt
(
cursor
.
getColumnIndexOrThrow
(
"TicketID"
));
int
count
=
cursor
.
getInt
(
cursor
.
getColumnIndexOrThrow
(
"TypeAmount"
));
int
count
=
cursor
.
getInt
(
cursor
.
getColumnIndexOrThrow
(
"TypeAmount"
));
if
(
intAmount
<=
0
){
return
;
}
count
=
count
-
intAmount
;
count
=
count
-
intAmount
;
ContentValues
ttUpdate
=
new
ContentValues
();
ContentValues
ttUpdate
=
new
ContentValues
();
ttUpdate
.
put
(
"TypeAmount"
,
String
.
valueOf
(
count
));
ttUpdate
.
put
(
"TypeAmount"
,
String
.
valueOf
(
count
));
...
...
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