Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GingerSoftLANInterconnection
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
王宇航
GingerSoftLANInterconnection
Commits
d1ab5f96
Commit
d1ab5f96
authored
Aug 14, 2024
by
王宇航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.7.1
新增KDS沽清POS回調處理
parent
bc146b20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
75 additions
and
1 deletions
+75
-1
.idea/deploymentTargetSelector.xml
+11
-0
mylibrary/build.gradle.kts
+1
-1
mylibrary/src/main/java/com/gingersoft/connect/bean/SoldOutMsgBean.kt
+45
-0
mylibrary/src/main/java/com/gingersoft/connect/utils/SoldOutMsgProcess.kt
+18
-0
No files found.
.idea/deploymentTargetSelector.xml
0 → 100644
View file @
d1ab5f96
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"deploymentTargetSelector"
>
<selectionStates>
<SelectionState
runConfigName=
"app"
>
<option
name=
"selectionMode"
value=
"DROPDOWN"
/>
</SelectionState>
</selectionStates>
</component>
</project>
\ No newline at end of file
mylibrary/build.gradle.kts
View file @
d1ab5f96
...
@@ -55,7 +55,7 @@ afterEvaluate {
...
@@ -55,7 +55,7 @@ afterEvaluate {
groupId = "com.gingersoft.connect"
groupId = "com.gingersoft.connect"
artifactId = "Connect"
artifactId = "Connect"
version = "1.7.
0
"
version = "1.7.
1
"
// 添加 POM 配置
// 添加 POM 配置
// pom {
// pom {
// name.set("GingerSoftConnect")
// name.set("GingerSoftConnect")
...
...
mylibrary/src/main/java/com/gingersoft/connect/bean/SoldOutMsgBean.kt
0 → 100644
View file @
d1ab5f96
package
com.gingersoft.connect.bean
class
SoldOutMsgBean
:
SendMsgType
()
{
companion
object
{
/** 新增沽清 */
const
val
MSG_TYPE_INSERT
=
1
/** 恢復單個沽清 */
const
val
MSG_TYPE_RESTORE_SINGLE
=
2
/** 恢復全部沽清 **/
const
val
MSG_TYPE_RESTORE_ALL
=
3
/** 暫停組別 **/
const
val
MSG_TYPE_PAUSE_GROUP
=
4
}
/** 消息類型 */
private
val
msgType
:
Int
=
0
/**
* 食品id
*/
private
val
foodId
:
String
?
=
null
/**
* 食品類型
*/
private
val
type
=
0
/**
* 如果為0,type為1 || 2,則是食品組
* 如果有值,type為1 || 2,則是食品
* 如果為0,type為3,則是細項組
* 如果有值,type為3,則是細項
*/
private
val
parentId
:
String
?
=
null
/**
* 食品數量
* 如果是組,並且為0,就是暫停
*/
private
val
inventoryQuantity
:
String
?
=
null
}
\ No newline at end of file
mylibrary/src/main/java/com/gingersoft/connect/utils/SoldOutMsgProcess.kt
0 → 100644
View file @
d1ab5f96
package
com.gingersoft.connect.utils
import
com.gingersoft.connect.bean.ResultBean
import
com.gingersoft.connect.bean.SoldOutMsgBean
interface
SoldOutMsgProcess
:
MsgProcess
{
override
fun
processMsg
(
data
:
Any
?):
ResultBean
{
val
gsonToBean
=
GsonUtils
.
GsonToBean
(
data
,
SoldOutMsgBean
::
class
.
java
)
if
(
gsonToBean
==
null
)
{
return
ResultBean
(
false
,
"解析失敗"
)
}
return
processSoldOutMsg
(
gsonToBean
)
}
fun
processSoldOutMsg
(
data
:
SoldOutMsgBean
?):
ResultBean
}
\ No newline at end of file
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