|
@@ -7,6 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.hb.proj.model.CustomWellPO;
|
|
|
+import com.hb.proj.model.CustomWellVO;
|
|
|
import com.hb.proj.model.SideTreeNode;
|
|
|
import com.hb.xframework.dao.core.PreparedSQLArgs;
|
|
|
import com.hb.xframework.dao.core.SpringJdbcDAO;
|
|
@@ -70,15 +71,15 @@ public class CustomWellService {
|
|
|
* @param userId
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<CustomWellPO> loadMyCustomWells(String userId){
|
|
|
+ public List<CustomWellVO> loadMyCustomWells(String userId){
|
|
|
String sql="""
|
|
|
- select node_id,super_id,ifnull(w.well_name,cw.node_name) node_name
|
|
|
+ select node_id,super_id,cw.well_id,ifnull(w.well_name,cw.node_name) node_name
|
|
|
from tzl_custom_well cw
|
|
|
left join tzl_well w on cw.well_id=w.well_id and w.del_if=false
|
|
|
where user_id=?
|
|
|
order by cw.display_num
|
|
|
""";
|
|
|
- return dao.queryForList(sql, CustomWellPO.class, userId);
|
|
|
+ return dao.queryForList(sql, CustomWellVO.class, userId);
|
|
|
}
|
|
|
|
|
|
/**
|