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

(开头部分) 11KB

这里只显示每个文件的开头 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.BaoxiaozhangdanMapper">
  <resultMap id="BaseResultMap" type="com.entity.Baoxiaozhangdan">
    <id column="id" jdbcType="INTEGER" property="id" />
	<result column="danhao" jdbcType="VARCHAR" property="danhao" />
    <result column="jiaotongfei" jdbcType="VARCHAR" property="jiaotongfei" />
    <result column="zhusufei" jdbcType="VARCHAR" property="zhusufei" />
    <result column="butiefei" jdbcType="VARCHAR" property="butiefei" />
    <result column="canfei" jdbcType="VARCHAR" property="canfei" />
    <result column="jiaojifei" jdbcType="VARCHAR" property="jiaojifei" />
    <result column="qita" jdbcType="VARCHAR" property="qita" />
    <result column="hejijine" jdbcType="VARCHAR" property="hejijine" />
    <result column="fapiaozhaopian" jdbcType="VARCHAR" property="fapiaozhaopian" />
    <result column="baoxiaoren" jdbcType="VARCHAR" property="baoxiaoren" />
    <result column="zhuangtai" jdbcType="VARCHAR" property="zhuangtai" />
    <result column="baoxiaoshijian" jdbcType="VARCHAR" property="baoxiaoshijian" />
    <result column="issh" jdbcType="VARCHAR" property="issh" />
    
    <result column="addtime" jdbcType="VARCHAR" property="addtime" />
  </resultMap>
  <sql id="Base_Column_List">
    id, danhao,jiaotongfei,zhusufei,butiefei,canfei,jiaojifei,qita,hejijine,fapiaozhaopian,baoxiaoren,zhuangtai,baoxiaoshijian,issh, addtime
  </sql>
  <select id="quchongBaoxiaozhangdan"  parameterType="java.util.Map" resultMap="BaseResultMap" >
    select 
    <include refid="Base_Column_List" />
    from baoxiaozhangdan 
    where baoxiaoren = #{baoxiaoren,jdbcType=VARCHAR} limit 0,1
  </select>
 <select id="getCount"   resultType="int" parameterType="java.util.Map" >
    select  count(*) from baoxiaozhangdan  where 1=1
    <if test="danhao!=null">and danhao like  concat('%',#{danhao,jdbcType=VARCHAR},'%')</if>
     <if test="jiaotongfei1!=null">and jiaotongfei &gt;=  concat('',#{jiaotongfei1,jdbcType=VARCHAR},'')</if>
     <if test="jiaotongfei2!=null">and jiaotongfei &lt;=  concat('',#{jiaotongfei2,jdbcType=VARCHAR},'')</if>
     <if test="zhusufei1!=null">and zhusufei &gt;=  concat('',#{zhusufei1,jdbcType=VARCHAR},'')</if>
     <if test="zhusufei2!=null">and zhusufei &lt;=  concat('',#{zhusufei2,jdbcType=VARCHAR},'')</if>
     <if test="butiefei1!=null">and butiefei &gt;=  concat('',#{butiefei1,jdbcType=VARCHAR},'')</if>
     <if test="butiefei2!=null">and butiefei &lt;=  concat('',#{butiefei2,jdbcType=VARCHAR},'')</if>
     <if test="canfei1!=null">and canfei &gt;=  concat('',#{canfei1,jdbcType=VARCHAR},'')</if>
     <if test="canfei2!=null">and canfei &lt;=  concat('',#{canfei2,jdbcType=VARCHAR},'')</if>
     <if test="jiaojifei1!=null">and jiaojifei &gt;=  concat('',#{jiaojifei1,jdbcType=VARCHAR},'')</if>
     <if test="jiaojifei2!=null">and jiaojifei &lt;=  concat('',#{jiaojifei2,jdbcType=VARCHAR},'')</if>
     <if test="qita1!=null">and qita &gt;=  concat('',#{qita1,jdbcType=VARCHAR},'')</if>
     <if test="qita2!=null">and qita &lt;=  concat('',#{qita2,jdbcType=VARCHAR},'')</if>
     <if test="hejijine!=null">and hejijine like  concat('%',#{hejijine,jdbcType=VARCHAR},'%')</if>
     <if test="fapiaozhaopian!=null">and fapiaozhaopian like  concat('%',#{fapiaozhaopian,jdbcType=VARCHAR},'%')</if>
     <if test="baoxiaoren!=null">and baoxiaoren like  concat('%',#{baoxiaoren,jdbcType=VARCHAR},'%')</if>
     <if test="zhuangtai!=null">and zhuangtai like  concat('%',#{zhuangtai,jdbcType=VARCHAR},'%')</if>
     <if test="baoxiaoshijian1!=null">and baoxiaoshijian &gt;=  concat('',#{baoxiaoshijian1,jdbcType=VARCHAR},'')</if>
     <if test="baoxiaoshijian2!=null">and baoxiaoshijian &lt;=  concat('',#{baoxiaoshijian2,jdbcType=VARCHAR},'')</if>
     
  </select> 
  <select id="getAll"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from baoxiaozhangdan  where 1=1
    <if test="baoxiaoren!=null">
    and baoxiaoren =#{baoxiaoren}
    </if>
  </select>
  
后面还有 133 行代码,购买后查看完整代码

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

AI 解读 AI

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

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