LATITUDE,
OPERATE_TIME,
AD_CODE,
LONGITUDE,
ID,
PERS_ID,
ORG_ID,
GROUP_ID,
PERS_NAME,
MOBILE,
LON,
LAT
#{latitude},
#{operateTime},
#{adCode},
#{longitude},
#{id},
#{persId},
#{orgId},
#{groupId},
#{persName},
#{mobile},
#{lon},
#{lat}
and OPERATE_TIME = #{operateTime}
and OPERATE_TIME >= #{operateTimeFrom}
and OPERATE_TIME <= #{operateTimeTo}
and AD_CODE = #{adCode}
and ID = #{id}
and PERS_ID = #{persId}
and ORG_ID = #{orgId}
and GROUP_ID = #{groupId}
and PERS_NAME = #{persName}
and MOBILE = #{mobile}
and LON = #{lon}
and LAT = #{lat}
insert into pers_position(
)
values (
)
insert into pers_position (
)
(#{item.latitude},#{item.operateTime}, #{item.adCode},#{item.longitude}, #{item.id},
#{item.persId}, #{item.orgId}, #{item.groupId}, #{item.persName}, #{item.mobile},
#{item.lon}, #{item.lat} )
delete from pers_position where ID = #{id}
delete from pers_position
update pers_position set flag_valid = 0 where ID = #{id}
update pers_position
AD_CODE = #{adCode},
ID = #{id},
PERS_ID = #{persId},
ORG_ID = #{orgId},
GROUP_ID = #{groupId},
PERS_NAME = #{persName},
MOBILE = #{mobile},
LON = #{lon},
LAT = #{lat},
ID = #{id}
update pers_position
AD_CODE = #{adCode},
ID = #{id},
PERS_ID = #{persId},
ORG_ID = #{orgId},
GROUP_ID = #{groupId},
PERS_NAME = #{persName},
MOBILE = #{mobile},
LON = #{lon},
LAT = #{lat},
AND ORG_ID=#{orgId}
AND ORG_ID is null