springboot调用第三方接口json转换成对象

  • 请求接口是一个比较常见的需求,接口返回一般是一个json类型,需要进行组装成对应的类,例
{
    "status_code": 200,
    "message": "success",
    "data": {
        "cost": 286.6933,
        "bom_list": [
            {
                "InvCode": "45601.0077",
                "cInvName": "12.8 OLED 16 pulse BSM",
                "cInvStd": "254.02*231.8 mm  12.8寸 16 pulse BSM",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0,
                "parentCode": "20103.0155",
                "totalPrice": 0
            },
            {
                "InvCode": "45001.0056",
                "cInvName": "连接器后盖",
                "cInvStd": "56*56mm ABS",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.7522,
                "parentCode": "20103.0155",
                "totalPrice": 1.7522
            },
            {
                "InvCode": "45101.0036",
                "cInvName": "Aries 连接器密封圈",
                "cInvStd": "硫化硅胶65° 黑色",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.67,
                "parentCode": "20103.0155",
                "totalPrice": 0.67
            },
            {
                "InvCode": "45505.0039",
                "cInvName": "Force ICS 泡棉支架L-新供应商",
                "cInvStd": "泡棉+双面胶(左)50.56*51.12*7.8mm",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.85,
                "parentCode": "20103.0155",
                "totalPrice": 0.85
            },
            {
                "InvCode": "45505.0040",
                "cInvName": "Force ICS 泡棉支架R-新供应商",
                "cInvStd": "泡棉+双面胶(右)20.63*52*7.8m",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.52,
                "parentCode": "20103.0155",
                "totalPrice": 0.52
            },
            {
                "InvCode": "45403.0011",
                "cInvName": "Force ICS导热片",
                "cInvStd": "24*12*1.2( YL-SP35-S,3w,白色)",
                "BaseQtyN": "4.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.52,
                "parentCode": "20103.0155",
                "totalPrice": 2.08
            },
            {
                "InvCode": "45301.0012",
                "cInvName": "T10头M3*L6细牙螺丝",
                "cInvStd": "PM-T10-M3*L6MM,P=0.35,加磁,渗碳,蓝白锌,盐雾48h",
                "BaseQtyN": "6.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0673,
                "parentCode": "20103.0155",
                "totalPrice": 0.4038
            },
            {
                "InvCode": "45401.0032",
                "cInvName": "Force ICS导电泡棉",
                "cInvStd": "10*10*10",
                "BaseQtyN": "4.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.13,
                "parentCode": "20103.0155",
                "totalPrice": 0.52
            },
            {
                "InvCode": "45801.0062",
                "cInvName": "FPC排线/12.8寸",
                "cInvStd": "一字型/80*25.5*0.3mm/50PIN/PIN距0.5mm/异面/带屏蔽层/带卡扣",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 5.34,
                "parentCode": "20103.0155",
                "totalPrice": 5.34
            },
            {
                "InvCode": "45801.0061",
                "cInvName": "FPC排线/12.8寸",
                "cInvStd": "一字型/50*20.5*0.3mm/40PIN/PIN距0.5mm/异面/带屏蔽层/带卡扣",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 3.219,
                "parentCode": "20103.0155",
                "totalPrice": 3.219
            },
            {
                "InvCode": "30101.0707",
                "cInvName": "PCBA",
                "cInvStd": "ICSCN15_MB_RD1_1/SMT PCBA",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0,
                "parentCode": "20103.0155",
                "totalPrice": 0
            },
            {
                "InvCode": "45504.0013",
                "cInvName": "静电袋",
                "cInvStd": "400*400*0.05mm/红色/开口长边",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.45,
                "parentCode": "20103.0155",
                "totalPrice": 0.45
            },
            {
                "InvCode": "45202.0052",
                "cInvName": "Pegasus ICS镁合金后盖",
                "cInvStd": "镁合金 AZ91D 240*262.22*77.13mm/银灰色",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 94.5,
                "parentCode": "20103.0155",
                "totalPrice": 94.5
            },
            {
                "InvCode": "45402.0004",
                "cInvName": "胶水",
                "cInvStd": "SiKa 698,300ml每支",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "400.000000",
                "CompScrap": ".000",
                "cInvDefine13": 481.4157,
                "parentCode": "20103.0155",
                "totalPrice": 1.2035
            },
            {
                "InvCode": "45506.0050",
                "cInvName": "贴纸",
                "cInvStd": "100x100mm,白色合成纸",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "8.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.16,
                "parentCode": "20103.0155",
                "totalPrice": 0.02
            },
            {
                "InvCode": "45506.0044",
                "cInvName": "标签纸",
                "cInvStd": "不干胶16*16mm",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.009,
                "parentCode": "20103.0155",
                "totalPrice": 0.009
            },
            {
                "InvCode": "45999.0020",
                "cInvName": "Force ICS保护膜",
                "cInvStd": "SL705U-1,阻抗10^9~10^11/230.2*252.4*0.06mm",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.78,
                "parentCode": "20103.0155",
                "totalPrice": 0.78
            },
            {
                "InvCode": "41301.0616",
                "cInvName": "PCB",
                "cInvStd": "ICSCN15_MB_RD1_1/4层板/1.6mm/沉金/绿色哑光/108*132",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0,
                "parentCode": "30101.0707",
                "totalPrice": 0
            },
            {
                "InvCode": "40201.0053",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "47pF/50V/±5%/C0G/0603/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0177,
                "parentCode": "30101.0707",
                "totalPrice": 0.0177
            },
            {
                "InvCode": "40201.0054",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "4.7NF/50V/±10%/X7R/0603/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0177,
                "parentCode": "30101.0707",
                "totalPrice": 0.0177
            },
            {
                "InvCode": "40201.0037",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "4.7uF/16V/±10%/X5R/0603/Automotive",
                "BaseQtyN": "3.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.075,
                "parentCode": "30101.0707",
                "totalPrice": 0.225
            },
            {
                "InvCode": "40201.0137",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "10uF/10V/±10%/X5R/0603/Automotive",
                "BaseQtyN": "5.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.1668,
                "parentCode": "30101.0707",
                "totalPrice": 0.834
            },
            {
                "InvCode": "40201.0022",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "22uF/10V/±20%/X6S/0805/Automotive",
                "BaseQtyN": "6.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.4312,
                "parentCode": "30101.0707",
                "totalPrice": 2.5872
            },
            {
                "InvCode": "40202.0010",
                "cInvName": "车规电解电容",
                "cInvStd": "22uF/50V/±20%/ECPA/φ6.3*5.7mm/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.177,
                "parentCode": "30101.0707",
                "totalPrice": 0.177
            },
            {
                "InvCode": "40202.0009",
                "cInvName": "车规电解电容",
                "cInvStd": "100uF/10V/±20%/ECPA/φ6.3*5.7mm/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.1858,
                "parentCode": "30101.0707",
                "totalPrice": 0.1858
            },
            {
                "InvCode": "40202.0001",
                "cInvName": "车规电解电容",
                "cInvStd": "330uF/35V/±20%/ECPA/φ10*10mm/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.4867,
                "parentCode": "30101.0707",
                "totalPrice": 0.4867
            },
            {
                "InvCode": "40101.0077",
                "cInvName": "车规电阻",
                "cInvStd": "0R/5%/1210/Automotive",
                "BaseQtyN": "6.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.036,
                "parentCode": "30101.0707",
                "totalPrice": 0.216
            },
            {
                "InvCode": "40101.0020",
                "cInvName": "车规电阻",
                "cInvStd": "1R/1%/0603/Automotive",
                "BaseQtyN": "4.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0089,
                "parentCode": "30101.0707",
                "totalPrice": 0.0356
            },
            {
                "InvCode": "40101.0123",
                "cInvName": "车规电阻",
                "cInvStd": "1R/1%/1210/0.5W/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.09,
                "parentCode": "30101.0707",
                "totalPrice": 0.09
            },
            {
                "InvCode": "40101.0051",
                "cInvName": "车规电阻",
                "cInvStd": "60.4R/1%/0805/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0086,
                "parentCode": "30101.0707",
                "totalPrice": 0.0172
            },
            {
                "InvCode": "40101.0038",
                "cInvName": "车规电阻",
                "cInvStd": "330R/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40101.0091",
                "cInvName": "车规电阻",
                "cInvStd": "390R/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40101.0023",
                "cInvName": "车规电阻",
                "cInvStd": "1K/5%/0603/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0037,
                "parentCode": "30101.0707",
                "totalPrice": 0.0074
            },
            {
                "InvCode": "40102.0511",
                "cInvName": "工规电阻",
                "cInvStd": "1.02K/0.1%/0402/Industrial",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.065,
                "parentCode": "30101.0707",
                "totalPrice": 0.065
            },
            {
                "InvCode": "40102.0513",
                "cInvName": "工规电阻",
                "cInvStd": "3.6K/0.1%/0402/Industrial",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.065,
                "parentCode": "30101.0707",
                "totalPrice": 0.065
            },
            {
                "InvCode": "40101.0094",
                "cInvName": "车规电阻",
                "cInvStd": "14.3K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40101.0076",
                "cInvName": "车规电阻",
                "cInvStd": "15K/1%/0603/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0045,
                "parentCode": "30101.0707",
                "totalPrice": 0.0045
            },
            {
                "InvCode": "40101.0095",
                "cInvName": "车规电阻",
                "cInvStd": "16.2K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40101.0010",
                "cInvName": "车规电阻",
                "cInvStd": "24K/1%/0402/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0054
            },
            {
                "InvCode": "40101.0011",
                "cInvName": "车规电阻",
                "cInvStd": "30K/1%/0402/Automotive",
                "BaseQtyN": "3.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0081
            },
            {
                "InvCode": "40101.0015",
                "cInvName": "车规电阻",
                "cInvStd": "100K/1%/0402/Automotive",
                "BaseQtyN": "11.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0297
            },
            {
                "InvCode": "40104.0003",
                "cInvName": "热敏电阻",
                "cInvStd": "NTC/10K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.11,
                "parentCode": "30101.0707",
                "totalPrice": 0.11
            },
            {
                "InvCode": "40301.0011",
                "cInvName": "车规电感",
                "cInvStd": "4.7uH/20%/5.5A/40mΩ/7.3*6.8*3.0mm/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.27,
                "parentCode": "30101.0707",
                "totalPrice": 1.27
            },
            {
                "InvCode": "40301.0009",
                "cInvName": "车规电感",
                "cInvStd": "10uH/20%/3A/105mΩ/7.3*6.8*3.0mm/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.27,
                "parentCode": "30101.0707",
                "totalPrice": 1.27
            },
            {
                "InvCode": "40301.0014",
                "cInvName": "车规电感",
                "cInvStd": "1uH/20%/11A/10mΩ/7.3*6.8*3.0mm/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.269,
                "parentCode": "30101.0707",
                "totalPrice": 2.538
            },
            {
                "InvCode": "40303.0010",
                "cInvName": "EMI抑制电感",
                "cInvStd": "Common-mode-choke/51uH/1812/CAN/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.1743,
                "parentCode": "30101.0707",
                "totalPrice": 1.1743
            },
            {
                "InvCode": "40301.0005",
                "cInvName": "车规电感",
                "cInvStd": "Common-mode-choke/90Ω_100MHZ/LVDS/2.0*1.2*1.2mm/Automotive",
                "BaseQtyN": "10.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.324,
                "parentCode": "30101.0707",
                "totalPrice": 3.24
            },
            {
                "InvCode": "40301.0030",
                "cInvName": "车规电感",
                "cInvStd": "Common-mode-choke/90Ω_100MHZ/LVDS/2.0*1.2*1.2mm/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.469,
                "parentCode": "30101.0707",
                "totalPrice": 0.469
            },
            {
                "InvCode": "40401.0007",
                "cInvName": "车规普通二极管",
                "cInvStd": "60V/5A/0.48V/SOT1289/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.21,
                "parentCode": "30101.0707",
                "totalPrice": 1.21
            },
            {
                "InvCode": "40401.0009",
                "cInvName": "车规普通二极管",
                "cInvStd": "6.8V/10mA/0.9V/SOD-123/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.09,
                "parentCode": "30101.0707",
                "totalPrice": 0.09
            },
            {
                "InvCode": "40402.0007",
                "cInvName": "车规稳压二极管",
                "cInvStd": "28V/1A/0.55V/SOD-123/Automotive",
                "BaseQtyN": "5.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.1283,
                "parentCode": "30101.0707",
                "totalPrice": 0.6415
            },
            {
                "InvCode": "40501.0006",
                "cInvName": "车规TVS管",
                "cInvStd": "ESD/24V/11pF/CAN/bothway/Dual/SOT23/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.3288,
                "parentCode": "30101.0707",
                "totalPrice": 0.3288
            },
            {
                "InvCode": "40501.0003",
                "cInvName": "车规TVS管",
                "cInvStd": "ESD/33V/1500W/bothway/SMC/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.7392,
                "parentCode": "30101.0707",
                "totalPrice": 0.7392
            },
            {
                "InvCode": "40501.0004",
                "cInvName": "车规TVS管",
                "cInvStd": "ESD/5V/150W/bothway/SOD-323/Automotive",
                "BaseQtyN": "3.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.3058,
                "parentCode": "30101.0707",
                "totalPrice": 0.9174
            },
            {
                "InvCode": "40501.0005",
                "cInvName": "车规TVS管",
                "cInvStd": "ESD/5V/0.35pF/bothway/0402/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.2369,
                "parentCode": "30101.0707",
                "totalPrice": 0.4738
            },
            {
                "InvCode": "40801.0003",
                "cInvName": "车规磁珠",
                "cInvStd": "600_100MHZ/25%/1A/0603/Automotive",
                "BaseQtyN": "13.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.1045,
                "parentCode": "30101.0707",
                "totalPrice": 1.3585
            },
            {
                "InvCode": "40701.0009",
                "cInvName": "车规MOS管",
                "cInvStd": "N_MOS/350mA/30V/SOT323/Automotive",
                "BaseQtyN": "9.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.169,
                "parentCode": "30101.0707",
                "totalPrice": 1.521
            },
            {
                "InvCode": "40701.0001",
                "cInvName": "车规MOS管",
                "cInvStd": "P_MOS/-4.2A/-30V/SOT-23/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.3,
                "parentCode": "30101.0707",
                "totalPrice": 0.6
            },
            {
                "InvCode": "41001.0008",
                "cInvName": "车规LED",
                "cInvStd": "2V/25mA/RED/0603/Industrial",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0655,
                "parentCode": "30101.0707",
                "totalPrice": 0.0655
            },
            {
                "InvCode": "41104.0023",
                "cInvName": "电源芯片",
                "cInvStd": "LDO/6.5V-3.3V/1A/HSOP-6J/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.8,
                "parentCode": "30101.0707",
                "totalPrice": 3.6
            },
            {
                "InvCode": "41104.0022",
                "cInvName": "电源芯片",
                "cInvStd": "LDO/36V-5V/200mA/HSOP-6J/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.7,
                "parentCode": "30101.0707",
                "totalPrice": 1.7
            },
            {
                "InvCode": "41104.0025",
                "cInvName": "电源芯片",
                "cInvStd": "LDO/10V-3.3V/300mA/SOT-23-5/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.72,
                "parentCode": "30101.0707",
                "totalPrice": 0.72
            },
            {
                "InvCode": "41104.0087",
                "cInvName": "电源芯片",
                "cInvStd": "DCDC/BUCK/3.5V-36V/3V-10V/3A/400KHZ/TQFN12/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 3.745,
                "parentCode": "30101.0707",
                "totalPrice": 3.745
            },
            {
                "InvCode": "41104.0049",
                "cInvName": "电源芯片",
                "cInvStd": "DCDC/36V-5V/6A/FC2QFN17/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 8.372,
                "parentCode": "30101.0707",
                "totalPrice": 16.744
            },
            {
                "InvCode": "41105.0084",
                "cInvName": "被动芯片",
                "cInvStd": "WATCHDOG/3.3V/SOT23-5/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 2.0708,
                "parentCode": "30101.0707",
                "totalPrice": 2.0708
            },
            {
                "InvCode": "41103.0058",
                "cInvName": "接口芯片",
                "cInvStd": "CAN-transceiver/WAKE-UP/SOP14/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 4.6,
                "parentCode": "30101.0707",
                "totalPrice": 4.6
            },
            {
                "InvCode": "41101.0013",
                "cInvName": "MCU单片机",
                "cInvStd": "MCU/CORTEX-M0/32BIT/80MHZ/LQFP80/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 15.622,
                "parentCode": "30101.0707",
                "totalPrice": 15.622
            },
            {
                "InvCode": "41105.0017",
                "cInvName": "被动芯片",
                "cInvStd": "Touch-IC/71*IOs/LQFP100/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 27.0259,
                "parentCode": "30101.0707",
                "totalPrice": 27.0259
            },
            {
                "InvCode": "41202.0014",
                "cInvName": "电源连接器",
                "cInvStd": "8PIN/DIP/180度直针/5A/2.5mm-pitch/Black",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 2.35,
                "parentCode": "30101.0707",
                "totalPrice": 2.35
            },
            {
                "InvCode": "41203.0329",
                "cInvName": "信号连接器",
                "cInvStd": "CONNECTOR/HMTD/2P/180度DIP/CODE-A",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 6.17,
                "parentCode": "30101.0707",
                "totalPrice": 6.17
            },
            {
                "InvCode": "41201.0013",
                "cInvName": "FPC连接器",
                "cInvStd": "FPC/卧式/下接/40PIN/500mA/0.5mm-pitch",
                "BaseQtyN": "3.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.4655,
                "parentCode": "30101.0707",
                "totalPrice": 4.3965
            },
            {
                "InvCode": "41201.0014",
                "cInvName": "FPC连接器",
                "cInvStd": "FPC/卧式/下接/50PIN/500mA/0.5mm-pitch",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 1.7242,
                "parentCode": "30101.0707",
                "totalPrice": 1.7242
            },
            {
                "InvCode": "45302.0001",
                "cInvName": "螺母",
                "cInvStd": "M3.0/φ8.0/H13.2mm",
                "BaseQtyN": "4.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.94,
                "parentCode": "30101.0707",
                "totalPrice": 3.76
            },
            {
                "InvCode": "41105.0354",
                "cInvName": "被动芯片",
                "cInvStd": "Deserializer/OLDI 420M/QFN88/CS3.0P",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 49.6496,
                "parentCode": "30101.0707",
                "totalPrice": 49.6496
            },
            {
                "InvCode": "40101.0029",
                "cInvName": "车规电阻",
                "cInvStd": "100R/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40101.0070",
                "cInvName": "车规电阻",
                "cInvStd": "2K/1%/0402/Automotive",
                "BaseQtyN": "71.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.1917
            },
            {
                "InvCode": "40901.0004",
                "cInvName": "车规无源晶振",
                "cInvStd": "27MHZ/8pF/15ppm/3325/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.8142,
                "parentCode": "30101.0707",
                "totalPrice": 0.8142
            },
            {
                "InvCode": "40101.0071",
                "cInvName": "车规电阻",
                "cInvStd": "4.7K/1%/0402/Automotive",
                "BaseQtyN": "13.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0351
            },
            {
                "InvCode": "40101.0072",
                "cInvName": "车规电阻",
                "cInvStd": "10K/1%/0402/Automotive",
                "BaseQtyN": "27.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0729
            },
            {
                "InvCode": "40201.0102",
                "cInvName": "车规电容",
                "cInvStd": "220nF/25V/±10%/X7R/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0552,
                "parentCode": "30101.0707",
                "totalPrice": 0.0552
            },
            {
                "InvCode": "40201.0094",
                "cInvName": "车规电容",
                "cInvStd": "15pF/50V/±5%/C0G/0402/Automotive",
                "BaseQtyN": "5.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0162,
                "parentCode": "30101.0707",
                "totalPrice": 0.081
            },
            {
                "InvCode": "40201.0091",
                "cInvName": "车规电容",
                "cInvStd": "47pF/50V/±5%/C0G/0402/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0176,
                "parentCode": "30101.0707",
                "totalPrice": 0.0352
            },
            {
                "InvCode": "40101.0093",
                "cInvName": "车规电阻",
                "cInvStd": "13.3K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40201.0051",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "1uF/10V/±10%/X5R/0402/Automotive",
                "BaseQtyN": "23.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.025,
                "parentCode": "30101.0707",
                "totalPrice": 0.575
            },
            {
                "InvCode": "40101.0183",
                "cInvName": "车规电阻",
                "cInvStd": "300K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40201.0029",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "100nF/50V/±10%/X7R/0603/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0627,
                "parentCode": "30101.0707",
                "totalPrice": 0.1254
            },
            {
                "InvCode": "40101.0184",
                "cInvName": "车规电阻",
                "cInvStd": "200K/1%/0402/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0054
            },
            {
                "InvCode": "40101.0196",
                "cInvName": "车规电阻",
                "cInvStd": "1K/1%/0402/Automotive",
                "BaseQtyN": "18.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0486
            },
            {
                "InvCode": "40101.0198",
                "cInvName": "车规电阻",
                "cInvStd": "0R/5%/0402/Automotive",
                "BaseQtyN": "7.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0021,
                "parentCode": "30101.0707",
                "totalPrice": 0.0147
            },
            {
                "InvCode": "40201.0019",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "2.2uF/16V/±10%/X5R/0603/Automotive",
                "BaseQtyN": "10.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0381,
                "parentCode": "30101.0707",
                "totalPrice": 0.381
            },
            {
                "InvCode": "40201.0017",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "10uF/50V/±10%/X5R/1206/Automotive",
                "BaseQtyN": "8.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.2909,
                "parentCode": "30101.0707",
                "totalPrice": 2.3272
            },
            {
                "InvCode": "40201.0011",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "1uF/50V/±10%/X5R/0603/Automotive",
                "BaseQtyN": "3.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0761,
                "parentCode": "30101.0707",
                "totalPrice": 0.2283
            },
            {
                "InvCode": "40101.0199",
                "cInvName": "车规电阻",
                "cInvStd": "33R/5%/0402/Automotive",
                "BaseQtyN": "23.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0021,
                "parentCode": "30101.0707",
                "totalPrice": 0.0483
            },
            {
                "InvCode": "40201.0008",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "100nF/50V/±10%/X7R/0402/Automotive",
                "BaseQtyN": "78.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0175,
                "parentCode": "30101.0707",
                "totalPrice": 1.365
            },
            {
                "InvCode": "40101.0200",
                "cInvName": "车规电阻",
                "cInvStd": "0R/1%/0805/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0086,
                "parentCode": "30101.0707",
                "totalPrice": 0.0172
            },
            {
                "InvCode": "40201.0006",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "10NF/50V/±10%/X7R/0402/Automotive",
                "BaseQtyN": "12.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0109,
                "parentCode": "30101.0707",
                "totalPrice": 0.1308
            },
            {
                "InvCode": "40201.0004",
                "cInvName": "车规陶瓷电容",
                "cInvStd": "1nF/50V/±10%/X7R/0402/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0109,
                "parentCode": "30101.0707",
                "totalPrice": 0.0218
            },
            {
                "InvCode": "40101.0202",
                "cInvName": "车规电阻",
                "cInvStd": "0R/5%/0603/Automotive",
                "BaseQtyN": "3.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0037,
                "parentCode": "30101.0707",
                "totalPrice": 0.0111
            },
            {
                "InvCode": "40101.0217",
                "cInvName": "车规电阻",
                "cInvStd": "10K/0.1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0,
                "parentCode": "30101.0707",
                "totalPrice": 0
            },
            {
                "InvCode": "40101.0214",
                "cInvName": "车规电阻",
                "cInvStd": "2.2K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40101.0210",
                "cInvName": "车规电阻",
                "cInvStd": "1M/1%/0402/Automotive",
                "BaseQtyN": "2.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0054
            },
            {
                "InvCode": "40101.0086",
                "cInvName": "车规电阻",
                "cInvStd": "12K/1%/0402/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.0027,
                "parentCode": "30101.0707",
                "totalPrice": 0.0027
            },
            {
                "InvCode": "40901.0024",
                "cInvName": "车规无源晶振",
                "cInvStd": "16MHZ/8pF/30ppm/3225/Automotive",
                "BaseQtyN": "1.000000",
                "BaseQtyD": "1.000000",
                "CompScrap": ".000",
                "cInvDefine13": 0.791,
                "parentCode": "30101.0707",
                "totalPrice": 0.791
            }
        ]
    }
}
  • 上面的接口返回,我们只需要将data中的数据封装成一个对象类,我们想封装一个list中的对象
