BUS_HOTWORKAPPLICATION
SYS_DICTIONARIES
f.APPLY_USER_ID,
f.JOB_NUMBER,
f.APPLICATION_DATE,
f.JOB_TYPE_INDEX,
f.HOT_WORK_POSITION,
f.HOT_WORK_LEVEL_INDEX,
f.HOT_WORK_METHOD_ID,
f.JOB_CONTENT,
f.HOT_WORK_TIME_START,
f.HOT_WORK_TIME_END,
f.CREATOR,
f.CREATTIME,
f.OPERATOR,
f.OPERATTIME,
f.STATE,
f.ISDELETE,
f.WORK_LONGITUDE,
f.WORK_LATITUDE,
f.CORPINFO_ID,
f.IS_SAFETY_DIRECTOR,
f.IS_GAS_TESTING,
f.SPARE,
f.HOTWORKAPPLICATION_ID
APPLY_USER_ID,
JOB_NUMBER,
APPLICATION_DATE,
JOB_TYPE_INDEX,
HOT_WORK_POSITION,
HOT_WORK_LEVEL_INDEX,
HOT_WORK_METHOD_ID,
JOB_CONTENT,
HOT_WORK_TIME_START,
HOT_WORK_TIME_END,
CREATOR,
CREATTIME,
OPERATOR,
OPERATTIME,
STATE,
ISDELETE,
WORK_LONGITUDE,
WORK_LATITUDE,
CORPINFO_ID,
IS_SAFETY_DIRECTOR,
IS_GAS_TESTING,
SPARE,
HOTWORKAPPLICATION_ID
#{APPLY_USER_ID},
#{JOB_NUMBER},
#{APPLICATION_DATE},
#{JOB_TYPE_INDEX},
#{HOT_WORK_POSITION},
#{HOT_WORK_LEVEL_INDEX},
#{HOT_WORK_METHOD_ID},
#{JOB_CONTENT},
#{HOT_WORK_TIME_START},
#{HOT_WORK_TIME_END},
#{CREATOR},
#{CREATTIME},
#{OPERATOR},
#{OPERATTIME},
#{STATE},
#{ISDELETE},
#{WORK_LONGITUDE},
#{WORK_LATITUDE},
#{CORPINFO_ID},
#{IS_SAFETY_DIRECTOR},
#{IS_GAS_TESTING},
#{SPARE},
#{HOTWORKAPPLICATION_ID}
insert into
(
) values (
)
update
set
ISDELETE = '1'
where
HOTWORKAPPLICATION_ID = #{HOTWORKAPPLICATION_ID}
update
set
APPLY_USER_ID = #{APPLY_USER_ID},
JOB_NUMBER = #{JOB_NUMBER},
APPLICATION_DATE = #{APPLICATION_DATE},
JOB_TYPE_INDEX = #{JOB_TYPE_INDEX},
HOT_WORK_POSITION = #{HOT_WORK_POSITION},
HOT_WORK_LEVEL_INDEX = #{HOT_WORK_LEVEL_INDEX},
HOT_WORK_METHOD_ID = #{HOT_WORK_METHOD_ID},
JOB_CONTENT = #{JOB_CONTENT},
HOT_WORK_TIME_START = #{HOT_WORK_TIME_START},
HOT_WORK_TIME_END = #{HOT_WORK_TIME_END},
CREATOR = #{CREATOR},
CREATTIME = #{CREATTIME},
OPERATOR = #{OPERATOR},
OPERATTIME = #{OPERATTIME},
STATE = #{STATE},
HOTWORKAPPLICATION_ID = HOTWORKAPPLICATION_ID
where
HOTWORKAPPLICATION_ID = #{HOTWORKAPPLICATION_ID}
update
set
STATE = #{STATE}
where
HOTWORKAPPLICATION_ID = #{HOTWORKAPPLICATION_ID}
update
set
ISDELETE = '1'
where
HOTWORKAPPLICATION_ID in
#{item}
update
set
ISDELETE = #{ISDELETEOLD},
STATE = #{STATE},
OPERATOR = #{OPERATOR},
OPERATTIME = #{OPERATTIME}
where
HOTWORKAPPLICATION_ID = #{HOTWORKAPPLICATION_ID}
update
set
WORK_LONGITUDE = #{WORK_LONGITUDE},
WORK_LATITUDE = #{WORK_LATITUDE}
where
HOTWORKAPPLICATION_ID = #{HOTWORKAPPLICATION_ID}
update
set
STATE = #{STATE},
OPERATTIME = #{OPERATTIME}
where
HOTWORKAPPLICATION_ID in
#{item}
insert into
bus_hotworkapplicationnumber
(
JOB_NUMBER
) values (
#{JOB_NUMBER}
)
DELETE from bus_hotworkapplicationnumber where JOB_NUMBER LIKE CONCAT(CONCAT('%', #{JOB_NUMBER_LIKE}),'%')