build/classes/com/mapper/GangweiMapper.xml

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?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.dao.GangweiMapper" >
  <resultMap id="BaseResultMap" type="com.entity.Gangwei" >
    <id column="gwID" property="gwid" jdbcType="INTEGER" />
    <result column="gwmingcheng" property="gwmingcheng" jdbcType="VARCHAR" />
    <result column="gwshijian" property="gwshijian" jdbcType="VARCHAR" />
    <result column="gwgongzi" property="gwgongzi" jdbcType="VARCHAR" />
    <result column="gwneirong" property="gwneirong" jdbcType="VARCHAR" />
    <result column="danweiid" property="danweiid" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    gwID, gwmingcheng, gwshijian, gwgongzi, gwneirong, danweiid
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select 
    <include refid="Base_Column_List" />
    from gangwei
    where gwID = #{gwid,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
    delete from gangwei
    where gwID = #{gwid,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.entity.Gangwei" >
    insert into gangwei (gwID, gwmingcheng, gwshijian, 
      gwgongzi, gwneirong, danweiid
      )
    values (#{gwid,jdbcType=INTEGER}, #{gwmingcheng,jdbcType=VARCHAR}, #{gwshijian,jdbcType=VARCHAR}, 
      #{gwgongzi,jdbcType=VARCHAR}, #{gwneirong,jdbcType=VARCHAR}, #{danweiid,jdbcType=INTEGER}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.entity.Gangwei" >
    insert into gangwei
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="gwid != null" >
        gwID,
      </if>
      <if test="gwmingcheng != null" >
        gwmingcheng,
      </if>
      <if test="gwshijian != null" >
        gwshijian,
      </if>
      <if test="gwgongzi != null" >
        gwgongzi,
      </if>
      <if test="gwneirong != null" >
        gwneirong,
      </if>
      <if test="danweiid != null" >
        danweiid,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="gwid != null" >
        #{gwid,jdbcType=INTEGER},
      </if>
      <if test="gwmingcheng != null" >
        #{gwmingcheng,jdbcType=VARCHAR},
后面还有 62 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。