insert into bm_subcontractors(NAME,CHARGE_PERSON,REMARK,PHONE,IS_ACTIVE) values (#{name},#{chargePerson},#{remark},#{phone},1)
update bm_subcontractors set NAME =#{name},CHARGE_PERSON =#{chargePerson},PHONE =#{phone},REMARK =#{remark} where id=#{id}
delete from bm_subcontractors
where ID = #{id}