public class BomCost implements Serializable {
    private String InvCode;
    private String cInvName;
    private String cInvStd;
    private BigDecimal BaseQtyN;
    private BigDecimal BaseQtyD;
    private BigDecimal CompScrap;
    private BigDecimal cInvDefine13;
    private String parentCode;
    private BigDecimal totalPrice;
}
  • 封装data中数据对应对象
public class MaterialCost {
    private BigDecimal cost;
    private List<BomCost> bom_list;
}
  • 现在将接口的data数据封装到对象MaterialCost
    public MaterialCost one(String code) throws JsonProcessingException {
        RestTemplate restTemplate = new RestTemplate();
        String url = "xxxxxxxx?code={?}";
        ResponseEntity<String> entity = restTemplate.getForEntity(url, String.class, code);
        JSONObject jsonArray = JSONArray.parseObject(entity.getBody());
        JSONObject data = jsonArray.getJSONObject("data");
        System.out.println(data.getBigDecimal("cost"));
        JSONArray bom_list = data.getJSONArray("bom_list");
        MaterialCost materialCost = new MaterialCost();
        materialCost.setCost(data.getBigDecimal("cost"));
        List<BomCost> bomCostList = new ArrayList<>();
        for (Object o : bom_list) {
            BomCost bomCost = new BomCost();
            JSONObject object = JSONArray.parseObject(o.toString());
            bomCost.setInvCode(object.getString("InvCode"));
            bomCost.setCInvName(object.getString("cInvName"));
            bomCost.setCInvStd(object.getString("cInvStd"));
            bomCost.setParentCode(object.getString("parentCode"));
            bomCost.setBaseQtyN(object.getBigDecimal("BaseQtyN"));
            bomCost.setBaseQtyD(object.getBigDecimal("BaseQtyD"));
            bomCost.setCompScrap(object.getBigDecimal("CompScrap"));
            bomCost.setCInvDefine13(object.getBigDecimal("cInvDefine13"));
            bomCost.setTotalPrice(object.getBigDecimal("totalPrice"));
            bomCostList.add(bomCost);
        }
        materialCost.setBom_list(bomCostList);
        return materialCost;
    }
  • 封装后的结果,跟接口数据一致
    在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/133663.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

