<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ho.td.mapper.DeviceSimpleMapper">

    <insert id="insertDeviceSimple">
        insert into device_simple_${tableName}
        (ts, createTime,
         YX0001,
         YX0002,
         YX0003,
         YX0004,
         YX0005,
         YX0006,
         YX0007,
         YX0008,
         YX0009,
         YX0010,
         YX0011,
         YX0012,
         YX0013,
         YX0014,
         YX0015,
         YX0016,
         YX0017,
         YX0018,
         YX0019,
         YX0020,
         YX0021,
         YX0022,
         YX0023,
         YX0024,
         YX0025,
         YX0026,
         YX0027,
         YX0028,
         YX0029,
         YX0030,
         YX0031,
         YX0032,
         YX0033,
         YX0034,
         YX0035,
         YX0036,
         YX0037,
         YX0038,
         YX0039,
         YX0040,
         YX0041
         YX0042,
         YX0043,
         YX0044,
         YX0045,
         YX0046,
         YX0047,
         YX0048,
         YX0049,
         YX0050,
         YX0051,
         YX0052,
         YX0053,
         YX0054,
         YX0055,
         YX0056,
         YX0057,
         YX0058,
         YX0059,
         YX0060,
         YX0061,
         YX0062,
         YX0063,
         YX0064,
         YX0065,
         YX0066,
         YX0067,
         YX0068,
         YX0069,
         YX0070,
         YX0071,
         YX0072,
         YX0073,
         YX0074,
         YX0075,
         YX0076,
         YX0077,
         YX0078,
         YX0079,
         YX0080,
         YX0081,
         YX0082,
         YX0083,
         YX0084,
         YX0085,
         YX0086,
         YX0087,
         YX0088,
         YX0089,
         YX0090,
         YX0091,
         YX0092,
         YX0093,
         YX0094,
         YX0095,
         YX0096,
         YX0097,
         YX0098,
         YX0099,
         YX0100,
         YX0101,
         YX0102,
         YX0103,
         YX0104,
         YX0105,
         YX0106,
         YX0107,
         YX0108,
         YX0109,
         YX0110,
         YX0111,
         YX0112,
         YX0113,
         YX0114,
         YX0115,
         YX0116,
         YX0117,
         YX0118,
         YX0119,
         YX0120,
         YX0121,
         YX0122,
         YX0123,
         YX0124,
         YX0125,
         YX0126,
         YX0127,
         YX0128,
         YX0129,
         YX0130,
         YX0131,
         YX0132,
         YX0133,
         YX0134,
         YX0135,
         YX0136,
         YX0137,
         YX0138,
         YX0139,
         YX0140,
         YX0141,
         YX0142,
         YX0143,
         YX0144,
         YX0145,
         YX0146,
         YX0147,
         YX0148,
         YX0149,
         YX0150,
         YX0151,
         YX0152,
         YX0153,
         YX0154,
         YX0155,
         YX0156,
         YX0157,
         YX0158,
         YX0159,
         YX0160,
         YX0161,
         YX0162,
         YX0163,
         YX0164,
         YX0165,
         YX0166,
         YX0167,
         YX0168,
         YX0169,
         YX0170,
         YX0171,
         YX0172,
         YX0173,
         YX0174,
         YX0175,
         YX0176,
         YX0177,
         YX0178,
         YX0179,
         YX0180,
         YX0181,
         YX0182,
         YX0183,
         YX0184,
         YX0185,
         YX0186,
         YX0187,
         YX0188,
         YX0189,
         YX0190,
         YX0191,
         YX0192,
         YX0193,
         YX0194,
         YX0195,
         YX0196,
         YX0197,
         YX0198,
         YX0199,
         YX0200,
         YC0001,
         YC0002,
         YC0003,
         YC0004,
         YC0005,
         YC0006,
         YC0007,
         YC0008,
         YC0009,
         YC0010,
         YC0011,
         YC0012,
         YC0013,
         YC0014,
         YC0015,
         YC0016,
         YC0017,
         YC0018,
         YC0019,
         YC0020,
         YC0021,
         YC0022,
         YC0023,
         YC0024,
         YC0025,
         YC0026,
         YC0027,
         YC0028,
         YC0029,
         YC0030,
         YC0031,
         YC0032,
         YC0033,
         YC0034,
         YC0035,
         YC0036,
         YC0037,
         YC0038,
         YC0039,
         YC0040,
         YC0041,
         YC0042,
         YC0043,
         YC0044,
         YC0045,
         YC0046,
         YC0047,
         YC0048,
         YC0049,
         YC0050,
         YC0051,
         YC0052,
         YC0053,
         YC0054,
         YC0055,
         YC0056,
         YC0057,
         YC0058,
         YC0059,
         YC0060,
         YC0061,
         YC0062,
         YC0063,
         YC0064,
         YC0065,
         YC0066,
         YC0067,
         YC0068,
         YC0069,
         YC0070,
         YC0071,
         YC0072,
         YC0073,
         YC0074,
         YC0075,
         YC0076,
         YC0077,
         YC0078,
         YC0079,
         YC0080,
         YC0081,
         YC0082,
         YC0083,
         YC0084,
         YC0085,
         YC0086,
         YC0087,
         YC0088,
         YC0089,
         YC0090,
         YC0091,
         YC0092,
         YC0093,
         YC0094,
         YC0095,
         YC0096,
         YC0097,
         YC0098,
         YC0099,
         YC0100,
         YC0101,
         YC0102,
         YC0103,
         YC0104,
         YC0105,
         YC0106,
         YC0107,
         YC0108,
         YC0109,
         YC0110,
         YC0111,
         YC0112,
         YC0113,
         YC0114,
         YC0115,
         YC0116,
         YC0117,
         YC0118,
         YC0119,
         YC0120,
         YC0121,
         YC0122,
         YC0123,
         YC0124,
         YC0125,
         YC0126,
         YC0127,
         YC0128,
         YC0129,
         YC0130,
         YC0131,
         YC0132,
         YC0133,
         YC0134,
         YC0135,
         YC0136,
         YC0137,
         YC0138,
         YC0139,
         YC0140,
         YC0141,
         YC0142,
         YC0143,
         YC0144,
         YC0145,
         YC0146,
         YC0147,
         YC0148,
         YC0149,
         YC0150,
         YC0151,
         YC0152,
         YC0153,
         YC0154,
         YC0155,
         YC0156,
         YC0157,
         YC0158,
         YC0159,
         YC0160,
         YC0161,
         YC0162,
         YC0163,
         YC0164,
         YC0165,
         YC0166,
         YC0167,
         YC0168,
         YC0169,
         YC0170,
         YC0171,
         YC0172,
         YC0173,
         YC0174,
         YC0175,
         YC0176,
         YC0177,
         YC0178,
         YC0179,
         YC0180,
         YC0181,
         YC0182,
         YC0183,
         YC0184,
         YC0185,
         YC0186,
         YC0187,
         YC0188,
         YC0189,
         YC0190,
         YC0191,
         YC0192,
         YC0193,
         YC0194,
         YC0195,
         YC0196,
         YC0197,
         YC0198,
         YC0199,
         YC0200,
         YC0201,
         YC0202,
         YC0203,
         YC0204,
         YC0205,
         YC0206,
         YC0207,
         YC0208,
         YC0209,
         YC0210,
         YC0211,
         YC0212,
         YC0213,
         YC0214,
         YC0215,
         YC0216,
         YC0217,
         YC0218,
         YC0219,
         YC0220,
         YC0221,
         YC0222,
         YC0223,
         YC0224,
         YC0225,
         YC0226,
         YC0227,
         YC0228,
         YC0229,
         YC0230,
         YC0231,
         YC0232,
         YC0233,
         YC0234,
         YC0235,
         YC0236,
         YC0237,
         YC0238,
         YC0239,
         YC0240,
         YC0241,
         YC0242,
         YC0243,
         YC0244,
         YC0245,
         YC0246,
         YC0247,
         YC0248,
         YC0249,
         YC0250,
         YC0251,
         YC0252,
         YC0253,
         YC0254,
         YC0255,
         YC0256,
         YC0257,
         YC0258,
         YC0259,
         YC0260,
         YC0261,
         YC0262,
         YC0263,
         YC0264,
         YC0265,
         YC0266,
         YC0267,
         YC0268,
         YC0269,
         YC0270,
         YC0271,
         YC0272,
         YC0273,
         YC0274,
         YC0275,
         YC0276,
         YC0277,
         YC0278,
         YC0279,
         YC0280,
         YC0281,
         YC0282,
         YC0283,
         YC0284,
         YC0285,
         YC0286,
         YC0287,
         YC0288,
         YC0289,
         YC0290,
         YC0291,
         YC0292,
         YC0293,
         YC0294,
         YC0295,
         YC0296,
         YC0297,
         YC0298,
         YC0299,
         YC0300,
         YK0001,
         YK0002,
         YK0003,
         YK0004,
         YK0005,
         YK0006,
         YK0007,
         YK0008,
         YK0009,
         YK0010,
         YK0011,
         YK0012,
         YK0013,
         YK0014,
         YK0015,
         YK0016,
         YK0017,
         YK0018,
         YK0019,
         YK0020,
         YK0021,
         YK0022,
         YK0023,
         YK0024,
         YK0025,
         YK0026,
         YK0027,
         YK0028,
         YK0029,
         YK0030,
         YK0031,
         YK0032,
         YK0033,
         YK0034,
         YK0035,
         YK0036,
         YK0037,
         YK0038,
         YK0039,
         YK0040,
         YK0041,
         YK0042,
         YK0043,
         YK0044,
         YK0045,
         YK0046,
         YK0047,
         YK0048,
         YK0049,
         YK0050,
         YK0051,
         YK0052,
         YK0053,
         YK0054,
         YK0055,
         YK0056,
         YK0057,
         YK0058,
         YK0059,
         YK0060,
         YK0061,
         YK0062,
         YK0063,
         YK0064,
         YK0065,
         YK0066,
         YK0067,
         YK0068,
         YK0069,
         YK0070,
         YK0071,
         YK0072,
         YK0073,
         YK0074,
         YK0075,
         YK0076,
         YK0077,
         YK0078,
         YK0079,
         YK0080,
         YK0081,
         YK0082,
         YK0083,
         YK0084,
         YK0085,
         YK0086,
         YK0087,
         YK0088,
         YK0089,
         YK0090,
         YK0091,
         YK0092,
         YK0093,
         YK0094,
         YK0095,
         YK0096,
         YK0097,
         YK0098,
         YK0099,
         YK0100,
         YK0101,
         YK0102,
         YK0103,
         YK0104,
         YK0105,
         YK0106,
         YK0107,
         YK0108,
         YK0109,
         YK0110,
         YK0111,
         YK0112,
         YK0113,
         YK0114,
         YK0115,
         YK0116,
         YK0117,
         YK0118,
         YK0119,
         YK0120,
         YK0121,
         YK0122,
         YK0123,
         YK0124,
         YK0125,
         YK0126,
         YK0127,
         YK0128,
         YK0129,
         YK0130,
         YK0131,
         YK0132,
         YK0133,
         YK0134,
         YK0135,
         YK0136,
         YK0137,
         YK0138,
         YK0139,
         YK0140,
         YK0141,
         YK0142,
         YK0143,
         YK0144,
         YK0145,
         YK0146,
         YK0147,
         YK0148,
         YK0149,
         YK0150)
            using s_device_simple
        tags(#{groupId},#{stationId} ,#{srcId})
        values (
            #{device.ts},
            now(),
            #{device.YX0001},
            #{device.YX0002},
            #{device.YX0003},
            #{device.YX0004},
            #{device.YX0005},
            #{device.YX0006},
            #{device.YX0007},
            #{device.YX0008},
            #{device.YX0009},
            #{device.YX0010},
            #{device.YX0011},
            #{device.YX0012},
            #{device.YX0013},
            #{device.YX0014},
            #{device.YX0015},
            #{device.YX0016},
            #{device.YX0017},
            #{device.YX0018},
            #{device.YX0019},
            #{device.YX0020},
            #{device.YX0021},
            #{device.YX0022},
            #{device.YX0023},
            #{device.YX0024},
            #{device.YX0025},
            #{device.YX0026},
            #{device.YX0027},
            #{device.YX0028},
            #{device.YX0029},
            #{device.YX0030},
            #{device.YX0031},
            #{device.YX0032},
            #{device.YX0033},
            #{device.YX0034},
            #{device.YX0035},
            #{device.YX0036},
            #{device.YX0037},
            #{device.YX0038},
            #{device.YX0039},
            #{device.YX0040},
            #{device.YX0041},
            #{device.YX0042},
            #{device.YX0043},
            #{device.YX0044},
            #{device.YX0045},
            #{device.YX0046},
            #{device.YX0047},
            #{device.YX0048},
            #{device.YX0049},
            #{device.YX0050},
            #{device.YX0051},
            #{device.YX0052},
            #{device.YX0053},
            #{device.YX0054},
            #{device.YX0055},
            #{device.YX0056},
            #{device.YX0057},
            #{device.YX0058},
            #{device.YX0059},
            #{device.YX0060},
            #{device.YX0061},
            #{device.YX0062},
            #{device.YX0063},
            #{device.YX0064},
            #{device.YX0065},
            #{device.YX0066},
            #{device.YX0067},
            #{device.YX0068},
            #{device.YX0069},
            #{device.YX0070},
            #{device.YX0071},
            #{device.YX0072},
            #{device.YX0073},
            #{device.YX0074},
            #{device.YX0075},
            #{device.YX0076},
            #{device.YX0077},
            #{device.YX0078},
            #{device.YX0079},
            #{device.YX0080},
            #{device.YX0081},
            #{device.YX0082},
            #{device.YX0083},
            #{device.YX0084},
            #{device.YX0085},
            #{device.YX0086},
            #{device.YX0087},
            #{device.YX0088},
            #{device.YX0089},
            #{device.YX0090},
            #{device.YX0091},
            #{device.YX0092},
            #{device.YX0093},
            #{device.YX0094},
            #{device.YX0095},
            #{device.YX0096},
            #{device.YX0097},
            #{device.YX0098},
            #{device.YX0099},
            #{device.YX0100},
            #{device.YX0101},
            #{device.YX0102},
            #{device.YX0103},
            #{device.YX0104},
            #{device.YX0105},
            #{device.YX0106},
            #{device.YX0107},
            #{device.YX0108},
            #{device.YX0109},
            #{device.YX0110},
            #{device.YX0111},
            #{device.YX0112},
            #{device.YX0113},
            #{device.YX0114},
            #{device.YX0115},
            #{device.YX0116},
            #{device.YX0117},
            #{device.YX0118},
            #{device.YX0119},
            #{device.YX0120},
            #{device.YX0121},
            #{device.YX0122},
            #{device.YX0123},
            #{device.YX0124},
            #{device.YX0125},
            #{device.YX0126},
            #{device.YX0127},
            #{device.YX0128},
            #{device.YX0129},
            #{device.YX0130},
            #{device.YX0131},
            #{device.YX0132},
            #{device.YX0133},
            #{device.YX0134},
            #{device.YX0135},
            #{device.YX0136},
            #{device.YX0137},
            #{device.YX0138},
            #{device.YX0139},
            #{device.YX0140},
            #{device.YX0141},
            #{device.YX0142},
            #{device.YX0143},
            #{device.YX0144},
            #{device.YX0145},
            #{device.YX0146},
            #{device.YX0147},
            #{device.YX0148},
            #{device.YX0149},
            #{device.YX0150},
            #{device.YX0151},
            #{device.YX0152},
            #{device.YX0153},
            #{device.YX0154},
            #{device.YX0155},
            #{device.YX0156},
            #{device.YX0157},
            #{device.YX0158},
            #{device.YX0159},
            #{device.YX0160},
            #{device.YX0161},
            #{device.YX0162},
            #{device.YX0163},
            #{device.YX0164},
            #{device.YX0165},
            #{device.YX0166},
            #{device.YX0167},
            #{device.YX0168},
            #{device.YX0169},
            #{device.YX0170},
            #{device.YX0171},
            #{device.YX0172},
            #{device.YX0173},
            #{device.YX0174},
            #{device.YX0175},
            #{device.YX0176},
            #{device.YX0177},
            #{device.YX0178},
            #{device.YX0179},
            #{device.YX0180},
            #{device.YX0181},
            #{device.YX0182},
            #{device.YX0183},
            #{device.YX0184},
            #{device.YX0185},
            #{device.YX0186},
            #{device.YX0187},
            #{device.YX0188},
            #{device.YX0189},
            #{device.YX0190},
            #{device.YX0191},
            #{device.YX0192},
            #{device.YX0193},
            #{device.YX0194},
            #{device.YX0195},
            #{device.YX0196},
            #{device.YX0197},
            #{device.YX0198},
            #{device.YX0199},
            #{device.YX0200},
            #{device.YC0001},
            #{device.YC0002},
            #{device.YC0003},
            #{device.YC0004},
            #{device.YC0005},
            #{device.YC0006},
            #{device.YC0007},
            #{device.YC0008},
            #{device.YC0009},
            #{device.YC0010},
            #{device.YC0011},
            #{device.YC0012},
            #{device.YC0013},
            #{device.YC0014},
            #{device.YC0015},
            #{device.YC0016},
            #{device.YC0017},
            #{device.YC0018},
            #{device.YC0019},
            #{device.YC0020},
            #{device.YC0021},
            #{device.YC0022},
            #{device.YC0023},
            #{device.YC0024},
            #{device.YC0025},
            #{device.YC0026},
            #{device.YC0027},
            #{device.YC0028},
            #{device.YC0029},
            #{device.YC0030},
            #{device.YC0031},
            #{device.YC0032},
            #{device.YC0033},
            #{device.YC0034},
            #{device.YC0035},
            #{device.YC0036},
            #{device.YC0037},
            #{device.YC0038},
            #{device.YC0039},
            #{device.YC0040},
            #{device.YC0041},
            #{device.YC0042},
            #{device.YC0043},
            #{device.YC0044},
            #{device.YC0045},
            #{device.YC0046},
            #{device.YC0047},
            #{device.YC0048},
            #{device.YC0049},
            #{device.YC0050},
            #{device.YC0051},
            #{device.YC0052},
            #{device.YC0053},
            #{device.YC0054},
            #{device.YC0055},
            #{device.YC0056},
            #{device.YC0057},
            #{device.YC0058},
            #{device.YC0059},
            #{device.YC0060},
            #{device.YC0061},
            #{device.YC0062},
            #{device.YC0063},
            #{device.YC0064},
            #{device.YC0065},
            #{device.YC0066},
            #{device.YC0067},
            #{device.YC0068},
            #{device.YC0069},
            #{device.YC0070},
            #{device.YC0071},
            #{device.YC0072},
            #{device.YC0073},
            #{device.YC0074},
            #{device.YC0075},
            #{device.YC0076},
            #{device.YC0077},
            #{device.YC0078},
            #{device.YC0079},
            #{device.YC0080},
            #{device.YC0081},
            #{device.YC0082},
            #{device.YC0083},
            #{device.YC0084},
            #{device.YC0085},
            #{device.YC0086},
            #{device.YC0087},
            #{device.YC0088},
            #{device.YC0089},
            #{device.YC0090},
            #{device.YC0091},
            #{device.YC0092},
            #{device.YC0093},
            #{device.YC0094},
            #{device.YC0095},
            #{device.YC0096},
            #{device.YC0097},
            #{device.YC0098},
            #{device.YC0099},
            #{device.YC0100},
            #{device.YC0101},
            #{device.YC0102},
            #{device.YC0103},
            #{device.YC0104},
            #{device.YC0105},
            #{device.YC0106},
            #{device.YC0107},
            #{device.YC0108},
            #{device.YC0109},
            #{device.YC0110},
            #{device.YC0111},
            #{device.YC0112},
            #{device.YC0113},
            #{device.YC0114},
            #{device.YC0115},
            #{device.YC0116},
            #{device.YC0117},
            #{device.YC0118},
            #{device.YC0119},
            #{device.YC0120},
            #{device.YC0121},
            #{device.YC0122},
            #{device.YC0123},
            #{device.YC0124},
            #{device.YC0125},
            #{device.YC0126},
            #{device.YC0127},
            #{device.YC0128},
            #{device.YC0129},
            #{device.YC0130},
            #{device.YC0131},
            #{device.YC0132},
            #{device.YC0133},
            #{device.YC0134},
            #{device.YC0135},
            #{device.YC0136},
            #{device.YC0137},
            #{device.YC0138},
            #{device.YC0139},
            #{device.YC0140},
            #{device.YC0141},
            #{device.YC0142},
            #{device.YC0143},
            #{device.YC0144},
            #{device.YC0145},
            #{device.YC0146},
            #{device.YC0147},
            #{device.YC0148},
            #{device.YC0149},
            #{device.YC0150},
            #{device.YC0151},
            #{device.YC0152},
            #{device.YC0153},
            #{device.YC0154},
            #{device.YC0155},
            #{device.YC0156},
            #{device.YC0157},
            #{device.YC0158},
            #{device.YC0159},
            #{device.YC0160},
            #{device.YC0161},
            #{device.YC0162},
            #{device.YC0163},
            #{device.YC0164},
            #{device.YC0165},
            #{device.YC0166},
            #{device.YC0167},
            #{device.YC0168},
            #{device.YC0169},
            #{device.YC0170},
            #{device.YC0171},
            #{device.YC0172},
            #{device.YC0173},
            #{device.YC0174},
            #{device.YC0175},
            #{device.YC0176},
            #{device.YC0177},
            #{device.YC0178},
            #{device.YC0179},
            #{device.YC0180},
            #{device.YC0181},
            #{device.YC0182},
            #{device.YC0183},
            #{device.YC0184},
            #{device.YC0185},
            #{device.YC0186},
            #{device.YC0187},
            #{device.YC0188},
            #{device.YC0189},
            #{device.YC0190},
            #{device.YC0191},
            #{device.YC0192},
            #{device.YC0193},
            #{device.YC0194},
            #{device.YC0195},
            #{device.YC0196},
            #{device.YC0197},
            #{device.YC0198},
            #{device.YC0199},
            #{device.YC0200},
            #{device.YC0201},
            #{device.YC0202},
            #{device.YC0203},
            #{device.YC0204},
            #{device.YC0205},
            #{device.YC0206},
            #{device.YC0207},
            #{device.YC0208},
            #{device.YC0209},
            #{device.YC0210},
            #{device.YC0211},
            #{device.YC0212},
            #{device.YC0213},
            #{device.YC0214},
            #{device.YC0215},
            #{device.YC0216},
            #{device.YC0217},
            #{device.YC0218},
            #{device.YC0219},
            #{device.YC0220},
            #{device.YC0221},
            #{device.YC0222},
            #{device.YC0223},
            #{device.YC0224},
            #{device.YC0225},
            #{device.YC0226},
            #{device.YC0227},
            #{device.YC0228},
            #{device.YC0229},
            #{device.YC0230},
            #{device.YC0231},
            #{device.YC0232},
            #{device.YC0233},
            #{device.YC0234},
            #{device.YC0235},
            #{device.YC0236},
            #{device.YC0237},
            #{device.YC0238},
            #{device.YC0239},
            #{device.YC0240},
            #{device.YC0241},
            #{device.YC0242},
            #{device.YC0243},
            #{device.YC0244},
            #{device.YC0245},
            #{device.YC0246},
            #{device.YC0247},
            #{device.YC0248},
            #{device.YC0249},
            #{device.YC0250},
            #{device.YC0251},
            #{device.YC0252},
            #{device.YC0253},
            #{device.YC0254},
            #{device.YC0255},
            #{device.YC0256},
            #{device.YC0257},
            #{device.YC0258},
            #{device.YC0259},
            #{device.YC0260},
            #{device.YC0261},
            #{device.YC0262},
            #{device.YC0263},
            #{device.YC0264},
            #{device.YC0265},
            #{device.YC0266},
            #{device.YC0267},
            #{device.YC0268},
            #{device.YC0269},
            #{device.YC0270},
            #{device.YC0271},
            #{device.YC0272},
            #{device.YC0273},
            #{device.YC0274},
            #{device.YC0275},
            #{device.YC0276},
            #{device.YC0277},
            #{device.YC0278},
            #{device.YC0279},
            #{device.YC0280},
            #{device.YC0281},
            #{device.YC0282},
            #{device.YC0283},
            #{device.YC0284},
            #{device.YC0285},
            #{device.YC0286},
            #{device.YC0287},
            #{device.YC0288},
            #{device.YC0289},
            #{device.YC0290},
            #{device.YC0291},
            #{device.YC0292},
            #{device.YC0293},
            #{device.YC0294},
            #{device.YC0295},
            #{device.YC0296},
            #{device.YC0297},
            #{device.YC0298},
            #{device.YC0299},
            #{device.YC0300},
            #{device.YK0001},
            #{device.YK0002},
            #{device.YK0003},
            #{device.YK0004},
            #{device.YK0005},
            #{device.YK0006},
            #{device.YK0007},
            #{device.YK0008},
            #{device.YK0009},
            #{device.YK0010},
            #{device.YK0011},
            #{device.YK0012},
            #{device.YK0013},
            #{device.YK0014},
            #{device.YK0015},
            #{device.YK0016},
            #{device.YK0017},
            #{device.YK0018},
            #{device.YK0019},
            #{device.YK0020},
            #{device.YK0021},
            #{device.YK0022},
            #{device.YK0023},
            #{device.YK0024},
            #{device.YK0025},
            #{device.YK0026},
            #{device.YK0027},
            #{device.YK0028},
            #{device.YK0029},
            #{device.YK0030},
            #{device.YK0031},
            #{device.YK0032},
            #{device.YK0033},
            #{device.YK0034},
            #{device.YK0035},
            #{device.YK0036},
            #{device.YK0037},
            #{device.YK0038},
            #{device.YK0039},
            #{device.YK0040},
            #{device.YK0041},
            #{device.YK0042},
            #{device.YK0043},
            #{device.YK0044},
            #{device.YK0045},
            #{device.YK0046},
            #{device.YK0047},
            #{device.YK0048},
            #{device.YK0049},
            #{device.YK0050},
            #{device.YK0051},
            #{device.YK0052},
            #{device.YK0053},
            #{device.YK0054},
            #{device.YK0055},
            #{device.YK0056},
            #{device.YK0057},
            #{device.YK0058},
            #{device.YK0059},
            #{device.YK0060},
            #{device.YK0061},
            #{device.YK0062},
            #{device.YK0063},
            #{device.YK0064},
            #{device.YK0065},
            #{device.YK0066},
            #{device.YK0067},
            #{device.YK0068},
            #{device.YK0069},
            #{device.YK0070},
            #{device.YK0071},
            #{device.YK0072},
            #{device.YK0073},
            #{device.YK0074},
            #{device.YK0075},
            #{device.YK0076},
            #{device.YK0077},
            #{device.YK0078},
            #{device.YK0079},
            #{device.YK0080},
            #{device.YK0081},
            #{device.YK0082},
            #{device.YK0083},
            #{device.YK0084},
            #{device.YK0085},
            #{device.YK0086},
            #{device.YK0087},
            #{device.YK0088},
            #{device.YK0089},
            #{device.YK0090},
            #{device.YK0091},
            #{device.YK0092},
            #{device.YK0093},
            #{device.YK0094},
            #{device.YK0095},
            #{device.YK0096},
            #{device.YK0097},
            #{device.YK0098},
            #{device.YK0099},
            #{device.YK0100},
            #{device.YK0101},
            #{device.YK0102},
            #{device.YK0103},
            #{device.YK0104},
            #{device.YK0105},
            #{device.YK0106},
            #{device.YK0107},
            #{device.YK0108},
            #{device.YK0109},
            #{device.YK0110},
            #{device.YK0111},
            #{device.YK0112},
            #{device.YK0113},
            #{device.YK0114},
            #{device.YK0115},
            #{device.YK0116},
            #{device.YK0117},
            #{device.YK0118},
            #{device.YK0119},
            #{device.YK0120},
            #{device.YK0121},
            #{device.YK0122},
            #{device.YK0123},
            #{device.YK0124},
            #{device.YK0125},
            #{device.YK0126},
            #{device.YK0127},
            #{device.YK0128},
            #{device.YK0129},
            #{device.YK0130},
            #{device.YK0131},
            #{device.YK0132},
            #{device.YK0133},
            #{device.YK0134},
            #{device.YK0135},
            #{device.YK0136},
            #{device.YK0137},
            #{device.YK0138},
            #{device.YK0139},
            #{device.YK0140},
            #{device.YK0141},
            #{device.YK0142},
            #{device.YK0143},
            #{device.YK0144},
            #{device.YK0145},
            #{device.YK0146},
            #{device.YK0147},
            #{device.YK0148},
            #{device.YK0149},
            #{device.YK0150}
            )
    </insert>

    <select id="queryPointTableSimple" resultType="com.ho.common.tools.vo.req.StatisticsCurve">
        select avg(${query.col}) as digital
        from device_simple_${tableName}
        <where>
            <!--            <if test="query.beginTime!=null">
                            and ts between #{query.beginTime} and #{query.endTime}
                        </if>-->
            <if test="query.beginLong!=null">
                and ts between #{query.beginLong} and #{query.endLong}
            </if>
            INTERVAL(${query.time})
            fill(PREV)
        </where>
    </select>
    <select id="queryOneByTime" resultType="java.math.BigDecimal">
        select ${colName} as digital
        from device_simple_${tableName}
        where ts &lt;= #{time}
          and ${colName} is not null
        order by ts desc limit 1
    </select>
    <select id="queryPointDataShowSimple" resultType="com.ho.common.tools.vo.req.PointData">
        select ts as date, ${query.col} as digital
        from device_simple_${tableName}
        where ts between #{query.beginTime}
        and #{query.endTime}
        and ${query.col} is not null
        <if test="query.beginNum!=null">
            limit #{query.beginNum}
            , #{query.pageSize}

        </if>

    </select>

    <select id="countPointTableSimple" resultType="integer">
        select count(${query.col}) as digital
        from device_simple_${tableName}
        where ts between #{query.beginTime} and #{query.endTime}
          and ${query.col} is not null
    </select>

    <select id="selectBeginTime" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
        select ${col} as digital, ts as date
        from device_simple_${tableName}
        where ts &lt;= ${beginLong}
          and ${col} is not null
        order by ts desc limit 1
    </select>


    <select id="selectAll" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
        select ${query.col} as digital, ts as date
        from device_simple_${tableName}
        where ${query.col} is not null
          and ts between #{query.beginLong}
          and #{query.endLong}
    </select>

    <select id="selectOneValue" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
        select ${query.col} as digital, ts as date
        from device_simple_${tableName}
        where ${query.col} is not null
          and ts between #{query.beginLong}
          and #{query.endLong}
        order by ts desc limit 1
    </select>

    <select id="selectEndPoint" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
        select ${query.col} as digital, ts as date
        from device_simple_${tableName}
        where ${query.col} is not null
          and ts between #{query.beginLong}
          and #{query.endLong}
        order by ts desc limit 1
    </select>

    <select id="selectEnd" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
        select ${col} as digital, ts as date
        from device_simple_${tableName}
        where ts >= ${endLong}
          and ${col} is not null
        order by ts desc limit 1
    </select>

    <select id="selectAllValue" resultType="java.util.Map">
        select *
        from device_simple_${tableName}
        where ts between #{query.beginTime}
                  and #{query.endTime}
        order by ts desc
            limit #{query.beginNum}
               , #{query.pageSize}
    </select>

    <select id="countPointAllSimple" resultType="java.lang.Integer">
        select count(*)
        from device_simple_${tableName}
        where ts between #{query.beginTime} and #{query.endTime}
    </select>

    <select id="queryMaxOneByTime" resultType="java.math.BigDecimal">
        select max(${colName}) as digital
        from device_simple_${tableName}
        where ts &lt;= #{time}
          and ts >= #{beginTime}
          and ${colName} is not null
        order by ts desc limit 1
    </select>

    <select id="queryHisMaxOneByTime" resultType="java.math.BigDecimal">
        select max(${colName}) as digital
        from device_simple_${tableName}
        where ts &lt;= #{time}
          and ${colName} is not null
        order by ts desc limit 1
    </select>

    <select id="queryMinOneByTime" resultType="java.math.BigDecimal">
        select min(${colName}) as digital
        from device_simple_${tableName}
        where ts &lt;= #{time}
          and ts >= #{beginTime}
          and ${colName} is not null
        order by ts desc limit 1
    </select>


    <select id="selectFirstRecord" resultType="java.util.Date">
        select ts
        from device_simple_${tableName}
        order by ts asc limit 1
    </select>

    <!--对于没有值的, 使用前一个值填充-->
    <select id="selectInterval" resultType="com.ho.datacollect.api.vo.req.StatisticsRespVO">
        select avg(${colName}) as digital
        from device_simple_${tdBase.tableName}
        where ts between #{tdBase.beginTime} and #{tdBase.endTime} INTERVAL(${intervalTime})
            fill(PREV)
    </select>


    <select id="selectFirst" resultType="com.ho.td.api.entity.inverter.InverterTimingGenerate">
        select
        ${colName} as powerGeneration
        from device_simple_${tbNameSuffix}
        <where>
            <if test="beginTime != null">
                and ts &lt;= #{beginTime}
                and ${colName} is not null
            </if>
            <if test="endTime != null">
                and ts &lt;= #{endTime}
                and ${colName} is not null
            </if>

        </where>
        <choose>
            <when test="orderType != null and orderType =='asc'">
                order by ts desc limit 1
            </when>
            <when test="orderType != null and orderType =='desc'">
                order by ts desc limit 1
            </when>
        </choose>
    </select>

    <select id="selectLastRecord" resultType="com.ho.datacollect.api.vo.req.StatisticsRespVO">
        select ${colName} as digital
        from device_simple_${tdBase.tableName}
        where ts &lt;= #{time}
          and ${colName} is not null
        order by ts desc limit 1
    </select>

   <select id="selectColFirst" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
     select ${col} as digital, ts as date
     from ${tableName}
     where ts &lt;= ${beginLong}
       and ${col} is not null
     order by ts desc limit 1
   </select>

  <select id="selectColAll" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
     select ${query.col} as digital, ts as date
     from  ${tableName}
     where ${query.col} is not null
       and ts between #{query.beginLong}
       and #{query.endLong}
  </select>

  <select id="selectColEnd" resultType="com.ho.common.tools.vo.req.StationHomeRespVo">
     select ${col} as digital, ts as date
     from ${tableName}
     where ts >= ${endLong}
       and ${col} is not null
     order by ts desc limit 1
  </select>

  <select id="queryMeasure" resultType="com.ho.common.tools.vo.req.StatisticsCurve">
      select avg(${query.col}) as digital
      from ${tableName}
      <where>
        <if test="query.beginLong!=null">
          and ts between #{query.beginLong} and #{query.endLong}
        </if>
       INTERVAL(${query.time})
       fill(PREV)
      </where>
     </select>

  <insert id="insertDeviceSimpleNew">
   insert into device_simple_${tableName}
    (ts, createTime,${colName})
    using s_device_simple
        tags(#{groupId},#{stationId} ,#{srcId})
   values (
    #{device.ts},
    now(),${colNameValue}
     )
  </insert>
</mapper>