|
|
@@ -101,7 +101,7 @@ class JobProgressPresenter : BasePresenter<IJobProgressView>() {
|
|
|
println("EquipDetail : $equipDetail")
|
|
|
// 取锁具、取钥匙
|
|
|
val needLockCount = equipDetail?.ticketLockVOList?.filter { it.lockId == null }?.size ?: 0
|
|
|
- val isNeedKey = equipDetail?.ticketKeyVOList?.filter { it.keyId == null }?.size != 1 && needLockCount == 0
|
|
|
+ val isNeedKey = equipDetail?.ticketKeyVOList?.filter { it.keyId == null }?.size != 1
|
|
|
BusinessManager.checkEquipCount(needLockCount, isNeedKey) { keyPair, lockMap ->
|
|
|
val lockList = mutableListOf<LockTakeUpdateReqVO>()
|
|
|
lockMap.forEach { (addr, mLockList) ->
|
|
|
@@ -116,9 +116,7 @@ class JobProgressPresenter : BasePresenter<IJobProgressView>() {
|
|
|
if (keyPair != null) {
|
|
|
BusinessManager.addDeviceTake(DEVICE_TYPE_KEY, ticketId, keyPair.second?.rfid!!)
|
|
|
LogUtil.i("工作票挂锁list : $lockList")
|
|
|
-
|
|
|
- BusinessManager.getCurrentStatus(BusinessManager.getBleDeviceByMac(keyPair.second?.mac)!!.bleDevice)
|
|
|
-
|
|
|
+
|
|
|
// // 下发工作票
|
|
|
// BusinessManager.sendTicketBusiness(
|
|
|
// keyPair.second?.mac!!,
|