首页 > 其他分享 >6.16 3

6.16 3

时间:2024-06-17 23:22:52浏览次数:22  
标签:name List 6.16 Select policy id select

package com.example.mapper;

import com.example.pojo.Policy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.w3c.dom.Text;

import java.util.List;

@Mapper
public interface PolicyMapper {
    @Select("select id,name from jixian.policy")
    List<Policy> getAll();

    @Select("select text from policy where id=#{id}")
    String getById(int id);

    @Select("select id,name from policy where name like concat('%',#{name},'%')")
    List<Policy> getByName(String name);

    @Select("select id,name from policy where name not like concat('%','省','%')")
    List<Policy> getNation();

    @Select("select id,name from policy where name like concat('%','河北省','%')")
    List<Policy> getHebei();

    @Select("select id,name from policy where name not like concat('%','河北省','%') and name like concat('%','省','%')")
    List<Policy> getWaisheng();
}

 

标签:name,List,6.16,Select,policy,id,select
From: https://www.cnblogs.com/zzqq1314/p/18253420

相关文章

  • 6.16 5
    packagecom.example.controller;importcom.example.pojo.Policy;importcom.example.server.PolicyServer;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.web.bind.annotation.GetMapping;importorg.springframework.w......
  • 6.16 4
    packagecom.example.server;importcom.example.mapper.PolicyMapper;importcom.example.pojo.Policy;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.stereotype.Service;importjava.util.List;@Servicepubliccla......
  • 6.16 7
    exportdefault{data(){return{currentDisplayCount:2,searchItems:[{field:'name',label:'政策名称',value:'',logicalOperator:'AND',matchType:'精确'},{field:'......
  • 6.16 6
    今天实现高级检索的html代码<template><divid="search-container"><divclass="search-row"v-for="(item,index)inlimitedSearchItems":key="index"><divclass=&......
  • 6.16 学习心得
    《梦断代码》一书记录的是作者罗森伯格对OSAF主持的Chandler项目进行田野调查,通过Chandler开发过程来揭示软件开发过程中一些根本性的大问题。对本书才刚刚阅读了三分之一,就已经忍不住对作者描述的开发过程所感叹,虽然刚进入软件领域不久,但是仍旧有感于这本书中的现实,对自己也很有......
  • Java 6.16 DeepClone and ShallowClone
    浅克隆:复制对象的引用地址,导致克隆对象和原始对象共享引用类型字段的实际对象。classPersonimplementsCloneable{Stringname;Addressaddress;publicPerson(Stringname,Addressaddress){this.name=name;this.address=add......
  • 2024.6.16
    publicclassSparkSQL09_Source_Req{publicstaticvoidmain(String[]args){//TODO在编码前,设定Hadoop的访问用户System.setProperty("HADOOP_USER_NAME","atguigu");finalSparkSessionsparkSession=SparkSession......
  • 6.16-二叉树的层序遍历~
    429.N叉树的层序遍历题意描述:给定一个N叉树,返回其节点值的层序遍历。(即从左到右,逐层遍历)。例如,给定一个3叉树:返回其层序遍历:[[1],[3,2,4],[5,6]]思路:AC代码:classSolution{public:vector<vector<int>>levelOrder(Node*root){queue<No......
  • 2024.6.16
    2024.6.16【执笔洇墨铸流年,仗剑酌酒碎绮梦】Sunday五月十一父亲节模拟赛A.正确答案【题目描述】小H与小Y刚刚参加完UOIP外卡组的初赛,就迫不及待的跑出考场对答案。“吔,我的答案和你都不一样!”,小Y说道,”我们去找神犇们问答案吧”。外卡组试卷中共有m道判断题,小H与小Y......
  • 6.16后序线索二叉树
    importjava.util.Scanner;publicclassMain{publicstaticinti=0;publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringstr=sc.next();Treesroot=AddTrees(str);//创建前序二叉树root.zhon......