select house_id, type_id, ma_id, num, status, dept_id, del_flag, create_by, create_time, update_by,update_time,remark,company_id,shelf_num
from ma_house_set
insert into ma_house_set(
house_id,
type_id,
ma_id,
num,
status,
dept_id,
del_flag,
create_by,
update_by,
remark,
company_id,
shelf_num,
create_time
)values(
#{houseId},
#{typeId},
#{maId},
#{num},
#{status},
#{deptId},
#{delFlag},
#{createBy},
#{updateBy},
#{remark},
#{companyId},
#{shelfNum},
sysdate()
)
update ma_house_info
house_id = #{houseId},
type_id = #{typeId},
ma_id = #{maId},
num = #{num},
status = #{status},
dept_id = #{deptId},
del_flag = #{delFlag},
create_by = #{createBy},
update_by = #{updateBy},
remark = #{remark},
company_id = #{companyId},
update_time = sysdate()
where id = #{id}
update ma_house_set set del_flag = '2' where id = #{id}