|
@@ -126,7 +126,7 @@ public class PassengerCheckServiceImpl extends ServiceImpl<PassengerCheckMapper,
|
|
|
queryWrapper.lambda().ge(PassengerCheck::getCheckTime, passengerCheckPageParam.getCheckTimeStart());
|
|
|
}
|
|
|
if(ObjectUtil.isNotEmpty(passengerCheckPageParam.getCheckTimeEnd())) {
|
|
|
- queryWrapper.lambda().ge(PassengerCheck::getCheckTime, passengerCheckPageParam.getCheckTimeEnd());
|
|
|
+ queryWrapper.lambda().le(PassengerCheck::getCheckTime, passengerCheckPageParam.getCheckTimeEnd());
|
|
|
}
|
|
|
|
|
|
if(ObjectUtil.isAllNotEmpty(passengerCheckPageParam.getSortField(), passengerCheckPageParam.getSortOrder())) {
|
|
@@ -191,13 +191,13 @@ public class PassengerCheckServiceImpl extends ServiceImpl<PassengerCheckMapper,
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void saveExcelData(List<PassengerCheckImportExcelDto> importExcelDtos) {
|
|
|
|
|
|
- Date currentDate = new Date();
|
|
|
- int releaseCount = 5;
|
|
|
+
|
|
|
+ int releaseCount = -5;
|
|
|
int xlsbSjCount = -1;
|
|
|
int cyZlJsSjCount = 1;
|
|
|
int xlWpSjCount = -1;
|
|
|
for (PassengerCheckImportExcelDto item : importExcelDtos) {
|
|
|
-
|
|
|
+ Date currentDate = new Date();
|
|
|
PassengerCheck passengerCheck = new PassengerCheck();
|
|
|
BeanUtil.copyProperties(item,passengerCheck);
|
|
|
//根据身份证号计算年龄
|
|
@@ -217,7 +217,7 @@ public class PassengerCheckServiceImpl extends ServiceImpl<PassengerCheckMapper,
|
|
|
//设置查验状态
|
|
|
passengerCheck.setCheckStatus(bizDictService.getNameByLabel("lvke_checkStatus",item.getCheckStatus()));
|
|
|
//发布时间
|
|
|
- passengerCheck.setReleaseTime(DateUtil.offsetMinute(currentDate,releaseCount++));
|
|
|
+ passengerCheck.setReleaseTime(DateUtil.offsetMinute(currentDate,releaseCount--));
|
|
|
//查验时间 已查验就有添加查验时间
|
|
|
if(!"0".equals(passengerCheck.getCheckStatus()) ){
|
|
|
passengerCheck.setCheckTime(DateUtil.offsetMinute(passengerCheck.getReleaseTime(),5));
|
|
@@ -268,7 +268,7 @@ public class PassengerCheckServiceImpl extends ServiceImpl<PassengerCheckMapper,
|
|
|
step4.setPassengerId(passengerCheck.getId());
|
|
|
step4.setType("2");
|
|
|
step4.setCheckStep("行李物品查验");
|
|
|
- step4.setCreateTime(DateUtil.offsetMinute(passengerCheck.getReleaseTime(),xlWpSjCount--));
|
|
|
+ step4.setCreateTime(DateUtil.offsetMinute(currentDate,xlWpSjCount--));
|
|
|
|
|
|
allStep.add(step1);
|
|
|
allStep.add(step2);
|