SELECT goods_standard_id, goods_standard_name, goods_id, dept_goods_category_id, goods_price, ext_money, discount_price, group_price, goods_num, goods_unit, create_by, create_time, sale_num, status, update_by, update_time, remark FROM goods_standard insert into goods_standard ( goods_standard_name, goods_id, dept_goods_category_id, goods_price, ext_money, discount_price, group_price, goods_unit, goods_num, status, remark, create_by, create_time )values( #{goodsStandardName}, #{goodsId}, #{deptGoodsCategoryId}, #{goodsPrice}, #{extMoney}, #{discountPrice}, #{groupPrice}, #{goodsUnit}, #{goodsNum}, #{status}, #{remark}, #{createBy}, sysdate() ) INSERT INTO goods_standard ( goods_standard_name, goods_id, dept_goods_category_id, goods_price, ext_money, discount_price, group_price, goods_unit, goods_num, sale_num, status, remark, create_by, create_time ) VALUES ( #{goodsStandard.goodsStandardName}, #{goodsStandard.goodsId}, #{goodsStandard.deptGoodsCategoryId}, #{goodsStandard.goodsPrice}, #{goodsStandard.extMoney}, #{goodsStandard.discountPrice}, #{goodsStandard.groupPrice}, #{goodsStandard.goodsUnit}, #{goodsStandard.goodsNum}, 0, #{goodsStandard.status}, #{goodsStandard.remark}, #{goodsStandard.createBy}, sysdate() ) DELETE FROM goods_standard WHERE goods_id = #{goodsId} update goods_standard set sale_num = #{saleNum} where goods_standard_id = #{goodsStandardId} UPDATE goods_standard goods_standard_name = #{goodsStandardName}, goods_id = #{goodsId}, dept_goods_category_id = #{deptGoodsCategoryId}, goods_price = #{goodsPrice}, ext_money = #{extMoney}, discount_price = #{discountPrice}, group_price = #{groupPrice}, goods_unit = #{goodsUnit}, goods_num = #{goodsNum}, `status` = #{status}, remark = #{remark}, update_time = sysdate() WHERE goods_standard_id = #{goodsStandardId}