select INDENTURE_ID, INDENTURE_NAME, INDENTURE_ADDRESS, INDENTURE_PHONE, INDENTURE_MOBILE, INDENTURE_LINKMAN, LINKMAN_PHONE, LINKMAN_MOBILE, INDENTURE_STATE, REMARK, CREATE_STAFFID, CREATE_DATE ,dept_id from td_indenture
insert into td_indenture
INDENTURE_ID,
INDENTURE_NAME,
INDENTURE_ADDRESS,
INDENTURE_PHONE,
INDENTURE_MOBILE,
INDENTURE_LINKMAN,
LINKMAN_PHONE,
LINKMAN_MOBILE,
INDENTURE_STATE,
REMARK,
CREATE_STAFFID,
CREATE_DATE,
dept_id,
#{indentureId},
#{indentureName},
#{indentureAddress},
#{indenturePhone},
#{indentureMobile},
#{indentureLinkman},
#{linkmanPhone},
#{linkmanMobile},
#{indentureState},
#{REMARK},
#{createStaffid},
#{createDate},
#{deptId},
update td_indenture
INDENTURE_NAME = #{indentureName},
INDENTURE_ADDRESS = #{indentureAddress},
INDENTURE_PHONE = #{indenturePhone},
INDENTURE_MOBILE = #{indentureMobile},
INDENTURE_LINKMAN = #{indentureLinkman},
LINKMAN_PHONE = #{linkmanPhone},
LINKMAN_MOBILE = #{linkmanMobile},
INDENTURE_STATE = #{indentureState},
REMARK = #{remark},
CREATE_STAFFID = #{createStaffid},
CREATE_DATE = #{createDate},
dept_id = #{deptId},
where INDENTURE_ID = #{indentureId}
delete from td_indenture where INDENTURE_ID = #{indentureId}
delete from td_indenture where INDENTURE_ID in
#{indentureId}