昨天修正了usrboxcode/barcode的算法,今天部署系统。
。由于使用usrboxcode + copyid算法,core主机为000,pos主机为001,因此2机器上货的时候,各自按serialcode生成barcode就会冲突,例如:0 0154000 0001 / 0 0154000 0001,因为usrboxcode都是0154000,各自的copyid都是0。修正了
。由于每台机器使用shopcode,而cst使用shopcode作为globalmark,上文修正了core/pos的shopcode=001,copyid=0/1,so timestampcode conflict. adjust cst.globalmark = shopcode+copyid.
.because globalmark has 4 number, database just has 3 number, must adjust: cst_globaltime = 4 number, adjust timestampcode generation logic to globaltime(4) + serialcode(8).
.because dll is old, still pos error. fix.