insert into jsh_material id, category_id, name, brand, mnemonic, unit, remark, img_name, unit_id, enabled, other_field1, other_field2, other_field3, enable_serial_number, enable_batch_number, tenant_id, delete_flag, system_spu, moving_pin_reminder_cycle, expiry_num, default_purchase_decimal, default_wholesale_decimal, #{id,jdbcType=BIGINT}, #{categoryId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{brand,jdbcType=VARCHAR}, #{mnemonic,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{imgName,jdbcType=VARCHAR}, #{unitId,jdbcType=BIGINT}, #{enabled,jdbcType=BIT}, #{otherField1,jdbcType=VARCHAR}, #{otherField2,jdbcType=VARCHAR}, #{otherField3,jdbcType=VARCHAR}, #{enableSerialNumber,jdbcType=VARCHAR}, #{enableBatchNumber,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}, #{systemSpu}, #{movingPinReminderCycle,jdbcType=VARCHAR}, #{expiryNum}, #{defaultPurchaseDecimal}, #{defaultWholesaleDecimal}, update jsh_material set delete_flag='1' where 1=1 and ifnull(delete_flag,'0') !='1' and id in ( #{id} ) update jsh_material set unit_id = null where 1=1 and ifnull(delete_flag,'0') !='1' and id = #{id} update jsh_material set expiry_num = null where 1=1 and ifnull(delete_flag,'0') !='1' and id = #{id}