insert into storehouse(
sh_desc,sh_type,sh_obj_id,sh_id,sh_name,store_id,is_show
) values (
#{shDesc},#{shType},#{shObjId},#{shId},#{shName},#{storeId},#{isShow}
)
update storehouse t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.sh_desc= #{shDesc}
, t.sh_type= #{shType}
, t.sh_obj_id= #{shObjId}
, t.sh_name= #{shName}
, t.store_id= #{storeId}
, t.is_show= #{isShow}
where 1=1
and t.sh_id= #{shId}