ganzi-api/inventory-dao/src/main/resources/mapper/check/BookentcheckdetailCompanyMapper.xml

921 lines
39 KiB
XML
Raw Normal View History

2022-09-16 15:07:17 +08:00
<?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.rzyc.mapper.check.BookentcheckdetailCompanyMapper">
<resultMap id="BaseResultMap" type="com.rzyc.model.check.BookentcheckdetailCompany">
<id column="BookEntCheckDetailId" jdbcType="VARCHAR" property="bookentcheckdetailid" />
<result column="BookEntCheckId" jdbcType="VARCHAR" property="bookentcheckid" />
<result column="ChkBillDetailId" jdbcType="VARCHAR" property="chkbilldetailid" />
<result column="ChkGovBillDetailId" jdbcType="VARCHAR" property="chkgovbilldetailid" />
<result column="ChkBillId" jdbcType="VARCHAR" property="chkbillid" />
<result column="BaseKPIId" jdbcType="VARCHAR" property="basekpiid" />
<result column="BaseInClassId" jdbcType="VARCHAR" property="baseinclassid" />
<result column="BaseSafeClassId" jdbcType="VARCHAR" property="basesafeclassid" />
<result column="CheckItemNo" jdbcType="INTEGER" property="checkitemno" />
<result column="CheckUnit" jdbcType="VARCHAR" property="checkunit" />
<result column="IsSerious" jdbcType="VARCHAR" property="isserious" />
<result column="serious" jdbcType="VARCHAR" property="serious" />
<result column="SeriousLevel" jdbcType="VARCHAR" property="seriouslevel" />
<result column="UnqLevel" jdbcType="VARCHAR" property="unqlevel" />
<result column="UnRectificatyLevel" jdbcType="VARCHAR" property="unrectificatylevel" />
<result column="IsQualified" jdbcType="VARCHAR" property="isqualified" />
<result column="IsNotice" jdbcType="VARCHAR" property="isnotice" />
<result column="IsUsed" jdbcType="VARCHAR" property="isused" />
<result column="HazardType" jdbcType="VARCHAR" property="hazardtype" />
<result column="IsToTrouble" jdbcType="VARCHAR" property="istotrouble" />
<result column="SpecialModeNo" jdbcType="VARCHAR" property="specialmodeno" />
<result column="CreatedOn" jdbcType="TIMESTAMP" property="createdon" />
<result column="CreatedBy" jdbcType="VARCHAR" property="createdby" />
<result column="ModifiedOn" jdbcType="TIMESTAMP" property="modifiedon" />
<result column="ModifiedBy" jdbcType="VARCHAR" property="modifiedby" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.rzyc.model.check.BookentcheckdetailCompanyWithBLOBs">
<result column="CheckObjectName" jdbcType="LONGVARCHAR" property="checkobjectname" />
<result column="CheckMethod" jdbcType="LONGVARCHAR" property="checkmethod" />
<result column="CheckBasis" jdbcType="LONGVARCHAR" property="checkbasis" />
<result column="CheckBasisContent" jdbcType="LONGVARCHAR" property="checkbasiscontent" />
<result column="EnforBasis" jdbcType="LONGVARCHAR" property="enforbasis" />
<result column="EnforBasisContent" jdbcType="LONGVARCHAR" property="enforbasiscontent" />
<result column="SeriousContent" jdbcType="LONGVARCHAR" property="seriouscontent" />
<result column="UnqBasisContent" jdbcType="LONGVARCHAR" property="unqbasiscontent" />
<result column="UnRectificatyContent" jdbcType="LONGVARCHAR" property="unrectificatycontent" />
<result column="DutyBasis" jdbcType="LONGVARCHAR" property="dutybasis" />
<result column="DutyBasisContent" jdbcType="LONGVARCHAR" property="dutybasiscontent" />
<result column="DefinitionBasis" jdbcType="LONGVARCHAR" property="definitionbasis" />
<result column="DefinitionBasisPerson" jdbcType="LONGVARCHAR" property="definitionbasisperson" />
<result column="Notice" jdbcType="LONGVARCHAR" property="notice" />
<result column="BasicsFact" jdbcType="LONGVARCHAR" property="basicsfact" />
<result column="Remark" jdbcType="LONGVARCHAR" property="remark" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<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 close=")" collection="criterion.value" item="listItem" open="(" 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="(" prefixOverrides="and" suffix=")">
<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 close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
BookEntCheckDetailId, BookEntCheckId, ChkBillDetailId, ChkGovBillDetailId, ChkBillId,
BaseKPIId, BaseInClassId, BaseSafeClassId, CheckItemNo, CheckUnit, IsSerious, serious,
SeriousLevel, UnqLevel, UnRectificatyLevel, IsQualified, IsNotice, IsUsed, HazardType,
IsToTrouble, SpecialModeNo, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy
</sql>
<sql id="Blob_Column_List">
CheckObjectName, CheckMethod, CheckBasis, CheckBasisContent, EnforBasis, EnforBasisContent,
SeriousContent, UnqBasisContent, UnRectificatyContent, DutyBasis, DutyBasisContent,
DefinitionBasis, DefinitionBasisPerson, Notice, BasicsFact, Remark
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from bookentcheckdetail_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from bookentcheckdetail_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="limit != null">
<if test="offset != null">
limit ${offset}, ${limit}
</if>
<if test="offset == null">
limit ${limit}
</if>
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from bookentcheckdetail_company
where BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from bookentcheckdetail_company
where BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyExample">
delete from bookentcheckdetail_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyWithBLOBs">
insert into bookentcheckdetail_company (BookEntCheckDetailId, BookEntCheckId,
ChkBillDetailId, ChkGovBillDetailId, ChkBillId,
BaseKPIId, BaseInClassId, BaseSafeClassId,
CheckItemNo, CheckUnit, IsSerious,
serious, SeriousLevel, UnqLevel,
UnRectificatyLevel, IsQualified, IsNotice,
IsUsed, HazardType, IsToTrouble,
SpecialModeNo, CreatedOn, CreatedBy,
ModifiedOn, ModifiedBy, CheckObjectName,
CheckMethod, CheckBasis, CheckBasisContent,
EnforBasis, EnforBasisContent,
SeriousContent, UnqBasisContent,
UnRectificatyContent, DutyBasis,
DutyBasisContent, DefinitionBasis,
DefinitionBasisPerson, Notice,
BasicsFact, Remark)
values (#{bookentcheckdetailid,jdbcType=VARCHAR}, #{bookentcheckid,jdbcType=VARCHAR},
#{chkbilldetailid,jdbcType=VARCHAR}, #{chkgovbilldetailid,jdbcType=VARCHAR}, #{chkbillid,jdbcType=VARCHAR},
#{basekpiid,jdbcType=VARCHAR}, #{baseinclassid,jdbcType=VARCHAR}, #{basesafeclassid,jdbcType=VARCHAR},
#{checkitemno,jdbcType=INTEGER}, #{checkunit,jdbcType=VARCHAR}, #{isserious,jdbcType=VARCHAR},
#{serious,jdbcType=VARCHAR}, #{seriouslevel,jdbcType=VARCHAR}, #{unqlevel,jdbcType=VARCHAR},
#{unrectificatylevel,jdbcType=VARCHAR}, #{isqualified,jdbcType=VARCHAR}, #{isnotice,jdbcType=VARCHAR},
#{isused,jdbcType=VARCHAR}, #{hazardtype,jdbcType=VARCHAR}, #{istotrouble,jdbcType=VARCHAR},
#{specialmodeno,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP}, #{createdby,jdbcType=VARCHAR},
#{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR}, #{checkobjectname,jdbcType=LONGVARCHAR},
#{checkmethod,jdbcType=LONGVARCHAR}, #{checkbasis,jdbcType=LONGVARCHAR}, #{checkbasiscontent,jdbcType=LONGVARCHAR},
#{enforbasis,jdbcType=LONGVARCHAR}, #{enforbasiscontent,jdbcType=LONGVARCHAR},
#{seriouscontent,jdbcType=LONGVARCHAR}, #{unqbasiscontent,jdbcType=LONGVARCHAR},
#{unrectificatycontent,jdbcType=LONGVARCHAR}, #{dutybasis,jdbcType=LONGVARCHAR},
#{dutybasiscontent,jdbcType=LONGVARCHAR}, #{definitionbasis,jdbcType=LONGVARCHAR},
#{definitionbasisperson,jdbcType=LONGVARCHAR}, #{notice,jdbcType=LONGVARCHAR},
#{basicsfact,jdbcType=LONGVARCHAR}, #{remark,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyWithBLOBs">
insert into bookentcheckdetail_company
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="bookentcheckdetailid != null">
BookEntCheckDetailId,
</if>
<if test="bookentcheckid != null">
BookEntCheckId,
</if>
<if test="chkbilldetailid != null">
ChkBillDetailId,
</if>
<if test="chkgovbilldetailid != null">
ChkGovBillDetailId,
</if>
<if test="chkbillid != null">
ChkBillId,
</if>
<if test="basekpiid != null">
BaseKPIId,
</if>
<if test="baseinclassid != null">
BaseInClassId,
</if>
<if test="basesafeclassid != null">
BaseSafeClassId,
</if>
<if test="checkitemno != null">
CheckItemNo,
</if>
<if test="checkunit != null">
CheckUnit,
</if>
<if test="isserious != null">
IsSerious,
</if>
<if test="serious != null">
serious,
</if>
<if test="seriouslevel != null">
SeriousLevel,
</if>
<if test="unqlevel != null">
UnqLevel,
</if>
<if test="unrectificatylevel != null">
UnRectificatyLevel,
</if>
<if test="isqualified != null">
IsQualified,
</if>
<if test="isnotice != null">
IsNotice,
</if>
<if test="isused != null">
IsUsed,
</if>
<if test="hazardtype != null">
HazardType,
</if>
<if test="istotrouble != null">
IsToTrouble,
</if>
<if test="specialmodeno != null">
SpecialModeNo,
</if>
<if test="createdon != null">
CreatedOn,
</if>
<if test="createdby != null">
CreatedBy,
</if>
<if test="modifiedon != null">
ModifiedOn,
</if>
<if test="modifiedby != null">
ModifiedBy,
</if>
<if test="checkobjectname != null">
CheckObjectName,
</if>
<if test="checkmethod != null">
CheckMethod,
</if>
<if test="checkbasis != null">
CheckBasis,
</if>
<if test="checkbasiscontent != null">
CheckBasisContent,
</if>
<if test="enforbasis != null">
EnforBasis,
</if>
<if test="enforbasiscontent != null">
EnforBasisContent,
</if>
<if test="seriouscontent != null">
SeriousContent,
</if>
<if test="unqbasiscontent != null">
UnqBasisContent,
</if>
<if test="unrectificatycontent != null">
UnRectificatyContent,
</if>
<if test="dutybasis != null">
DutyBasis,
</if>
<if test="dutybasiscontent != null">
DutyBasisContent,
</if>
<if test="definitionbasis != null">
DefinitionBasis,
</if>
<if test="definitionbasisperson != null">
DefinitionBasisPerson,
</if>
<if test="notice != null">
Notice,
</if>
<if test="basicsfact != null">
BasicsFact,
</if>
<if test="remark != null">
Remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="bookentcheckdetailid != null">
#{bookentcheckdetailid,jdbcType=VARCHAR},
</if>
<if test="bookentcheckid != null">
#{bookentcheckid,jdbcType=VARCHAR},
</if>
<if test="chkbilldetailid != null">
#{chkbilldetailid,jdbcType=VARCHAR},
</if>
<if test="chkgovbilldetailid != null">
#{chkgovbilldetailid,jdbcType=VARCHAR},
</if>
<if test="chkbillid != null">
#{chkbillid,jdbcType=VARCHAR},
</if>
<if test="basekpiid != null">
#{basekpiid,jdbcType=VARCHAR},
</if>
<if test="baseinclassid != null">
#{baseinclassid,jdbcType=VARCHAR},
</if>
<if test="basesafeclassid != null">
#{basesafeclassid,jdbcType=VARCHAR},
</if>
<if test="checkitemno != null">
#{checkitemno,jdbcType=INTEGER},
</if>
<if test="checkunit != null">
#{checkunit,jdbcType=VARCHAR},
</if>
<if test="isserious != null">
#{isserious,jdbcType=VARCHAR},
</if>
<if test="serious != null">
#{serious,jdbcType=VARCHAR},
</if>
<if test="seriouslevel != null">
#{seriouslevel,jdbcType=VARCHAR},
</if>
<if test="unqlevel != null">
#{unqlevel,jdbcType=VARCHAR},
</if>
<if test="unrectificatylevel != null">
#{unrectificatylevel,jdbcType=VARCHAR},
</if>
<if test="isqualified != null">
#{isqualified,jdbcType=VARCHAR},
</if>
<if test="isnotice != null">
#{isnotice,jdbcType=VARCHAR},
</if>
<if test="isused != null">
#{isused,jdbcType=VARCHAR},
</if>
<if test="hazardtype != null">
#{hazardtype,jdbcType=VARCHAR},
</if>
<if test="istotrouble != null">
#{istotrouble,jdbcType=VARCHAR},
</if>
<if test="specialmodeno != null">
#{specialmodeno,jdbcType=VARCHAR},
</if>
<if test="createdon != null">
#{createdon,jdbcType=TIMESTAMP},
</if>
<if test="createdby != null">
#{createdby,jdbcType=VARCHAR},
</if>
<if test="modifiedon != null">
#{modifiedon,jdbcType=TIMESTAMP},
</if>
<if test="modifiedby != null">
#{modifiedby,jdbcType=VARCHAR},
</if>
<if test="checkobjectname != null">
#{checkobjectname,jdbcType=LONGVARCHAR},
</if>
<if test="checkmethod != null">
#{checkmethod,jdbcType=LONGVARCHAR},
</if>
<if test="checkbasis != null">
#{checkbasis,jdbcType=LONGVARCHAR},
</if>
<if test="checkbasiscontent != null">
#{checkbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="enforbasis != null">
#{enforbasis,jdbcType=LONGVARCHAR},
</if>
<if test="enforbasiscontent != null">
#{enforbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="seriouscontent != null">
#{seriouscontent,jdbcType=LONGVARCHAR},
</if>
<if test="unqbasiscontent != null">
#{unqbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="unrectificatycontent != null">
#{unrectificatycontent,jdbcType=LONGVARCHAR},
</if>
<if test="dutybasis != null">
#{dutybasis,jdbcType=LONGVARCHAR},
</if>
<if test="dutybasiscontent != null">
#{dutybasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="definitionbasis != null">
#{definitionbasis,jdbcType=LONGVARCHAR},
</if>
<if test="definitionbasisperson != null">
#{definitionbasisperson,jdbcType=LONGVARCHAR},
</if>
<if test="notice != null">
#{notice,jdbcType=LONGVARCHAR},
</if>
<if test="basicsfact != null">
#{basicsfact,jdbcType=LONGVARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyExample" resultType="java.lang.Long">
select count(*) from bookentcheckdetail_company
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update bookentcheckdetail_company
<set>
<if test="record.bookentcheckdetailid != null">
BookEntCheckDetailId = #{record.bookentcheckdetailid,jdbcType=VARCHAR},
</if>
<if test="record.bookentcheckid != null">
BookEntCheckId = #{record.bookentcheckid,jdbcType=VARCHAR},
</if>
<if test="record.chkbilldetailid != null">
ChkBillDetailId = #{record.chkbilldetailid,jdbcType=VARCHAR},
</if>
<if test="record.chkgovbilldetailid != null">
ChkGovBillDetailId = #{record.chkgovbilldetailid,jdbcType=VARCHAR},
</if>
<if test="record.chkbillid != null">
ChkBillId = #{record.chkbillid,jdbcType=VARCHAR},
</if>
<if test="record.basekpiid != null">
BaseKPIId = #{record.basekpiid,jdbcType=VARCHAR},
</if>
<if test="record.baseinclassid != null">
BaseInClassId = #{record.baseinclassid,jdbcType=VARCHAR},
</if>
<if test="record.basesafeclassid != null">
BaseSafeClassId = #{record.basesafeclassid,jdbcType=VARCHAR},
</if>
<if test="record.checkitemno != null">
CheckItemNo = #{record.checkitemno,jdbcType=INTEGER},
</if>
<if test="record.checkunit != null">
CheckUnit = #{record.checkunit,jdbcType=VARCHAR},
</if>
<if test="record.isserious != null">
IsSerious = #{record.isserious,jdbcType=VARCHAR},
</if>
<if test="record.serious != null">
serious = #{record.serious,jdbcType=VARCHAR},
</if>
<if test="record.seriouslevel != null">
SeriousLevel = #{record.seriouslevel,jdbcType=VARCHAR},
</if>
<if test="record.unqlevel != null">
UnqLevel = #{record.unqlevel,jdbcType=VARCHAR},
</if>
<if test="record.unrectificatylevel != null">
UnRectificatyLevel = #{record.unrectificatylevel,jdbcType=VARCHAR},
</if>
<if test="record.isqualified != null">
IsQualified = #{record.isqualified,jdbcType=VARCHAR},
</if>
<if test="record.isnotice != null">
IsNotice = #{record.isnotice,jdbcType=VARCHAR},
</if>
<if test="record.isused != null">
IsUsed = #{record.isused,jdbcType=VARCHAR},
</if>
<if test="record.hazardtype != null">
HazardType = #{record.hazardtype,jdbcType=VARCHAR},
</if>
<if test="record.istotrouble != null">
IsToTrouble = #{record.istotrouble,jdbcType=VARCHAR},
</if>
<if test="record.specialmodeno != null">
SpecialModeNo = #{record.specialmodeno,jdbcType=VARCHAR},
</if>
<if test="record.createdon != null">
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
</if>
<if test="record.createdby != null">
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
</if>
<if test="record.modifiedon != null">
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
</if>
<if test="record.modifiedby != null">
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
</if>
<if test="record.checkobjectname != null">
CheckObjectName = #{record.checkobjectname,jdbcType=LONGVARCHAR},
</if>
<if test="record.checkmethod != null">
CheckMethod = #{record.checkmethod,jdbcType=LONGVARCHAR},
</if>
<if test="record.checkbasis != null">
CheckBasis = #{record.checkbasis,jdbcType=LONGVARCHAR},
</if>
<if test="record.checkbasiscontent != null">
CheckBasisContent = #{record.checkbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.enforbasis != null">
EnforBasis = #{record.enforbasis,jdbcType=LONGVARCHAR},
</if>
<if test="record.enforbasiscontent != null">
EnforBasisContent = #{record.enforbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.seriouscontent != null">
SeriousContent = #{record.seriouscontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.unqbasiscontent != null">
UnqBasisContent = #{record.unqbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.unrectificatycontent != null">
UnRectificatyContent = #{record.unrectificatycontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.dutybasis != null">
DutyBasis = #{record.dutybasis,jdbcType=LONGVARCHAR},
</if>
<if test="record.dutybasiscontent != null">
DutyBasisContent = #{record.dutybasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="record.definitionbasis != null">
DefinitionBasis = #{record.definitionbasis,jdbcType=LONGVARCHAR},
</if>
<if test="record.definitionbasisperson != null">
DefinitionBasisPerson = #{record.definitionbasisperson,jdbcType=LONGVARCHAR},
</if>
<if test="record.notice != null">
Notice = #{record.notice,jdbcType=LONGVARCHAR},
</if>
<if test="record.basicsfact != null">
BasicsFact = #{record.basicsfact,jdbcType=LONGVARCHAR},
</if>
<if test="record.remark != null">
Remark = #{record.remark,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update bookentcheckdetail_company
set BookEntCheckDetailId = #{record.bookentcheckdetailid,jdbcType=VARCHAR},
BookEntCheckId = #{record.bookentcheckid,jdbcType=VARCHAR},
ChkBillDetailId = #{record.chkbilldetailid,jdbcType=VARCHAR},
ChkGovBillDetailId = #{record.chkgovbilldetailid,jdbcType=VARCHAR},
ChkBillId = #{record.chkbillid,jdbcType=VARCHAR},
BaseKPIId = #{record.basekpiid,jdbcType=VARCHAR},
BaseInClassId = #{record.baseinclassid,jdbcType=VARCHAR},
BaseSafeClassId = #{record.basesafeclassid,jdbcType=VARCHAR},
CheckItemNo = #{record.checkitemno,jdbcType=INTEGER},
CheckUnit = #{record.checkunit,jdbcType=VARCHAR},
IsSerious = #{record.isserious,jdbcType=VARCHAR},
serious = #{record.serious,jdbcType=VARCHAR},
SeriousLevel = #{record.seriouslevel,jdbcType=VARCHAR},
UnqLevel = #{record.unqlevel,jdbcType=VARCHAR},
UnRectificatyLevel = #{record.unrectificatylevel,jdbcType=VARCHAR},
IsQualified = #{record.isqualified,jdbcType=VARCHAR},
IsNotice = #{record.isnotice,jdbcType=VARCHAR},
IsUsed = #{record.isused,jdbcType=VARCHAR},
HazardType = #{record.hazardtype,jdbcType=VARCHAR},
IsToTrouble = #{record.istotrouble,jdbcType=VARCHAR},
SpecialModeNo = #{record.specialmodeno,jdbcType=VARCHAR},
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
CheckObjectName = #{record.checkobjectname,jdbcType=LONGVARCHAR},
CheckMethod = #{record.checkmethod,jdbcType=LONGVARCHAR},
CheckBasis = #{record.checkbasis,jdbcType=LONGVARCHAR},
CheckBasisContent = #{record.checkbasiscontent,jdbcType=LONGVARCHAR},
EnforBasis = #{record.enforbasis,jdbcType=LONGVARCHAR},
EnforBasisContent = #{record.enforbasiscontent,jdbcType=LONGVARCHAR},
SeriousContent = #{record.seriouscontent,jdbcType=LONGVARCHAR},
UnqBasisContent = #{record.unqbasiscontent,jdbcType=LONGVARCHAR},
UnRectificatyContent = #{record.unrectificatycontent,jdbcType=LONGVARCHAR},
DutyBasis = #{record.dutybasis,jdbcType=LONGVARCHAR},
DutyBasisContent = #{record.dutybasiscontent,jdbcType=LONGVARCHAR},
DefinitionBasis = #{record.definitionbasis,jdbcType=LONGVARCHAR},
DefinitionBasisPerson = #{record.definitionbasisperson,jdbcType=LONGVARCHAR},
Notice = #{record.notice,jdbcType=LONGVARCHAR},
BasicsFact = #{record.basicsfact,jdbcType=LONGVARCHAR},
Remark = #{record.remark,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update bookentcheckdetail_company
set BookEntCheckDetailId = #{record.bookentcheckdetailid,jdbcType=VARCHAR},
BookEntCheckId = #{record.bookentcheckid,jdbcType=VARCHAR},
ChkBillDetailId = #{record.chkbilldetailid,jdbcType=VARCHAR},
ChkGovBillDetailId = #{record.chkgovbilldetailid,jdbcType=VARCHAR},
ChkBillId = #{record.chkbillid,jdbcType=VARCHAR},
BaseKPIId = #{record.basekpiid,jdbcType=VARCHAR},
BaseInClassId = #{record.baseinclassid,jdbcType=VARCHAR},
BaseSafeClassId = #{record.basesafeclassid,jdbcType=VARCHAR},
CheckItemNo = #{record.checkitemno,jdbcType=INTEGER},
CheckUnit = #{record.checkunit,jdbcType=VARCHAR},
IsSerious = #{record.isserious,jdbcType=VARCHAR},
serious = #{record.serious,jdbcType=VARCHAR},
SeriousLevel = #{record.seriouslevel,jdbcType=VARCHAR},
UnqLevel = #{record.unqlevel,jdbcType=VARCHAR},
UnRectificatyLevel = #{record.unrectificatylevel,jdbcType=VARCHAR},
IsQualified = #{record.isqualified,jdbcType=VARCHAR},
IsNotice = #{record.isnotice,jdbcType=VARCHAR},
IsUsed = #{record.isused,jdbcType=VARCHAR},
HazardType = #{record.hazardtype,jdbcType=VARCHAR},
IsToTrouble = #{record.istotrouble,jdbcType=VARCHAR},
SpecialModeNo = #{record.specialmodeno,jdbcType=VARCHAR},
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyWithBLOBs">
update bookentcheckdetail_company
<set>
<if test="bookentcheckid != null">
BookEntCheckId = #{bookentcheckid,jdbcType=VARCHAR},
</if>
<if test="chkbilldetailid != null">
ChkBillDetailId = #{chkbilldetailid,jdbcType=VARCHAR},
</if>
<if test="chkgovbilldetailid != null">
ChkGovBillDetailId = #{chkgovbilldetailid,jdbcType=VARCHAR},
</if>
<if test="chkbillid != null">
ChkBillId = #{chkbillid,jdbcType=VARCHAR},
</if>
<if test="basekpiid != null">
BaseKPIId = #{basekpiid,jdbcType=VARCHAR},
</if>
<if test="baseinclassid != null">
BaseInClassId = #{baseinclassid,jdbcType=VARCHAR},
</if>
<if test="basesafeclassid != null">
BaseSafeClassId = #{basesafeclassid,jdbcType=VARCHAR},
</if>
<if test="checkitemno != null">
CheckItemNo = #{checkitemno,jdbcType=INTEGER},
</if>
<if test="checkunit != null">
CheckUnit = #{checkunit,jdbcType=VARCHAR},
</if>
<if test="isserious != null">
IsSerious = #{isserious,jdbcType=VARCHAR},
</if>
<if test="serious != null">
serious = #{serious,jdbcType=VARCHAR},
</if>
<if test="seriouslevel != null">
SeriousLevel = #{seriouslevel,jdbcType=VARCHAR},
</if>
<if test="unqlevel != null">
UnqLevel = #{unqlevel,jdbcType=VARCHAR},
</if>
<if test="unrectificatylevel != null">
UnRectificatyLevel = #{unrectificatylevel,jdbcType=VARCHAR},
</if>
<if test="isqualified != null">
IsQualified = #{isqualified,jdbcType=VARCHAR},
</if>
<if test="isnotice != null">
IsNotice = #{isnotice,jdbcType=VARCHAR},
</if>
<if test="isused != null">
IsUsed = #{isused,jdbcType=VARCHAR},
</if>
<if test="hazardtype != null">
HazardType = #{hazardtype,jdbcType=VARCHAR},
</if>
<if test="istotrouble != null">
IsToTrouble = #{istotrouble,jdbcType=VARCHAR},
</if>
<if test="specialmodeno != null">
SpecialModeNo = #{specialmodeno,jdbcType=VARCHAR},
</if>
<if test="createdon != null">
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
</if>
<if test="createdby != null">
CreatedBy = #{createdby,jdbcType=VARCHAR},
</if>
<if test="modifiedon != null">
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
</if>
<if test="modifiedby != null">
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
</if>
<if test="checkobjectname != null">
CheckObjectName = #{checkobjectname,jdbcType=LONGVARCHAR},
</if>
<if test="checkmethod != null">
CheckMethod = #{checkmethod,jdbcType=LONGVARCHAR},
</if>
<if test="checkbasis != null">
CheckBasis = #{checkbasis,jdbcType=LONGVARCHAR},
</if>
<if test="checkbasiscontent != null">
CheckBasisContent = #{checkbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="enforbasis != null">
EnforBasis = #{enforbasis,jdbcType=LONGVARCHAR},
</if>
<if test="enforbasiscontent != null">
EnforBasisContent = #{enforbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="seriouscontent != null">
SeriousContent = #{seriouscontent,jdbcType=LONGVARCHAR},
</if>
<if test="unqbasiscontent != null">
UnqBasisContent = #{unqbasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="unrectificatycontent != null">
UnRectificatyContent = #{unrectificatycontent,jdbcType=LONGVARCHAR},
</if>
<if test="dutybasis != null">
DutyBasis = #{dutybasis,jdbcType=LONGVARCHAR},
</if>
<if test="dutybasiscontent != null">
DutyBasisContent = #{dutybasiscontent,jdbcType=LONGVARCHAR},
</if>
<if test="definitionbasis != null">
DefinitionBasis = #{definitionbasis,jdbcType=LONGVARCHAR},
</if>
<if test="definitionbasisperson != null">
DefinitionBasisPerson = #{definitionbasisperson,jdbcType=LONGVARCHAR},
</if>
<if test="notice != null">
Notice = #{notice,jdbcType=LONGVARCHAR},
</if>
<if test="basicsfact != null">
BasicsFact = #{basicsfact,jdbcType=LONGVARCHAR},
</if>
<if test="remark != null">
Remark = #{remark,jdbcType=LONGVARCHAR},
</if>
</set>
where BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.rzyc.model.check.BookentcheckdetailCompanyWithBLOBs">
update bookentcheckdetail_company
set BookEntCheckId = #{bookentcheckid,jdbcType=VARCHAR},
ChkBillDetailId = #{chkbilldetailid,jdbcType=VARCHAR},
ChkGovBillDetailId = #{chkgovbilldetailid,jdbcType=VARCHAR},
ChkBillId = #{chkbillid,jdbcType=VARCHAR},
BaseKPIId = #{basekpiid,jdbcType=VARCHAR},
BaseInClassId = #{baseinclassid,jdbcType=VARCHAR},
BaseSafeClassId = #{basesafeclassid,jdbcType=VARCHAR},
CheckItemNo = #{checkitemno,jdbcType=INTEGER},
CheckUnit = #{checkunit,jdbcType=VARCHAR},
IsSerious = #{isserious,jdbcType=VARCHAR},
serious = #{serious,jdbcType=VARCHAR},
SeriousLevel = #{seriouslevel,jdbcType=VARCHAR},
UnqLevel = #{unqlevel,jdbcType=VARCHAR},
UnRectificatyLevel = #{unrectificatylevel,jdbcType=VARCHAR},
IsQualified = #{isqualified,jdbcType=VARCHAR},
IsNotice = #{isnotice,jdbcType=VARCHAR},
IsUsed = #{isused,jdbcType=VARCHAR},
HazardType = #{hazardtype,jdbcType=VARCHAR},
IsToTrouble = #{istotrouble,jdbcType=VARCHAR},
SpecialModeNo = #{specialmodeno,jdbcType=VARCHAR},
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
CreatedBy = #{createdby,jdbcType=VARCHAR},
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
CheckObjectName = #{checkobjectname,jdbcType=LONGVARCHAR},
CheckMethod = #{checkmethod,jdbcType=LONGVARCHAR},
CheckBasis = #{checkbasis,jdbcType=LONGVARCHAR},
CheckBasisContent = #{checkbasiscontent,jdbcType=LONGVARCHAR},
EnforBasis = #{enforbasis,jdbcType=LONGVARCHAR},
EnforBasisContent = #{enforbasiscontent,jdbcType=LONGVARCHAR},
SeriousContent = #{seriouscontent,jdbcType=LONGVARCHAR},
UnqBasisContent = #{unqbasiscontent,jdbcType=LONGVARCHAR},
UnRectificatyContent = #{unrectificatycontent,jdbcType=LONGVARCHAR},
DutyBasis = #{dutybasis,jdbcType=LONGVARCHAR},
DutyBasisContent = #{dutybasiscontent,jdbcType=LONGVARCHAR},
DefinitionBasis = #{definitionbasis,jdbcType=LONGVARCHAR},
DefinitionBasisPerson = #{definitionbasisperson,jdbcType=LONGVARCHAR},
Notice = #{notice,jdbcType=LONGVARCHAR},
BasicsFact = #{basicsfact,jdbcType=LONGVARCHAR},
Remark = #{remark,jdbcType=LONGVARCHAR}
where BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.rzyc.model.check.BookentcheckdetailCompany">
update bookentcheckdetail_company
set BookEntCheckId = #{bookentcheckid,jdbcType=VARCHAR},
ChkBillDetailId = #{chkbilldetailid,jdbcType=VARCHAR},
ChkGovBillDetailId = #{chkgovbilldetailid,jdbcType=VARCHAR},
ChkBillId = #{chkbillid,jdbcType=VARCHAR},
BaseKPIId = #{basekpiid,jdbcType=VARCHAR},
BaseInClassId = #{baseinclassid,jdbcType=VARCHAR},
BaseSafeClassId = #{basesafeclassid,jdbcType=VARCHAR},
CheckItemNo = #{checkitemno,jdbcType=INTEGER},
CheckUnit = #{checkunit,jdbcType=VARCHAR},
IsSerious = #{isserious,jdbcType=VARCHAR},
serious = #{serious,jdbcType=VARCHAR},
SeriousLevel = #{seriouslevel,jdbcType=VARCHAR},
UnqLevel = #{unqlevel,jdbcType=VARCHAR},
UnRectificatyLevel = #{unrectificatylevel,jdbcType=VARCHAR},
IsQualified = #{isqualified,jdbcType=VARCHAR},
IsNotice = #{isnotice,jdbcType=VARCHAR},
IsUsed = #{isused,jdbcType=VARCHAR},
HazardType = #{hazardtype,jdbcType=VARCHAR},
IsToTrouble = #{istotrouble,jdbcType=VARCHAR},
SpecialModeNo = #{specialmodeno,jdbcType=VARCHAR},
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
CreatedBy = #{createdby,jdbcType=VARCHAR},
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{modifiedby,jdbcType=VARCHAR}
where BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR}
</update>
<!--批量添加-->
<insert id="insertList" parameterType="com.rzyc.model.check.BookEntCheckDetailWithBLOBs">
insert into bookentcheckdetail_company (BookEntCheckDetailId,
BookEntCheckId, ChkBillDetailId,ChkGovBillDetailId, ChkBillId,
BaseKPIId, BaseInClassId, BaseSafeClassId,
CheckItemNo, CheckUnit, IsSerious,
SeriousLevel, UnqLevel, UnRectificatyLevel,
IsNotice, IsUsed, HazardType,
IsQualified, IsToTrouble, SpecialModeNo,
CreatedOn, CreatedBy, ModifiedOn,
ModifiedBy, CheckObjectName, CheckMethod,
CheckBasis, CheckBasisContent,
EnforBasis, EnforBasisContent,
SeriousContent, UnqBasisContent,
UnRectificatyContent, DutyBasis,
DutyBasisContent, DefinitionBasis,
DefinitionBasisPerson, Notice,
BasicsFact, Remark,min_work_unit_id)
values
<foreach collection ="records" item="record" index= "index" separator =",">
(#{record.bookentcheckdetailid,jdbcType=VARCHAR},
#{record.bookentcheckid,jdbcType=VARCHAR},
#{record.chkbilldetailid,jdbcType=VARCHAR},
#{record.chkgovbilldetailid,jdbcType=VARCHAR},
#{record.chkbillid,jdbcType=VARCHAR},#{record.basekpiid,jdbcType=VARCHAR},
#{record.baseinclassid,jdbcType=VARCHAR}, #{record.basesafeclassid,jdbcType=VARCHAR},
#{record.checkitemno,jdbcType=INTEGER}, #{record.checkunit,jdbcType=VARCHAR},
#{record.isserious,jdbcType=VARCHAR},#{record.seriouslevel,jdbcType=VARCHAR},
#{record.unqlevel,jdbcType=VARCHAR}, #{record.unrectificatylevel,jdbcType=VARCHAR},
#{record.isnotice,jdbcType=VARCHAR}, #{record.isused,jdbcType=VARCHAR},
#{record.hazardtype,jdbcType=VARCHAR},#{record.isqualified,jdbcType=VARCHAR},
#{record.istotrouble,jdbcType=VARCHAR}, #{record.specialmodeno,jdbcType=VARCHAR},
#{record.createdon,jdbcType=TIMESTAMP}, #{record.createdby,jdbcType=VARCHAR},
#{record.modifiedon,jdbcType=TIMESTAMP},#{record.modifiedby,jdbcType=VARCHAR},
#{record.checkobjectname,jdbcType=LONGVARCHAR}, #{record.checkmethod,jdbcType=LONGVARCHAR},
#{record.checkbasis,jdbcType=LONGVARCHAR}, #{record.checkbasiscontent,jdbcType=LONGVARCHAR},
#{record.enforbasis,jdbcType=LONGVARCHAR}, #{record.enforbasiscontent,jdbcType=LONGVARCHAR},
#{record.seriouscontent,jdbcType=LONGVARCHAR}, #{record.unqbasiscontent,jdbcType=LONGVARCHAR},
#{record.unrectificatycontent,jdbcType=LONGVARCHAR}, #{record.dutybasis,jdbcType=LONGVARCHAR},
#{record.dutybasiscontent,jdbcType=LONGVARCHAR}, #{record.definitionbasis,jdbcType=LONGVARCHAR},
#{record.definitionbasisperson,jdbcType=LONGVARCHAR}, #{record.notice,jdbcType=LONGVARCHAR},
#{record.basicsfact,jdbcType=LONGVARCHAR}, #{record.remark,jdbcType=LONGVARCHAR},#{record.minWorkUnitId})
</foreach>
</insert>
</mapper>