This commit is contained in:
zds
2022-11-27 14:12:16 +08:00
parent d6c7f29349
commit e1e2a5d237

View File

@@ -30,7 +30,6 @@ import org.nl.wql.core.bean.WQLObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@@ -60,7 +59,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
public Map<String, Object> transferApply(Map<String, String> jsObject) {
Map<String, Object> map = new HashMap<>();
synchronized (object) {
log.info("私有锁:\t synchronized(obj)开始:" + "\t\t当前时间毫秒数:\t" + System.currentTimeMillis() + "ms\t当前时间"+DateUtil.now());
map = transferApply2(jsObject);
log.info("私有锁:\t synchronized(obj)结束:"+ "\t\t当前时间毫秒数:\t" + System.currentTimeMillis() + "ms\t当前时间"+DateUtil.now());
}
return map;
}