|
|
|
@ -4,6 +4,7 @@ import com.xydl.cac.entity.ModevTypePoint;
|
|
|
|
|
import com.xydl.cac.exception.BusinessException;
|
|
|
|
|
import com.xydl.cac.repository.ModevTypePointRepository;
|
|
|
|
|
import com.xydl.cac.service.ModevTypePointService;
|
|
|
|
|
import com.xydl.cac.service.UnitService;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
@ -19,10 +20,15 @@ public class ModevTypePointServiceImpl implements ModevTypePointService {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
ModevTypePointRepository repository;
|
|
|
|
|
@Resource
|
|
|
|
|
UnitService unitService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<ModevTypePoint> listAll(Integer modevtypeId) {
|
|
|
|
|
List<ModevTypePoint> list = repository.findByModevtypeId(modevtypeId);
|
|
|
|
|
for (ModevTypePoint point : list) {
|
|
|
|
|
point.setUnit(unitService.findUnitInCache(point.getField()));
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|