删除无用代码,清除system.out代码,去除无用import
This commit is contained in:
parent
17bc8f1442
commit
87ac346c28
|
@ -30,9 +30,9 @@ public class FileUploadController {
|
|||
@Value("${server.servlet.context-path}")
|
||||
private String context_path;
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(FileUploadController.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(FileUploadController.class);
|
||||
|
||||
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/");
|
||||
private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd/");
|
||||
|
||||
@PostMapping("/upload")
|
||||
@ApiOperation("上传")
|
||||
|
|
|
@ -178,8 +178,6 @@ public class SJZTService {
|
|||
String url = "?actionType={1}&senderCode={2}&data={3}";
|
||||
String senderCode = "";//发送方标识
|
||||
String actionType = "UP_REC_REPORT";//调用方法,固定值
|
||||
boolean result = false;
|
||||
|
||||
ResponseEntity<JSONObject> responseEntity;
|
||||
try{
|
||||
responseEntity = restTemplate.postForEntity(url, null, JSONObject.class,senderCode,actionType,data);
|
||||
|
|
|
@ -232,7 +232,11 @@ public class ResourceController {
|
|||
return new Result().ok(map);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return new Result().ok(new HashMap<>());
|
||||
return new Result().ok(new HashMap<String, Object>(){{
|
||||
put("sxmlcount", 0);
|
||||
put("yfbfwcount", 0);
|
||||
put("yfbjk", 0);
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ import java.util.Map;
|
|||
*/
|
||||
@Component
|
||||
public class ResourceUndercarriageListener implements TaskListener, ExecutionListener {
|
||||
private static Logger logger = LoggerFactory.getLogger(ResourceUndercarriageListener.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(ResourceUndercarriageListener.class);
|
||||
|
||||
@Value("${big_date.name}")
|
||||
private String bigDateDeptName; // 大数据局名称
|
||||
|
|
|
@ -19,11 +19,8 @@ public class DynamicDataSourceTest {
|
|||
|
||||
@Test
|
||||
public void test(){
|
||||
// Long id = 1067246875800000001L;
|
||||
Long id = 1067246875800000001L;
|
||||
|
||||
// dynamicDataSourceTestService.updateUser(id);
|
||||
// dynamicDataSourceTestService.updateUserBySlave1(id);
|
||||
//dynamicDataSourceTestService.updateUserBySlave2(id);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
package io.renren.service;
|
||||
|
||||
import io.renren.commons.dynamic.datasource.annotation.DataSource;
|
||||
import io.renren.modules.sys.dao.SysUserDao;
|
||||
import io.renren.modules.sys.entity.SysUserEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
/**
|
||||
* 测试多数据源
|
||||
|
|
Loading…
Reference in New Issue