| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | |
| | | */ |
| | | @Override |
| | | public Integer syncEmpowerDetailData(Integer endId){ |
| | | log.error(""); |
| | | // if(Constants.DEALING_HK_EMPOWER_DETAIL){ |
| | | // return ; |
| | | // } |
| | |
| | | |
| | | } |
| | | } |
| | | public class TaskRuner implements Runnable{ |
| | | private List<Empower> list ; |
| | | @Override |
| | | public void run() { |
| | | dealNewListTask(list); |
| | | } |
| | | |
| | | public List<Empower> getList() { |
| | | return list; |
| | | } |
| | | |
| | | public void setList(List<Empower> list) { |
| | | this.list = list; |
| | | } |
| | | } |
| | | @Transactional(rollbackFor = {BusinessException.class,Exception.class}) |
| | | private void dealAllListTask(List<Empower> list) { |
| | | //按照父级申请分批处理每次申请数据 |
| | | if(list ==null || list.size()==0){ |