海南版本提交
This commit is contained in:
@@ -1018,7 +1018,7 @@ public class CarryCapcityServiceImpl implements CarryCapcityService {
|
|||||||
carryCapacityResultPO.setIResultList(JSONUtil.toJsonStr(carryCapacityIResultList));
|
carryCapacityResultPO.setIResultList(JSONUtil.toJsonStr(carryCapacityIResultList));
|
||||||
long count = carryCapacityIResultList.stream().filter(temp -> temp.getI() > temp.getI_limit()).count();
|
long count = carryCapacityIResultList.stream().filter(temp -> temp.getI() > temp.getI_limit()).count();
|
||||||
carryCapacityResultPO.setReslutLevel(count==0?6:5);
|
carryCapacityResultPO.setReslutLevel(count==0?6:5);
|
||||||
|
vo.setReslutLevel(count==0?6:5);
|
||||||
carryCapacityResultPOService.save(carryCapacityResultPO);
|
carryCapacityResultPOService.save(carryCapacityResultPO);
|
||||||
|
|
||||||
return vo;
|
return vo;
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ import org.springframework.beans.BeanUtils;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.util.ObjectUtils;
|
|
||||||
import org.springframework.util.StringUtils;
|
import org.springframework.util.StringUtils;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
@@ -173,8 +172,8 @@ public class RGeneralSurveyPlanPOServiceImpl extends MppServiceImpl<RGeneralSurv
|
|||||||
}
|
}
|
||||||
queryWrapper.in(RGeneralSurveyPlanPO::getStatus, statusList);
|
queryWrapper.in(RGeneralSurveyPlanPO::getStatus, statusList);
|
||||||
queryWrapper.orderByAsc(RGeneralSurveyPlanPO::getStatus).orderByDesc(RGeneralSurveyPlanPO::getPlanCreateTime);
|
queryWrapper.orderByAsc(RGeneralSurveyPlanPO::getStatus).orderByDesc(RGeneralSurveyPlanPO::getPlanCreateTime);
|
||||||
|
IPage<RGeneralSurveyPlanPO> rGeneralSurveyPlanPOIPage = rGeneralSurveyPlanPOMapper.selectPage(page, queryWrapper);
|
||||||
List<RGeneralSurveyPlanPO> rGeneralSurveyPlanPOS = rGeneralSurveyPlanPOMapper.selectPage(page, queryWrapper).getRecords();
|
List<RGeneralSurveyPlanPO> rGeneralSurveyPlanPOS = rGeneralSurveyPlanPOIPage.getRecords();
|
||||||
if (CollectionUtils.isEmpty(rGeneralSurveyPlanPOS)) {
|
if (CollectionUtils.isEmpty(rGeneralSurveyPlanPOS)) {
|
||||||
return returnpage;
|
return returnpage;
|
||||||
}
|
}
|
||||||
@@ -220,6 +219,7 @@ public class RGeneralSurveyPlanPOServiceImpl extends MppServiceImpl<RGeneralSurv
|
|||||||
rGeneralSurveyPlanVOList.add(rGeneralSurveyPlanVO);
|
rGeneralSurveyPlanVOList.add(rGeneralSurveyPlanVO);
|
||||||
});
|
});
|
||||||
returnpage.setRecords(rGeneralSurveyPlanVOList);
|
returnpage.setRecords(rGeneralSurveyPlanVOList);
|
||||||
|
returnpage.setTotal(rGeneralSurveyPlanPOIPage.getTotal());
|
||||||
return returnpage;
|
return returnpage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user