Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YPPos
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
朱世闯
YPPos
Commits
d995e729
Commit
d995e729
authored
3 years ago
by
UIUANG\Zsc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据库查询
parent
fc123e64
No related merge requests found
Pipeline
#237
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
vcs.xml
.idea/vcs.xml
+6
-0
PosCommandJobService.kt
...src/main/java/com/ypsx/yppos/jobs/PosCommandJobService.kt
+0
-1
PosBuyPartDao.kt
app/src/main/java/com/ypsx/yppos/room/dao/PosBuyPartDao.kt
+2
-2
PosBuyRepository.kt
...n/java/com/ypsx/yppos/room/repository/PosBuyRepository.kt
+1
-1
No files found.
.idea/vcs.xml
0 → 100644
View file @
d995e729
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"VcsDirectoryMappings"
>
<mapping
directory=
"$PROJECT_DIR$"
vcs=
"Git"
/>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/java/com/ypsx/yppos/jobs/PosCommandJobService.kt
View file @
d995e729
...
@@ -6,7 +6,6 @@ import android.app.job.JobService
...
@@ -6,7 +6,6 @@ import android.app.job.JobService
class
PosCommandJobService
:
JobService
()
{
class
PosCommandJobService
:
JobService
()
{
override
fun
onStartJob
(
params
:
JobParameters
?):
Boolean
{
override
fun
onStartJob
(
params
:
JobParameters
?):
Boolean
{
jobFinished
(
params
,
true
)
return
false
return
false
}
}
...
...
This diff is collapsed.
Click to expand it.
app/src/main/java/com/ypsx/yppos/room/dao/PosBuyPartDao.kt
View file @
d995e729
...
@@ -12,7 +12,7 @@ interface PosBuyPartDao {
...
@@ -12,7 +12,7 @@ interface PosBuyPartDao {
@Insert
(
onConflict
=
OnConflictStrategy
.
REPLACE
)
@Insert
(
onConflict
=
OnConflictStrategy
.
REPLACE
)
fun
insert
(
posBuyPart
:
PosBuyPart
)
fun
insert
(
posBuyPart
:
PosBuyPart
)
@Query
(
"select * from POS_BuyPart Where orderId=:orderNo"
)
@Query
(
"select * from POS_BuyPart Where orderId=:orderNo
AND deleted =:deleted
"
)
fun
queryByOrderNo
(
orderNo
:
String
):
List
<
PosBuyPart
>?
fun
queryByOrderNo
(
orderNo
:
String
,
deleted
:
Boolean
):
List
<
PosBuyPart
>?
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/src/main/java/com/ypsx/yppos/room/repository/PosBuyRepository.kt
View file @
d995e729
...
@@ -111,7 +111,7 @@ class PosBuyRepository {
...
@@ -111,7 +111,7 @@ class PosBuyRepository {
}
}
fun
queryPosBuyPartByOrderNo
(
orderNo
:
String
):
List
<
PosBuyPart
>?
{
fun
queryPosBuyPartByOrderNo
(
orderNo
:
String
):
List
<
PosBuyPart
>?
{
return
getPosBuyPartDao
().
queryByOrderNo
(
orderNo
)
return
getPosBuyPartDao
().
queryByOrderNo
(
orderNo
,
true
)
}
}
fun
queryPosBuyPaymentByOrderNo
(
orderNo
:
String
):
PosBuyPayment
?
{
fun
queryPosBuyPaymentByOrderNo
(
orderNo
:
String
):
PosBuyPayment
?
{
...
...
This diff is collapsed.
Click to expand it.
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