人工智能基础——Python:Matplotlib与绘图设计

人工智能的学习之路非常漫长&#xff0c;不少人因为学习路线不对或者学习内容不够专业而举步难行。不过别担心&#xff0c;我为大家整理了一份600多G的学习资源&#xff0c;基本上涵盖了人工智能学习的所有内容。点击下方链接,0元进群领取学习资源,让你的学习之路更加顺畅!记得…

使用ResponseSelector实现校园招聘FAQ机器人

本文主要介绍使用ResponseSelector实现校园招聘FAQ机器人&#xff0c;回答面试流程和面试结果查询的FAQ问题。FAQ机器人功能分为业务无关的功能和业务相关的功能2类。 一.data/nlu.yml文件   与普通意图相比&#xff0c;ResponseSelector训练数据中的意图采用group/intent格…

Vue 3 打印解决方案:Vue-Plugin-HiPrint

文章目录 1. Vue-Plugin-HiPrint 简介2. 安装和使用2.1 安装2.2 引入并注册插件2.3 在组件中使用 3. 配置和高级用法4. 示例应用5. 总结 &#x1f389;欢迎来到Java学习路线专栏~Vue 3 打印解决方案&#xff1a;Vue-Plugin-HiPrint ☆* o(≧▽≦)o *☆嗨~我是IT陈寒&#x1f37…

