package com.zt.life.core.dao; import com.zt.common.dao.BaseDao; import com.zt.common.entity.MapData; import com.zt.life.core.dto.SearchNodesDto; import com.zt.life.core.model.ZtProduct; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * CORE_PRODUCT * * @author zt generator * @since 1.0.0 2020-07-15 */ @Mapper public interface ZtProductDao extends BaseDao { List getAll(); List getAllNodes(); List getTreeNodes(String pid); List getShipList(String localAear); List getSubList(String pid); List getListByIds(@Param("ids") String ids); List getList(Map params); List getLevelList(@Param("level") String level); List getAllNodeByShipId(@Param("shipId") String shipId); Long getIdByName(String name); String getNameById(String id); String getNameListById(Long id); ZtProduct getByProductId(Long productId); ZtProduct getOneByProductId (Long productId); List getByProductIdList(String parentProductIds); Long getProductIdByNameSql(Long pid, String level, String name); void deleteTable(String tableName); List searchNodes(String pid, String name); List getNamesByIds(String ids); List getNameAll(); }