opt: 去除部分注释代码
This commit is contained in:
@@ -116,13 +116,13 @@ public class SysInteractRecordServiceImpl extends ServiceImpl<SysInteractRecordM
|
||||
entity.setDirection(direction);
|
||||
entity.setRequest_param(JSONObject.toJSONString(request));
|
||||
entity.setResponse_param(JSONObject.toJSONString(response));
|
||||
if (response instanceof BaseResponse) {
|
||||
if (response instanceof BaseResponse) { // acs请求wms的返回数据
|
||||
BaseResponse re = (BaseResponse) response;
|
||||
entity.setCode(re.getCode());
|
||||
entity.setMessage(re.getMessage());
|
||||
entity.setIs_success(re.getCode() == HttpStatus.HTTP_OK);
|
||||
}
|
||||
if (response instanceof ResultForAcs) {
|
||||
if (response instanceof ResultForAcs) { // wms请求acs的返回数据
|
||||
ResultForAcs re = (ResultForAcs) response;
|
||||
entity.setCode(re.getStatus());
|
||||
entity.setMessage(re.getMessage());
|
||||
|
||||
@@ -39,10 +39,6 @@ public class AutoCreateTask {
|
||||
// 调用AbstractAcsTask类的每个子类的schedule()方法
|
||||
try {
|
||||
Object obj = SpringContextHolder.getBean(clz);
|
||||
// if (ObjectUtil.isEmpty(obj)) { // 如果spring中获取不到,就用newInstance创建
|
||||
// obj = clz.newInstance();
|
||||
// }
|
||||
//Method m = obj.getClass().getDeclaredMethod("schedule");
|
||||
Method m = obj.getClass().getMethod("schedule");
|
||||
m.invoke(obj);
|
||||
} catch (InvocationTargetException e) {
|
||||
|
||||
Reference in New Issue
Block a user