x3daudio1_7.dll怎么解决?x3daudio1_7.dll丢失的5个详细处理方法

首先&#xff0c;让我们来了解一下X3DAudio1_7.dll丢失的原因。X3DAudio1_7.dll是一个非常重要的动态链接库文件&#xff0c;它负责处理计算机中的音频输出。然而&#xff0c;由于各种原因&#xff0c;例如软件安装错误、病毒感染、系统升级等&#xff0c;我们可能会遇到X3DAud…

超强C语言跨年烟花代码,精美无比,附源码分步解析

现在大家是不是都觉得程序员不懂浪漫&#xff1f;那真的大错特错&#xff0c;今天就让你们看看什么是程序员的浪漫&#xff01; 我们今天就来写写《烟花》表白程序&#xff0c;不要惊讶&#xff0c;不要激动&#xff0c;学会了快去拿给心中的那个人看&#xff01;&#xff01;…

【论文解读】针对生成任务的多模态图学习

一、简要介绍 多模态学习结合了多种数据模式&#xff0c;拓宽了模型可以利用的数据的类型和复杂性&#xff1a;例如&#xff0c;从纯文本到图像映射对。大多数多模态学习算法专注于建模来自两种模式的简单的一对一数据对&#xff0c;如图像-标题对&#xff0c;或音频文本对。然…

