|
|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
+import org.apache.tomcat.jni.Lock;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@@ -90,6 +91,7 @@ public class ReleaseUserTask {
|
|
|
try {
|
|
|
List<LockingReleaseBo> lockList=customerServiceImpl.selectPendinglockUserList();
|
|
|
List<LockingReleaseBo> newList=new ArrayList<>();
|
|
|
+ List<LockingReleaseBo> userList=new ArrayList<>();
|
|
|
if (lockList.size()>0) {
|
|
|
for(int i=0;i<lockList.size();i++){
|
|
|
newList.add(lockList.get(i));
|
|
|
@@ -98,6 +100,12 @@ public class ReleaseUserTask {
|
|
|
newList.clear();
|
|
|
Thread.sleep(2000);
|
|
|
}
|
|
|
+ if (lockList.get(i).getType().equals("0")) {
|
|
|
+ userList.add(lockList.get(i));
|
|
|
+ if(pointsDataLimit == userList.size()||i == lockList.size()-1){
|
|
|
+ if(userList.size()>0) userServiceImpl.updateReleaseLock(userList);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|