jinlin
2024-01-02 a38a1ac77bb6ac9ea8bf0cf5f5f6b68d0e6e6974
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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<ZtProduct> {
 
    List<ZtProduct> getAll();
    List<ZtProduct> getAllNodes();
    List<ZtProduct> getTreeNodes(String pid);
 
    List<ZtProduct> getShipList(String localAear);
    List<ZtProduct> getSubList(String pid);
    List<ZtProduct> getListByIds(@Param("ids") String ids);
    List<ZtProduct> getList(Map<String, Object> params);
    List<ZtProduct> getLevelList(@Param("level") String level);
    List<MapData> 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<ZtProduct> getByProductIdList(String parentProductIds);
    Long getProductIdByNameSql(Long pid, String level, String name);
 
    void deleteTable(String tableName);
 
 
    List<SearchNodesDto> searchNodes(String pid, String name);
 
    List<MapData> getNamesByIds(String ids);
 
    List<MapData> getNameAll();
}