PERS_ID,
ORG_ID,
GROUP_ID,
PERS_NAME,
MOBILE,
OPERATE_TIME,
AD_CODE,
LONGITUDE,
LATITUDE,
LON,
LAT,
ADDRESS
#{persId},
#{orgId},
#{groupId},
#{persName},
#{mobile},
#{operateTime},
#{adCode},
#{longitude},
#{latitude},
#{lon},
#{lat},
#{address}
and PERS_ID = #{persId}
and ORG_ID = #{orgId}
and GROUP_ID = #{groupId}
and PERS_NAME = #{persName}
and MOBILE = #{mobile}
and OPERATE_TIME = #{operateTime}
and AD_CODE = #{adCode}
and LONGITUDE = #{longitude}
and LATITUDE = #{latitude}
and LON = #{lon}
and LAT = #{lat}
insert into pers_position_latest(
)
values (
)
delete from pers_position_latest where ID = #{id}
delete from pers_position_latest
update pers_position_latest set flag_valid = 0 where ID = #{id}
update pers_position_latest
ORG_ID = #{orgId},
GROUP_ID = #{groupId},
PERS_NAME = #{persName},
MOBILE = #{mobile},
OPERATE_TIME = #{operateTime},
AD_CODE = #{adCode},
LONGITUDE = #{longitude},
LATITUDE = #{latitude},
LON = #{lon},
LAT = #{lat},
ADDRESS = #{address},
PERS_ID = #{persId}
update pers_position_latest
ORG_ID = #{orgId},
GROUP_ID = #{groupId},
PERS_NAME = #{persName},
MOBILE = #{mobile},
OPERATE_TIME = #{operateTime},
AD_CODE = #{adCode},
LONGITUDE = #{longitude},
LATITUDE = #{latitude},
LON = #{lon},
LAT = #{lat},
ADDRESS = #{address},