SELECT goods_id, goods_code, dept_id, goods_name, goods_price, discounts_price, group_price, goods_sort, dept_goods_category_id, goods_img_url, goods_video_url, goods_number, status, create_by, create_time, remark FROM goods UPDATE goods goods_name = #{goodsName}, goods_price = #{goodsPrice}, discounts_price = #{discountsPrice}, group_price = #{groupPrice}, goods_sort = #{goodsSort}, dept_goods_category_id = #{deptGoodsCategoryId}, goods_img_url = #{goodsImgUrl}, goods_video_url = #{goodsVideoUrl}, goods_number = #{goodsNumber}, `status` = #{status}, remark = #{remark}, update_by = #{updateBy}, update_time = sysdate() WHERE goods_id = #{goodsId} UPDATE goods SET goods_code = #{goodsCode}, update_time = sysdate() WHERE goods_id = #{goodsId} insert into goods( goods_code, dept_id, goods_name, goods_price, discounts_price, group_price, goods_sort, dept_goods_category_id, goods_img_url, goods_video_url, goods_number, status, remark, create_by, create_time )values( #{goodsCode}, #{deptId}, #{goodsName}, #{goodsPrice}, #{discountsPrice}, #{groupPrice}, #{goodsSort}, #{deptGoodsCategoryId}, #{goodsImgUrl}, #{goodsVideoUrl}, #{goodsNumber}, #{status}, #{remark}, #{createBy}, sysdate() ) delete from goods where goods_id in #{goodsId}