prometheus告警
开始时间: 14:42:36
错误代码: N14423611
sql类型: --物流属性表
sql: [14:42:36] -------------------------------------------------------------
CODE:N14423611
Error:15_102_1_-2146232060
SQL:--物流属性表
DROP TABLE IF EXISTS #temp_WithBattery
select top 0 a.*
INTO #temp_WithBattery
FROM(
select top 0 1 WithBatteryValue, '普货' WithBatteryName UNION ALL
select top 0 2 WithBatteryValue, '纯电池' WithBatteryName UNION ALL
select top 0 3 WithBatteryValue, '带内置电池' WithBatteryName UNION ALL
select top 0 4 WithBatteryValue, '带外置电池' WithBatteryName UNION ALL
select top 0 5 WithBatteryValue, '含纽扣电池' WithBatteryName UNION ALL
select top 0 6 WithBatteryValue, '液体' WithBatteryName UNION ALL
select top 0 7 WithBatteryValue, '粉末' WithBatteryName UNION ALL
select top 0 8 WithBatteryValue, '打火机' WithBatteryName UNION ALL
select top 0 9 WithBatteryValue, '刀具_剪刀_仿真枪' WithBatteryName UNION ALL
select top 0 10 WithBatteryValue, '带磁物品' WithBatteryName UNION ALL
select top 0 12 WithBatteryValue, '木质类_竹质类' WithBatteryName UNION ALL
select top 0 11 WithBatteryValue, '其他禁运物品' WithBatteryName UNION ALL
select top 0 13 WithBatteryValue, '膏状' WithBatteryName UNION ALL
select top 0 14 WithBatteryValue, '易碎' WithBatteryName UNION ALL
select top 0 15 WithBatteryValue, '动物羽毛类' WithBatteryName UNION ALL
select top 0 16 WithBatteryValue, '大功率电池' WithBatteryName UNION ALL
select top 0 17 WithBatteryValue, '电子烟' WithBatteryName UNION ALL
select top 0 18 WithBatteryValue, '移动电源' WithBatteryName UNION ALL
select top 0 19 WithBatteryValue, '可拆卸电池' WithBatteryName UNION ALL
select top 0 20 WithBatteryValue, '厨具' WithBatteryName UNION ALL
select top 0 21 WithBatteryValue, '电机_马达' WithBatteryName UNION ALL
select top 0 22 WithBatteryValue, '超体积普' WithBatteryName UNION ALL
select top 0 23 WithBatteryValue, '超体积非普' WithBatteryName UNION ALL
select top 0 24 WithBatteryValue, '手机' WithBatteryName UNION ALL
select top 0 25 WithBatteryValue, '平衡车' WithBatteryName UNION ALL
select top 0 26 WithBatteryValue, '液体笔类' WithBatteryName UNION ALL
select top 0 27 WithBatteryValue, '纺织品' WithBatteryName UNION ALL
select top 0 28 WithBatteryValue, '植物种子' WithBatteryName UNION ALL
select top 0 29 WithBatteryValue, '深圳普货' WithBatteryName UNION ALL
select top 0 30 WithBatteryValue, '成人用品' WithBatteryName UNION ALL
select top 0 31 WithBatteryValue, '无' WithBatteryName UNION ALL
select top 0 32 WithBatteryValue, '眼镜' WithBatteryName UNION ALL
select top 0 33 WithBatteryValue, '口红' WithBatteryName UNION ALL
select top 0 34 WithBatteryValue, '手表' WithBatteryName UNION ALL
select top 0 35 WithBatteryValue, '香水' WithBatteryName UNION ALL
select top 0 36 WithBatteryValue, '纯液体' WithBatteryName UNION ALL
select top 0 37 WithBatteryValue, '医疗设备' WithBatteryName UNION ALL
select top 0 38 WithBatteryValue, '人造羽毛' WithBatteryName UNION ALL
select top 0 39 WithBatteryValue, '内置锂金属电池' WithBatteryName UNION ALL
select top 0 40 WithBatteryValue, '配套干电池' WithBatteryName UNION ALL
select top 0 41 WithBatteryValue, '厨房刀具' WithBatteryName UNION ALL
select top 0 42 WithBatteryValue, '军工刀具' WithBatteryName UNION ALL
select top 0 45 WithBatteryValue, '无线充' WithBatteryName UNION ALL
select top 0 46 WithBatteryValue, '原木' WithBatteryName UNION ALL
select top 0 47 WithBatteryValue, '面具类' WithBatteryName UNION ALL
select top 0 48 WithBatteryValue, '金属高密度' WithBatteryName UNION ALL
select top 0 49 WithBatteryValue, '防疫用品' WithBatteryName UNION ALL
select top 0 50 WithBatteryValue, '酒精' WithBatteryName UNION ALL
select top 0 51 WithBatteryValue, '酒精棉' WithBatteryName UNION ALL
select top 0 52 WithBatteryValue, '纸巾' WithBatteryName UNION ALL
select top 0 100 WithBatteryValue, '风扇' WithBatteryName UNION ALL
select top 0 0 WithBatteryValue, '未选择' WithBatteryName UNION ALL
select top 0 101 WithBatteryValue, '水杯' WithBatteryName UNION ALL
select top 0 102 WithBatteryValue, '测试' WithBatteryName UNION ALL
select top 0 103 WithBatteryValue, '面罩类' WithBatteryName UNION ALL
select top 0 104 WithBatteryValue, '圆柱体' WithBatteryName UNION ALL
select top 0 105 WithBatteryValue, '食品' WithBatteryName UNION ALL
select top 0 106 WithBatteryValue, '颗粒状' WithBatteryName UNION ALL
select top 0 107 WithBatteryValue, '药品' WithBatteryName UNION ALL
select top 0 108 WithBatteryValue, '头盔' WithBatteryName UNION ALL
select top 0 109 WithBatteryValue, '纯普货' WithBatteryName UNION ALL
select top 0 110 WithBatteryValue, '尖锐利器' WithBatteryName UNION ALL
select top 0 111 WithBatteryValue, '无电池电子产品' WithBatteryName UNION ALL
select top 0 112 WithBatteryValue, '内置纽扣电池' WithBatteryName UNION ALL
select top 0 113 WithBatteryValue, '内置柱状电池' WithBatteryName UNION ALL
select top 0 114 WithBatteryValue, '内置块状电池' WithBatteryName UNION ALL
select top 0 115 WithBatteryValue, '其它内置电池' WithBatteryName UNION ALL
select top 0 116 WithBatteryValue, '配套纽扣电池' WithBatteryName UNION ALL
select top 0 117 WithBatteryValue, '配套柱状电池' WithBatteryName UNION ALL
select top 0 118 WithBatteryValue, '配套块状电池' WithBatteryName UNION ALL
select top 0 119 WithBatteryValue, '其它配套电池' WithBatteryName UNION ALL
select top 0 120 WithBatteryValue, '纽扣电池' WithBatteryName UNION ALL
select top 0 121 WithBatteryValue, '柱状电池' WithBatteryName UNION ALL
select top 0 122 WithBatteryValue, '块状电池' WithBatteryName UNION ALL
select top 0 123 WithBatteryValue, '其它纯电池' WithBatteryName UNION ALL
select top 0 124 WithBatteryValue, '易碎玻璃' WithBatteryName UNION ALL
select top 0 125 WithBatteryValue, '强磁' WithBatteryName UNION ALL
select top 0 126 WithBatteryValue, '微量膏体' WithBatteryName UNION ALL
select top 0 127 WithBatteryValue, '其它膏体' WithBatteryName UNION ALL
select top 0 128 WithBatteryValue, '微量粉末' WithBatteryName UNION ALL
select top 0 129 WithBatteryValue, '其它粉末' WithBatteryName UNION ALL
select top 0 130 WithBatteryValue, '微量液体' WithBatteryName UNION ALL
select top 0 131 WithBatteryValue, '少量液体' WithBatteryName UNION ALL
select top 0 132 WithBatteryValue, '较多液体' WithBatteryName UNION ALL
select top 0 133 WithBatteryValue, '其它液体' WithBatteryName UNION ALL
select top 0 134 WithBatteryValue, '办公刀具小尺寸' WithBatteryName UNION ALL
select top 0 135 WithBatteryValue, '办公刀具中尺寸' WithBatteryName UNION ALL
select top 0 136 WithBatteryValue, '办公刀具大尺寸' WithBatteryName UNION ALL
select top 0 137 WithBatteryValue, '厨房刀具小尺寸' WithBatteryName UNION ALL
select top 0 138 WithBatteryValue, '厨房刀具中尺寸' WithBatteryName UNION ALL
select top 0 139 WithBatteryValue, '厨房刀具大尺寸' WithBatteryName UNION ALL
select top 0 140 WithBatteryValue, '户外刀具小尺寸' WithBatteryName UNION ALL
select top 0 141 WithBatteryValue, '户外刀具中尺寸' WithBatteryName UNION ALL
select top 0 142 WithBatteryValue, '户外刀具大尺寸' WithBatteryName UNION ALL
select top 0 143 WithBatteryValue, '间谍器材' WithBatteryName UNION ALL
select top 0 144 WithBatteryValue, '其它易燃易爆' WithBatteryName UNION ALL
select top 0 145 WithBatteryValue, '管制刀具小尺寸' WithBatteryName UNION ALL
select top 0 146 WithBatteryValue, '其它管制器具' WithBatteryName UNION ALL
select top 0 147 WithBatteryValue, '枪支弹药' WithBatteryName UNION ALL
select top 0 148 WithBatteryValue, '其它禁寄物品' WithBatteryName UNION ALL
select top 0 149 WithBatteryValue, '111' WithBatteryName UNION ALL
select top 0 150 WithBatteryValue, '其它泛普货' WithBatteryName UNION ALL
select top 0 151 WithBatteryValue, '虎指' WithBatteryName UNION ALL
select top 0 152 WithBatteryValue, '甩棍' WithBatteryName UNION ALL
select top 0 153 WithBatteryValue, '弓弩' WithBatteryName UNION ALL
select top 0 154 WithBatteryValue, '金属大体积' WithBatteryName UNION ALL
select top 0 155 WithBatteryValue, '迷你蓝牙耳机' WithBatteryName UNION ALL
select top 0 156 WithBatteryValue, '其它蓝牙耳机' WithBatteryName UNION ALL
select top 0 157 WithBatteryValue, '迷你蓝牙音响' WithBatteryName UNION ALL
select top 0 158 WithBatteryValue, '其它蓝牙音响' WithBatteryName UNION ALL
select top 0 159 WithBatteryValue, '迷你移动电源' WithBatteryName UNION ALL
select top 0 160 WithBatteryValue, '其它移动电源' WithBatteryName UNION ALL
select top 0 161 WithBatteryValue, '其它带磁带电' WithBatteryName UNION ALL
select top 0 162 WithBatteryValue, '微量固体' WithBatteryName UNION ALL
select top 0 163 WithBatteryValue, '其它固体' WithBatteryName UNION ALL
select top 0 164 WithBatteryValue, '打火石' WithBatteryName UNION ALL
select top 0 165 WithBatteryValue, '指甲油' WithBatteryName UNION ALL
select top 0 166 WithBatteryValue, '香 水' WithBatteryName UNION ALL
select top 0 167 WithBatteryValue, '管制刀具中尺寸' WithBatteryName UNION ALL
select top 0 168 WithBatteryValue, '管制刀具大尺寸' WithBatteryName UNION ALL
select top 0 169 WithBatteryValue, '微量胶体' WithBatteryName UNION ALL
select top 0 170 WithBatteryValue, '' WithBatteryName UNION ALL
select top 0 171 WithBatteryValue, '较多胶体' WithBatteryName UNION ALL
select top 0 172 WithBatteryValue, '其它胶体' WithBatteryName UNION ALL
select top 0 173 WithBatteryValue, '哈哈哈哈' WithBatteryName UNION ALL
select top 0 174 WithBatteryValue, '口罩' WithBatteryName UNION ALL
select top 0 175 WithBatteryValue, '李英' WithBatteryName UNION ALL
select top 0 176 WithBatteryValue, '蜡烛' WithBatteryName UNION ALL
select top 0 177 WithBatteryValue, '剪刀' WithBatteryName UNION ALL
select top 0 178 WithBatteryValue, '单边超过40cm抛货带磁' WithBatteryName UNION ALL
select top 0 179 WithBatteryValue, '强磁' WithBatteryName UNION ALL
select top 0 180 WithBatteryValue, '单边超过40cm抛货普货' WithBatteryName UNION ALL
select top 0 181 WithBatteryValue, '单边超过40cm抛货特货' WithBatteryName UNION ALL
select top 0 182 WithBatteryValue, '利器' WithBatteryName UNION ALL
select top 0 183 WithBatteryValue, '刀' WithBatteryName UNION ALL
select top 0 184 WithBatteryValue, '抛货特货' WithBatteryName UNION ALL
select top 0 185 WithBatteryValue, '抛货普货' WithBatteryName UNION ALL
select top 0 186 WithBatteryValue, '抛货带磁' WithBatteryName UNION ALL
select top 0 187 WithBatteryValue, '抛货纽扣电池' WithBatteryName UNION ALL
select top 0 188 WithBatteryValue, '单边超过40cm抛货纽扣电池' WithBatteryName UNION ALL
select top 0 189 WithBatteryValue, '自定义-液体' WithBatteryName UNION ALL
select top 0 190 WithBatteryValue, '面膜鼻膜眼膜胸膜' WithBatteryName UNION ALL
select top 0 191 WithBatteryValue, '办公刀具超大尺寸' WithBatteryName UNION ALL
select top 0 192 WithBatteryValue, '厨房刀具超大尺寸' WithBatteryName UNION ALL
select top 0 193 WithBatteryValue, '户外刀具超大尺寸' WithBatteryName UNION ALL
select top 0 194 WithBatteryValue, '管制刀具超大尺寸' WithBatteryName UNION ALL
select top 0 195 WithBatteryValue, '内电打火机' WithBatteryName UNION ALL
select top 0 196 WithBatteryValue, '压电打火机' WithBatteryName UNION ALL
select top 0 197 WithBatteryValue, '火石打火机' WithBatteryName UNION ALL
select top 0 198 WithBatteryValue, '超重超大件普货' WithBatteryName UNION ALL
select top 0 199 WithBatteryValue, '超重超大件非普货' WithBatteryName UNION ALL
select top 0 200 WithBatteryValue, '自定义-纯电池' WithBatteryName UNION ALL
select top 0 201 WithBatteryValue, '自定义-带外置电池' WithBatteryName UNION ALL
select top 0 202 WithBatteryValue, '内置电池-自定义' WithBatteryName UNION ALL
select top 0 203 WithBatteryValue, '自定义-膏体' WithBatteryName UNION ALL
select top 0 204 WithBatteryValue, '自定义-粉末' WithBatteryName UNION ALL
select top 0 205 WithBatteryValue, '自定义-带磁' WithBatteryName UNION ALL
select top 0 206 WithBatteryValue, '自定义-电机马达' WithBatteryName UNION ALL
select top 0 207 WithBatteryValue, '反倾销属性' WithBatteryName UNION ALL
select top 0 208 WithBatteryValue, '自主加工' WithBatteryName UNION ALL
select top 0 209 WithBatteryValue, '弱磁' WithBatteryName UNION ALL
select top 0 210 WithBatteryValue, '液体&带电' WithBatteryName UNION ALL
select top 0 211 WithBatteryValue, '液体(不带电)' WithBatteryName UNION ALL
select top 0 212 WithBatteryValue, '带电带磁' WithBatteryName UNION ALL
select top 0 213 WithBatteryValue, '口红液体' WithBatteryName UNION ALL
select top 0 214 WithBatteryValue, '口红膏体' WithBatteryName UNION ALL
select top 0 215 WithBatteryValue, '测试物流属性' WithBatteryName UNION ALL
select top 0 216 WithBatteryValue, '612' WithBatteryName UNION ALL
select top 0 217 WithBatteryValue, '带电带磁' WithBatteryName UNION ALL
select top 0 218 WithBatteryValue, '较多膏体' WithBatteryName UNION ALL
select top 0 219 WithBatteryValue, '少量膏体' WithBatteryName UNION ALL
select top 0 220 WithBatteryValue, '较多固体' WithBatteryName UNION ALL
select top 0 221 WithBatteryValue, '少量固体' WithBatteryName UNION ALL
select top 0 222 WithBatteryValue, '较多粉末' WithBatteryName UNION ALL
select top 0 223 WithBatteryValue, '少量粉末' WithBatteryName UNION ALL
select top 0 224 WithBatteryValue, '机械手表' WithBatteryName UNION ALL
select top 0 225 WithBatteryValue, '电子手表' WithBatteryName UNION ALL
select top 0 226 WithBatteryValue, '智能手表' WithBatteryName UNION ALL
select top 0 227 WithBatteryValue, '智能手环' WithBatteryName UNION ALL
select top 0 228 WithBatteryValue, '饼状' WithBatteryName UNION ALL
select top 0 229 WithBatteryValue, '干花' WithBatteryName UNION ALL
select top 0 230 WithBatteryValue, '枕头支架' WithBatteryName UNION ALL
select top 0 231 WithBatteryValue, 'NS-超体积普' WithBatteryName UNION ALL
select top 0 232 WithBatteryValue, '抛物' WithBatteryName UNION ALL
select top 0 233 WithBatteryValue, '口罩' WithBatteryName UNION ALL
select top 0 234 WithBatteryValue, '哑铃(10KG+)' WithBatteryName UNION ALL
select top 0 235 WithBatteryValue, '圆柱体' WithBatteryName UNION ALL
select top 0 236 WithBatteryValue, '蜡烛类' WithBatteryName UNION ALL
select top 0 237 WithBatteryValue, '无电池' WithBatteryName UNION ALL
select top 0 238 WithBatteryValue, '轻抛类' WithBatteryName UNION ALL
select top 0 239 WithBatteryValue, '高价值产品' WithBatteryName UNION ALL
select top 0 240 WithBatteryValue, '蓝牙产品' WithBatteryName UNION ALL
select top 0 241 WithBatteryValue, 'FDA产品' WithBatteryName UNION ALL
select top 0 242 WithBatteryValue, 'HDMI产品' WithBatteryName UNION ALL
select top 0 243 WithBatteryValue, '儿童玩具' WithBatteryName UNION ALL
select top 0 244 WithBatteryValue, '磁铁' WithBatteryName UNION ALL
select top 0 245 WithBatteryValue, '木制品(无熏蒸)' WithBatteryName UNION ALL
select top 0 246 WithBatteryValue, '特定磁性产品(含电机以及马达)' WithBatteryName UNION ALL
select top 0 247 WithBatteryValue, '食品' WithBatteryName UNION ALL
select top 0 248 WithBatteryValue, '口罩' WithBatteryName UNION ALL
select top 0 249 WithBatteryValue, '洗手液' WithBatteryName UNION ALL
select top 0 250 WithBatteryValue, '温度计/额湿枪' WithBatteryName UNION ALL
select top 0 251 WithBatteryValue, '医用手套/鞋套' WithBatteryName UNION ALL
select top 0 252 WithBatteryValue, '护目镜' WithBatteryName UNION ALL
select top 0 253 WithBatteryValue, '防护服' WithBatteryName UNION ALL
select top 0 254 WithBatteryValue, '枪支弹药' WithBatteryName UNION ALL
select top 0 255 WithBatteryValue, '管制刀具' WithBatteryName UNION ALL
select top 0 256 WithBatteryValue, '特殊尖锐器具' WithBatteryName UNION ALL
select top 0 257 WithBatteryValue, '易燃易爆品' WithBatteryName UNION ALL
select top 0 258 WithBatteryValue, '刺激气味产品' WithBatteryName UNION ALL
select top 0 259 WithBatteryValue, '指甲油产品' WithBatteryName UNION ALL
select top 0 260 WithBatteryValue, '气雾产品' WithBatteryName UNION ALL
select top 0 261 WithBatteryValue, '枪支配件' WithBatteryName UNION ALL
select top 0 262 WithBatteryValue, '带电,带磁' WithBatteryName UNION ALL
select top 0 263 WithBatteryValue, 'NS-刀具_剪刀' WithBatteryName UNION ALL
select top 0 264 WithBatteryValue, 'NS-粉末' WithBatteryName UNION ALL
select top 0 265 WithBatteryValue, 'NS-超体积非普' WithBatteryName UNION ALL
select top 0 266 WithBatteryValue, '黄毛' WithBatteryName UNION ALL
select top 0 267 WithBatteryValue, '黄毛3' WithBatteryName UNION ALL
select top 0 268 WithBatteryValue, '食品接触类' WithBatteryName UNION ALL
select top 0 269 WithBatteryValue, '带电成人用品' WithBatteryName UNION ALL
select top 0 270 WithBatteryValue, '无电成人用品' WithBatteryName UNION ALL
select top 0 271 WithBatteryValue, '活性炭' WithBatteryName UNION ALL
select top 0 272 WithBatteryValue, '纪念币' WithBatteryName UNION ALL
select top 0 273 WithBatteryValue, '颗粒物' WithBatteryName UNION ALL
select top 0 274 WithBatteryValue, '测试' WithBatteryName UNION ALL
select top 0 275 WithBatteryValue, 'LED灯(不带电)' WithBatteryName UNION ALL
select top 0 276 WithBatteryValue, '仿枪支弹药' WithBatteryName UNION ALL
select top 0 277 WithBatteryValue, '打火石' WithBatteryName UNION ALL
select top 0 278 WithBatteryValue, '气体' WithBatteryName UNION ALL
select top 0 279 WithBatteryValue, '1111' WithBatteryName UNION ALL
select top 0 280 WithBatteryValue, '1111' WithBatteryName UNION ALL
select top 0 281 WithBatteryValue, '555' WithBatteryName UNION ALL
select top 0 282 WithBatteryValue, '武器' WithBatteryName UNION ALL
select top 0 283 WithBatteryValue, '上海普货' WithBatteryName UNION ALL
select top 0 284 WithBatteryValue, '沙子-敏感货' WithBatteryName UNION ALL
select top 0 285 WithBatteryValue, '敏感货' WithBatteryName UNION ALL
select top 0 286 WithBatteryValue, '违禁品' WithBatteryName UNION ALL
select top 0 287 WithBatteryValue, '普货物流灰' WithBatteryName UNION ALL
select top 0 288 WithBatteryValue, '带电物流灰' WithBatteryName UNION ALL
select top 0 289 WithBatteryValue, '你说是什么就是什么' WithBatteryName UNION ALL
select top 0 290 WithBatteryValue, '打火石' WithBatteryName UNION ALL
select top 0 291 WithBatteryValue, '干燥剂' WithBatteryName UNION ALL
select top 0 292 WithBatteryValue, '硬币' WithBatteryName UNION ALL
select top 0 293 WithBatteryValue, '测试' WithBatteryName UNION ALL
select top 0 294 WithBatteryValue, '内置电池+粉末' WithBatteryName UNION ALL
select top 0 295 WithBatteryValue, '迷彩' WithBatteryName UNION ALL
select top 0 296 WithBatteryValue, '电池类' WithBatteryName UNION ALL
select top 0 297 WithBatteryValue, '形态类' WithBatteryName UNION ALL
select top 0 298 WithBatteryValue, '违禁类' WithBatteryName UNION ALL
select top 0 299 WithBatteryValue, '特殊类' WithBatteryName UNION ALL
select top 0 300 WithBatteryValue, '基础类' WithBatteryName UNION ALL
select top 0 301 WithBatteryValue, '温度计' WithBatteryName UNION ALL
select top 0 302 WithBatteryValue, '骑行护目镜' WithBatteryName UNION ALL
select top 0 303 WithBatteryValue, '户外面具和护目镜 ' WithBatteryName UNION ALL
select top 0 304 WithBatteryValue, '护目镜' WithBatteryName UNION ALL
select top 0 305 WithBatteryValue, '超体积普(抛比小于3倍)' WithBatteryName UNION ALL
select top 0 306 WithBatteryValue, 'A-纯锂离子电池' WithBatteryName UNION ALL
select top 0 307 WithBatteryValue, 'A-带油状' WithBatteryName UNION ALL
select top 0 308 WithBatteryValue, 'A-带胶状' WithBatteryName UNION ALL
select top 0 309 WithBatteryValue, 'A-弱磁' WithBatteryName UNION ALL
select top 0 310 WithBatteryValue, 'A-带易燃固体' WithBatteryName UNION ALL
select top 0 311 WithBatteryValue, 'A-外形仿造' WithBatteryName UNION ALL
select top 0 312 WithBatteryValue, 'A-侵权' WithBatteryName UNION ALL
select top 0 313 WithBatteryValue, 'A-激光类' WithBatteryName UNION ALL
select top 0 314 WithBatteryValue, '内置电池+带磁性物品' WithBatteryName UNION ALL
select top 0 315 WithBatteryValue, '电池+带磁属性' WithBatteryName UNION ALL
select top 0 316 WithBatteryValue, '假的' WithBatteryName UNION ALL
select top 0 317 WithBatteryValue, '普通服装' WithBatteryName UNION ALL
select top 0 318 WithBatteryValue, 'test111' WithBatteryName UNION ALL
select top 0 319 WithBatteryValue, '圆柱体' WithBatteryName UNION ALL
select top 0 320 WithBatteryValue, 'NS-含酒精' WithBatteryName UNION ALL
select top 0 321 WithBatteryValue, 'NS-防疫用品' WithBatteryName UNION ALL
select top 0 322 WithBatteryValue, 'NS-香水' WithBatteryName UNION ALL
select top 0 323 WithBatteryValue, 'NS-眼镜' WithBatteryName UNION ALL
select top 0 324 WithBatteryValue, 'NS-打火机' WithBatteryName UNION ALL
select top 0 325 WithBatteryValue, 'NS-厨具' WithBatteryName UNION ALL
select top 0 326 WithBatteryValue, 'NS-植物种子' WithBatteryName UNION ALL
select top 0 327 WithBatteryValue, '食品' WithBatteryName UNION ALL
select top 0 328 WithBatteryValue, 'NS-动物羽毛类' WithBatteryName UNION ALL
select top 0 329 WithBatteryValue, 'NS-易碎' WithBatteryName UNION ALL
select top 0 330 WithBatteryValue, 'NS-原木_木质类_竹质类' WithBatteryName UNION ALL
select top 0 331 WithBatteryValue, 'NS-膏状' WithBatteryName UNION ALL
select top 0 332 WithBatteryValue, 'NS-液体' WithBatteryName UNION ALL
select top 0 333 WithBatteryValue, 'NS-其他禁运物品' WithBatteryName UNION ALL
select top 0 334 WithBatteryValue, 'NS-纯电池' WithBatteryName UNION ALL
select top 0 335 WithBatteryValue, 'NS-移动电源' WithBatteryName UNION ALL
select top 0 336 WithBatteryValue, 'NS-成人用品' WithBatteryName UNION ALL
select top 0 337 WithBatteryValue, 'NS-电机_马达' WithBatteryName UNION ALL
select top 0 338 WithBatteryValue, 'NS-带磁物品' WithBatteryName UNION ALL
select top 0 339 WithBatteryValue, 'NS-带外置电池' WithBatteryName UNION ALL
select top 0 340 WithBatteryValue, 'NS-带内置电池' WithBatteryName UNION ALL
select top 0 341 WithBatteryValue, 'NS-含纽扣电池' WithBatteryName UNION ALL
select top 0 342 WithBatteryValue, 'NS-手表' WithBatteryName UNION ALL
select top 0 343 WithBatteryValue, 'NS-纺织品' WithBatteryName UNION ALL
select top 0 344 WithBatteryValue, 'NS-圆柱体' WithBatteryName UNION ALL
select top 0 345 WithBatteryValue, 'NS-普货' WithBatteryName UNION ALL
select top 0 346 WithBatteryValue, '违禁品' WithBatteryName UNION ALL
select top 0 347 WithBatteryValue, '爆款' WithBatteryName UNION ALL
select top 0 348 WithBatteryValue, '测款' WithBatteryName UNION ALL
select top 0 349 WithBatteryValue, '测款' WithBatteryName UNION ALL
select top 0 350 WithBatteryValue, '带内置电池+液体' WithBatteryName UNION ALL
select top 0 351 WithBatteryValue, '精油1' WithBatteryName UNION ALL
select top 0 352 WithBatteryValue, '超长普货' WithBatteryName UNION ALL
select top 0 353 WithBatteryValue, '超长非普' WithBatteryName UNION ALL
select top 0 354 WithBatteryValue, '锂电池UN3481' WithBatteryName UNION ALL
select top 0 355 WithBatteryValue, '可充电干电池A199' WithBatteryName UNION ALL
select top 0 356 WithBatteryValue, '不可充电干电池A123' WithBatteryName UNION ALL
select top 0 357 WithBatteryValue, '抛货' WithBatteryName UNION ALL
select top 0 358 WithBatteryValue, '测试自定义物流属性0426-11' WithBatteryName UNION ALL
select top 0 359 WithBatteryValue, '测试自定义物流属性' WithBatteryName UNION ALL
select top 0 360 WithBatteryValue, '木质类_竹质类抛货' WithBatteryName UNION ALL
select top 0 361 WithBatteryValue, '蓝牙头盔' WithBatteryName UNION ALL
select top 0 362 WithBatteryValue, '气雾产品' WithBatteryName UNION ALL
select top 0 363 WithBatteryValue, '指甲油产品' WithBatteryName UNION ALL
select top 0 364 WithBatteryValue, '刺激气味产品' WithBatteryName UNION ALL
select top 0 365 WithBatteryValue, '易燃易爆品' WithBatteryName UNION ALL
select top 0 366 WithBatteryValue, '特殊尖锐器具' WithBatteryName UNION ALL
select top 0 367 WithBatteryValue, '管制刀具' WithBatteryName UNION ALL
select top 0 368 WithBatteryValue, '枪支弹药' WithBatteryName UNION ALL
select top 0 369 WithBatteryValue, '洗手液' WithBatteryName UNION ALL
select top 0 370 WithBatteryValue, '食品' WithBatteryName UNION ALL
select top 0 371 WithBatteryValue, '儿童玩具' WithBatteryName UNION ALL
select top 0 372 WithBatteryValue, 'HDMI产品' WithBatteryName UNION ALL
select top 0 373 WithBatteryValue, 'FDA产品' WithBatteryName UNION ALL
select top 0 374 WithBatteryValue, '蓝牙产品' WithBatteryName UNION ALL
select top 0 375 WithBatteryValue, '无电池' WithBatteryName UNION ALL
select top 0 376 WithBatteryValue, '带电成人用品' WithBatteryName UNION ALL
select top 0 377 WithBatteryValue, '无电成人用品' WithBatteryName UNION ALL
select top 0 378 WithBatteryValue, '易燃' WithBatteryName UNION ALL
select top 0 379 WithBatteryValue, '带金属器件' WithBatteryName UNION ALL
select top 0 380 WithBatteryValue, '锐器' WithBatteryName UNION ALL
select top 0 381 WithBatteryValue, '万邑联KY仓' WithBatteryName UNION ALL
select top 0 382 WithBatteryValue, '食品接触类(易碎)' WithBatteryName UNION ALL
select top 0 383 WithBatteryValue, '食品接触类(木质)' WithBatteryName UNION ALL
select top 0 384 WithBatteryValue, '食品接触类(带电)' WithBatteryName UNION ALL
select top 0 385 WithBatteryValue, '配套电池' WithBatteryName UNION ALL
select top 0 386 WithBatteryValue, '内置电池(查验)' WithBatteryName UNION ALL
select top 0 387 WithBatteryValue, '内置电池(人体接触)' WithBatteryName UNION ALL
select top 0 388 WithBatteryValue, '外置电池(查验)' WithBatteryName UNION ALL
select top 0 389 WithBatteryValue, '纽扣电池(查验)' WithBatteryName UNION ALL
select top 0 390 WithBatteryValue, '弱磁' WithBatteryName UNION ALL
select top 0 391 WithBatteryValue, '弱磁(查验)' WithBatteryName UNION ALL
select top 0 392 WithBatteryValue, '强磁' WithBatteryName UNION ALL
select top 0 393 WithBatteryValue, '普通刀具_剪刀' WithBatteryName UNION ALL
select top 0 394 WithBatteryValue, '户外刀具' WithBatteryName UNION ALL
select top 0 395 WithBatteryValue, '仿真枪' WithBatteryName UNION ALL
select top 0 396 WithBatteryValue, '医疗用品' WithBatteryName UNION ALL
select top 0 397 WithBatteryValue, '酒精类' WithBatteryName UNION ALL
select top 0 398 WithBatteryValue, '玩具' WithBatteryName UNION ALL
select top 0 399 WithBatteryValue, '玩具(查验)' WithBatteryName UNION ALL
select top 0 400 WithBatteryValue, '植物类' WithBatteryName UNION ALL
select top 0 401 WithBatteryValue, '种子类' WithBatteryName UNION ALL
select top 0 402 WithBatteryValue, '按摩类' WithBatteryName UNION ALL
select top 0 403 WithBatteryValue, '普货(人体接触)' WithBatteryName UNION ALL
select top 0 404 WithBatteryValue, '查验' WithBatteryName UNION ALL
select top 0 405 WithBatteryValue, '印泥' WithBatteryName UNION ALL
select top 0 406 WithBatteryValue, '一次性塑料用品' WithBatteryName UNION ALL
select top 0 407 WithBatteryValue, '解压球' WithBatteryName UNION ALL
select top 0 408 WithBatteryValue, '成人用品带电' WithBatteryName UNION ALL
select top 0 409 WithBatteryValue, '面膜' WithBatteryName UNION ALL
select top 0 410 WithBatteryValue, '药膏' WithBatteryName UNION ALL
select top 0 411 WithBatteryValue, '深圳粉末液体' WithBatteryName UNION ALL
select top 0 412 WithBatteryValue, '深圳带电' WithBatteryName UNION ALL
select top 0 413 WithBatteryValue, '灰色产品' WithBatteryName UNION ALL
select top 0 414 WithBatteryValue, '牙套' WithBatteryName UNION ALL
select top 0 415 WithBatteryValue, '1231231' WithBatteryName UNION ALL
select top 0 416 WithBatteryValue, '食品接触(竹质)' WithBatteryName UNION ALL
select top 0 417 WithBatteryValue, '化妆品类液体粉末膏体' WithBatteryName UNION ALL
select top 0 418 WithBatteryValue, '打火机-敏感货' WithBatteryName UNION ALL
select top 0 419 WithBatteryValue, '普货-敏感货' WithBatteryName UNION ALL
select top 0 420 WithBatteryValue, '带内置电池-敏感货' WithBatteryName UNION ALL
select top 0 421 WithBatteryValue, '带内置电池-高货值' WithBatteryName UNION ALL
select top 0 422 WithBatteryValue, '智能手环' WithBatteryName UNION ALL
select top 0 423 WithBatteryValue, '液体-敏感货' WithBatteryName UNION ALL
select top 0 424 WithBatteryValue, '假睫毛' WithBatteryName UNION ALL
select top 0 425 WithBatteryValue, '太阳能充电宝' WithBatteryName UNION ALL
select top 0 426 WithBatteryValue, '带内置电池-敏感货' WithBatteryName UNION ALL
select top 0 427 WithBatteryValue, '普货-敏感货' WithBatteryName UNION ALL
select top 0 428 WithBatteryValue, '粉末-敏感货' WithBatteryName UNION ALL
select top 0 429 WithBatteryValue, '特殊属性' WithBatteryName UNION ALL
select top 0 430 WithBatteryValue, '带电容' WithBatteryName UNION ALL
select top 0 431 WithBatteryValue, '陈冠希A货' WithBatteryName UNION ALL
select top 0 432 WithBatteryValue, '包裹长度超60CM' WithBatteryName UNION ALL
select top 0 433 WithBatteryValue, '强磁' WithBatteryName UNION ALL
select top 0 434 WithBatteryValue, '111' WithBatteryName UNION ALL
select top 0 435 WithBatteryValue, 'AAAAAA' WithBatteryName UNION ALL
select top 0 436 WithBatteryValue, '强磁' WithBatteryName UNION ALL
select top 0 437 WithBatteryValue, '敏感货' WithBatteryName UNION ALL
select top 0 438 WithBatteryValue, '糖果超甜' WithBatteryName UNION ALL
select top 0 439 WithBatteryValue, '食品接触(宠物餐具)' WithBatteryName UNION ALL
select top 0 440 WithBatteryValue, '强磁' WithBatteryName UNION ALL
select top 0 441 WithBatteryValue, '弱磁' WithBatteryName UNION ALL
select top 0 442 WithBatteryValue, '超体积普(6000抛比小于2倍)' WithBatteryName UNION ALL
select top 0 443 WithBatteryValue, '弱磁产品' WithBatteryName UNION ALL
select top 0 444 WithBatteryValue, '气雾' WithBatteryName UNION ALL
select top 0 445 WithBatteryValue, '带电带磁' WithBatteryName UNION ALL
select top 0 446 WithBatteryValue, '违禁品' WithBatteryName UNION ALL
select top 0 447 WithBatteryValue, '马达' WithBatteryName UNION ALL
select top 0 448 WithBatteryValue, '普通颗粒类' WithBatteryName UNION ALL
select top 0 449 WithBatteryValue, '带外置电池-敏感货' WithBatteryName UNION ALL
select top 0 450 WithBatteryValue, '带外置电池-敏感货' WithBatteryName UNION ALL
select top 0 451 WithBatteryValue, '成人用品(带电)' WithBatteryName UNION ALL
select top 0 452 WithBatteryValue, '化妆品' WithBatteryName UNION ALL
select top 0 453 WithBatteryValue, '新人-钢铁侠' WithBatteryName UNION ALL
select top 0 454 WithBatteryValue, '陶瓷' WithBatteryName UNION ALL
select top 0 455 WithBatteryValue, '带电带磁带电机' WithBatteryName UNION ALL
select top 0 456 WithBatteryValue, '仿牌' WithBatteryName UNION ALL
select top 0 457 WithBatteryValue, '激光笔' WithBatteryName UNION ALL
select top 0 458 WithBatteryValue, '带电蓝牙产品' WithBatteryName UNION ALL
select top 0 459 WithBatteryValue, '平板电脑' WithBatteryName UNION ALL
select top 0 460 WithBatteryValue, '头盔' WithBatteryName UNION ALL
select top 0 461 WithBatteryValue, '食品' WithBatteryName UNION ALL
select top 0 462 WithBatteryValue, '药品' WithBatteryName UNION ALL
select top 0 463 WithBatteryValue, '剪刀' WithBatteryName UNION ALL
select top 0 464 WithBatteryValue, '活性炭' WithBatteryName UNION ALL
select top 0 465 WithBatteryValue, '带刀产品' WithBatteryName UNION ALL
select top 0 466 WithBatteryValue, '水滤器(带碳粉)' WithBatteryName UNION ALL
select top 0 467 WithBatteryValue, '带电带磁' WithBatteryName UNION ALL
select top 0 468 WithBatteryValue, '带电带磁带木材' WithBatteryName UNION ALL
select top 0 469 WithBatteryValue, '纽扣电池(内置)' WithBatteryName UNION ALL
select top 0 470 WithBatteryValue, '纽扣电池(外置)' WithBatteryName UNION ALL
select top 0 471 WithBatteryValue, '纽扣电池(纯电池)' WithBatteryName UNION ALL
select top 0 472 WithBatteryValue, '锂电池(内置)' WithBatteryName UNION ALL
select top 0 473 WithBatteryValue, '锂电池(外置)' WithBatteryName UNION ALL
select top 0 474 WithBatteryValue, '锂电池(纯电池)' WithBatteryName UNION ALL
select top 0 475 WithBatteryValue, '干电池(内置)' WithBatteryName UNION ALL
select top 0 476 WithBatteryValue, '干电池(外置)' WithBatteryName UNION ALL
select top 0 477 WithBatteryValue, '干电池(纯电池)' WithBatteryName UNION ALL
select top 0 478 WithBatteryValue, '镍氢电池(内置)' WithBatteryName UNION ALL
select top 0 479 WithBatteryValue, '镍氢电池(外置)' WithBatteryName UNION ALL
select top 0 480 WithBatteryValue, '镍氢电池(纯电池)' WithBatteryName UNION ALL
select top 0 481 WithBatteryValue, '成人用品(带电)' WithBatteryName
) a
select top 0 w.WareHouseName AS '仓库',
pr.ListNo AS '销单号',
pr.SKU AS 'SKU',
p.ProductNameCN AS '中文名',
CASE pl.IsUrgent WHEN 1 THEN '是' WHEN 0 THEN '否' END AS '是否加急',
CASE pl.IsSample WHEN 1 THEN '是' WHEN 0 THEN '否' END AS '是否样品',
CASE pr.NeedToPackType
WHEN 0 THEN '不需打包'
WHEN 1 THEN '需供应商打包'
WHEN 2 THEN '加工打包'
WHEN 3 THEN '销单打包'
ELSE ''
END AS '打包状态'
prd.ActualBuyNum AS '销单数量',
prd.ProcessNum AS '加工数量',
prd.BadNum AS '不良品',
prd.TallyNum AS '理货数量',
prd.PutInNum AS '入库数量',
t.WithBatteryName AS '物流属性',
CASE prd.TaskState
WHEN 0 THEN '待质检'
WHEN 1 THEN '待入库'
WHEN 2 THEN '部分入库'
WHEN 3 THEN '已完成'
ELSE ''
END AS '任务状态',
pr.ReceiptUserNmae AS '收货人',
pr.ReceiptTime AS '收货时间',
prc.PrepareBuyUserName AS '预销单人',
prc.PrepareBuyTime AS '预销单时间',
prd.BuyUserName AS '销单人',
prd.BuyTime AS '销单时间',
prd.ProcessUserName AS '加工人',
prd.ProcessTime AS '加工时间',
prd.CheckUserName AS '质检人',
prd.CheckTime AS '质检时间',
prd.TallyUserName AS '理货人',
prd.TallyTime AS '理货时间',
prd.PutInUserName AS '入库人',
prd.PutInTime AS '入库时间'
FROM dbo.RB_Procurement_ReceiptAndStorage (NOLOCK) pr
LEFT JOIN dbo.RB_Warehouse(NOLOCK) w ON pr.WarehouseId=w.ID AND pr.CustomerId=w.CustomerID
LEFT JOIN dbo.RB_Product (NOLOCK) p ON pr.SKU=p.SKU AND pr.CustomerId=p.CustomerID
LEFT JOIN dbo.RB_Procurement_ReceiptAndStorage_Details (NOLOCK)prd ON prd.ReceiptAndStorageId=pr.ID AND prd.CustomerId=pr.CustomerId
LEFT JOIN dbo.RB_Procurement_ReceiptAndStorage_CourierNum (NOLOCK)prc ON prc.CourierNum=pr.CourierNum AND prc.CustomerID=pr.CustomerId
LEFT JOIN dbo.RB_Procurement_List (NOLOCK) pl ON pl.P_Code=pr.P_Code AND pl.CustomerID=pr.CustomerId
LEFT JOIN #temp_WithBattery t ON t.WithBatteryValue=p.WithBattery
WHERE prc.PrepareBuyTime>=@StartDate AND prc.PrepareBuyTime<=@EndDate AND pr.CustomerId=@CustomerId
PARAMS:@StartDate = null ,@EndDate = null ,@CustomerId = 0 ,
MESSAGE:Incorrect syntax near 'prd'.
TRACE: 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) 在 RB.DAL.DBOperator.ExecuteReader(String SQLString, SqlParameter[] cmdParms, Boolean IsWriteDB, Int32 Timeout) 在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms) 在 RB.DAL.DBOperator.ExecuteReader(String SQLString, SqlParameter[] cmdParms, Boolean IsWriteDB, Int32 Timeout) 在 RB.DALExtend.RB_CustomReportExtend.GetSheetFieldsDr(String sqlContent, List1 sqlParameters)
在 Biz.Irobotbox.ReportCentre.CustomReportService.CheckSqlAndGetFields(String sqlContent, List`1 paramList)
在 PandaBuy.ERP.Web.IrobotBox.ReportCentre.CustomReportEdit.CheckSqlAndGetFields()
在 PandaBuy.ERP.Web.IrobotBox.ReportCentre.CustomReportEdit.Page_Load(Object sender, EventArgs e)
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在 System.Web.UI.Page.ProcessRequest()
在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
在 System.Web.UI.Page.ProcessRequest(HttpContext context)
在 ASP.irobotbox_reportcentre_customreportedit_aspx.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
在 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

数据报表同事的 可空字段 写法错误
正确写法 AND {{osl.AddTime < @end_addtime}}