Commit d1ab5f96 by 王宇航

1.7.1

新增KDS沽清POS回調處理
parent bc146b20
<?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
...@@ -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")
......
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment