AuditRejectInfoMapper.xml 1.15 KB
<?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.yoho.product.dal.AuditRejectInfoMapper" >
  <resultMap id="BaseResultMap" type="com.yoho.product.model.AuditRejectInfo" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="skup" property="skup" jdbcType="INTEGER" />
    <result column="info" property="info" jdbcType="VARCHAR" />
    <result column="update_time" property="updateTime" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, skup, info, update_time
  </sql>
  <select id="selectBySkups" resultMap="BaseResultMap" >
    select  <include refid="Base_Column_List" />
    from audit_reject_info where skup in
    <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
      #{item}
    </foreach>
  </select>

  <insert id="insert" parameterType="com.yoho.product.model.AuditRejectInfo" >
    insert into audit_reject_info (skup, info, update_time)
    values ( #{skup,jdbcType=INTEGER}, #{info,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER})
  </insert>

</mapper>