Commit c26fb653 by lichenggang

add ele

parent bd8d1589
Showing with 54 additions and 71 deletions
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="bdc1212b-a67e-465a-8c9c-03055b5d227f" name="Default Changelist" comment="" />
<list default="true" id="bdc1212b-a67e-465a-8c9c-03055b5d227f" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -15,12 +17,12 @@
<SUITE FILE_PATH="coverage/update_cate$updateopera.coverage" NAME="updateopera Coverage Results" MODIFIED="1554371660616" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
</component>
<component name="FileEditorManager">
<leaf>
<leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/plat/element14/cate_stock.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="58">
<caret line="28" column="82" lean-forward="true" selection-start-line="28" selection-start-column="82" selection-end-line="28" selection-end-column="98" />
<state relative-caret-position="588">
<caret line="28" column="82" selection-start-line="28" selection-start-column="82" selection-end-line="28" selection-end-column="98" />
</state>
</provider>
</entry>
......@@ -28,8 +30,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/plat/szlc/cate_stock.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="329">
<caret line="104" column="12" lean-forward="true" selection-start-line="104" selection-start-column="12" selection-end-line="104" selection-end-column="32" />
<state relative-caret-position="924">
<caret line="104" column="12" selection-start-line="104" selection-start-column="12" selection-end-line="104" selection-end-column="32" />
<folding>
<element signature="e#154#718#0" />
<element signature="e#760#2320#0" />
......@@ -57,8 +59,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/plat/chip1stop/cate.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="609">
<caret line="84" column="34" lean-forward="true" selection-start-line="84" selection-start-column="34" selection-end-line="84" selection-end-column="54" />
<state relative-caret-position="1722">
<caret line="84" column="34" selection-start-line="84" selection-start-column="34" selection-end-line="84" selection-end-column="54" />
<folding>
<element signature="e#0#19#0" expanded="true" />
</folding>
......@@ -69,8 +71,8 @@
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/updateopera.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462">
<caret line="22" column="62" lean-forward="true" selection-start-line="22" selection-start-column="62" selection-end-line="22" selection-end-column="62" />
<state relative-caret-position="756">
<caret line="36" column="23" lean-forward="true" selection-start-line="36" selection-start-column="23" selection-end-line="36" selection-end-column="23" />
</state>
</provider>
</entry>
......@@ -87,11 +89,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/update_scrip.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
<folding>
<element signature="e#0#13#0" expanded="true" />
</folding>
<state relative-caret-position="189">
<caret line="11" selection-start-line="11" selection-end-line="11" />
</state>
</provider>
</entry>
......@@ -100,7 +99,7 @@
<entry file="file://$PROJECT_DIR$/utils/mysqlopera.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="42">
<caret line="2" lean-forward="true" selection-start-line="2" selection-end-line="2" />
<caret line="2" selection-start-line="2" selection-end-line="2" />
<folding>
<element signature="e#45#55#0" expanded="true" />
</folding>
......@@ -129,6 +128,9 @@
<replace>operat</replace>
</replaceStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
......@@ -154,11 +156,13 @@
<option name="width" value="1400" />
<option name="height" value="1000" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
......@@ -170,7 +174,6 @@
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
......@@ -311,24 +314,20 @@
<option name="presentableId" value="Default" />
<updated>1554356907352</updated>
<workItem from="1554356908814" duration="13601000" />
<workItem from="1554683984926" duration="645000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="13601000" />
<option name="totallyTimeSpent" value="14246000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
<editor active="true" />
<layout>
<window_info id="Favorites" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25375536" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" />
<window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Python Console" />
<window_info anchor="bottom" id="Terminal" weight="0.32924107" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" weight="0.32924107" />
<window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.27455357" />
......@@ -336,11 +335,17 @@
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="right" id="SciView" />
<window_info anchor="right" id="Database" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="8" />
<window_info anchor="bottom" id="Database Changes" order="9" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
<window_info anchor="bottom" id="Terminal" order="11" weight="0.32924107" />
<window_info anchor="bottom" id="Python Console" order="12" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="SciView" order="3" />
<window_info anchor="right" id="Database" order="4" />
</layout>
<layout-to-restore>
<window_info id="Favorites" order="0" side_tool="true" />
......@@ -370,9 +375,7 @@
<option name="version" value="1" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/utils/mysqlops.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/utils/mysqlops.py" />
<entry file="file://$PROJECT_DIR$/utils/clean_db.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
......@@ -415,20 +418,17 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/plat/chip1stop/cate.py">
<entry file="file://$PROJECT_DIR$/plat/element14/cate_stock.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="609">
<caret line="84" column="34" lean-forward="true" selection-start-line="84" selection-start-column="34" selection-end-line="84" selection-end-column="54" />
<folding>
<element signature="e#0#19#0" expanded="true" />
</folding>
<state relative-caret-position="588">
<caret line="28" column="82" selection-start-line="28" selection-start-column="82" selection-end-line="28" selection-end-column="98" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/plat/szlc/cate_stock.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="329">
<caret line="104" column="12" lean-forward="true" selection-start-line="104" selection-start-column="12" selection-end-line="104" selection-end-column="32" />
<state relative-caret-position="924">
<caret line="104" column="12" selection-start-line="104" selection-start-column="12" selection-end-line="104" selection-end-column="32" />
<folding>
<element signature="e#154#718#0" />
<element signature="e#760#2320#0" />
......@@ -452,10 +452,13 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/plat/element14/cate_stock.py">
<entry file="file://$PROJECT_DIR$/plat/chip1stop/cate.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="58">
<caret line="28" column="82" lean-forward="true" selection-start-line="28" selection-start-column="82" selection-end-line="28" selection-end-column="98" />
<state relative-caret-position="1722">
<caret line="84" column="34" selection-start-line="84" selection-start-column="34" selection-end-line="84" selection-end-column="54" />
<folding>
<element signature="e#0#19#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
......@@ -466,30 +469,27 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/utils/mysqlopera.py">
<entry file="file://$PROJECT_DIR$/update_scrip.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="42">
<caret line="2" lean-forward="true" selection-start-line="2" selection-end-line="2" />
<folding>
<element signature="e#45#55#0" expanded="true" />
</folding>
<state relative-caret-position="189">
<caret line="11" selection-start-line="11" selection-end-line="11" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/update_scrip.py">
<entry file="file://$PROJECT_DIR$/utils/mysqlopera.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="11" lean-forward="true" selection-start-line="11" selection-end-line="11" />
<state relative-caret-position="42">
<caret line="2" selection-start-line="2" selection-end-line="2" />
<folding>
<element signature="e#0#13#0" expanded="true" />
<element signature="e#45#55#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/updateopera.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="462">
<caret line="22" column="62" lean-forward="true" selection-start-line="22" selection-start-column="62" selection-end-line="22" selection-end-column="62" />
<state relative-caret-position="756">
<caret line="36" column="23" lean-forward="true" selection-start-line="36" selection-start-column="23" selection-end-line="36" selection-end-column="23" />
</state>
</provider>
</entry>
......
#!encoding:utf-8
old=((1, '滤波器'), (2, '共模扼流圈'), (3, '磁珠'), (4, '陶瓷滤波器'), (5, 'RF滤波器'), (6, 'SAW滤波器'), (7, '馈通式电容器'), (8, '功能模块'), (9, '模块'), (10, '套件'), (11, '无线模块'), (12, 'GSM/GPRS/GPS模块'), (13, 'WIFI模块'), (14, '方案验证板'), (15, '方案验证板'), (16, '免费赠品区'), (17, '各类开发板'), (18, '其余赠品'), (19, '处理器及微控制器'), (20, 'ABOV'), (21, 'EastSoft'), (22, 'ELAN'), (23, 'Fortior Technol'), (24, 'Infineon'), (25, 'MDT'), (26, 'PADAUK'), (27, 'SONIX'), (28, 'WCH'), (29, '华芯微特'), (30, '钜泉光电'), (31, '处理器及微控制器'), (32, 'HOLTEK'), (33, 'GigaDevice'), (34, 'Allwinner'), (35, 'ATMEL/AVR'), (36, 'ST'), (37, 'ADI'), (38, 'MICROCHIP'), (39, 'NXP'), (40, 'TI'), (41, 'STC'), (42, 'FREESCALE'), (43, 'NUVOTON'), (44, 'CYPRESS'), (45, 'SST'), (46, 'SYNCMOS'), (47, 'MEGAWIN'), (48, 'RENESAS'), (49, 'SILICON LABS'), (50, 'SAMSUNG'), (51, 'HISILTC'), (52, '嵌入式外围芯片'), (53, '字库芯片'), (54, '端口扩展芯片'), (55, 'MCU监控芯片'), (56, '驱动芯片'), (57, '实时时钟芯片'), (58, '嵌入式外围芯片'), (59, '逻辑芯片'), (60, '编解码芯片'), (61, '74系列逻辑芯片'), (62, '4000系列逻辑芯片'), (63, '时基集成芯片'), (64, 'CPLD/FPGA芯片'), (65, '逻辑芯片'), (66, '存储器'), (67, 'DDR存储器'), (68, 'EPROM存储器'), (69, 'PROM存储器'), (70, 'FLASH存储器'), (71, 'EEPROM存储器'), (72, 'RAM存储器'), (73, 'FRAM存储器'), (74, 'FIFO存储器'), (75, '电源芯片'), (76, '电池保护芯片'), (77, '电源监控芯片'), (78, '电源模块AC-DC'), (79, '功率开关芯片'), (80, '电源模块DC-DC'), (81, '线性稳压芯片'), (82, '低压差线性稳压'), (83, 'DC-DC芯片'), (84, '电压基准芯片'), (85, '开关电源芯片'), (86, '电源芯片'), (87, '电池电源管理芯片'), (88, '模拟芯片'), (89, '电流监控芯片'), (90, '电量计芯片'), (91, '模拟开关芯片'), (92, '模数转换芯片'), (93, '数模转换芯片'), (94, '模拟芯片'), (95, '数字电位器芯片'), (96, '接口芯片'), (97, 'USB芯片'), (98, 'RS232芯片'), (99, 'RS-485/RS-422芯片'), (100, '以太网芯片'), (101, '隔离器芯片'), (102, 'CAN芯片'), (103, 'LVDS芯片'), (104, '4-20MA接口芯片'), (105, '音频接口芯片'), (106, '接口芯片'), (107, 'DDS芯片'), (108, '放大器、线性器件'), (109, '通用运放'), (110, '放大器'), (111, '高速、宽带运放'), (112, '仪表运放'), (113, '精密运放'), (114, 'FET输入运放'), (115, '低噪声运放'), (116, '低功耗运放'), (117, '电压比较器'), (118, '音频放大器'), (119, '差分运放'), (120, '驱动器'), (121, 'IGBT驱动'), (122, 'EL驱动'), (123, 'LED驱动'), (124, 'LCD驱动'), (125, 'MOS驱动'), (126, '电机驱动'), (127, '可控硅驱动'), (128, '大电流驱动'), (129, '驱动芯片'), (130, '传感器'), (131, '传感器'), (132, '温度传感器'), (133, '颜色传感器'), (134, '图像传感器'), (135, '加速度传感器'), (136, '触摸芯片'), (137, '温湿度传感器'), (138, '环境光传感器'), (139, '红外传感器'), (140, '二极管'), (141, 'ESD二极管'), (142, '雪崩二极管'), (143, '高效率二极管'), (144, '恒流二极管'), (145, '变容二极管'), (146, '通用二极管'), (147, '稳压二极管'), (148, '肖特基二极管'), (149, '快恢复二极管'), (150, '超快恢复二极管'), (151, '开关二极管'), (152, '触发二极管'), (153, 'TVS二极管'), (154, '高压二极管'), (155, '整流桥'), (156, '放电管'), (157, '射频/无线电'), (158, 'RF 放大器'), (159, 'RF 混频器'), (160, 'RF 检测器'), (161, 'RF 天线'), (162, 'RF 配件'), (163, 'RF 衰减器'), (164, '射频开关'), (165, '射频卡芯片'), (166, '无线收发芯片'), (167, '电阻'), (168, 'MELF 电阻'), (169, '贴片电阻'), (170, '金属膜电阻'), (171, '贴片排阻'), (172, '碳膜电阻'), (173, '直插排阻'), (174, '可调电阻'), (175, '精密可调电阻'), (176, '光敏电阻'), (177, '水泥电阻'), (178, 'NTC 热敏电阻'), (179, 'PTC 热敏电阻'), (180, '压敏电阻'), (181, '保险电阻'), (182, '绕线电阻'), (183, '氧化膜电阻'), (184, '电位器、其他可调电阻'), (185, '金属氧化膜电阻'), (186, '贴片超低阻值电阻'), (187, '贴片合金电阻'), (188, '贴片高精密、低温漂电阻'), (189, 'LED灯条电阻'), (190, '金属玻璃釉电阻'), (191, '采样电阻'), (192, '电容'), (193, '固态电解电容'), (194, '氧化铌电容'), (195, 'CL21电容'), (196, '聚酯薄膜电容'), (197, '超级电容器'), (198, '贴片电容'), (199, '钽电容'), (200, '贴片电解电容'), (201, '直插电解电容'), (202, '直插瓷片电容'), (203, '直插独石电容'), (204, '安规电容'), (205, '高压电容'), (206, '可调电容'), (207, '涤纶电容'), (208, 'CBB电容'), (209, '校正电容'), (210, '光耦/发光管/红外'), (211, '红外发射管'), (212, 'LED点阵'), (213, 'LCD液晶显示模块'), (214, '光电固态继电器'), (215, '光电可控硅'), (216, 'OLED显示模块'), (217, 'VFD显示模块'), (218, '菲涅尔透镜'), (219, 'IrDA红外收发器'), (220, '发光二极管'), (221, '红外接收管'), (222, '光电开关'), (223, '直插光耦'), (224, '贴片光耦'), (225, '硅光电池'), (226, 'LED数码管'), (227, '晶振'), (228, '49SMD晶振'), (229, '49S晶振'), (230, '49U晶振'), (231, '圆柱体晶振'), (232, '贴片有源晶振'), (233, '声表面谐振器'), (234, '陶瓷谐振器'), (235, '直插有源晶振'), (236, '贴片无源晶振'), (237, '晶体管'), (238, 'IGBT管'), (239, '晶体管'), (240, '数字三极管'), (241, '达林顿管'), (242, 'MOS'), (243, '可控硅'), (244, '三极管'), (245, '电感/磁珠/变压器'), (246, '色环电感'), (247, '工字电感'), (248, '电源变压器'), (249, '共模电感'), (250, '滤波器'), (251, '直插磁珠'), (252, '天线'), (253, '高频电感'), (254, '互感器'), (255, '低频电感'), (256, '贴片电感'), (257, '贴片磁珠'), (258, '网口变压器'), (259, '功率电感'), (260, '保险丝'), (261, '短路器'), (262, '断路器'), (263, '一次性保险丝'), (264, '直插保险丝'), (265, '贴片保险丝'), (266, '玻璃管保险丝'), (267, '保险丝夹/座'), (268, '按键开关/继电器'), (269, '拨动开关'), (270, '旋转编码开关'), (271, '带灯开关'), (272, '锅仔片'), (273, '继电器'), (274, '按键开关'), (275, '船型开关'), (276, '行程开关'), (277, '轻触开关'), (278, '拨码开关'), (279, '五向开关'), (280, '多功能开关'), (281, '蜂鸣器/扬声器/咪头'), (282, '咪头/硅麦'), (283, '扬声器'), (284, '蜂鸣器'), (285, '电源电池'), (286, '电池'), (287, '电池盒/电池座'), (288, '电源适配器'), (289, '五金类/其他'), (290, '硅胶'), (291, '螺丝'), (292, '螺柱'), (293, '散热器'), (294, '测试针'), (295, '导热胶'), (296, '电子辅料'), (297, '电路板DIY专区/书籍'), (298, '1.6双面覆铜FR-4玻纤板'), (299, 'PCB磨板砂纸'), (300, 'PCB设计书籍'), (301, '连接器'), (302, '音频连接器'), (303, '牛角连接器'), (304, 'CH连接器'), (305, 'VH连接器'), (306, 'PH连接器'), (307, 'XH连接器'), (308, '2EDG连接器'), (309, '15EDG连接器'), (310, '1.25T连接器'), (311, 'D-SUB连接器'), (312, '卡座'), (313, 'RJ11连接器'), (314, '排针'), (315, '排母'), (316, '短路帽'), (317, 'BNC连接器'), (318, 'PS2连接器'), (319, 'KF2510连接器'), (320, 'AV连接器'), (321, 'micro usb连接器'), (322, 'USB Type-C连接器'), (323, '杜邦'), (324, 'EH连接器'), (325, '光纤连接器'), (326, 'ZH连接器1.5mm'), (327, 'DVI连接器'), (328, '压线端子'), (329, 'RJ22连接器'), (330, 'HDMI连接器'), (331, '板对板连接器'), (332, 'IDC连接器'), (333, '香蕉头连接器'), (334, '夹子'), (335, '隔灯柱'), (336, 'IC座'), (337, '连接器'), (338, 'USB连接器'), (339, 'RJ45连接器'), (340, '接线端子'), (341, 'FPC连接器'), (342, 'DC连接器'), (343, '线材/焊接材料'), (344, 'FFC连接线'), (345, '信号线/数据线'), (346, '电源线'), (347, '焊锡丝'), (348, '电线'), (349, '助焊膏'), (350, '焊锡膏'), (351, '焊锡球'), (352, '助焊剂'), (353, '绿油'), (354, '红胶'), (355, '电子线及相关'), (356, '工具/辅材'), (357, '液态光学胶'), (358, '焊接工具'), (359, '测电笔'), (360, '胶水'), (361, 'UPS电源'), (362, '扣件'), (363, '导电银浆'), (364, '仪器'), (365, '黄胶'), (366, '化工辅材'), (367, '热缩管'), (368, '其他'), (369, '吸锡带'), (370, '刀具'), (371, '双面胶'), (372, '镊子'), (373, '治具'), (374, 'PVC膜'), (375, '酒精瓶'), (376, '螺丝刀/钳'), (377, '通用辅材'), (378, '万用表/仪表'), (379, '万用表表笔'), (380, '万用组合式零件盒'), (381, '马达'), (382, '微电机/马达'), (383, '万能板'), (384, '万能板'), (385, '面包板'), (1170, '未分类'), (1171, '未分类'), (1172, '高压电阻'), (1173, '温控开关'), (1180, '开发套件与仿真器'), (1179, '通讯模块'), (1181, 'SDRAM存储器'), (1182, '平衡-不平衡变压器'), (1183, 'RF 定向耦合器'), (1184, '贴片电阻'), (1185, '气体传感器'), (1186, '压力传感器'), (1187, '特殊功能放大器'), (1188, '触摸屏控制器'), (1189, 'PTC自恢复保险丝'), (1190, '测试点/测试环'), (1191, '焊接/快插端子'), (1192, 'AC电源插座'), (1193, '电池附件/弹片/弹簧'), (1194, '包装袋'), (1195, '隔离柱及垫片'), (1196, '工程部二次分类--资料'), (1197, '工程部二次分类--型号'), (1177, '低压差线性稳压(LDO)'), (1176, '连接器附件'), (1178, '传感器模块'), (1175, '交流接触器'), (1174, '开关插座'))
from utils.mysqlopera import MySqlOperator
operator=MySqlOperator('szlc')
with operator.db.cursor() as cursor:
sql="select cat_id,cat_name from lie_category "
cursor.execute(sql)
old_old=cursor.fetchall()
# old_old=((1, '滤波器'), (2, '共模扼流圈'), (3, '磁珠'), (4, '陶瓷滤波器'), (5, 'RF滤波器'), (6, 'SAW滤波器'), (7, '馈通式电容器'), (8, '功能模块'), (9, '模块'), (10, '套件'), (11, '无线模块'), (12, 'GSM/GPRS/GPS模块'), (13, 'WIFI模块'), (14, '方案验证板'), (15, '方案验证板'), (16, '免费赠品区'), (17, '各类开发板'), (18, '其余赠品'), (19, '处理器及微控制器'), (20, 'ABOV'), (21, 'EastSoft'), (22, 'ELAN'), (23, 'Fortior Technol'), (24, 'Infineon'), (25, 'MDT'), (26, 'PADAUK'), (27, 'SONIX'), (28, 'WCH'), (29, '华芯微特'), (30, '钜泉光电'), (31, '处理器及微控制器'), (32, 'HOLTEK'), (33, 'GigaDevice'), (34, 'Allwinner'), (35, 'ATMEL/AVR'), (36, 'ST'), (37, 'ADI'), (38, 'MICROCHIP'), (39, 'NXP'), (40, 'TI'), (41, 'STC'), (42, 'FREESCALE'), (43, 'NUVOTON'), (44, 'CYPRESS'), (45, 'SST'), (46, 'SYNCMOS'), (47, 'MEGAWIN'), (48, 'RENESAS'), (49, 'SILICON LABS'), (50, 'SAMSUNG'), (51, 'HISILTC'), (52, '嵌入式外围芯片'), (53, '字库芯片'), (54, '端口扩展芯片'), (55, 'MCU监控芯片'), (56, '驱动芯片'), (57, '实时时钟芯片'), (58, '嵌入式外围芯片'), (59, '逻辑芯片'), (60, '编解码芯片'), (61, '74系列逻辑芯片'), (62, '4000系列逻辑芯片'), (63, '时基集成芯片'), (64, 'CPLD/FPGA芯片'), (65, '逻辑芯片'), (66, '存储器'), (67, 'DDR存储器'), (68, 'EPROM存储器'), (69, 'PROM存储器'), (70, 'FLASH存储器'), (71, 'EEPROM存储器'), (72, 'RAM存储器'), (73, 'FRAM存储器'), (74, 'FIFO存储器'), (75, '电源芯片'), (76, '电池保护芯片'), (77, '电源监控芯片'), (78, '电源模块AC-DC'), (79, '功率开关芯片'), (80, '电源模块DC-DC'), (81, '线性稳压芯片'), (82, '低压差线性稳压'), (83, 'DC-DC芯片'), (84, '电压基准芯片'), (85, '开关电源芯片'), (86, '电源芯片'), (87, '电池电源管理芯片'), (88, '模拟芯片'), (89, '电流监控芯片'), (90, '电量计芯片'), (91, '模拟开关芯片'), (92, '模数转换芯片'), (93, '数模转换芯片'), (94, '模拟芯片'), (95, '数字电位器芯片'), (96, '接口芯片'), (97, 'USB芯片'), (98, 'RS232芯片'), (99, 'RS-485/RS-422芯片'), (100, '以太网芯片'), (101, '隔离器芯片'), (102, 'CAN芯片'), (103, 'LVDS芯片'), (104, '4-20MA接口芯片'), (105, '音频接口芯片'), (106, '接口芯片'), (107, 'DDS芯片'), (108, '放大器、线性器件'), (109, '通用运放'), (110, '放大器'), (111, '高速、宽带运放'), (112, '仪表运放'), (113, '精密运放'), (114, 'FET输入运放'), (115, '低噪声运放'), (116, '低功耗运放'), (117, '电压比较器'), (118, '音频放大器'), (119, '差分运放'), (120, '驱动器'), (121, 'IGBT驱动'), (122, 'EL驱动'), (123, 'LED驱动'), (124, 'LCD驱动'), (125, 'MOS驱动'), (126, '电机驱动'), (127, '可控硅驱动'), (128, '大电流驱动'), (129, '驱动芯片'), (130, '传感器'), (131, '传感器'), (132, '温度传感器'), (133, '颜色传感器'), (134, '图像传感器'), (135, '加速度传感器'), (136, '触摸芯片'), (137, '温湿度传感器'), (138, '环境光传感器'), (139, '红外传感器'), (140, '二极管'), (141, 'ESD二极管'), (142, '雪崩二极管'), (143, '高效率二极管'), (144, '恒流二极管'), (145, '变容二极管'), (146, '通用二极管'), (147, '稳压二极管'), (148, '肖特基二极管'), (149, '快恢复二极管'), (150, '超快恢复二极管'), (151, '开关二极管'), (152, '触发二极管'), (153, 'TVS二极管'), (154, '高压二极管'), (155, '整流桥'), (156, '放电管'), (157, '射频/无线电'), (158, 'RF 放大器'), (159, 'RF 混频器'), (160, 'RF 检测器'), (161, 'RF 天线'), (162, 'RF 配件'), (163, 'RF 衰减器'), (164, '射频开关'), (165, '射频卡芯片'), (166, '无线收发芯片'), (167, '电阻'), (168, 'MELF 电阻'), (169, '贴片电阻'), (170, '金属膜电阻'), (171, '贴片排阻'), (172, '碳膜电阻'), (173, '直插排阻'), (174, '可调电阻'), (175, '精密可调电阻'), (176, '光敏电阻'), (177, '水泥电阻'), (178, 'NTC 热敏电阻'), (179, 'PTC 热敏电阻'), (180, '压敏电阻'), (181, '保险电阻'), (182, '绕线电阻'), (183, '氧化膜电阻'), (184, '电位器、其他可调电阻'), (185, '金属氧化膜电阻'), (186, '贴片超低阻值电阻'), (187, '贴片合金电阻'), (188, '贴片高精密、低温漂电阻'), (189, 'LED灯条电阻'), (190, '金属玻璃釉电阻'), (191, '采样电阻'), (192, '电容'), (193, '固态电解电容'), (194, '氧化铌电容'), (195, 'CL21电容'), (196, '聚酯薄膜电容'), (197, '超级电容器'), (198, '贴片电容'), (199, '钽电容'), (200, '贴片电解电容'), (201, '直插电解电容'), (202, '直插瓷片电容'), (203, '直插独石电容'), (204, '安规电容'), (205, '高压电容'), (206, '可调电容'), (207, '涤纶电容'), (208, 'CBB电容'), (209, '校正电容'), (210, '光耦/发光管/红外'), (211, '红外发射管'), (212, 'LED点阵'), (213, 'LCD液晶显示模块'), (214, '光电固态继电器'), (215, '光电可控硅'), (216, 'OLED显示模块'), (217, 'VFD显示模块'), (218, '菲涅尔透镜'), (219, 'IrDA红外收发器'), (220, '发光二极管'), (221, '红外接收管'), (222, '光电开关'), (223, '直插光耦'), (224, '贴片光耦'), (225, '硅光电池'), (226, 'LED数码管'), (227, '晶振'), (228, '49SMD晶振'), (229, '49S晶振'), (230, '49U晶振'), (231, '圆柱体晶振'), (232, '贴片有源晶振'), (233, '声表面谐振器'), (234, '陶瓷谐振器'), (235, '直插有源晶振'), (236, '贴片无源晶振'), (237, '晶体管'), (238, 'IGBT管'), (239, '晶体管'), (240, '数字三极管'), (241, '达林顿管'), (242, 'MOS'), (243, '可控硅'), (244, '三极管'), (245, '电感/磁珠/变压器'), (246, '色环电感'), (247, '工字电感'), (248, '电源变压器'), (249, '共模电感'), (250, '滤波器'), (251, '直插磁珠'), (252, '天线'), (253, '高频电感'), (254, '互感器'), (255, '低频电感'), (256, '贴片电感'), (257, '贴片磁珠'), (258, '网口变压器'), (259, '功率电感'), (260, '保险丝'), (261, '短路器'), (262, '断路器'), (263, '一次性保险丝'), (264, '直插保险丝'), (265, '贴片保险丝'), (266, '玻璃管保险丝'), (267, '保险丝夹/座'), (268, '按键开关/继电器'), (269, '拨动开关'), (270, '旋转编码开关'), (271, '带灯开关'), (272, '锅仔片'), (273, '继电器'), (274, '按键开关'), (275, '船型开关'), (276, '行程开关'), (277, '轻触开关'), (278, '拨码开关'), (279, '五向开关'), (280, '多功能开关'), (281, '蜂鸣器/扬声器/咪头'), (282, '咪头/硅麦'), (283, '扬声器'), (284, '蜂鸣器'), (285, '电源电池'), (286, '电池'), (287, '电池盒/电池座'), (288, '电源适配器'), (289, '五金类/其他'), (290, '硅胶'), (291, '螺丝'), (292, '螺柱'), (293, '散热器'), (294, '测试针'), (295, '导热胶'), (296, '电子辅料'), (297, '电路板DIY专区/书籍'), (298, '1.6双面覆铜FR-4玻纤板'), (299, 'PCB磨板砂纸'), (300, 'PCB设计书籍'), (301, '连接器'), (302, '音频连接器'), (303, '牛角连接器'), (304, 'CH连接器'), (305, 'VH连接器'), (306, 'PH连接器'), (307, 'XH连接器'), (308, '2EDG连接器'), (309, '15EDG连接器'), (310, '1.25T连接器'), (311, 'D-SUB连接器'), (312, '卡座'), (313, 'RJ11连接器'), (314, '排针'), (315, '排母'), (316, '短路帽'), (317, 'BNC连接器'), (318, 'PS2连接器'), (319, 'KF2510连接器'), (320, 'AV连接器'), (321, 'micro usb连接器'), (322, 'USB Type-C连接器'), (323, '杜邦'), (324, 'EH连接器'), (325, '光纤连接器'), (326, 'ZH连接器1.5mm'), (327, 'DVI连接器'), (328, '压线端子'), (329, 'RJ22连接器'), (330, 'HDMI连接器'), (331, '板对板连接器'), (332, 'IDC连接器'), (333, '香蕉头连接器'), (334, '夹子'), (335, '隔灯柱'), (336, 'IC座'), (337, '连接器'), (338, 'USB连接器'), (339, 'RJ45连接器'), (340, '接线端子'), (341, 'FPC连接器'), (342, 'DC连接器'), (343, '线材/焊接材料'), (344, 'FFC连接线'), (345, '信号线/数据线'), (346, '电源线'), (347, '焊锡丝'), (348, '电线'), (349, '助焊膏'), (350, '焊锡膏'), (351, '焊锡球'), (352, '助焊剂'), (353, '绿油'), (354, '红胶'), (355, '电子线及相关'), (356, '工具/辅材'), (357, '液态光学胶'), (358, '焊接工具'), (359, '测电笔'), (360, '胶水'), (361, 'UPS电源'), (362, '扣件'), (363, '导电银浆'), (364, '仪器'), (365, '黄胶'), (366, '化工辅材'), (367, '热缩管'), (368, '其他'), (369, '吸锡带'), (370, '刀具'), (371, '双面胶'), (372, '镊子'), (373, '治具'), (374, 'PVC膜'), (375, '酒精瓶'), (376, '螺丝刀/钳'), (377, '通用辅材'), (378, '万用表/仪表'), (379, '万用表表笔'), (380, '万用组合式零件盒'), (381, '马达'), (382, '微电机/马达'), (383, '万能板'), (384, '万能板'), (385, '面包板'), (1170, '未分类'), (1171, '未分类'), (1172, '高压电阻'), (1173, '温控开关'), (1180, '开发套件与仿真器'), (1179, '通讯模块'), (1181, 'SDRAM存储器'), (1182, '平衡-不平衡变压器'), (1183, 'RF 定向耦合器'), (1184, '贴片电阻'), (1185, '气体传感器'), (1186, '压力传感器'), (1187, '特殊功能放大器'), (1188, '触摸屏控制器'), (1189, 'PTC自恢复保险丝'), (1190, '测试点/测试环'), (1191, '焊接/快插端子'), (1192, 'AC电源插座'), (1193, '电池附件/弹片/弹簧'), (1194, '包装袋'), (1198, '射频'), (1195, '隔离柱及垫片'), (1196, '工程部二次分类--资料'), (1197, '工程部二次分类--型号'), (1199, '电感'), (1200, '光耦'), (1201, '线材'), (1202, '五金类'), (1203, '工具'), (1177, '低压差线性稳压(LDO)'), (1176, '连接器附件'), (1178, '传感器模块'), (1175, '交流接触器'), (1174, '开关插座'))
with operator.db.cursor() as cursor:
for i in old_old:
if i not in old:
sql = f"delete from lie_category where cat_id={i[0]}"
cursor.execute(sql)
operator.db.commit()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment