and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
SysUnitId, OrgCode,
parent_path,
parent_name,
SuperiorUnitId,
UnitCode, UnitName, PinYin, UnitType, UnitAddress,
SimpleName, Principal, MobileTel, BaseInfo, Telephone, UnitLocation, Latitude, Longitude,
Comments, CreatedOn, CreatedBy, ModifiedOn, ModifiedBy, SysEnterpriseId
delete from sysunit
where SysUnitId = #{sysunitid,jdbcType=CHAR}
delete from sysunit
insert into SysUnit (SysUnitId, OrgCode,
SuperiorUnitId,
parent_path,
parent_name,
UnitCode, UnitName, PinYin,
UnitType, UnitAddress, SimpleName,
Principal, MobileTel, BaseInfo,
Telephone, UnitLocation, Latitude,IsHide,
Longitude, Comments, CreatedOn,
CreatedBy, ModifiedOn, ModifiedBy,
SysEnterpriseId)
values (#{sysunitid,jdbcType=CHAR}, #{orgcode,jdbcType=VARCHAR},
#{superiorunitid,jdbcType=CHAR},
#{parentPath,jdbcType=CHAR},
#{parentName,jdbcType=CHAR},
#{unitcode,jdbcType=VARCHAR}, #{unitname,jdbcType=VARCHAR}, #{pinyin,jdbcType=VARCHAR},
#{unittype,jdbcType=VARCHAR}, #{unitaddress,jdbcType=VARCHAR}, #{simplename,jdbcType=VARCHAR},
#{principal,jdbcType=VARCHAR}, #{mobiletel,jdbcType=VARCHAR}, #{baseinfo,jdbcType=VARCHAR},
#{telephone,jdbcType=VARCHAR}, #{unitlocation,jdbcType=VARCHAR},
#{latitude,jdbcType=VARCHAR},
#{isHide,jdbcType=VARCHAR},
#{longitude,jdbcType=VARCHAR}, #{comments,jdbcType=VARCHAR}, #{createdon,jdbcType=TIMESTAMP},
#{createdby,jdbcType=VARCHAR}, #{modifiedon,jdbcType=TIMESTAMP}, #{modifiedby,jdbcType=VARCHAR},
#{sysenterpriseid,jdbcType=CHAR})
insert into SysUnit
SysUnitId,
OrgCode,
SuperiorUnitId,
UnitCode,
UnitName,
PinYin,
UnitType,
UnitAddress,
SimpleName,
Principal,
MobileTel,
BaseInfo,
Telephone,
UnitLocation,
Latitude,
Longitude,
Comments,
CreatedOn,
CreatedBy,
ModifiedOn,
ModifiedBy,
SysEnterpriseId,
#{sysunitid,jdbcType=CHAR},
#{orgcode,jdbcType=VARCHAR},
#{superiorunitid,jdbcType=CHAR},
#{unitcode,jdbcType=VARCHAR},
#{unitname,jdbcType=VARCHAR},
#{pinyin,jdbcType=VARCHAR},
#{unittype,jdbcType=VARCHAR},
#{unitaddress,jdbcType=VARCHAR},
#{simplename,jdbcType=VARCHAR},
#{principal,jdbcType=VARCHAR},
#{mobiletel,jdbcType=VARCHAR},
#{baseinfo,jdbcType=VARCHAR},
#{telephone,jdbcType=VARCHAR},
#{unitlocation,jdbcType=VARCHAR},
#{latitude,jdbcType=VARCHAR},
#{longitude,jdbcType=VARCHAR},
#{comments,jdbcType=VARCHAR},
#{createdon,jdbcType=TIMESTAMP},
#{createdby,jdbcType=VARCHAR},
#{modifiedon,jdbcType=TIMESTAMP},
#{modifiedby,jdbcType=VARCHAR},
#{sysenterpriseid,jdbcType=CHAR},
update SysUnit
SysUnitId = #{record.sysunitid,jdbcType=CHAR},
OrgCode = #{record.orgcode,jdbcType=VARCHAR},
SuperiorUnitId = #{record.superiorunitid,jdbcType=CHAR},
UnitCode = #{record.unitcode,jdbcType=VARCHAR},
UnitName = #{record.unitname,jdbcType=VARCHAR},
PinYin = #{record.pinyin,jdbcType=VARCHAR},
UnitType = #{record.unittype,jdbcType=VARCHAR},
UnitAddress = #{record.unitaddress,jdbcType=VARCHAR},
SimpleName = #{record.simplename,jdbcType=VARCHAR},
Principal = #{record.principal,jdbcType=VARCHAR},
MobileTel = #{record.mobiletel,jdbcType=VARCHAR},
BaseInfo = #{record.baseinfo,jdbcType=VARCHAR},
Telephone = #{record.telephone,jdbcType=VARCHAR},
UnitLocation = #{record.unitlocation,jdbcType=VARCHAR},
Latitude = #{record.latitude,jdbcType=VARCHAR},
Longitude = #{record.longitude,jdbcType=VARCHAR},
Comments = #{record.comments,jdbcType=VARCHAR},
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=CHAR},
update SysUnit
set SysUnitId = #{record.sysunitid,jdbcType=CHAR},
OrgCode = #{record.orgcode,jdbcType=VARCHAR},
SuperiorUnitId = #{record.superiorunitid,jdbcType=CHAR},
UnitCode = #{record.unitcode,jdbcType=VARCHAR},
UnitName = #{record.unitname,jdbcType=VARCHAR},
PinYin = #{record.pinyin,jdbcType=VARCHAR},
UnitType = #{record.unittype,jdbcType=VARCHAR},
UnitAddress = #{record.unitaddress,jdbcType=VARCHAR},
SimpleName = #{record.simplename,jdbcType=VARCHAR},
Principal = #{record.principal,jdbcType=VARCHAR},
MobileTel = #{record.mobiletel,jdbcType=VARCHAR},
BaseInfo = #{record.baseinfo,jdbcType=VARCHAR},
Telephone = #{record.telephone,jdbcType=VARCHAR},
UnitLocation = #{record.unitlocation,jdbcType=VARCHAR},
Latitude = #{record.latitude,jdbcType=VARCHAR},
Longitude = #{record.longitude,jdbcType=VARCHAR},
Comments = #{record.comments,jdbcType=VARCHAR},
CreatedOn = #{record.createdon,jdbcType=TIMESTAMP},
CreatedBy = #{record.createdby,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR},
SysEnterpriseId = #{record.sysenterpriseid,jdbcType=CHAR}
update SysUnit
OrgCode = #{orgcode,jdbcType=VARCHAR},
SuperiorUnitId = #{superiorunitid,jdbcType=CHAR},
UnitCode = #{unitcode,jdbcType=VARCHAR},
UnitName = #{unitname,jdbcType=VARCHAR},
PinYin = #{pinyin,jdbcType=VARCHAR},
UnitType = #{unittype,jdbcType=VARCHAR},
UnitAddress = #{unitaddress,jdbcType=VARCHAR},
SimpleName = #{simplename,jdbcType=VARCHAR},
Principal = #{principal,jdbcType=VARCHAR},
MobileTel = #{mobiletel,jdbcType=VARCHAR},
BaseInfo = #{baseinfo,jdbcType=VARCHAR},
Telephone = #{telephone,jdbcType=VARCHAR},
UnitLocation = #{unitlocation,jdbcType=VARCHAR},
Latitude = #{latitude,jdbcType=VARCHAR},
Longitude = #{longitude,jdbcType=VARCHAR},
Comments = #{comments,jdbcType=VARCHAR},
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
CreatedBy = #{createdby,jdbcType=VARCHAR},
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
SysEnterpriseId = #{sysenterpriseid,jdbcType=CHAR},
where SysUnitId = #{sysunitid,jdbcType=CHAR}
update SysUnit
set OrgCode = #{orgcode,jdbcType=VARCHAR},
SuperiorUnitId = #{superiorunitid,jdbcType=CHAR},
UnitCode = #{unitcode,jdbcType=VARCHAR},
UnitName = #{unitname,jdbcType=VARCHAR},
PinYin = #{pinyin,jdbcType=VARCHAR},
UnitType = #{unittype,jdbcType=VARCHAR},
UnitAddress = #{unitaddress,jdbcType=VARCHAR},
SimpleName = #{simplename,jdbcType=VARCHAR},
Principal = #{principal,jdbcType=VARCHAR},
MobileTel = #{mobiletel,jdbcType=VARCHAR},
BaseInfo = #{baseinfo,jdbcType=VARCHAR},
Telephone = #{telephone,jdbcType=VARCHAR},
UnitLocation = #{unitlocation,jdbcType=VARCHAR},
Latitude = #{latitude,jdbcType=VARCHAR},
Longitude = #{longitude,jdbcType=VARCHAR},
Comments = #{comments,jdbcType=VARCHAR},
CreatedOn = #{createdon,jdbcType=TIMESTAMP},
CreatedBy = #{createdby,jdbcType=VARCHAR},
ModifiedOn = #{modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{modifiedby,jdbcType=VARCHAR},
SysEnterpriseId = #{sysenterpriseid,jdbcType=CHAR}
where SysUnitId = #{sysunitid,jdbcType=CHAR}
update SysUnit
set
OrgCode = #{record.orgcode,jdbcType=VARCHAR},
SuperiorUnitId = #{record.superiorunitid,jdbcType=CHAR},
parent_path = #{record.parentPath,jdbcType=CHAR},
parent_name = #{record.parentName,jdbcType=CHAR},
UnitCode = #{record.unitcode,jdbcType=VARCHAR},
UnitName = #{record.unitname,jdbcType=VARCHAR},
PinYin = #{record.pinyin,jdbcType=VARCHAR},
UnitType = #{record.unittype,jdbcType=VARCHAR},
UnitAddress = #{record.unitaddress,jdbcType=VARCHAR},
SimpleName = #{record.simplename,jdbcType=VARCHAR},
Principal = #{record.principal,jdbcType=VARCHAR},
MobileTel = #{record.mobiletel,jdbcType=VARCHAR},
BaseInfo = #{record.baseinfo,jdbcType=VARCHAR},
Telephone = #{record.telephone,jdbcType=VARCHAR},
UnitLocation = #{record.unitlocation,jdbcType=VARCHAR},
Latitude = #{record.latitude,jdbcType=VARCHAR},
Longitude = #{record.longitude,jdbcType=VARCHAR},
IsHide = #{record.isHide,jdbcType=VARCHAR},
Comments = #{record.comments,jdbcType=VARCHAR},
ModifiedOn = #{record.modifiedon,jdbcType=TIMESTAMP},
ModifiedBy = #{record.modifiedby,jdbcType=VARCHAR}
where SysUnitId = #{record.sysunitid,jdbcType=CHAR}