public List<Gm_Latestdata> findBySceneIds(String[] sceneIdArr) { List<Gm_Channel> channels = channelService.findBySceneIds(sceneIdArr); Search search = new Search(); search.addFilterIn("ch_id", channels); // search.addFilterNotEqual("hida_corrValue", null); return gm_LatestdataDao.search(search); }
public Gm_Latestdata findByCh_id(String ch_id) { Search search = new Search(); Filter filter = Filter.equal("ch_id.ch_id", ch_id); search.addFilter(filter); List<Gm_Latestdata> list = this.search(search); if (list.size() > 0) { return list.get(0); } return null; }
@SuppressWarnings("unchecked") public List<Gm_Latestdata> findByChIds(List<String> chIds) { Search search = new Search(); search.addFilterIn("ch_id.ch_id", chIds); return gm_LatestdataDao.search(search); }