@ -87,6 +87,7 @@ public class IdcServiceImpl implements IdcService {
private ScheduledDao scheduledDao ;
private ScheduledDao scheduledDao ;
private String imagePath = FileConstant . COMMON_FILE_PATH ;
private String imagePath = FileConstant . COMMON_FILE_PATH ;
/*获取拉取任务列表*/
/*获取拉取任务列表*/
@Override
@Override
public BaseResponse taskList ( HttpServletRequest request , Map < String , Object > params ) {
public BaseResponse taskList ( HttpServletRequest request , Map < String , Object > params ) {
@ -245,8 +246,7 @@ public class IdcServiceImpl implements IdcService {
/*上传失败重新上传*/
/*上传失败重新上传*/
private void asyncFailTask ( String host ) {
private void asyncFailTask ( String host ) {
try
try {
{
String filePathSlash = filePath . substring ( filePath . length ( ) - 1 ) . equals ( "/" ) ? "" : "/" ;
String filePathSlash = filePath . substring ( filePath . length ( ) - 1 ) . equals ( "/" ) ? "" : "/" ;
String sql = "select * from basic_export_status where status='1' and receiveStatus='0' where updateTime<date_sub(now(),interval 6 minute) order by updateTime" ;
String sql = "select * from basic_export_status where status='1' and receiveStatus='0' where updateTime<date_sub(now(),interval 6 minute) order by updateTime" ;
Map < String , Object > map = new HashMap < String , Object > ( ) ;
Map < String , Object > map = new HashMap < String , Object > ( ) ;
@ -1208,8 +1208,7 @@ public class IdcServiceImpl implements IdcService {
}
}
} catch ( Exception e ) {
} catch ( Exception e ) {
e . printStackTrace ( ) ;
}
}
}
}
if ( ! ( total > 0 ) ) {
if ( ! ( total > 0 ) ) {
@ -1357,8 +1356,6 @@ public class IdcServiceImpl implements IdcService {
}
}
/*把列数据转Map*/
/*把列数据转Map*/
private Map < String , Object > getColumn ( String tableName ) {
private Map < String , Object > getColumn ( String tableName ) {
Map < String , Object > map = new HashMap < String , Object > ( ) ;
Map < String , Object > map = new HashMap < String , Object > ( ) ;
@ -1465,6 +1462,7 @@ public class IdcServiceImpl implements IdcService {
}
}
}
}
private void writeFile ( byte [ ] file , String filePath , String fileName ) throws Exception {
private void writeFile ( byte [ ] file , String filePath , String fileName ) throws Exception {
File targetFile = new File ( filePath ) ;
File targetFile = new File ( filePath ) ;
if ( ! targetFile . exists ( ) ) {
if ( ! targetFile . exists ( ) ) {