WebRoot/WEB-INF/classes/com/mapper/CaipinxinxiMapper.xml

(开头部分) 8KB

这里只显示每个文件的开头 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.CaipinxinxiMapper">
  <resultMap id="BaseResultMap" type="com.entity.Caipinxinxi">
    <id column="id" jdbcType="INTEGER" property="id" />
	<result column="bianhao" jdbcType="VARCHAR" property="bianhao" />
    <result column="caiming" jdbcType="VARCHAR" property="caiming" />
    <result column="diqu" jdbcType="VARCHAR" property="diqu" />
    <result column="kouwei" jdbcType="VARCHAR" property="kouwei" />
    <result column="peiliao" jdbcType="VARCHAR" property="peiliao" />
    <result column="tupian" jdbcType="VARCHAR" property="tupian" />
    <result column="pingfen" jdbcType="VARCHAR" property="pingfen" />
    <result column="dianjilv" jdbcType="VARCHAR" property="dianjilv" />
    <result column="faburen" jdbcType="VARCHAR" property="faburen" />
    <result column="zhizuobuzhou" jdbcType="VARCHAR" property="zhizuobuzhou" />
    
    <result column="addtime" jdbcType="VARCHAR" property="addtime" />
  </resultMap>
  <sql id="Base_Column_List">
    id, bianhao,caiming,diqu,kouwei,peiliao,tupian,pingfen,dianjilv,faburen,zhizuobuzhou, addtime
  </sql>
  <select id="quchongCaipinxinxi"  parameterType="java.util.Map" resultMap="BaseResultMap" >
    select 
    <include refid="Base_Column_List" />
    from caipinxinxi 
    where faburen = #{faburen,jdbcType=VARCHAR} limit 0,1
  </select>
 <select id="getCount"   resultType="int" parameterType="java.util.Map" >
    select  count(*) from caipinxinxi  where 1=1
    <if test="bianhao!=null">and bianhao like  concat('%',#{bianhao,jdbcType=VARCHAR},'%')</if>
     <if test="caiming!=null">and caiming like  concat('%',#{caiming,jdbcType=VARCHAR},'%')</if>
     <if test="diqu!=null">and diqu like  concat('%',#{diqu,jdbcType=VARCHAR},'%')</if>
     <if test="kouwei!=null">and kouwei like  concat('%',#{kouwei,jdbcType=VARCHAR},'%')</if>
     <if test="peiliao!=null">and peiliao like  concat('%',#{peiliao,jdbcType=VARCHAR},'%')</if>
     <if test="tupian!=null">and tupian like  concat('%',#{tupian,jdbcType=VARCHAR},'%')</if>
     <if test="pingfen!=null">and pingfen like  concat('%',#{pingfen,jdbcType=VARCHAR},'%')</if>
     <if test="dianjilv!=null">and dianjilv like  concat('%',#{dianjilv,jdbcType=VARCHAR},'%')</if>
     <if test="faburen!=null">and faburen like  concat('%',#{faburen,jdbcType=VARCHAR},'%')</if>
     <if test="zhizuobuzhou!=null">and zhizuobuzhou like  concat('%',#{zhizuobuzhou,jdbcType=VARCHAR},'%')</if>
     
  </select> 
  <select id="getAll"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from caipinxinxi  where 1=1
    <if test="faburen!=null">
    and faburen =#{faburen}
    </if>
  </select>
  
  <select id="getsycaipinxinxi1"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from caipinxinxi  where 1=1
    limit 0,5
  </select>
  <select id="getsycaipinxinxi2"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from caipinxinxi  where 1=1
    limit 0,5
  </select>
  <select id="getsycaipinxinxi3"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from caipinxinxi  where 1=1
    limit 0,5
  </select>
后面还有 106 行代码,购买后查看完整代码

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

AI 解读 AI

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

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