|
@@ -4,13 +4,16 @@ import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.ReflectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.core.MybatisConfiguration;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.TableInfoHelper;
|
|
|
import com.github.zuihou.base.R;
|
|
|
import com.github.zuihou.base.controller.SuperSimpleController;
|
|
|
import com.github.zuihou.base.request.PageParams;
|
|
|
import com.github.zuihou.business.dispatchRecord.entity.DispatchException;
|
|
|
import com.github.zuihou.business.dispatchRecord.entity.DispatchRecord;
|
|
|
import com.github.zuihou.business.dispatchRecord.service.DispatchRecordService;
|
|
|
+import com.github.zuihou.business.operationManagementCenter.entity.OrderProduct;
|
|
|
import com.github.zuihou.business.productionReadyCenter.entity.AAutoNodeLog;
|
|
|
import com.github.zuihou.business.productionReadyCenter.service.AAutoNodeLogService;
|
|
|
import com.github.zuihou.business.productionResourceCenter.entity.Tool;
|
|
@@ -24,6 +27,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.apache.ibatis.builder.MapperBuilderAssistant;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -54,13 +58,13 @@ public class DispatchRecordController extends SuperSimpleController<AAutoNodeLog
|
|
|
IPage<AAutoNodeLog> page = params.buildPage();
|
|
|
QueryWrap<AAutoNodeLog> wrap = handlerWrapper(null, params);
|
|
|
LbqWrapper<AAutoNodeLog> wrapper = wrap.lambda();
|
|
|
- wrapper.like(AAutoNodeLog::getInstructionName, params.getModel().getInstructionName())
|
|
|
- .ge(AAutoNodeLog::getExecuteTime, StrUtil.isEmpty(params.getModel().getExecuteTime_st())?null: DateUtil.stringToDate3(params.getModel().getExecuteTime_st()))
|
|
|
+
|
|
|
+ wrapper .ge(AAutoNodeLog::getExecuteTime, StrUtil.isEmpty(params.getModel().getExecuteTime_st())?null: DateUtil.stringToDate3(params.getModel().getExecuteTime_st()))
|
|
|
.le(AAutoNodeLog::getExecuteTime, StrUtil.isEmpty(params.getModel().getExecuteTime_ed())?null:DateUtil.stringToDate3(params.getModel().getExecuteTime_ed()))
|
|
|
.orderByDesc(AAutoNodeLog::getCreateTime);
|
|
|
//只展示执行成功的调度指令
|
|
|
wrapper.eq(AAutoNodeLog::getExeResult, "1");
|
|
|
- aAutoNodeLogService.page(page, wrapper);
|
|
|
+ aAutoNodeLogService.pageList(page, wrapper, params.getModel().getInstructionName());
|
|
|
return this.success(page);
|
|
|
}
|
|
|
|