huanghongfa
2020-12-29 37f55403e7573d8c15b6b0f957b7cb1baf6be4ea
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
package com.panzhihua.service_community.dao;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panzhihua.service_community.model.dos.ComOpsAdvDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 广告
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-12-28 15:40
 **/
@Mapper
public interface ComOpsAdvDAO extends BaseMapper<ComOpsAdvDO> {
    //    @Select("<script> " +
//            " <where>" +
//            "<if test='nameCn != null and nameCn.trim() != &quot;&quot;'>" +
//            " </if> " +
//            "<if test='nameCn != null and nameCn.trim() != &quot;&quot;'>" +
//            " </if> " +
//            "<if test='nameCn != null and nameCn.trim() != &quot;&quot;'>" +
//            " </if> " +
//            " </where>" +
//            "</script>")
    @Select("SELECT\n" +
            "jump_id \n" +
            "FROM\n" +
            "com_ops_adv \n" +
            "WHERE\n" +
            "jump_id IS NOT NULL \n" +
            "AND jump_id !=0")
    List<Long> selectAllBeUsedContent();
}