|
@@ -2,6 +2,7 @@ package com.warewms.ams.ndc.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.comparator.CompareUtil;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
@@ -19,6 +20,7 @@ import com.warewms.ams.ndc.service.IAmsTaskService;
|
|
|
import com.warewms.ams.ndc.service.IBaseLocationInfoService;
|
|
|
import com.warewms.common.exception.base.BaseException;
|
|
|
import com.warewms.common.utils.ConvertUtils;
|
|
|
+import com.warewms.common.utils.DateUtils;
|
|
|
import com.warewms.common.utils.redis.RedisCache;
|
|
|
import com.warewms.common.utils.string.StringUtils;
|
|
|
import com.warewms.framework.service.impl.CrudServiceImpl;
|
|
@@ -32,6 +34,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -366,10 +369,13 @@ public class AmsTaskServiceImpl extends CrudServiceImpl<AmsTaskMapper, AmsTask,
|
|
|
Integer aciIndex = StringUtils.isNotBlank((String) params.get("aciIndex")) ? Integer.parseInt((String) params.get("aciIndex")) : null;
|
|
|
Integer stFrom = StringUtils.isNotBlank((String) params.get("stFrom")) ? Integer.parseInt((String) params.get("stFrom")) : null;
|
|
|
Integer stTo = StringUtils.isNotBlank((String) params.get("stTo")) ? Integer.parseInt((String) params.get("stTo")) : null;
|
|
|
+ Date beginTime = StringUtils.isNotBlank((String) params.get("beginTime")) ? DateUtil.parse((String) params.get("beginTime"), DateUtils.YYYY_MM_DD_HH_MM_SS) : null;
|
|
|
+ Date endTime = StringUtils.isNotBlank((String) params.get("endTime")) ? DateUtil.parse((String) params.get("endTime"), DateUtils.YYYY_MM_DD_HH_MM_SS) : DateUtils.getNowDate();
|
|
|
queryWrapper.lambda().eq(ObjectUtil.isNotNull(taskNo), AmsTask::getTaskNo, taskNo)
|
|
|
.eq(ObjectUtil.isNotNull(aciIndex), AmsTask::getAciIndex, aciIndex)
|
|
|
.eq(ObjectUtil.isNotNull(stFrom), AmsTask::getStFrom, stFrom)
|
|
|
- .eq(ObjectUtil.isNotNull(stTo), AmsTask::getStTo, stTo);
|
|
|
+ .eq(ObjectUtil.isNotNull(stTo), AmsTask::getStTo, stTo)
|
|
|
+ .between(AmsTask::getAddtime, beginTime, endTime);
|
|
|
return queryWrapper;
|
|
|
}
|
|
|
}
|