玩转ansible之参数调试和文件操作篇

更多IT技术文章&#xff0c;欢迎关注微信公众号“运维之美” 玩转ansible之参数调试和文件操作篇 01 剧本调试和帮助02 使用场景举例 上节我们学习了使用ansible进行软件安装&#xff0c;那么安装完软件后&#xff0c;就需要linux系统和软件配置修改了&#xff0c;对于linux主机…

Java程序设计2023-第八次上机练习

8-1简单文本编辑器 编写简单文本编辑器&#xff0c;该程序可以新建、打开、编辑和保存文本文件。当用户点击New时&#xff0c;新建一个文件&#xff0c;用户可以编辑文件内容&#xff0c;然后点击Save保存文件。用户点击Open时&#xff0c;选择一个已有文件&#xff0c;然后可…

leetcode:206. 反转链表

一、题目 函数原型&#xff1a; struct ListNode* reverseList(struct ListNode* head) 二、思路 要对链表进行反转&#xff0c;可以有两种方法&#xff1a; 1.改变链表中每个结点之间的指针域指向&#xff0c;最后返回尾结点即可。 2.新建一个链表&#xff0c;将原链表中的结点…

gorm之项目实战-使用gen以及定义表间关系

gorm之项目实战 ER图 关系整理 一对一关系&#xff1a; User 和 UserLog&#xff1a; 一个用户对应一个用户日志&#xff0c;通过 User 模型的主键与 UserLog 模型的外键建立一对一关系。 一对多关系&#xff1a; User 和 Teacher&#xff1a; 一个用户可以对应多个老师&…

