|
|
|
<?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.engine.organization.mapper.version.CompanyVersionMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.engine.organization.entity.version.HrmSubCompanyVersion">
|
|
|
|
<result column="id" property="id"/>
|
|
|
|
<result column="subcomid" property="subComId"/>
|
|
|
|
<result column="subcompanydesc" property="subCompanyDesc"/>
|
|
|
|
<result column="subcompanycode" property="subCompanyCode"/>
|
|
|
|
<result column="subcompanyname" property="subCompanyName"/>
|
|
|
|
<result column="supssubcomid" property="supSubComId"/>
|
|
|
|
<result column="showorder" property="showOrder"/>
|
|
|
|
<result column="canceled" property="canceled"/>
|
|
|
|
<result column="description" property="description"/>
|
|
|
|
<result column="operator" property="operator"/>
|
|
|
|
<result column="version" property="version"/>
|
|
|
|
<result column="operate_time" property="operateTime"/>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<!-- 表字段 -->
|
|
|
|
<sql id="baseColumns">
|
|
|
|
t.id ,t.subcomid ,t.subcompanydesc ,t.subcompanycode ,t.subcompanyname ,t.supsubcomid ,
|
|
|
|
t.showorder ,t.canceled ,t.description ,t.operator ,t.version ,t.operate_time
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="getMaxVersion" resultMap="BaseResultMap" parameterType="java.lang.String">
|
|
|
|
select
|
|
|
|
<include refid="baseColumns"/>
|
|
|
|
from hrmsubcompany_version t where t.subcomid=#{subComId} order by t.version desc limit 1
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getMaxVersion" resultMap="BaseResultMap" parameterType="java.lang.String" databaseId="oracle">
|
|
|
|
select * from (select <include refid="baseColumns"/> from hrmsubcompany_version t where t.subcomid=#{subComId} order by t.version desc) where rownum=1
|
|
|
|
</select>
|
|
|
|
<select id="getMaxVersion" resultMap="BaseResultMap" parameterType="java.lang.String" databaseId="sqlserver">
|
|
|
|
select top 1
|
|
|
|
<include refid="baseColumns"/>
|
|
|
|
from hrmsubcompany_version t where t.subcomid=#{subComId} order by t.version desc
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertHrmSubComVersion">
|
|
|
|
insert into hrmsubcompany_version
|
|
|
|
(subcomid ,subcompanydesc ,subcompanycode ,subcompanyname ,supsubcomid ,
|
|
|
|
showorder ,canceled ,description ,operator ,version ,operate_time)
|
|
|
|
values (#{subComId}, #{subCompanyDesc}, #{subCompanyCode}, #{subCompanyName}, #{supSubComId},
|
|
|
|
#{showOrder}, #{canceled}, #{description}, #{operator}, #{version}, #{operateTime})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="getMaxDeptVersion" resultType="com.engine.organization.entity.version.HrmDepartmentVersion">
|
|
|
|
select * from hrmdepartment_version where departmentid=#{departmentid} order by version desc limit 1
|
|
|
|
</select>
|
|
|
|
<select id="getMaxDeptVersion" resultType="com.engine.organization.entity.version.HrmDepartmentVersion" databaseId="oracle">
|
|
|
|
select * from (select * from hrmdepartment_version where departmentid=#{departmentid} order by version desc) where rownum=1
|
|
|
|
</select>
|
|
|
|
<select id="getMaxDeptVersion" resultType="com.engine.organization.entity.version.HrmDepartmentVersion" databaseId="sqlserver">
|
|
|
|
select top 1 * from hrmdepartment_version where departmentid=#{departmentid} order by version desc
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertHrmDeptVersion">
|
|
|
|
insert into hrmdepartment_version
|
|
|
|
(departmentid, departmentmark, departmentcode, departmentname, subcompanyid1, supdepid,
|
|
|
|
bmfzr, showorder, canceled, description, operator, version, operate_time)
|
|
|
|
VALUES (#{departmentId}, #{departmentMark}, #{departmentCode}, #{departmentName}, #{subCompanyId1}, #{supDepId},
|
|
|
|
#{bmfzr}, #{showOrder}, #{canceled}, #{description}, #{operator}, #{version}, #{operateTime})
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="getMaxHrmVersion" resultType="com.engine.organization.entity.version.HrmResourceVersion">
|
|
|
|
select * from hrmresource_version where resourceid=#{resourceid} order by version desc limit 1
|
|
|
|
</select>
|
|
|
|
<select id="getMaxHrmVersion" resultType="com.engine.organization.entity.version.HrmResourceVersion" databaseId="oracle">
|
|
|
|
select * from (select * from hrmresource_version where resourceid=#{resourceid} order by version desc) where rownum=1
|
|
|
|
</select>
|
|
|
|
<select id="getMaxHrmVersion" resultType="com.engine.organization.entity.version.HrmResourceVersion" databaseId="sqlserver">
|
|
|
|
select top 1 * from hrmresource_version where resourceid=#{resourceid} order by version desc
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertHrmResourceVersion" keyColumn="id" keyProperty="id" parameterType="com.engine.organization.entity.version.HrmResourceVersion" useGeneratedKeys="true">
|
|
|
|
insert into hrmresource_version
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">id,</if>
|
|
|
|
<if test="resourceid != null">resourceid,</if>
|
|
|
|
<if test="companystartdate != null">companystartdate,</if>
|
|
|
|
<if test="companyworkyear != null">companyworkyear,</if>
|
|
|
|
<if test="workstartdate != null">workstartdate,</if>
|
|
|
|
<if test="workyear != null">workyear,</if>
|
|
|
|
<if test="usekind != null">usekind,</if>
|
|
|
|
<if test="jobcall != null">jobcall,</if>
|
|
|
|
<if test="accumfundaccount != null">accumfundaccount,</if>
|
|
|
|
<if test="birthplace != null">birthplace,</if>
|
|
|
|
<if test="folk != null">folk,</if>
|
|
|
|
<if test="residentphone != null">residentphone,</if>
|
|
|
|
<if test="residentpostcode != null">residentpostcode,</if>
|
|
|
|
<if test="extphone != null">extphone,</if>
|
|
|
|
<if test="managerstr != null">managerstr,</if>
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
<if test="fax != null">fax,</if>
|
|
|
|
<if test="islabouunion != null">islabouunion,</if>
|
|
|
|
<if test="weight != null">weight,</if>
|
|
|
|
<if test="tempresidentnumber != null">tempresidentnumber,</if>
|
|
|
|
<if test="probationenddate != null">probationenddate,</if>
|
|
|
|
<if test="countryid != null">countryid,</if>
|
|
|
|
<if test="passwdchgdate != null">passwdchgdate,</if>
|
|
|
|
<if test="lloginid != null">lloginid,</if>
|
|
|
|
<if test="dsporder != null">dsporder,</if>
|
|
|
|
<if test="passwordstate != null">passwordstate,</if>
|
|
|
|
<if test="accounttype != null">accounttype,</if>
|
|
|
|
<if test="belongto != null">belongto,</if>
|
|
|
|
<if test="messagerurl != null">messagerurl,</if>
|
|
|
|
<if test="accountname != null">accountname,</if>
|
|
|
|
<if test="loginid != null">loginid,</if>
|
|
|
|
<if test="password != null">password,</if>
|
|
|
|
<if test="lastname != null">lastname,</if>
|
|
|
|
<if test="sex != null">sex,</if>
|
|
|
|
<if test="birthday != null">birthday,</if>
|
|
|
|
<if test="nationality != null">nationality,</if>
|
|
|
|
<if test="maritalstatus != null">maritalstatus,</if>
|
|
|
|
<if test="telephone != null">telephone,</if>
|
|
|
|
<if test="mobile != null">mobile,</if>
|
|
|
|
<if test="mobilecall != null">mobilecall,</if>
|
|
|
|
<if test="email != null">email,</if>
|
|
|
|
<if test="locationid != null">locationid,</if>
|
|
|
|
<if test="workroom != null">workroom,</if>
|
|
|
|
<if test="homeaddress != null">homeaddress,</if>
|
|
|
|
<if test="resourcetype != null">resourcetype,</if>
|
|
|
|
<if test="startdate != null">startdate,</if>
|
|
|
|
<if test="enddate != null">enddate,</if>
|
|
|
|
<if test="jobtitle != null">jobtitle,</if>
|
|
|
|
<if test="jobactivitydesc != null">jobactivitydesc,</if>
|
|
|
|
<if test="joblevel != null">joblevel,</if>
|
|
|
|
<if test="seclevel != null">seclevel,</if>
|
|
|
|
<if test="departmentid != null">departmentid,</if>
|
|
|
|
<if test="subcompanyid1 != null">subcompanyid1,</if>
|
|
|
|
<if test="costcenterid != null">costcenterid,</if>
|
|
|
|
<if test="managerid != null">managerid,</if>
|
|
|
|
<if test="assistantid != null">assistantid,</if>
|
|
|
|
<if test="bankid1 != null">bankid1,</if>
|
|
|
|
<if test="accountid1 != null">accountid1,</if>
|
|
|
|
<if test="resourceimageid != null">resourceimageid,</if>
|
|
|
|
<if test="certificatenum != null">certificatenum,</if>
|
|
|
|
<if test="nativeplace != null">nativeplace,</if>
|
|
|
|
<if test="educationlevel != null">educationlevel,</if>
|
|
|
|
<if test="bememberdate != null">bememberdate,</if>
|
|
|
|
<if test="bepartydate != null">bepartydate,</if>
|
|
|
|
<if test="workcode != null">workcode,</if>
|
|
|
|
<if test="regresidentplace != null">regresidentplace,</if>
|
|
|
|
<if test="healthinfo != null">healthinfo,</if>
|
|
|
|
<if test="residentplace != null">residentplace,</if>
|
|
|
|
<if test="policy != null">policy,</if>
|
|
|
|
<if test="degree != null">degree,</if>
|
|
|
|
<if test="height != null">height,</if>
|
|
|
|
<if test="classification != null">classification,</if>
|
|
|
|
<if test="description != null">description,</if>
|
|
|
|
<if test="operator != null">operator,</if>
|
|
|
|
<if test="version != null">version,</if>
|
|
|
|
<if test="operateTime != null">operate_time,</if>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">#{id,jdbcType=INTEGER},</if>
|
|
|
|
<if test="resourceid != null">#{resourceid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="companystartdate != null">#{companystartdate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="companyworkyear != null">#{companyworkyear,jdbcType=INTEGER},</if>
|
|
|
|
<if test="workstartdate != null">#{workstartdate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="workyear != null">#{workyear,jdbcType=INTEGER},</if>
|
|
|
|
<if test="usekind != null">#{usekind,jdbcType=INTEGER},</if>
|
|
|
|
<if test="jobcall != null">#{jobcall,jdbcType=INTEGER},</if>
|
|
|
|
<if test="accumfundaccount != null">#{accumfundaccount,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="birthplace != null">#{birthplace,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="folk != null">#{folk,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="residentphone != null">#{residentphone,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="residentpostcode != null">#{residentpostcode,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="extphone != null">#{extphone,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="managerstr != null">#{managerstr,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="status != null">#{status,jdbcType=INTEGER},</if>
|
|
|
|
<if test="fax != null">#{fax,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="islabouunion != null">#{islabouunion,jdbcType=CHAR},</if>
|
|
|
|
<if test="weight != null">#{weight,jdbcType=INTEGER},</if>
|
|
|
|
<if test="tempresidentnumber != null">#{tempresidentnumber,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="probationenddate != null">#{probationenddate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="countryid != null">#{countryid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="passwdchgdate != null">#{passwdchgdate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="lloginid != null">#{lloginid,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="dsporder != null">#{dsporder,jdbcType=INTEGER},</if>
|
|
|
|
<if test="passwordstate != null">#{passwordstate,jdbcType=INTEGER},</if>
|
|
|
|
<if test="accounttype != null">#{accounttype,jdbcType=INTEGER},</if>
|
|
|
|
<if test="belongto != null">#{belongto,jdbcType=INTEGER},</if>
|
|
|
|
<if test="messagerurl != null">#{messagerurl,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="accountname != null">#{accountname,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="loginid != null">#{loginid,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="password != null">#{password,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="lastname != null">#{lastname,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="sex != null">#{sex,jdbcType=CHAR},</if>
|
|
|
|
<if test="birthday != null">#{birthday,jdbcType=CHAR},</if>
|
|
|
|
<if test="nationality != null">#{nationality,jdbcType=INTEGER},</if>
|
|
|
|
<if test="maritalstatus != null">#{maritalstatus,jdbcType=CHAR},</if>
|
|
|
|
<if test="telephone != null">#{telephone,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="mobile != null">#{mobile,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="mobilecall != null">#{mobilecall,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="email != null">#{email,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="locationid != null">#{locationid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="workroom != null">#{workroom,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="homeaddress != null">#{homeaddress,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="resourcetype != null">#{resourcetype,jdbcType=CHAR},</if>
|
|
|
|
<if test="startdate != null">#{startdate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="enddate != null">#{enddate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="jobtitle != null">#{jobtitle,jdbcType=INTEGER},</if>
|
|
|
|
<if test="jobactivitydesc != null">#{jobactivitydesc,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="joblevel != null">#{joblevel,jdbcType=INTEGER},</if>
|
|
|
|
<if test="seclevel != null">#{seclevel,jdbcType=INTEGER},</if>
|
|
|
|
<if test="departmentid != null">#{departmentid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="subcompanyid1 != null">#{subcompanyid1,jdbcType=INTEGER},</if>
|
|
|
|
<if test="costcenterid != null">#{costcenterid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="managerid != null">#{managerid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="assistantid != null">#{assistantid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="bankid1 != null">#{bankid1,jdbcType=INTEGER},</if>
|
|
|
|
<if test="accountid1 != null">#{accountid1,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="resourceimageid != null">#{resourceimageid,jdbcType=INTEGER},</if>
|
|
|
|
<if test="certificatenum != null">#{certificatenum,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="nativeplace != null">#{nativeplace,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="educationlevel != null">#{educationlevel,jdbcType=INTEGER},</if>
|
|
|
|
<if test="bememberdate != null">#{bememberdate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="bepartydate != null">#{bepartydate,jdbcType=TIMESTAMP},</if>
|
|
|
|
<if test="workcode != null">#{workcode,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="regresidentplace != null">#{regresidentplace,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="healthinfo != null">#{healthinfo,jdbcType=CHAR},</if>
|
|
|
|
<if test="residentplace != null">#{residentplace,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="policy != null">#{policy,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="degree != null">#{degree,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="height != null">#{height,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="classification != null">#{classification,jdbcType=CHAR},</if>
|
|
|
|
<if test="description != null">#{description,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="operator != null">#{operator,jdbcType=VARCHAR},</if>
|
|
|
|
<if test="version != null">#{version,jdbcType=FLOAT},</if>
|
|
|
|
<if test="operateTime != null">#{operateTime,jdbcType=TIMESTAMP},</if>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="getHrmSubComp" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
select id,subcompanyname, subcompanydesc,companyid,supsubcomid,url,canceled,subcompanycode,outkey,showorder from HrmSubCompany
|
|
|
|
where id=#{id}
|
|
|
|
</select>
|
|
|
|
<select id="getHrmDepartment" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
select id,departmentmark,departmentname,subcompanyid1,supdepid,canceled,departmentcode,outkey,showorder,coadjutant,bmfzr from HrmDepartment
|
|
|
|
where id=#{id}
|
|
|
|
</select>
|
|
|
|
<select id="getHrmResource" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
select id,loginid,password,lastname,sex,birthday,nationality,systemlanguage,
|
|
|
|
maritalstatus,telephone,mobile,mobilecall,email,locationid,workroom,homeaddress,
|
|
|
|
resourcetype,startdate,enddate,jobtitle,jobactivitydesc,joblevel,seclevel,departmentid,
|
|
|
|
subcompanyid1,costcenterid,managerid,assistantid,bankid1,accountid1,resourceimageid,createrid,
|
|
|
|
createdate,lastmodid,lastmoddate,lastlogindate,datefield1,datefield2,datefield3,datefield4,
|
|
|
|
datefield5,numberfield1,numberfield2,numberfield3,numberfield4,numberfield5,textfield1,textfield2,
|
|
|
|
textfield3,textfield4,textfield5,tinyintfield1,tinyintfield2,tinyintfield3,tinyintfield4,
|
|
|
|
tinyintfield5,certificatenum,nativeplace,educationlevel,bememberdate,bepartydate,workcode,
|
|
|
|
regresidentplace,healthinfo,residentplace,policy,degree,height,usekind,jobcall,accumfundaccount,
|
|
|
|
birthplace,folk,residentphone,residentpostcode,extphone,managerstr,status,fax,islabouunion,weight,
|
|
|
|
tempresidentnumber,probationenddate,countryid,passwdchgdate,needusb,serial,account,lloginid,
|
|
|
|
needdynapass,dsporder,passwordstate,accounttype,belongto,dactylogram,assistantdactylogram,
|
|
|
|
passwordlock,sumpasswordwrong,oldpassword1,oldpassword2,msgStyle,messagerurl,pinyinlastname,
|
|
|
|
tokenkey,userUsbType,outkey,adsjgs,adgs,adbm,mobileshowtype,usbstate,totalSpace,occupySpace,
|
|
|
|
ecology_pinyin_search,isADAccount,accountname,notallot,beforefrozen,resourcefrom,isnewuser,
|
|
|
|
haschangepwd,created,creater,modified,modifier,passwordlocktime,mobilecaflag,salt,companystartdate,
|
|
|
|
workstartdate,secondaryPwd,useSecondaryPwd,classification,uuid,passwordLockReason,companyworkyear,
|
|
|
|
workyear,DISMISSDATE,encKey,crc,usbscope,tenant_key,clauthtype,hashData,signData from HrmResource
|
|
|
|
where id=#{id}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getSubComVersionList" resultType="com.engine.organization.entity.version.HrmSubCompanyVersion">
|
|
|
|
select id,subComId,subCompanyDesc,subCompanyCode,subCompanyName,supSubComId,showOrder,canceled,
|
|
|
|
description,operator,version,operate_time as operateTime from HRMSUBCOMPANY_VERSION
|
|
|
|
<where>
|
|
|
|
<if test="subComId !=null">
|
|
|
|
and subComId = #{subComId}
|
|
|
|
</if>
|
|
|
|
<if test="version !=null">
|
|
|
|
and version like #{version}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
ORDER BY VERSION ASC
|
|
|
|
</select>
|
|
|
|
<select id="getDeptVersionList" resultType="com.engine.organization.entity.version.HrmDepartmentVersion">
|
|
|
|
select id,departmentid,departmentmark,departmentcode,departmentname,subcompanyid1,supdepid,bmfzr,showorder,
|
|
|
|
canceled,description,operator,version,operate_time as operateTime from HRMDEPARTMENT_VERSION
|
|
|
|
<where>
|
|
|
|
<if test="departmentid !=null">
|
|
|
|
and departmentid = #{departmentid}
|
|
|
|
</if>
|
|
|
|
<if test="version !=null">
|
|
|
|
and version like #{version}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
ORDER BY VERSION ASC
|
|
|
|
</select>
|
|
|
|
<select id="getResourceVersionList" resultType="com.engine.organization.entity.version.HrmResourceVersion">
|
|
|
|
select id,resourceid,companystartdate,companyworkyear,workstartdate,workyear,usekind,jobcall,accumfundaccount,
|
|
|
|
birthplace,folk,residentphone,residentpostcode,extphone,managerstr,status,fax,islabouunion,weight,
|
|
|
|
tempresidentnumber,probationenddate,countryid,passwdchgdate,lloginid,dsporder,passwordstate,accounttype,
|
|
|
|
belongto,messagerurl,accountname,loginid,password,lastname,sex,birthday,nationality,maritalstatus,
|
|
|
|
telephone,mobile,mobilecall,email,locationid,workroom,homeaddress,resourcetype,startdate,enddate,
|
|
|
|
jobtitle,jobactivitydesc,joblevel,seclevel,departmentid,subcompanyid1,costcenterid,managerid,assistantid,
|
|
|
|
bankid1,accountid1,resourceimageid,certificatenum,nativeplace,educationlevel,bememberdate,bepartydate,
|
|
|
|
workcode,regresidentplace,healthinfo,residentplace,policy,degree,height,classification,description,
|
|
|
|
operator,version,operate_time as operateTime from HRMRESOURCE_VERSION
|
|
|
|
<where>
|
|
|
|
<if test="resourceid !=null">
|
|
|
|
and resourceid = #{resourceid}
|
|
|
|
</if>
|
|
|
|
<if test="version !=null">
|
|
|
|
and version like #{version}
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
ORDER BY VERSION ASC
|
|
|
|
</select>
|
|
|
|
</mapper>
|