|
|
|
@ -234,79 +234,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getHrmSubComp" resultType="com.engine.organization.entity.version.HrmSubCompanyDto">
|
|
|
|
|
select id ,subcompanyname, subcompanydesc,companyid,supsubcomid,url,canceled,subcompanycode,outkey,showorder from HrmSubCompany
|
|
|
|
|
select id ,subcompanyname, subcompanydesc,companyid,supsubcomid,canceled,subcompanycode,showorder from HrmSubCompany
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getHrmDepartment" resultType="com.engine.organization.entity.version.HrmDepartmentDto">
|
|
|
|
|
select id,departmentmark,departmentname,subcompanyid1,supdepid,canceled,departmentcode,outkey,showorder,coadjutant,bmfzr from HrmDepartment
|
|
|
|
|
where id=#{id}
|
|
|
|
|
select a.id,a.departmentmark,a.departmentname,a.subcompanyid1,a.supdepid,a.canceled,
|
|
|
|
|
a.departmentcode,a.showorder,b.bmfzr from HrmDepartment a
|
|
|
|
|
left join hrmdepartmentdefined b on a.id=b.deptid
|
|
|
|
|
where a.id=#{id}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getHrmResource" resultType="com.engine.organization.entity.version.HrmResourceDto">
|
|
|
|
|
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,
|
|
|
|
|
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
|
|
|
|
|
select id,departmentid,dsporder,subcompanyid1,jobtitle,mobile,telephone,managerid,lastname 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
|
|
|
|
|
select a.id,a.subComId,a.subCompanyDesc,a.subCompanyCode,a.subCompanyName,a.supSubComId,a.showOrder,a.canceled,
|
|
|
|
|
a.description,a.operator,a.version,a.operate_time as operateTime,b.subcompanyname as supSubComName from HRMSUBCOMPANY_VERSION a
|
|
|
|
|
left join hrmsubcompany b on a.supSubComId=b.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="subComId !=null">
|
|
|
|
|
and subComId = #{subComId}
|
|
|
|
|
and a.subComId = #{subComId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="version !=null">
|
|
|
|
|
and version like #{version}
|
|
|
|
|
and a.version like #{version}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY VERSION ASC
|
|
|
|
|
ORDER BY a.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
|
|
|
|
|
select a.id,a.departmentid,a.departmentmark,a.departmentcode,a.departmentname,a.subcompanyid1,
|
|
|
|
|
a.supdepid,a.bmfzr,a.showorder,a.canceled,a.description,a.operator,a.version,
|
|
|
|
|
a.operate_time as operateTime,b.subcompanyname,c.departmentname as supDepName,d.lastname as bmfzrName from HRMDEPARTMENT_VERSION a
|
|
|
|
|
left join hrmsubcompany b on a.subcompanyid1=b.id
|
|
|
|
|
left join hrmdepartment c on a.supdepid=c.id
|
|
|
|
|
left join hrmresource d on a.bmfzr=d.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="departmentid !=null">
|
|
|
|
|
and departmentid = #{departmentid}
|
|
|
|
|
and a.departmentid = #{departmentid}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="version !=null">
|
|
|
|
|
and version like #{version}
|
|
|
|
|
and a.version like #{version}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY VERSION ASC
|
|
|
|
|
ORDER BY a.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
|
|
|
|
|
select a.id,a.resourceid,a.companystartdate,a.companyworkyear,a.workstartdate,a.workyear,a.usekind,
|
|
|
|
|
a.jobcall,a.accumfundaccount,a.birthplace,a.folk,a.residentphone,a.residentpostcode,a.extphone,
|
|
|
|
|
a.managerstr,a.status,a.fax,a.islabouunion,a.weight,a.tempresidentnumber,a.probationenddate,
|
|
|
|
|
a.countryid,a.passwdchgdate,a.lloginid,a.dsporder,a.passwordstate,a.accounttype,a.belongto,
|
|
|
|
|
a.messagerurl,a.accountname,a.loginid,a.password,a.lastname,a.sex,a.birthday,a.nationality,
|
|
|
|
|
a.maritalstatus,a.telephone,a.mobile,a.mobilecall,a.email,a.locationid,a.workroom,a.homeaddress,
|
|
|
|
|
a.resourcetype,a.startdate,a.enddate,a.jobtitle,a.jobactivitydesc,a.joblevel,a.seclevel,
|
|
|
|
|
a.departmentid,a.subcompanyid1,a.costcenterid,a.managerid,a.assistantid,a.bankid1,a.accountid1,
|
|
|
|
|
a.resourceimageid,a.certificatenum,a.nativeplace,a.educationlevel,a.bememberdate,a.bepartydate,
|
|
|
|
|
a.workcode,a.regresidentplace,a.healthinfo,a.residentplace,a.policy,a.degree,a.height,a.classification,
|
|
|
|
|
a.description,a.operator,a.version,a.operate_time as operateTime,b.departmentname,c.subcompanyname,
|
|
|
|
|
d.jobtitlename
|
|
|
|
|
from HRMRESOURCE_VERSION a
|
|
|
|
|
left join hrmdepartment b on a.departmentid=b.id
|
|
|
|
|
left join hrmsubcompany c on a.subcompanyid1=c.id
|
|
|
|
|
left join hrmjobtitles d on a.jobtitle=d.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="resourceid !=null">
|
|
|
|
|
and resourceid = #{resourceid}
|
|
|
|
|
and a.resourceid = #{resourceid}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="version !=null">
|
|
|
|
|
and version like #{version}
|
|
|
|
|
and a.version like #{version}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY VERSION ASC
|
|
|
|
|
ORDER BY a.VERSION ASC
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|