win10网络和Internet设置

win10网络设置 win10进入网络设置的常用入口有两个 第一个入口 桌面右下角右键网络图标&#xff0c;然后打开“网络和Internt设置” 第二个入口 桌面的“我的网络”快捷方式&#xff0c;或者我的电脑进去后&#xff0c;左侧栏找到“网络” 右键“属性” 可以看到&#xff0c;…

【论文阅读VLDB13】Online, Asynchronous Schema Change in F1

Online, Asynchronous Schema Change in F1 ABSTRACT 在一个globally 分布式数据库&#xff0c;with shared data, stateless servers, and no global membership.进行一个schema演变。证明许多常见的模式更改可能会导致异常和数据库损坏&#xff0c;通过将破坏引起的模式更改…

Git 命令详解

系列文章目录 C高性能优化编程系列 深入理解软件架构设计系列 高级C并发线程编程 C技能系列 期待你的关注哦&#xff01;&#xff01;&#xff01; 现在的一切都是为将来的梦想编织翅膀&#xff0c;让梦想在现实中展翅高飞。 Now everything is for the future of dream we…

消息队列简介

消息队列 在认识rabbitMQ之前&#xff0c;我们需要先认识下消息队列。 消息队列&#xff0c;一般简称为MQ&#xff08;Message Queue&#xff09;。先不管消息(Message)这个词&#xff0c;先看看队列(Queue)。 队列就是一种先进先出的数据结构。 所以消息队列可以简单理解为&a…

