LOCATION_ID, TOTAL_RESULT_ID, LOCATION_VALUE, LOCATION_ROUTE_TIME, LOCATION_MEMO,
DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
INSERT_UPDATE_REMARK, LOCATION_STATUS, DELETED
t.LOCATION_ID, t.TOTAL_RESULT_ID, t.LOCATION_VALUE, t.LOCATION_ROUTE_TIME, t.LOCATION_MEMO,
t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.LOCATION_STATUS, t.DELETED
SELECT FROM TMSSHIP_SHIP_LOCATION
SELECT FROM TMSSHIP_SHIP_LOCATION t
and LOCATION_ID = #{locationId}
and TOTAL_RESULT_ID = #{totalResultId}
and LOCATION_VALUE = #{locationValue}
and TO_CHAR(LOCATION_ROUTE_TIME,'yyyy-MM-dd') = #{locationRouteTime}
and LOCATION_MEMO = #{locationMemo}
and DELETE_NAME = #{deleteName}
and DELETE_TIME = #{deleteTime}
and INSERT_USERNAME = #{insertUsername}
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
and UPDATE_USERNAME = #{updateUsername}
and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
and LOCATION_STATUS = #{locationStatus}
and DELETED = #{deleted}
and LOCATION_ID = #{locationId}
and TOTAL_RESULT_ID = #{totalResultId}
and LOCATION_VALUE LIKE '%${locationValue}%'
and TO_CHAR(LOCATION_ROUTE_TIME,'yyyy-MM-dd') = #{locationRouteTime}
and LOCATION_MEMO LIKE '%${locationMemo}%'
and DELETE_NAME LIKE '%${deleteName}%'
and DELETE_TIME LIKE '%${deleteTime}%'
and INSERT_USERNAME LIKE '%${insertUsername}%'
and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
and UPDATE_USERNAME LIKE '%${updateUsername}%'
and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
and LOCATION_STATUS LIKE '%${locationStatus}%'
and DELETED = #{deleted}
delete from TMSSHIP_SHIP_LOCATION
where LOCATION_ID = #{locationId,jdbcType=DECIMAL}
delete from TMSSHIP_SHIP_LOCATION
where 1!=1
or TOTAL_RESULT_ID = #{totalResultId}
or LOCATION_VALUE = #{locationValue}
or TO_CHAR(LOCATION_ROUTE_TIME,'yyyy-MM-dd') = '#{locationRouteTime}'
or LOCATION_MEMO = #{locationMemo}
or DELETE_NAME = #{deleteName}
or DELETE_TIME = #{deleteTime}
or INSERT_USERNAME = #{insertUsername}
or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
or UPDATE_USERNAME = #{updateUsername}
or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
or LOCATION_STATUS = #{locationStatus}
or DELETED = #{deleted}
insert into TMSSHIP_SHIP_LOCATION (LOCATION_ID, TOTAL_RESULT_ID, LOCATION_VALUE,
LOCATION_ROUTE_TIME, LOCATION_MEMO, DELETE_NAME,
DELETE_TIME, INSERT_USERNAME, INSERT_TIME,
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
LOCATION_STATUS, DELETED)
values (#{locationId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{locationValue,jdbcType=VARCHAR},
#{locationRouteTime,jdbcType=TIMESTAMP}, #{locationMemo,jdbcType=VARCHAR}, #{deleteName,jdbcType=VARCHAR},
#{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
#{locationStatus,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL})
insert into TMSSHIP_SHIP_LOCATION
LOCATION_ID,
TOTAL_RESULT_ID,
LOCATION_VALUE,
LOCATION_ROUTE_TIME,
LOCATION_MEMO,
DELETE_NAME,
DELETE_TIME,
INSERT_USERNAME,
INSERT_TIME,
UPDATE_USERNAME,
UPDATE_TIME,
INSERT_UPDATE_REMARK,
LOCATION_STATUS,
DELETED,
#{locationId,jdbcType=DECIMAL},
#{totalResultId,jdbcType=DECIMAL},
#{locationValue,jdbcType=VARCHAR},
#{locationRouteTime,jdbcType=TIMESTAMP},
#{locationMemo,jdbcType=VARCHAR},
#{deleteName,jdbcType=VARCHAR},
#{deleteTime,jdbcType=VARCHAR},
#{insertUsername,jdbcType=VARCHAR},
#{insertTime,jdbcType=TIMESTAMP},
#{updateUsername,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{insertUpdateRemark,jdbcType=VARCHAR},
#{locationStatus,jdbcType=VARCHAR},
#{deleted,jdbcType=DECIMAL},
update TMSSHIP_SHIP_LOCATION
set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
LOCATION_VALUE = #{locationValue,jdbcType=VARCHAR},
LOCATION_ROUTE_TIME = #{locationRouteTime,jdbcType=TIMESTAMP},
LOCATION_MEMO = #{locationMemo,jdbcType=VARCHAR},
DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
LOCATION_STATUS = #{locationStatus,jdbcType=VARCHAR},
DELETED = #{deleted,jdbcType=DECIMAL}
where LOCATION_ID = #{locationId,jdbcType=DECIMAL}
update TMSSHIP_SHIP_LOCATION
TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
LOCATION_VALUE = #{locationValue,jdbcType=VARCHAR},
LOCATION_ROUTE_TIME = #{locationRouteTime,jdbcType=TIMESTAMP},
LOCATION_MEMO = #{locationMemo,jdbcType=VARCHAR},
DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
LOCATION_STATUS = #{locationStatus,jdbcType=VARCHAR},
DELETED = #{deleted,jdbcType=DECIMAL},
where LOCATION_ID = #{locationId,jdbcType=DECIMAL}
insert into TMSSHIP_SHIP_LOCATION
(LOCATION_ID,
TOTAL_RESULT_ID, LOCATION_VALUE,
LOCATION_ROUTE_TIME, LOCATION_MEMO,
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
INSERT_TIME, UPDATE_USERNAME,
UPDATE_TIME, INSERT_UPDATE_REMARK,
LOCATION_STATUS, DELETED)
(
select
#{item.locationId,jdbcType=DECIMAL},
#{item.totalResultId,jdbcType=DECIMAL}, #{item.locationValue,jdbcType=VARCHAR},
#{item.locationRouteTime,jdbcType=TIMESTAMP}, #{item.locationMemo,jdbcType=VARCHAR},
#{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
#{item.locationStatus,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL} from dual
)
update TMSSHIP_SHIP_LOCATION
set
LOCATION_ID=
when #{item.locationId,jdbcType=DECIMAL} then #{item.locationId,jdbcType=DECIMAL}
,TOTAL_RESULT_ID=
when #{item.locationId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
,LOCATION_VALUE=
when #{item.locationId,jdbcType=DECIMAL} then #{item.locationValue,jdbcType=VARCHAR}
,LOCATION_ROUTE_TIME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.locationRouteTime,jdbcType=TIMESTAMP}
,LOCATION_MEMO=
when #{item.locationId,jdbcType=DECIMAL} then #{item.locationMemo,jdbcType=VARCHAR}
,DELETE_NAME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
,DELETE_TIME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
,INSERT_USERNAME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
,INSERT_TIME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
,UPDATE_USERNAME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
,UPDATE_TIME=
when #{item.locationId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
,INSERT_UPDATE_REMARK=
when #{item.locationId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
,LOCATION_STATUS=
when #{item.locationId,jdbcType=DECIMAL} then #{item.locationStatus,jdbcType=VARCHAR}
,DELETED=
when #{item.locationId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
where LOCATION_ID in
#{item.locationId,jdbcType=DECIMAL}
delete from TMSSHIP_SHIP_LOCATION
where LOCATION_ID in
#{id}
order by "${orderField}"
${orderType}
order by "insertTime" desc