123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.mapper.TGonggaoMapper">
- <select id="findTGonggaoList"
- resultType="TGonggao">
- select * from gonggao
- </select>
-
- <select id="query" parameterType="java.util.Map" resultType="TGonggao">
- select * from gonggao
- <where>
- <if test="id!=null and id!=0">
- and id= #{id}
- </if>
- </where>
-
- </select>
-
-
- <select id="queryTGonggaoById" parameterType="string" resultType="TGonggao">
- select * from gonggao where id=${value}
- </select>
-
- <insert id="insertTGonggao" useGeneratedKeys="true" keyProperty="id" parameterType="TGonggao">
- insert into gonggao
- (title,content,shijian)
- values
- (#{title},#{content},#{shijian});
- </insert>
-
-
-
-
-
-
- <update id="updateTGonggao" parameterType="TGonggao" >
- update gonggao set
- title=#{title},content=#{content},shijian=#{shijian}
- where
- id=#{id}
- </update>
-
-
-
- <delete id="deleteTGonggao" parameterType="string">
- delete from gonggao where id=${value}
- </delete>
- </mapper>
-
|