881 lines
35 KiB
XML
881 lines
35 KiB
XML
<?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.BookenthtCompanyMapper">
|
|
<resultMap id="BaseResultMap" type="com.rzyc.model.check.BookenthtCompany">
|
|
<id column="BookEntHTId" jdbcType="VARCHAR" property="bookenthtid" />
|
|
<result column="SysEnterpriseId" jdbcType="VARCHAR" property="sysenterpriseid" />
|
|
<result column="BookEntCheckId" jdbcType="VARCHAR" property="bookentcheckid" />
|
|
<result column="BeCheckedTime" jdbcType="TIMESTAMP" property="becheckedtime" />
|
|
<result column="BeCheckedPerson" jdbcType="VARCHAR" property="becheckedperson" />
|
|
<result column="HiddenArea" jdbcType="VARCHAR" property="hiddenarea" />
|
|
<result column="ConfirmTime" jdbcType="TIMESTAMP" property="confirmtime" />
|
|
<result column="HTSource" jdbcType="VARCHAR" property="htsource" />
|
|
<result column="HTType" jdbcType="VARCHAR" property="httype" />
|
|
<result column="HTLevel" jdbcType="VARCHAR" property="htlevel" />
|
|
<result column="RectifyDepartment" jdbcType="VARCHAR" property="rectifydepartment" />
|
|
<result column="RectifyUserId" jdbcType="VARCHAR" property="rectifyUserId" />
|
|
<result column="RectifyPerson" jdbcType="VARCHAR" property="rectifyperson" />
|
|
<result column="RectifyTime" jdbcType="TIMESTAMP" property="rectifytime" />
|
|
<result column="TempRectify" jdbcType="VARCHAR" property="temprectify" />
|
|
<result column="GovDocNo" jdbcType="VARCHAR" property="govdocno" />
|
|
<result column="GovValBill" jdbcType="VARCHAR" property="govvalbill" />
|
|
<result column="IsGov" jdbcType="VARCHAR" property="isgov" />
|
|
<result column="IsWatch" jdbcType="VARCHAR" property="iswatch" />
|
|
<result column="HTReview" jdbcType="VARCHAR" property="htreview" />
|
|
<result column="HTState" jdbcType="VARCHAR" property="htstate" />
|
|
<result column="HTReport" jdbcType="VARCHAR" property="htreport" />
|
|
<result column="HTPerson" jdbcType="VARCHAR" property="htperson" />
|
|
<result column="AcceptPerson" jdbcType="VARCHAR" property="acceptperson" />
|
|
<result column="AcceptPersonId" jdbcType="VARCHAR" property="acceptpersonid" />
|
|
<result column="AcceptTime" jdbcType="TIMESTAMP" property="accepttime" />
|
|
<result column="HiddenTroubleUnit" jdbcType="VARCHAR" property="hiddentroubleunit" />
|
|
<result column="APPRectifyImgBefore" jdbcType="VARCHAR" property="apprectifyimgbefore" />
|
|
<result column="APPRectifyImgAfter" jdbcType="VARCHAR" property="apprectifyimgafter" />
|
|
<result column="ChkGovBillDetailId" jdbcType="VARCHAR" property="chkgovbilldetailid" />
|
|
<result column="BookEntCheckDetailId" jdbcType="VARCHAR" property="bookentcheckdetailid" />
|
|
<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.BookenthtCompany">
|
|
<result column="RectifyResult" jdbcType="LONGVARCHAR" property="rectifyresult" />
|
|
</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">
|
|
BookEntHTId, SysEnterpriseId, BookEntCheckId, BeCheckedTime, BeCheckedPerson, HiddenArea,
|
|
ConfirmTime, HTSource, HTType, HTLevel, RectifyDepartment, RectifyUserId, RectifyPerson,
|
|
RectifyTime, TempRectify, GovDocNo, GovValBill, IsGov, IsWatch, HTReview, HTState,
|
|
HTReport, HTPerson, AcceptPerson, AcceptPersonId, AcceptTime, HiddenTroubleUnit,
|
|
APPRectifyImgBefore, APPRectifyImgAfter, ChkGovBillDetailId, BookEntCheckDetailId,
|
|
CreatedOn, CreatedBy, ModifiedOn, ModifiedBy
|
|
</sql>
|
|
<sql id="Blob_Column_List">
|
|
RectifyResult
|
|
</sql>
|
|
<select id="selectByExampleWithBLOBs" parameterType="com.rzyc.model.check.BookenthtCompanyExample" resultMap="ResultMapWithBLOBs">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
,
|
|
<include refid="Blob_Column_List" />
|
|
from bookentht_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.BookenthtCompanyExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List" />
|
|
from bookentht_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 bookentht_company
|
|
where BookEntHTId = #{bookenthtid,jdbcType=VARCHAR}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from bookentht_company
|
|
where BookEntHTId = #{bookenthtid,jdbcType=VARCHAR}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.rzyc.model.check.BookenthtCompanyExample">
|
|
delete from bookentht_company
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.rzyc.model.check.BookEntHT">
|
|
insert into bookentht_company (BookEntHTId, SysEnterpriseId, BookEntCheckId,chkgovbilldetailid,bookentcheckdetailid,
|
|
BeCheckedTime, BeCheckedPerson, HiddenArea,
|
|
ConfirmTime, HTSource, HTLevel, rectifyUserId,isWatch,hTType,
|
|
RectifyDepartment, RectifyPerson, RectifyTime,
|
|
TempRectify, GovDocNo, GovValBill,
|
|
RectifyResult, IsGov, HTReview,
|
|
HTState, HTReport, HTPerson,
|
|
AcceptPerson, AcceptPersonId, AcceptTime,
|
|
HiddenTroubleUnit, APPRectifyImgBefore,
|
|
APPRectifyImgAfter, CreatedOn, CreatedBy,
|
|
ModifiedOn, ModifiedBy)
|
|
values (#{bookenthtid,jdbcType=VARCHAR}, #{sysenterpriseid,jdbcType=VARCHAR},
|
|
#{bookentcheckid,jdbcType=VARCHAR},
|
|
#{chkgovbilldetailid,jdbcType=VARCHAR},
|
|
#{bookentcheckdetailid,jdbcType=VARCHAR},
|
|
#{becheckedtime,jdbcType=TIMESTAMP}, #{becheckedperson,jdbcType=VARCHAR}, #{hiddenarea,jdbcType=VARCHAR},
|
|
#{confirmtime,jdbcType=TIMESTAMP}, #{htsource,jdbcType=VARCHAR},
|
|
#{htlevel,jdbcType=VARCHAR},
|
|
#{rectifyUserId,jdbcType=VARCHAR},
|
|
#{isWatch,jdbcType=VARCHAR},
|
|
#{hTType,jdbcType=VARCHAR},
|
|
#{rectifydepartment,jdbcType=VARCHAR}, #{rectifyperson,jdbcType=VARCHAR}, #{rectifytime,jdbcType=TIMESTAMP},
|
|
#{temprectify,jdbcType=VARCHAR}, #{govdocno,jdbcType=VARCHAR}, #{govvalbill,jdbcType=VARCHAR},
|
|
#{rectifyresult,jdbcType=VARCHAR}, #{isgov,jdbcType=VARCHAR}, #{htreview,jdbcType=VARCHAR},
|
|
#{htstate,jdbcType=VARCHAR}, #{htreport,jdbcType=VARCHAR}, #{htperson,jdbcType=VARCHAR},
|
|
#{acceptperson,jdbcType=VARCHAR}, #{acceptpersonid,jdbcType=VARCHAR}, #{accepttime,jdbcType=TIMESTAMP},
|
|
#{hiddentroubleunit,jdbcType=VARCHAR}, #{apprectifyimgbefore,jdbcType=VARCHAR},
|
|
#{apprectifyimgafter,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP}, #{createdby,jdbcType=VARCHAR},
|
|
#{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.rzyc.model.check.BookenthtCompany">
|
|
insert into bookentht_company
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="bookenthtid != null">
|
|
BookEntHTId,
|
|
</if>
|
|
<if test="sysenterpriseid != null">
|
|
SysEnterpriseId,
|
|
</if>
|
|
<if test="bookentcheckid != null">
|
|
BookEntCheckId,
|
|
</if>
|
|
<if test="becheckedtime != null">
|
|
BeCheckedTime,
|
|
</if>
|
|
<if test="becheckedperson != null">
|
|
BeCheckedPerson,
|
|
</if>
|
|
<if test="hiddenarea != null">
|
|
HiddenArea,
|
|
</if>
|
|
<if test="confirmtime != null">
|
|
ConfirmTime,
|
|
</if>
|
|
<if test="htsource != null">
|
|
HTSource,
|
|
</if>
|
|
<if test="httype != null">
|
|
HTType,
|
|
</if>
|
|
<if test="htlevel != null">
|
|
HTLevel,
|
|
</if>
|
|
<if test="rectifydepartment != null">
|
|
RectifyDepartment,
|
|
</if>
|
|
<if test="rectifyuserid != null">
|
|
RectifyUserId,
|
|
</if>
|
|
<if test="rectifyperson != null">
|
|
RectifyPerson,
|
|
</if>
|
|
<if test="rectifytime != null">
|
|
RectifyTime,
|
|
</if>
|
|
<if test="temprectify != null">
|
|
TempRectify,
|
|
</if>
|
|
<if test="govdocno != null">
|
|
GovDocNo,
|
|
</if>
|
|
<if test="govvalbill != null">
|
|
GovValBill,
|
|
</if>
|
|
<if test="isgov != null">
|
|
IsGov,
|
|
</if>
|
|
<if test="iswatch != null">
|
|
IsWatch,
|
|
</if>
|
|
<if test="htreview != null">
|
|
HTReview,
|
|
</if>
|
|
<if test="htstate != null">
|
|
HTState,
|
|
</if>
|
|
<if test="htreport != null">
|
|
HTReport,
|
|
</if>
|
|
<if test="htperson != null">
|
|
HTPerson,
|
|
</if>
|
|
<if test="acceptperson != null">
|
|
AcceptPerson,
|
|
</if>
|
|
<if test="acceptpersonid != null">
|
|
AcceptPersonId,
|
|
</if>
|
|
<if test="accepttime != null">
|
|
AcceptTime,
|
|
</if>
|
|
<if test="hiddentroubleunit != null">
|
|
HiddenTroubleUnit,
|
|
</if>
|
|
<if test="apprectifyimgbefore != null">
|
|
APPRectifyImgBefore,
|
|
</if>
|
|
<if test="apprectifyimgafter != null">
|
|
APPRectifyImgAfter,
|
|
</if>
|
|
<if test="chkgovbilldetailid != null">
|
|
ChkGovBillDetailId,
|
|
</if>
|
|
<if test="bookentcheckdetailid != null">
|
|
BookEntCheckDetailId,
|
|
</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="rectifyresult != null">
|
|
RectifyResult,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="bookenthtid != null">
|
|
#{bookenthtid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sysenterpriseid != null">
|
|
#{sysenterpriseid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bookentcheckid != null">
|
|
#{bookentcheckid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="becheckedtime != null">
|
|
#{becheckedtime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="becheckedperson != null">
|
|
#{becheckedperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="hiddenarea != null">
|
|
#{hiddenarea,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="confirmtime != null">
|
|
#{confirmtime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="htsource != null">
|
|
#{htsource,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="httype != null">
|
|
#{httype,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htlevel != null">
|
|
#{htlevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifydepartment != null">
|
|
#{rectifydepartment,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifyuserid != null">
|
|
#{rectifyuserid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifyperson != null">
|
|
#{rectifyperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifytime != null">
|
|
#{rectifytime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="temprectify != null">
|
|
#{temprectify,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="govdocno != null">
|
|
#{govdocno,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="govvalbill != null">
|
|
#{govvalbill,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isgov != null">
|
|
#{isgov,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="iswatch != null">
|
|
#{iswatch,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htreview != null">
|
|
#{htreview,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htstate != null">
|
|
#{htstate,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htreport != null">
|
|
#{htreport,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htperson != null">
|
|
#{htperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="acceptperson != null">
|
|
#{acceptperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="acceptpersonid != null">
|
|
#{acceptpersonid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="accepttime != null">
|
|
#{accepttime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="hiddentroubleunit != null">
|
|
#{hiddentroubleunit,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="apprectifyimgbefore != null">
|
|
#{apprectifyimgbefore,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="apprectifyimgafter != null">
|
|
#{apprectifyimgafter,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="chkgovbilldetailid != null">
|
|
#{chkgovbilldetailid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bookentcheckdetailid != null">
|
|
#{bookentcheckdetailid,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="rectifyresult != null">
|
|
#{rectifyresult,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.rzyc.model.check.BookenthtCompanyExample" resultType="java.lang.Long">
|
|
select count(*) from bookentht_company
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause" />
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update bookentht_company
|
|
<set>
|
|
<if test="record.bookenthtid != null">
|
|
BookEntHTId = #{record.bookenthtid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sysenterpriseid != null">
|
|
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.bookentcheckid != null">
|
|
BookEntCheckId = #{record.bookentcheckid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.becheckedtime != null">
|
|
BeCheckedTime = #{record.becheckedtime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.becheckedperson != null">
|
|
BeCheckedPerson = #{record.becheckedperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.hiddenarea != null">
|
|
HiddenArea = #{record.hiddenarea,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.confirmtime != null">
|
|
ConfirmTime = #{record.confirmtime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.htsource != null">
|
|
HTSource = #{record.htsource,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.httype != null">
|
|
HTType = #{record.httype,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.htlevel != null">
|
|
HTLevel = #{record.htlevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.rectifydepartment != null">
|
|
RectifyDepartment = #{record.rectifydepartment,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.rectifyuserid != null">
|
|
RectifyUserId = #{record.rectifyuserid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.rectifyperson != null">
|
|
RectifyPerson = #{record.rectifyperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.rectifytime != null">
|
|
RectifyTime = #{record.rectifytime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.temprectify != null">
|
|
TempRectify = #{record.temprectify,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.govdocno != null">
|
|
GovDocNo = #{record.govdocno,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.govvalbill != null">
|
|
GovValBill = #{record.govvalbill,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.isgov != null">
|
|
IsGov = #{record.isgov,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.iswatch != null">
|
|
IsWatch = #{record.iswatch,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.htreview != null">
|
|
HTReview = #{record.htreview,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.htstate != null">
|
|
HTState = #{record.htstate,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.htreport != null">
|
|
HTReport = #{record.htreport,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.htperson != null">
|
|
HTPerson = #{record.htperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.acceptperson != null">
|
|
AcceptPerson = #{record.acceptperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.acceptpersonid != null">
|
|
AcceptPersonId = #{record.acceptpersonid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.accepttime != null">
|
|
AcceptTime = #{record.accepttime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="record.hiddentroubleunit != null">
|
|
HiddenTroubleUnit = #{record.hiddentroubleunit,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.apprectifyimgbefore != null">
|
|
APPRectifyImgBefore = #{record.apprectifyimgbefore,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.apprectifyimgafter != null">
|
|
APPRectifyImgAfter = #{record.apprectifyimgafter,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.chkgovbilldetailid != null">
|
|
ChkGovBillDetailId = #{record.chkgovbilldetailid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.bookentcheckdetailid != null">
|
|
BookEntCheckDetailId = #{record.bookentcheckdetailid,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.rectifyresult != null">
|
|
RectifyResult = #{record.rectifyresult,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
update bookentht_company
|
|
set BookEntHTId = #{record.bookenthtid,jdbcType=VARCHAR},
|
|
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
|
|
BookEntCheckId = #{record.bookentcheckid,jdbcType=VARCHAR},
|
|
BeCheckedTime = #{record.becheckedtime,jdbcType=TIMESTAMP},
|
|
BeCheckedPerson = #{record.becheckedperson,jdbcType=VARCHAR},
|
|
HiddenArea = #{record.hiddenarea,jdbcType=VARCHAR},
|
|
ConfirmTime = #{record.confirmtime,jdbcType=TIMESTAMP},
|
|
HTSource = #{record.htsource,jdbcType=VARCHAR},
|
|
HTType = #{record.httype,jdbcType=VARCHAR},
|
|
HTLevel = #{record.htlevel,jdbcType=VARCHAR},
|
|
RectifyDepartment = #{record.rectifydepartment,jdbcType=VARCHAR},
|
|
RectifyUserId = #{record.rectifyuserid,jdbcType=VARCHAR},
|
|
RectifyPerson = #{record.rectifyperson,jdbcType=VARCHAR},
|
|
RectifyTime = #{record.rectifytime,jdbcType=TIMESTAMP},
|
|
TempRectify = #{record.temprectify,jdbcType=VARCHAR},
|
|
GovDocNo = #{record.govdocno,jdbcType=VARCHAR},
|
|
GovValBill = #{record.govvalbill,jdbcType=VARCHAR},
|
|
IsGov = #{record.isgov,jdbcType=VARCHAR},
|
|
IsWatch = #{record.iswatch,jdbcType=VARCHAR},
|
|
HTReview = #{record.htreview,jdbcType=VARCHAR},
|
|
HTState = #{record.htstate,jdbcType=VARCHAR},
|
|
HTReport = #{record.htreport,jdbcType=VARCHAR},
|
|
HTPerson = #{record.htperson,jdbcType=VARCHAR},
|
|
AcceptPerson = #{record.acceptperson,jdbcType=VARCHAR},
|
|
AcceptPersonId = #{record.acceptpersonid,jdbcType=VARCHAR},
|
|
AcceptTime = #{record.accepttime,jdbcType=TIMESTAMP},
|
|
HiddenTroubleUnit = #{record.hiddentroubleunit,jdbcType=VARCHAR},
|
|
APPRectifyImgBefore = #{record.apprectifyimgbefore,jdbcType=VARCHAR},
|
|
APPRectifyImgAfter = #{record.apprectifyimgafter,jdbcType=VARCHAR},
|
|
ChkGovBillDetailId = #{record.chkgovbilldetailid,jdbcType=VARCHAR},
|
|
BookEntCheckDetailId = #{record.bookentcheckdetailid,jdbcType=VARCHAR},
|
|
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
|
|
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
|
|
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
|
|
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
|
|
RectifyResult = #{record.rectifyresult,jdbcType=LONGVARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update bookentht_company
|
|
set BookEntHTId = #{record.bookenthtid,jdbcType=VARCHAR},
|
|
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=VARCHAR},
|
|
BookEntCheckId = #{record.bookentcheckid,jdbcType=VARCHAR},
|
|
BeCheckedTime = #{record.becheckedtime,jdbcType=TIMESTAMP},
|
|
BeCheckedPerson = #{record.becheckedperson,jdbcType=VARCHAR},
|
|
HiddenArea = #{record.hiddenarea,jdbcType=VARCHAR},
|
|
ConfirmTime = #{record.confirmtime,jdbcType=TIMESTAMP},
|
|
HTSource = #{record.htsource,jdbcType=VARCHAR},
|
|
HTType = #{record.httype,jdbcType=VARCHAR},
|
|
HTLevel = #{record.htlevel,jdbcType=VARCHAR},
|
|
RectifyDepartment = #{record.rectifydepartment,jdbcType=VARCHAR},
|
|
RectifyUserId = #{record.rectifyuserid,jdbcType=VARCHAR},
|
|
RectifyPerson = #{record.rectifyperson,jdbcType=VARCHAR},
|
|
RectifyTime = #{record.rectifytime,jdbcType=TIMESTAMP},
|
|
TempRectify = #{record.temprectify,jdbcType=VARCHAR},
|
|
GovDocNo = #{record.govdocno,jdbcType=VARCHAR},
|
|
GovValBill = #{record.govvalbill,jdbcType=VARCHAR},
|
|
IsGov = #{record.isgov,jdbcType=VARCHAR},
|
|
IsWatch = #{record.iswatch,jdbcType=VARCHAR},
|
|
HTReview = #{record.htreview,jdbcType=VARCHAR},
|
|
HTState = #{record.htstate,jdbcType=VARCHAR},
|
|
HTReport = #{record.htreport,jdbcType=VARCHAR},
|
|
HTPerson = #{record.htperson,jdbcType=VARCHAR},
|
|
AcceptPerson = #{record.acceptperson,jdbcType=VARCHAR},
|
|
AcceptPersonId = #{record.acceptpersonid,jdbcType=VARCHAR},
|
|
AcceptTime = #{record.accepttime,jdbcType=TIMESTAMP},
|
|
HiddenTroubleUnit = #{record.hiddentroubleunit,jdbcType=VARCHAR},
|
|
APPRectifyImgBefore = #{record.apprectifyimgbefore,jdbcType=VARCHAR},
|
|
APPRectifyImgAfter = #{record.apprectifyimgafter,jdbcType=VARCHAR},
|
|
ChkGovBillDetailId = #{record.chkgovbilldetailid,jdbcType=VARCHAR},
|
|
BookEntCheckDetailId = #{record.bookentcheckdetailid,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.BookenthtCompany">
|
|
update bookentht_company
|
|
<set>
|
|
<if test="sysenterpriseid != null">
|
|
SysEnterpriseId = #{sysenterpriseid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bookentcheckid != null">
|
|
BookEntCheckId = #{bookentcheckid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="becheckedtime != null">
|
|
BeCheckedTime = #{becheckedtime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="becheckedperson != null">
|
|
BeCheckedPerson = #{becheckedperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="hiddenarea != null">
|
|
HiddenArea = #{hiddenarea,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="confirmtime != null">
|
|
ConfirmTime = #{confirmtime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="htsource != null">
|
|
HTSource = #{htsource,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="httype != null">
|
|
HTType = #{httype,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htlevel != null">
|
|
HTLevel = #{htlevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifydepartment != null">
|
|
RectifyDepartment = #{rectifydepartment,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifyuserid != null">
|
|
RectifyUserId = #{rectifyuserid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifyperson != null">
|
|
RectifyPerson = #{rectifyperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="rectifytime != null">
|
|
RectifyTime = #{rectifytime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="temprectify != null">
|
|
TempRectify = #{temprectify,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="govdocno != null">
|
|
GovDocNo = #{govdocno,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="govvalbill != null">
|
|
GovValBill = #{govvalbill,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isgov != null">
|
|
IsGov = #{isgov,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="iswatch != null">
|
|
IsWatch = #{iswatch,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htreview != null">
|
|
HTReview = #{htreview,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htstate != null">
|
|
HTState = #{htstate,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htreport != null">
|
|
HTReport = #{htreport,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="htperson != null">
|
|
HTPerson = #{htperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="acceptperson != null">
|
|
AcceptPerson = #{acceptperson,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="acceptpersonid != null">
|
|
AcceptPersonId = #{acceptpersonid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="accepttime != null">
|
|
AcceptTime = #{accepttime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="hiddentroubleunit != null">
|
|
HiddenTroubleUnit = #{hiddentroubleunit,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="apprectifyimgbefore != null">
|
|
APPRectifyImgBefore = #{apprectifyimgbefore,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="apprectifyimgafter != null">
|
|
APPRectifyImgAfter = #{apprectifyimgafter,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="chkgovbilldetailid != null">
|
|
ChkGovBillDetailId = #{chkgovbilldetailid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bookentcheckdetailid != null">
|
|
BookEntCheckDetailId = #{bookentcheckdetailid,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="rectifyresult != null">
|
|
RectifyResult = #{rectifyresult,jdbcType=LONGVARCHAR},
|
|
</if>
|
|
</set>
|
|
where BookEntHTId = #{bookenthtid,jdbcType=VARCHAR}
|
|
</update>
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.rzyc.model.check.BookenthtCompany">
|
|
update bookentht_company
|
|
set SysEnterpriseId = #{sysenterpriseid,jdbcType=VARCHAR},
|
|
BookEntCheckId = #{bookentcheckid,jdbcType=VARCHAR},
|
|
BeCheckedTime = #{becheckedtime,jdbcType=TIMESTAMP},
|
|
BeCheckedPerson = #{becheckedperson,jdbcType=VARCHAR},
|
|
HiddenArea = #{hiddenarea,jdbcType=VARCHAR},
|
|
ConfirmTime = #{confirmtime,jdbcType=TIMESTAMP},
|
|
HTSource = #{htsource,jdbcType=VARCHAR},
|
|
HTType = #{httype,jdbcType=VARCHAR},
|
|
HTLevel = #{htlevel,jdbcType=VARCHAR},
|
|
RectifyDepartment = #{rectifydepartment,jdbcType=VARCHAR},
|
|
RectifyUserId = #{rectifyuserid,jdbcType=VARCHAR},
|
|
RectifyPerson = #{rectifyperson,jdbcType=VARCHAR},
|
|
RectifyTime = #{rectifytime,jdbcType=TIMESTAMP},
|
|
TempRectify = #{temprectify,jdbcType=VARCHAR},
|
|
GovDocNo = #{govdocno,jdbcType=VARCHAR},
|
|
GovValBill = #{govvalbill,jdbcType=VARCHAR},
|
|
IsGov = #{isgov,jdbcType=VARCHAR},
|
|
IsWatch = #{iswatch,jdbcType=VARCHAR},
|
|
HTReview = #{htreview,jdbcType=VARCHAR},
|
|
HTState = #{htstate,jdbcType=VARCHAR},
|
|
HTReport = #{htreport,jdbcType=VARCHAR},
|
|
HTPerson = #{htperson,jdbcType=VARCHAR},
|
|
AcceptPerson = #{acceptperson,jdbcType=VARCHAR},
|
|
AcceptPersonId = #{acceptpersonid,jdbcType=VARCHAR},
|
|
AcceptTime = #{accepttime,jdbcType=TIMESTAMP},
|
|
HiddenTroubleUnit = #{hiddentroubleunit,jdbcType=VARCHAR},
|
|
APPRectifyImgBefore = #{apprectifyimgbefore,jdbcType=VARCHAR},
|
|
APPRectifyImgAfter = #{apprectifyimgafter,jdbcType=VARCHAR},
|
|
ChkGovBillDetailId = #{chkgovbilldetailid,jdbcType=VARCHAR},
|
|
BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR},
|
|
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
|
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
|
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
|
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
|
|
RectifyResult = #{rectifyresult,jdbcType=LONGVARCHAR}
|
|
where BookEntHTId = #{bookenthtid,jdbcType=VARCHAR}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.rzyc.model.check.BookenthtCompany">
|
|
update bookentht_company
|
|
set SysEnterpriseId = #{sysenterpriseid,jdbcType=VARCHAR},
|
|
BookEntCheckId = #{bookentcheckid,jdbcType=VARCHAR},
|
|
BeCheckedTime = #{becheckedtime,jdbcType=TIMESTAMP},
|
|
BeCheckedPerson = #{becheckedperson,jdbcType=VARCHAR},
|
|
HiddenArea = #{hiddenarea,jdbcType=VARCHAR},
|
|
ConfirmTime = #{confirmtime,jdbcType=TIMESTAMP},
|
|
HTSource = #{htsource,jdbcType=VARCHAR},
|
|
HTType = #{httype,jdbcType=VARCHAR},
|
|
HTLevel = #{htlevel,jdbcType=VARCHAR},
|
|
RectifyDepartment = #{rectifydepartment,jdbcType=VARCHAR},
|
|
RectifyUserId = #{rectifyuserid,jdbcType=VARCHAR},
|
|
RectifyPerson = #{rectifyperson,jdbcType=VARCHAR},
|
|
RectifyTime = #{rectifytime,jdbcType=TIMESTAMP},
|
|
TempRectify = #{temprectify,jdbcType=VARCHAR},
|
|
GovDocNo = #{govdocno,jdbcType=VARCHAR},
|
|
GovValBill = #{govvalbill,jdbcType=VARCHAR},
|
|
IsGov = #{isgov,jdbcType=VARCHAR},
|
|
IsWatch = #{iswatch,jdbcType=VARCHAR},
|
|
HTReview = #{htreview,jdbcType=VARCHAR},
|
|
HTState = #{htstate,jdbcType=VARCHAR},
|
|
HTReport = #{htreport,jdbcType=VARCHAR},
|
|
HTPerson = #{htperson,jdbcType=VARCHAR},
|
|
AcceptPerson = #{acceptperson,jdbcType=VARCHAR},
|
|
AcceptPersonId = #{acceptpersonid,jdbcType=VARCHAR},
|
|
AcceptTime = #{accepttime,jdbcType=TIMESTAMP},
|
|
HiddenTroubleUnit = #{hiddentroubleunit,jdbcType=VARCHAR},
|
|
APPRectifyImgBefore = #{apprectifyimgbefore,jdbcType=VARCHAR},
|
|
APPRectifyImgAfter = #{apprectifyimgafter,jdbcType=VARCHAR},
|
|
ChkGovBillDetailId = #{chkgovbilldetailid,jdbcType=VARCHAR},
|
|
BookEntCheckDetailId = #{bookentcheckdetailid,jdbcType=VARCHAR},
|
|
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
|
|
CreatedBy = #{createdby,jdbcType=VARCHAR},
|
|
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
|
|
ModifiedBy = #{modifiedby,jdbcType=VARCHAR}
|
|
where BookEntHTId = #{bookenthtid,jdbcType=VARCHAR}
|
|
</update>
|
|
<select id="selectList" resultMap="BaseResultMap">
|
|
select * from bookentht_company bc left join SysEnterprise se on bc.`SysEnterpriseId` = se.`SysEnterpriseId` WHERE
|
|
1=1
|
|
<if test="null != condition and '' != condition">
|
|
And se.`EntName` LIKE #{condition}
|
|
</if>
|
|
<if test="null != htreport and '' != htreport">
|
|
AND bc.`htreport` = #{htreport}
|
|
</if>
|
|
<if test="null != enterpriseId and '' != enterpriseId">
|
|
AND bc.`SysEnterpriseId` = #{enterpriseId}
|
|
</if>
|
|
<if test="null != startTime and '' != startTime">
|
|
AND bc.`CreatedOn` > #{startTime}
|
|
</if>
|
|
<if test="null != endTime and '' != endTime">
|
|
AND bc.`CreatedOn` < #{endTime}
|
|
</if>
|
|
<if test="null != htSource and '' != htSource">
|
|
AND bc.`HTSource` = #{htSource}
|
|
</if>
|
|
<if test="null != htLevel and '' != htLevel">
|
|
AND bc.`HTLevel` = #{htLevel}
|
|
</if>
|
|
|
|
<if test="'审核中' == entHtState">
|
|
AND bc.`HTReport` = #{entHtState}
|
|
</if>
|
|
|
|
|
|
AND bc.`HTState` != '已删除'
|
|
ORDER BY bc.CreatedOn DESC
|
|
|
|
</select>
|
|
|
|
<update id="updateByKey">
|
|
update bookentht_company set HTState = #{entHtState},RectifyResult = #{rectifyResult} where BookEntHTId = #{htId}
|
|
</update>
|
|
|
|
|
|
|
|
<!--修改隐患整改人-->
|
|
<update id="changeRectifyUserId">
|
|
UPDATE bookentht_company SET RectifyUserId = #{rectifyUserId}
|
|
WHERE BookEntHTId = #{bookEntHTId}
|
|
</update>
|
|
|
|
<select id="findByHTStateByTime" resultMap="BaseResultMap">
|
|
select * from bookentht_company WHERE `RectifyTime` < NOW() AND HTState = '整改中'
|
|
</select>
|
|
|
|
<update id="changeHTStateByTime">
|
|
UPDATE bookentht_company SET HTState = '未整改',HTReport = '' WHERE `RectifyTime` < NOW() AND HTState = '整改中'
|
|
</update>
|
|
|
|
|
|
<select id="selectCompanySelfList" resultMap="BaseResultMap">
|
|
select * from bookentht_company where SysEnterpriseId = #{sysEnterpriseId}
|
|
<if test="HTState != null and '' != HTState and 'null' != HTState">
|
|
AND HTState = #{HTState}
|
|
</if>
|
|
order by CreatedOn desc
|
|
</select>
|
|
|
|
</mapper>
|