|
|
@ -12,11 +12,13 @@ import com.xydl.cac.service.ModevTypeService;
|
|
|
|
import com.xydl.cac.service.ParamBindService;
|
|
|
|
import com.xydl.cac.service.ParamBindService;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
|
|
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 javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import javax.persistence.criteria.Predicate;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@ -82,7 +84,12 @@ public class ParamBindServiceImpl implements ParamBindService {
|
|
|
|
for (Zsb zsb : zsbList) {
|
|
|
|
for (Zsb zsb : zsbList) {
|
|
|
|
zsbMap.put(zsb.getId(), zsb);
|
|
|
|
zsbMap.put(zsb.getId(), zsb);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<NSensor> sensorList = sensorRepository.findAll();
|
|
|
|
Specification<NSensor> specification = (root, query, builder) -> {
|
|
|
|
|
|
|
|
Predicate predicate = builder.conjunction();
|
|
|
|
|
|
|
|
query.orderBy(builder.asc(root.get("orderNum")));
|
|
|
|
|
|
|
|
return predicate;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
List<NSensor> sensorList = sensorRepository.findAll(specification);
|
|
|
|
|
|
|
|
|
|
|
|
// 每一个放入上一层
|
|
|
|
// 每一个放入上一层
|
|
|
|
for (NSensor sensor : sensorList) {
|
|
|
|
for (NSensor sensor : sensorList) {
|
|
|
|