insert into bm_area_type(name) values (#{name}) INSERT into mm_type ID, NAME, PARENT_ID, LEVEL, TIME,IS_ACTIVE, #{id}, #{name}, #{parentId}, #{level}, NOW(),1, UPDATE mm_type NAME = #{name}, where id=#{id} update mm_type set IS_ACTIVE = '0' where id=#{id} update mm_type NUM =(ifnull(NUM,0)) + #{nums} where id= #{id} update mm_type NUM =(ifnull(NUM,0)) - #{nums} where id= #{id} INSERT into mm_type ID, NAME, PARENT_ID, WEIGHT, UNIT, RATED_LOAD, TEST_LOAD, HOLDING_TIME, LEASE_PRICE, PAY_PRICE, BUY_PRICE, IS_TEST, LEVEL, IS_COUNT, SAMPING_RATIO, WARN_NUM, NUM, RFID_POWER, IS_LABEL, TIME,IS_ACTIVE, #{id}, #{name}, #{parentId}, #{weight}, #{unit}, #{ratedLoad}, #{testLoad}, #{holdingTime}, #{leasePrice}, #{payPrice}, #{buyPrice}, #{isTest}, #{level}, #{isCount}, #{sampingRatio}, #{warnNum}, #{nums}, #{rfidPower}, #{label}, NOW(),1, INSERT into ma_org_relation TYPE_ID, ORG_ID, WEIGHT, RATED_LOAD, TEST_LOAD, HOLDING_TIME, LEASE_PRICE, PAY_PRICE, BUY_PRICE, IS_TEST, IS_COUNT, SAMPING_RATIO, WARN_NUM, NUM, TIME,IS_ACTIVE, #{id}, #{companyId}, #{weight}, #{ratedLoad}, #{testLoad}, #{holdingTime}, #{leasePrice}, #{payPrice}, #{buyPrice}, #{isTest}, #{isCount}, #{sampingRatio}, #{warnNum}, #{nums}, NOW(),1, update mm_type NAME = #{name}, WARN_VALUE = #{warnValue}, NUM = #{nums}, IS_LABEL = #{label}, ID =#{id} where ID =#{id} update mm_type WARN_VALUE = #{warnValue} where LEVEL=3 update mm_type set IS_ACTIVE = '0' where ID =#{id} update ma_org_relation set IS_ACTIVE = '0' where TYPE_ID =#{id} AND ORG_ID = #{companyId} update bm_area_type set IS_ACTIVE = '0' WHERE id in( #{o.id} ) update mm_type set `NAME` = #{name}, WEIGHT = #{weight}, UNIT = #{unit}, IS_COUNT = #{isCount}, RFID_POWER=#{rfidPower} where id = #{id} update ma_org_relation set WEIGHT = #{weight}, RATED_LOAD = #{ratedLoad}, TEST_LOAD = #{testLoad}, HOLDING_TIME = #{holdingTime}, LEASE_PRICE = #{leasePrice}, PAY_PRICE = #{payPrice}, BUY_PRICE = #{buyPrice}, IS_COUNT = #{isCount}, NUM = #{nums} where type_id = #{id} and org_id = #{companyId} update mm_type set NUM = #{nums} where id = #{id} update test_copy_copy set modelId = #{model} where id = #{id} insert into zulin_one_copy1 (supId,NUM) values (#{id},#{firstName}) insert into zulin_one_copy1 (supId,NUM) values (#{id},#{firstName}) insert into zulin_one_copy1 (supId,NUM) values (#{id},#{firstName})