|
|
|
@ -1,19 +1,17 @@
|
|
|
|
|
package com.foreverwin.mesnac.dispatch.controller;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.foreverwin.mesnac.common.dto.SfcDispatchDto;
|
|
|
|
|
import com.foreverwin.mesnac.common.enums.DispatchStatusEnum;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.StringUtil;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.dto.WorkCenterWorkTimeDTO;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.model.ShopOrderRelease;
|
|
|
|
|
import com.foreverwin.modular.core.exception.BusinessException;
|
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.model.SfcDispatch;
|
|
|
|
|
import com.foreverwin.mesnac.dispatch.service.SfcDispatchService;
|
|
|
|
|
import com.foreverwin.modular.core.exception.BusinessException;
|
|
|
|
|
import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import com.foreverwin.modular.core.util.FrontPage;
|
|
|
|
|
import com.foreverwin.modular.core.util.R;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@ -161,35 +159,10 @@ public class SfcDispatchController {
|
|
|
|
|
if (frontPage.getGlobalQuery() != null && !"".equals(frontPage.getGlobalQuery().trim())) {
|
|
|
|
|
//TODO modify global query
|
|
|
|
|
queryWrapper.lambda().and(wrapper -> wrapper
|
|
|
|
|
.like(SfcDispatch::getHandle, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getSite, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getShopOrder, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getSfc, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getBlankingSize, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getDispatchSeq, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getDispatchNo, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getDispatchStatus, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getDrawingsNo, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getDrawingsRevision, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getIsLock, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getRouterBo, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getStepId, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getOperation, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getResourceType, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getWorkCenter, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getResrce, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getEmployee, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getTurnOperation, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getIsDispatch, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getIsImport, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getRemark, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getCreateUser, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getModifyUser, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getOther1, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getOther2, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getOther3, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getOther4, frontPage.getGlobalQuery())
|
|
|
|
|
.or().like(SfcDispatch::getOther5, frontPage.getGlobalQuery())
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
result = sfcDispatchService.page(frontPage.getPagePlus(), queryWrapper);
|
|
|
|
|