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