<?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.unis.base.server.dao.TyJhxxmxbDao" >
  <resultMap id="BaseResultMap" type="com.unis.base.server.entity.TyJhxxmxbDO" >
    <id column="JHXXID" property="jhxxid" jdbcType="VARCHAR" />
    <result column="SXH" property="sxh" jdbcType="DECIMAL" />
    <result column="CFBH" property="cfbh" jdbcType="VARCHAR" />
    <result column="CFMC" property="cfmc" jdbcType="VARCHAR" />
    <result column="PZBM" property="pzbm" jdbcType="VARCHAR" />
    <result column="PZMC" property="pzmc" jdbcType="VARCHAR" />
    <result column="LSDJBM" property="lsdjbm" jdbcType="VARCHAR" />
    <result column="LSDJMC" property="lsdjmc" jdbcType="VARCHAR" />
    <result column="KCJG" property="kcjg" jdbcType="DECIMAL" />
    <result column="JHSL" property="jhsl" jdbcType="DECIMAL" />
    <result column="LSXZBM" property="lsxzbm" jdbcType="VARCHAR" />
    <result column="LSXZMC" property="lsxzmc" jdbcType="VARCHAR" />
    <result column="SCNF" property="scnf" jdbcType="VARCHAR" />
    <result column="RKNF" property="rknf" jdbcType="VARCHAR" />
    <result column="JHMXZT" property="jhmxzt" jdbcType="VARCHAR" />
    <result column="STATUS" property="status" jdbcType="DECIMAL" />
    <result column="CREATOR" property="creator" jdbcType="VARCHAR" />
    <result column="CREATOR_CODE" property="creatorCode" jdbcType="VARCHAR" />
    <result column="CREATE_DATE" property="createDate" jdbcType="TIMESTAMP" />
    <result column="REFRESHER" property="refresher" jdbcType="VARCHAR" />
    <result column="REFRESHER_CODE" property="refresherCode" jdbcType="VARCHAR" />
    <result column="REFRESH_TIME" property="refreshTime" jdbcType="TIMESTAMP" />
    <result column="REMARK" property="remark" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Example_Where_Clause" >
    <where >
      <foreach collection="oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause" >
    <where >
      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
        <if test="criteria.valid" >
          <trim prefix="(" suffix=")" prefixOverrides="and" >
            <foreach collection="criteria.criteria" item="criterion" >
              <choose >
                <when test="criterion.noValue" >
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue" >
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue" >
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue" >
                  and ${criterion.condition}
                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List" >
    JHXXID, SXH, CFBH, CFMC, PZBM, PZMC, LSDJBM, LSDJMC, KCJG, JHSL, LSXZBM, LSXZMC, SCNF, RKNF, JHMXZT, STATUS, 
    CREATOR, CREATOR_CODE, CREATE_DATE, REFRESHER, REFRESHER_CODE, REFRESH_TIME, REMARK
  </sql>
  <!-- <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.unis.base.server.example.TyJhxxmxbExample" >
    select
    <if test="distinct" >
      distinct
    </if>
    <include refid="Base_Column_List" />
    from TY_JHXXMXB
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select> -->
  <!-- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from TY_JHXXMXB
    where JHXXID = #{jhxxid,jdbcType=VARCHAR}
  </select> -->

  <select id="selectAlls" resultMap="BaseResultMap">
    select * from TY_JHXXMXB where status = 1
  </select>

  <select id="selectByKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select 
    <include refid="Base_Column_List" />
    from TY_JHXXMXB
    where JHXXID = #{jhxxid,jdbcType=VARCHAR}
  </select>
  <!-- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
    delete from TY_JHXXMXB
    where JHXXID = #{jhxxid,jdbcType=VARCHAR}
  </delete> -->
  <!-- <delete id="deleteByExample" parameterType="com.unis.base.server.example.TyJhxxmxbExample" >
    delete from TY_JHXXMXB
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete> -->
  <insert id="insert" parameterType="com.unis.base.server.entity.TyJhxxmxbDO" >
    insert into TY_JHXXMXB (JHXXID, SXH, CFBH, 
      CFMC, PZBM, PZMC, LSDJBM, 
      LSDJMC, KCJG, JHSL, LSXZBM, LSXZMC, SCNF, 
      RKNF, JHMXZT, STATUS, 
      CREATOR, CREATOR_CODE, CREATE_DATE, 
      REFRESHER, REFRESHER_CODE, REFRESH_TIME, 
      REMARK)
    values (#{jhxxid,jdbcType=VARCHAR}, #{sxh,jdbcType=DECIMAL}, #{cfbh,jdbcType=VARCHAR}, 
      #{cfmc,jdbcType=VARCHAR}, #{pzbm,jdbcType=VARCHAR}, #{pzmc,jdbcType=VARCHAR}, #{lsdjbm,jdbcType=VARCHAR}, 
      #{lsdjmc,jdbcType=VARCHAR}, #{kcjg,jdbcType=DECIMAL}, #{jhsl,jdbcType=DECIMAL}, #{lsxzbm,jdbcType=VARCHAR},
      #{lsxzmc,jdbcType=VARCHAR}, #{scnf,jdbcType=VARCHAR}, 
      #{rknf,jdbcType=VARCHAR}, #{jhmxzt,jdbcType=VARCHAR}, #{status,jdbcType=DECIMAL}, 
      #{creator,jdbcType=VARCHAR}, #{creatorCode,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, 
      #{refresher,jdbcType=VARCHAR}, #{refresherCode,jdbcType=VARCHAR}, #{refreshTime,jdbcType=TIMESTAMP}, 
      #{remark,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.unis.base.server.entity.TyJhxxmxbDO" >
    insert into TY_JHXXMXB
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="jhxxid != null" >
        JHXXID,
      </if>
      <if test="sxh != null" >
        SXH,
      </if>
      <if test="cfbh != null" >
        CFBH,
      </if>
      <if test="cfmc != null" >
        CFMC,
      </if>
      <if test="pzbm != null" >
        PZBM,
      </if>
      <if test="pzmc != null" >
        PZMC,
      </if>
      <if test="lsdjbm != null" >
        LSDJBM,
      </if>
      <if test="lsdjmc != null" >
        LSDJMC,
      </if>
      <if test="kcjg != null" >
        KCJG,
      </if>
      <if test="jhsl != null" >
        JHSL,
      </if>
      <if test="lsxzbm != null" >
        LSXZBM,
      </if>
      <if test="lsxzmc != null" >
        LSXZMC,
      </if>
      <if test="scnf != null" >
        SCNF,
      </if>
      <if test="rknf != null" >
        RKNF,
      </if>
      <if test="jhmxzt != null" >
        JHMXZT,
      </if>
      <if test="status != null" >
        STATUS,
      </if>
      <if test="creator != null" >
        CREATOR,
      </if>
      <if test="creatorCode != null" >
        CREATOR_CODE,
      </if>
      <if test="createDate != null" >
        CREATE_DATE,
      </if>
      <if test="refresher != null" >
        REFRESHER,
      </if>
      <if test="refresherCode != null" >
        REFRESHER_CODE,
      </if>
      <if test="refreshTime != null" >
        REFRESH_TIME,
      </if>
      <if test="remark != null" >
        REMARK,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="jhxxid != null" >
        #{jhxxid,jdbcType=VARCHAR},
      </if>
      <if test="sxh != null" >
        #{sxh,jdbcType=DECIMAL},
      </if>
      <if test="cfbh != null" >
        #{cfbh,jdbcType=VARCHAR},
      </if>
      <if test="cfmc != null" >
        #{cfmc,jdbcType=VARCHAR},
      </if>
      <if test="pzbm != null" >
        #{pzbm,jdbcType=VARCHAR},
      </if>
      <if test="pzmc != null" >
        #{pzmc,jdbcType=VARCHAR},
      </if>
      <if test="lsdjbm != null" >
        #{lsdjbm,jdbcType=VARCHAR},
      </if>
      <if test="lsdjmc != null" >
        #{lsdjmc,jdbcType=VARCHAR},
      </if>
      <if test="kcjg != null" >
        #{kcjg,jdbcType=DECIMAL},
      </if>
      <if test="jhsl != null" >
        #{jhsl,jdbcType=DECIMAL},
      </if>
      <if test="lsxzbm != null" >
        #{lsxzbm,jdbcType=VARCHAR},
      </if>
      <if test="lsxzmc != null" >
        #{lsxzmc,jdbcType=VARCHAR},
      </if>
      <if test="scnf != null" >
        #{scnf,jdbcType=VARCHAR},
      </if>
      <if test="rknf != null" >
        #{rknf,jdbcType=VARCHAR},
      </if>
      <if test="jhmxzt != null" >
        #{jhmxzt,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        #{status,jdbcType=DECIMAL},
      </if>
      <if test="creator != null" >
        #{creator,jdbcType=VARCHAR},
      </if>
      <if test="creatorCode != null" >
        #{creatorCode,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="refresher != null" >
        #{refresher,jdbcType=VARCHAR},
      </if>
      <if test="refresherCode != null" >
        #{refresherCode,jdbcType=VARCHAR},
      </if>
      <if test="refreshTime != null" >
        #{refreshTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        #{remark,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.unis.base.server.example.TyJhxxmxbExample" resultType="java.lang.Integer" >
    select count(1) from TY_JHXXMXB
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <!-- <update id="updateByExampleSelective" parameterType="map" >
    update TY_JHXXMXB
    <set >
      <if test="record.jhxxid != null" >
        JHXXID = #{record.jhxxid,jdbcType=VARCHAR},
      </if>
      <if test="record.sxh != null" >
        SXH = #{record.sxh,jdbcType=DECIMAL},
      </if>
      <if test="record.cfbh != null" >
        CFBH = #{record.cfbh,jdbcType=VARCHAR},
      </if>
      <if test="record.cfmc != null" >
        CFMC = #{record.cfmc,jdbcType=VARCHAR},
      </if>
      <if test="record.pzbm != null" >
        PZBM = #{record.pzbm,jdbcType=VARCHAR},
      </if>
      <if test="record.pzmc != null" >
        PZMC = #{record.pzmc,jdbcType=VARCHAR},
      </if>
      <if test="record.lsdjbm != null" >
        LSDJBM = #{record.lsdjbm,jdbcType=VARCHAR},
      </if>
      <if test="record.lsdjmc != null" >
        LSDJMC = #{record.lsdjmc,jdbcType=VARCHAR},
      </if>
      <if test="record.kcjg != null" >
        KCJG = #{record.kcjg,jdbcType=DECIMAL},
      </if>
      <if test="record.scnf != null" >
        SCNF = #{record.scnf,jdbcType=VARCHAR},
      </if>
      <if test="record.rknf != null" >
        RKNF = #{record.rknf,jdbcType=VARCHAR},
      </if>
      <if test="record.jhmxzt != null" >
        JHMXZT = #{record.jhmxzt,jdbcType=VARCHAR},
      </if>
      <if test="record.status != null" >
        STATUS = #{record.status,jdbcType=DECIMAL},
      </if>
      <if test="record.creator != null" >
        CREATOR = #{record.creator,jdbcType=VARCHAR},
      </if>
      <if test="record.creatorCode != null" >
        CREATOR_CODE = #{record.creatorCode,jdbcType=VARCHAR},
      </if>
      <if test="record.createDate != null" >
        CREATE_DATE = #{record.createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="record.refresher != null" >
        REFRESHER = #{record.refresher,jdbcType=VARCHAR},
      </if>
      <if test="record.refresherCode != null" >
        REFRESHER_CODE = #{record.refresherCode,jdbcType=VARCHAR},
      </if>
      <if test="record.refreshTime != null" >
        REFRESH_TIME = #{record.refreshTime,jdbcType=TIMESTAMP},
      </if>
      <if test="record.remark != null" >
        REMARK = #{record.remark,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update> -->
  <!-- <update id="updateByExample" parameterType="map" >
    update TY_JHXXMXB
    set JHXXID = #{record.jhxxid,jdbcType=VARCHAR},
      SXH = #{record.sxh,jdbcType=DECIMAL},
      CFBH = #{record.cfbh,jdbcType=VARCHAR},
      CFMC = #{record.cfmc,jdbcType=VARCHAR},
      PZBM = #{record.pzbm,jdbcType=VARCHAR},
      PZMC = #{record.pzmc,jdbcType=VARCHAR},
      LSDJBM = #{record.lsdjbm,jdbcType=VARCHAR},
      LSDJMC = #{record.lsdjmc,jdbcType=VARCHAR},
      KCJG = #{record.kcjg,jdbcType=DECIMAL},
      SCNF = #{record.scnf,jdbcType=VARCHAR},
      RKNF = #{record.rknf,jdbcType=VARCHAR},
      JHMXZT = #{record.jhmxzt,jdbcType=VARCHAR},
      STATUS = #{record.status,jdbcType=DECIMAL},
      CREATOR = #{record.creator,jdbcType=VARCHAR},
      CREATOR_CODE = #{record.creatorCode,jdbcType=VARCHAR},
      CREATE_DATE = #{record.createDate,jdbcType=TIMESTAMP},
      REFRESHER = #{record.refresher,jdbcType=VARCHAR},
      REFRESHER_CODE = #{record.refresherCode,jdbcType=VARCHAR},
      REFRESH_TIME = #{record.refreshTime,jdbcType=TIMESTAMP},
      REMARK = #{record.remark,jdbcType=VARCHAR}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update> -->
  <!-- <update id="updateByPrimaryKeySelective" parameterType="com.unis.base.server.entity.TyJhxxmxbDO" >
    update TY_JHXXMXB
    <set >
      <if test="sxh != null" >
        SXH = #{sxh,jdbcType=DECIMAL},
      </if>
      <if test="cfbh != null" >
        CFBH = #{cfbh,jdbcType=VARCHAR},
      </if>
      <if test="cfmc != null" >
        CFMC = #{cfmc,jdbcType=VARCHAR},
      </if>
      <if test="pzbm != null" >
        PZBM = #{pzbm,jdbcType=VARCHAR},
      </if>
      <if test="pzmc != null" >
        PZMC = #{pzmc,jdbcType=VARCHAR},
      </if>
      <if test="lsdjbm != null" >
        LSDJBM = #{lsdjbm,jdbcType=VARCHAR},
      </if>
      <if test="lsdjmc != null" >
        LSDJMC = #{lsdjmc,jdbcType=VARCHAR},
      </if>
      <if test="kcjg != null" >
        KCJG = #{kcjg,jdbcType=DECIMAL},
      </if>
      <if test="scnf != null" >
        SCNF = #{scnf,jdbcType=VARCHAR},
      </if>
      <if test="rknf != null" >
        RKNF = #{rknf,jdbcType=VARCHAR},
      </if>
      <if test="jhmxzt != null" >
        JHMXZT = #{jhmxzt,jdbcType=VARCHAR},
      </if>
      <if test="status != null" >
        STATUS = #{status,jdbcType=DECIMAL},
      </if>
      <if test="creator != null" >
        CREATOR = #{creator,jdbcType=VARCHAR},
      </if>
      <if test="creatorCode != null" >
        CREATOR_CODE = #{creatorCode,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="refresher != null" >
        REFRESHER = #{refresher,jdbcType=VARCHAR},
      </if>
      <if test="refresherCode != null" >
        REFRESHER_CODE = #{refresherCode,jdbcType=VARCHAR},
      </if>
      <if test="refreshTime != null" >
        REFRESH_TIME = #{refreshTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        REMARK = #{remark,jdbcType=VARCHAR},
      </if>
    </set>
    where JHXXID = #{jhxxid,jdbcType=VARCHAR}
  </update> -->
  <update id="updateByPrimaryKey" parameterType="com.unis.base.server.entity.TyJhxxmxbDO" >
    update TY_JHXXMXB
    set SXH = #{sxh,jdbcType=DECIMAL},
      CFBH = #{cfbh,jdbcType=VARCHAR},
      CFMC = #{cfmc,jdbcType=VARCHAR},
      PZBM = #{pzbm,jdbcType=VARCHAR},
      PZMC = #{pzmc,jdbcType=VARCHAR},
      LSDJBM = #{lsdjbm,jdbcType=VARCHAR},
      LSDJMC = #{lsdjmc,jdbcType=VARCHAR},
      KCJG = #{kcjg,jdbcType=DECIMAL},
      JHSL = #{jhsl,jdbcType=DECIMAL},
      LSXZBM = #{lsxzbm,jdbcType=VARCHAR},
      LSXZMC = #{lsxzmc,jdbcType=VARCHAR},
      SCNF = #{scnf,jdbcType=VARCHAR},
      RKNF = #{rknf,jdbcType=VARCHAR},
      JHMXZT = #{jhmxzt,jdbcType=VARCHAR},
      STATUS = #{status,jdbcType=DECIMAL},
      CREATOR = #{creator,jdbcType=VARCHAR},
      CREATOR_CODE = #{creatorCode,jdbcType=VARCHAR},
      CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
      REFRESHER = #{refresher,jdbcType=VARCHAR},
      REFRESHER_CODE = #{refresherCode,jdbcType=VARCHAR},
      REFRESH_TIME = #{refreshTime,jdbcType=TIMESTAMP},
      REMARK = #{remark,jdbcType=VARCHAR}
    where JHXXID = #{jhxxid,jdbcType=VARCHAR}
  </update>
</mapper>