rasa train nlu详解:1.2-_train_graph()函数

本文使用《使用ResponseSelector实现校园招聘FAQ机器人》中的例子&#xff0c;主要详解介绍_train_graph()函数中变量的具体值。 一.rasa/model_training.py/_train_graph()函数   _train_graph()函数实现&#xff0c;如下所示&#xff1a; def _train_graph(file_importer…

Kubernetes基础(七)-Pod资源Limits与Requests

在k8s的集群环境中&#xff0c;资源的合理分配和使用非常重要。毕竟容器化要解决的问题之一就是资源的充分利用。在集群中分配资源的时候就不得不提到Limits和Requests。 1 Namespace配额 Kubernetes 是允许管理员在命名空间中指定资源 Requests 和 Limits 的&#xff0c;这一…

Linux输入与输出设备的管理

计算机系统中CPU 并不直接和设备打交道&#xff0c;它们中间有一个叫作设备控制器&#xff08;Device Control Unit&#xff09;的组件&#xff0c;例如硬盘有磁盘控制器、USB 有 USB 控制器、显示器有视频控制器等。这些控制器就像代理商一样&#xff0c;它们知道如何应对硬盘…

Python 使用tkinter的Menu菜单command参数与bind方法共用触发事件

用普通函数作为媒介&#xff0c;使用event_generate()方法模拟触发bind()事件来创建一个模拟的event对象&#xff0c;并将其传递给绑定的事件处理函数。 运行结果 示例代码 import tkinter as tk# 菜单事件 def menuEvent(event):print(event.x, event.y)label.config(textf鼠…

HIKVISION流媒体管理服务器后台任意文件读取漏洞

默认账号密码为 admin/12345 构造payload /systemLog/downFile.php?fileName../../../../../../../../../../../../../../../windows/system.ini漏洞证明 文笔生疏&#xff0c;措辞浅薄&#xff0c;望各位大佬不吝赐教&#xff0c;万分感谢。 免责声明&#xff1a;由于传播…

Yum配置、相关命令和常见问题

搭建光盘源 将系统盘读取出来&#xff0c;找到系统盘下存放软件包的目录 2.配置yun仓库 输入命令进入仓库编辑 #必须以.repo结尾 :wq 回车保存退出 3.命令行输入yum repolist 查看yum仓库 配置硬盘源 1.将硬盘源拷贝到目录&#xff0c;或者挂载到目录 2.指定repo文件baseu…