sql 在emydex中解锁订单

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 在emydex中解锁订单相关的知识,希望对你有一定的参考价值。

--	If you look up the order in the database:
 SELECT * FROM dbo.oms_wo_header
 WHERE WONO = 'PKWO0042455' 
 AND WOVersion = 0

--Then pull out the information in the WOLocking column (see: <LockType>EDIT</LockType>)
 <?xml version="1.0" encoding="utf-16"?>
 <DataLocking xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <LockType>EDIT[</LockType>
   <LockdByWSID>746</LockdByWSID>
   <LockedByUserID>585</LockedByUserID>
   <LockTimestamp>06/06/2017 08:11:51</LockTimestamp>
   <LockTTL>0</LockTTL>
   <LockComment />
 </DataLocking>


--Then edit this xml, setting the <LockType>NONE
 UPDATE dbo.oms_wo_header
 SET WOLocking = '<?xml version="1.0" encoding="utf-16"?>
 <DataLocking xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <LockType>NONE</LockType>
   <LockdByWSID>746</LockdByWSID>
   <LockedByUserID>585</LockedByUserID>
   <LockTimestamp>06/06/2017 07:14:28</LockTimestamp>
   <LockTTL>0</LockTTL>
   <LockComment />
 </DataLocking>'
 WHERE WOType = 'PM_PK' 
 AND WONO = 'PKWO0042455' 
 AND WOVersion = 0


--Reopen the order and it will now be unlocked.

以上是关于sql 在emydex中解锁订单的主要内容,如果未能解决你的问题,请参考以下文章

sql emydex产品追踪

等到文件在 .NET 中解锁

如何在iphone中解锁rootviewcontroller头文件

检查您是不是已在 Game Center/GameKit 中解锁成就

std::mutex 如何在不同的线程中解锁?

如何在 Roblox Studio 中解锁鼠标