ServiceError.java 55.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
package com.yoho.error;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;

import java.util.Map;

/**
 * 服务的错误码定义
 * <p>
 * Created by chang@yoho.cn on 2015/11/3.
 */
public enum ServiceError implements ErrorCode {
	//-------------------common---------------------------
	REQUEST_PAREMENT_ERROR(413),
	// ----------------------- begin  error ---------------------//
	USER_NOT_FOUND(100200300),

	CODE_SUCCESS(100000000),//200
	NOT_BIND(100000001),//200
	CODE_FAILED(100000002),
	OUT_OF_RANGE(100000010),

	//----Begin----------用户模块异常码---------------------
	//100-001
	OPEN_ID_IS_NULL(100001001),//501
	SOURCE_TYPE_IS_NULL(100001002),//502
	LOGIN_ERROR(100001003),//503
	REGISTER_PARAM_NULL(100001004),
	PASSWORD_NOT_INVALID(100001005),
	REGISTER_FAILED(100001006),
	THIRD_LOGIN(100001007),//400
	LOGIN_METHOD(100001008),//400
	BIND_SUCCESS(100001009),//200
	ADDRESS_LIST(100001010),//200
	ADDRESS_ID_ERROR(100001011),//500
	USER_ID_ERROR(100001012),//500
	ADDRESSEENAME_ERROR(100001013),//500
	ADDRESS_NULL(100001014),//500
	PROVINCE_MUST(100001015),//500
	MOBILE_PHONE_ONE(100001016),//500
	ADD_SUCCESS(100001017),//200
	ADD_FALSE(100001018),//404
	ID_UID_NULL(100001019),//500
	DEL_SUCCESS(100001020),//200
	DEL_FALSE(100001021),//404
	PROVINCE_LIST(100001022),//200
	ID_IS_NULL(100001023),//405
	SET_SUCCESS(100001024),//200
	SET_FALSE(100001025),//201
	MOBILE_NUMBER_ERROR(100001026),//401
	UPDATE_SUCCESS(100001027),//200
	UID_NOT_MATCH_MOBILE(100001028),
	MOBILE_INVALID(100001029),
	UID_IS_RELATED(100001030),
	CARDNO_IS_NULL(100001031),
	CLIENT_TYPE_IS_NULL(100001032),
	IDNO_IS_NULL(100001033),
	USERNAME_IS_NULL(100001034),
	SNSCHECKCODE_IS_NULL(100001035),
	APPLY_IS_DONE(100001036),
	APPLY_IS_DOING(100001037),
	VERIFYID_IS_NULL(100001038),
	GET_VERIFYCODE_FAIL(100001039),
	CODETYPE_IS_NULL(100001040),
	CALL_CRF_FAIL(100001041),
	BANKID_ID_ERROR(100001042),
    REGISTER_FAILED_EXIST(100001043),
    INTALMENT_CARDNO_IS_ERROR(100001044),
    INTALMENT_CARDNO_USED_ERROR(100001101),
    INTALMENT_USERNAME_IS_ERROR(100001045),
    INTALMENT_MOBILE_IS_ERROR(100001046),
    INTALMENT_IDNO_IS_ERROR(100001047),
    CARDNO_IS_NOT_SUPPORT(100001048),
    CARDNO_IS_BINDING(100001049),
    INTALMENT_INFO_NOT_MATCH(100001050),
    SNSCHECKCODE_IS_ERROR(100001051),
    USER_SMS_TYPE_ERROR(100001052),
    NOT_APPLY_SUCCESS(100001053),
    CARD_IS_BANDING(100001054),
    PREPAYNO_IS_NULL(100001055),
    ORDERNO_IS_NULL(100001056),
	//100-003
	PASSWORD_IS_NULL(100003000),
	UID_IS_NULL(100003001),///421
	PROFILE_IS_NULL(100003002),
	PASSWORD_NOT_RULE(100003003),
	MOBILE_IS_NULL(100003004),
	MOBILE_IS_ERROR(100003005),
	SEND_ERROR(100003006),
	SEND_SUCCESS(100003007),
	TYPE_IS_NULL(100003007),
	PRODUCTID_IS_NULL(100003008),
	CONSULT_LIST_IS_NULL(100003009),
	CONSULT_CONTENT_IS_NULL(100003010),
	CONSULT_PRODUCT_NOT_EXIST(100003011),
	USER_IS_NOT_EXIST(100003012),
	THREAD_IS_NOT_EXIST(100003013),
	MOBILE_IS_REGISTER(100003014),
	UPDATE_MOBILE_ERROR(100003015),
	UPDATE_PASSWORD_ERROR(100003016),
	PLEASE_INPUT_PASSWORD(100003017),
	BIND_ERROR(100003018),
	REGISTER_ERROR(100003019),
	USER_COUPON_IS_NULL(100003020),
	PROFILE_MUST_BE_MOBILE_OR_EMAIL(100003021),
	PASSWORD_ERROR(100003022),
	USER_NOT_EXISTS(100003023),
	MOBILE_IS_EXISTS(100003024),
	MOBILE_CHECK_IS_SUCCRSS(100003025),
	CODE_IS_NULL(100003026),//403 短信验证码空
	PHONE_UPDATE_SUCCESS(100003027),//200
	PHONE_UPDATE_FALSE(100003028),//409
	GET_USER_SSO_INFO_ERROR(100003029),
	SSO_LOGIN_INFO_NULL(100003030),
	NICK_NAME_IS_NULL(100003031),
	CONSULT_INSERT_FAILED(100003032),
	UID_MAIL_MOBILE_MUST_NOT_NULL(100003033),
	GET_SSO_INFO_ERROR(100003034),
	SSO_UPDATE_ERROR(100003035),
	USER_CONPONS_INSERT_ERROR(100003036),
	USER_BASE_UPDATE_FAILED(100003037),
	CHECK_MOBILE_SUCCESS(100003038),
	FAVORITE_UID_NULL(100003039),
	UID_MUST_NOT_NULL(100003040),
	PRODUCT_IS_EMPTY(100003041),
	BRAND_IS_EMPTY(100003042),
	MOBILE_IS_BIND(100003043),
	PASSWORD_IS_ERROR(100003044),
	SSO_LOGIN_CODE_50101(100003045),
	VALID_CODE_TIMEOUT_CODE(100003046),
	VALID_ERROR(100003047),
	SESSION_KEY_ISNULL(100003048),
	CODE_IS_EMPTY(100003049),
	CODE_IS_INVALID(100003050),
	NEW_PWD_IS_NULL(100003051),
	NEW_PWD_IS_NOT_RULE(100003052),
	EMAIL_IS_EXISTS(100003053),
	QUESTION_ID_ISNULL(100003054),
	FEEDBACK_ID_ISNULL(100003055),
	ANSWER_ISNULL(100003056),
	EMAIL_SUBSCRIBER_FAIL(100003057),
	NICK_NAME_IS_EXISTS(100003058),
	//100-004 yohocoin 有货币、红包
	YOHOCOIN_TYPE_ISNULL(100004001),
	YOHOCOIN_NUM_ISNULL(100004002),
	YOHOCOIN_PARAMS_ISNULL(100004003),
	YOHOCOIN_ORDERCODE_ISNULL(100004004),
	YOHOCOIN_CURRENCY_ISNULL(100004005),
	LOGINNAME_OR_PASSWORD_ERROR(100004006),
	YOHOCOIN_CURRENCY_NOT_ENOUGH(100004007),
	YOHOCOIN_ORDER_FULLY_REFUND(100004008),
	YOHOCOIN_ORDERRECORD_NOT_EXIST(100004009),
	REDENVELOPES_CURRENCY_NOT_ENOUGH(100004010),
	//100-005 browse 浏览记录
	BROWSE_ADD_ID_ISNULL(100005001),
	BROWSE_ADD_SKN_ISNULL(100005002),
	BROWSE_ADD_CATEGORYID_ISNULL(100005003),
	BROWSE_TOTAL_UID_ISNULL(100005004),
	BROWSE_DEL_UID_ISNULL(100005005),
	BROWSE_LIST_UID_ISNULL(100005006),
	VERIFY_CODE_ERROR(100005007),
	TOKEN_IS_ERROR(100005008),
	NOT_CHECK_MOBILE(100005009),
	EMAIL_NULL(100005010),
	EMAIL_ERROR(100005011),
	//100-006 suggest 意见反馈
	SUGGEST_ADD_PARAM_ISNULL(100006001),
	SUGGEST_ADD_CONTENT_ISNULL(100006002),
	SUGGEST_ADD_FAILED(100006003),
	SUGGEST_RELIABLE_UDIDSUGGESTID_ISNULL(100006004),
	SUGGEST_RELIABLE_ISRELIABLE_INVALIDATED(100006005),
	SUGGEST_RELIABLE_SETALREADY(100006006),
	SUGGEST_RELIABLE_ADD_FAILED(100006007),

	//100-007 help 在线客服
	HELPCONTENT_ID_ISNULL(100007001),
	HELPCONTENT_NOT_EXISTS(100007002),
	HELPCONTENT_CATEGORYID_ISNULL(100007003),
	HELPCONTENT_CATEGORYID_ISERROR(100007004),

	//100008活动信息
	PARAM_ERROR(100008001),
	WECHAT_HAVE_ACTIVITIED(100008002),
	NOT_ACTIVITY(100008003),
	HAVE_SHARE_ACTIVITY(100008004),
	RECORD_ERROR(100008005),
	ACTIVITY_NOT_EXISTS(100008006),

	//100-009 UserContacts 用户联系信息
	USERCONTACTS_MODIFY_UID_ISNULL(100009001),
	USERCONTACTS_MODIFY_CODEADDRESS_ISNULL(100009002),
	USERCONTACTS_GET_UID_ISNULL(100009003),
	USERCONTACTS_MODIFY_ZIPCODE_ISERROR(100009004),

	//100-010 UserHabits 用户购物&着装习惯
	USERHABITS_MODIFY_UID_ISNULL(100010001),
	USERHABITS_GET_UID_ISNULL(100010002),

	//100-011 UserHabits 用户喜爱品牌
	LIKEBRAND_MODIFY_UID_ISNULL(100011001),
	LIKEBRAND_GET_UID_ISNULL(100011002),
	
	//012 在线帮助
	HELP_ID_ERROR(100012001),
	HELP_CONTENT_EMPTY(100012002),
	
	//013 用户签到
	USER_SIGN_SIGNED(100013001),
	USER_SIGN_CONFIG_NOT_EXIST(100013002),
	USER_SIGN_PARAM_PUSH_FLAG_ERROR(100013003),
	
	//014 用户投诉
	USER_COMPLAINTS_PARAM_EMPTY(100014001),
	USER_COMPLAINTS_PARAM_UID_EMPTY(100014002),
	USER_COMPLAINTS_PARAM_TITLE_EMPTY(100014003),
	USER_COMPLAINTS_PARAM_TITLE_TOOLONG(100014004),
	USER_COMPLAINTS_PARAM_CUSTOMER_TOOLONG(100014005),
	USER_COMPLAINTS_PARAM_ORDERCODE_EMPTY(100014006),
	USER_COMPLAINTS_PARAM_CONTENT_EMPTY(100014007),
	USER_COMPLAINTS_PARAM_CONTENT_TOOLONG(100014008),
	
	//015个人中心
	GIFT_CODE_IS_NULL(100015001),
	CAPTCHA_CODE_IS_NULL(100015002),
	GIFT_EXCHANGE_FAIL(100015003),
	GIFT_CODE_NOT_FOUND(100015004),
	GIFT_CODR_IS_ERROR(100015005),
	ADD_LOG_FAIL(100015006),

    // 016 各种专题
    // 新潮教室
    USER_STAR_INTIMACY_PARAM_NULL(100016001),
    USER_STAR_INTIMACY_SIGN_ALREADY(100016002),
    USER_STAR_INTIMACY_SIGN_ERROR(100016003),
    USER_STAR_INTIMACY_GET_RANK_FAIL(100016004),
    USER_STAR_INTIMACY_GET_FORWARD_FAIL(100016005),
    USER_STAR_INTIMACY_SET_INTIMACY_FAIL(100016006),
    USER_STAR_INTIMACY_SET_ISCHECKED_FAIL(100016007),
    USER_STAR_INTIMACY_SET_CHECKEDDAYS_FAIL(100016008),
    USER_STAR_INTIMACY_GET_TOP_FAIL(100016009),
    
    // 017 商家端
    SHOPS_ACCOUNT_IS_NULL(100017001),
    SHOPS_PASSWORD_IS_NULL(100017002),
    SHOPS_LOGIN_ERROR(100017003),
    SHOPS_PID_IS_NULL(100017004),
    SHOPS_CALL_ERP_FAIL(100017005),
    SHOPS_PASSWORD_NOT_RULE(100017006),
    SHOPS_UPDATE_PASSWORD_ERROR(100017007),
    SHOPS_APP_VERSION_IS_NULL(100017008),
    SHOPS_CLIENT_TYPE_IS_NULL(100017009),
    SHOPS_APP_URL_IS_NULL(100017010),
    SHOPS_OLD_PASSWORD_IS_ERROR(100017011),
    SHOPS_ACCOUNT_IS_NOT_EXIST(100017012),
    SHOPS_NEW_PASSWORD_IS_NOT_CONSISTENT(100017013),
    SHOPS_ID_IS_ERROR(100017014),
    SHOPS_INBOX_ID_IS_ERROR(100017015),
    SHOPS_INBOX_TYPE_IS_ERROR(100017016),
    SHOPS_NEW_PASSWORD_IS_SIMPLE(100017017),
    SHOPS_ID_IS_NULL(100017018),
    SHOPS_ACCOUNT_CALL_FAIL(100017019),

    
    // 018 mars点数
    MARSPOINT_NUM_INVALID(100018001),
    MARSPOINT_TYPE_INVALID(100018002),
    MARSPOINT_ORDERCODE_IS_NULL(100018004),
    MARSPOINT_CURRENCY_NOT_ENOUGH(100018005),
    MARSPOINT_CALL_METHOD_ERRPR(100018006),
    SSOID_IS_NULL(100018008),
	MOBIL_EMAIL_IS_NULL(100018009),
	PASSWORD_NOT_VALID(100018010),

    // order黑名单限制
    USER_BLACK_LIST_UID_IS_INVALID(100019001),

    // 学生认证
    REQUEST_ZMXY_ERROR(100020001),
    NO_RESPONSE_FROM_ZMXY(100020002),
    NOT_REAL_NAME_USER(100020003),
    NOT_ZHIFUBAO_USER(100020004),
    ZMXY_TOKEN_IS_NULL(100020005),
    IS_STUDENT_ALREADY(100020006),
    IDENTITYCARDNO_IS_USERD(100020007),
    ZMXY_SERVICE_ERROR(100020008),
    ZMXY_COLLEGE_INCORRECT(100020009),
    ZMXY_DEGREE_INCORRECT(100020010),
    ZMXY_ENROLLMENTYEAR_INCORRECT(100020011),

    // 二维码登录
    TWODIMEN_CODE_IS_NULL(100021001),
    TWODIMEN_UID_IS_NULL(100021002),
    TWODIMEN_CODE_IS_INVALID(100021003),
    TWODIMEN_CODE_LOGIN_FAIL(100021004),
    TWODIMEN_CODE_IS_ILLEGAL(100021011),

    // 领取有货币活动
    TOKEN_IS_NULL(100021005),
    REVICE_ACTIVITY_NOT_EXIST(100021006),
    REVICE_ACTIVITY_NOT_BEGIN(100021007),
    REVICE_ACTIVITY_HAS_END(100021008),
    REVICE_ACTIVITY_HISTORY_EXIST(100021009),
    REVICE_TIMES_MAX(100021010),

    // 第三方绑定优化
    OPENID_IS_BIND(100031010),
    UID_OPENID_IS_BIND(100031011),
    RELATED_USER_OPENID_SINGLE(100031012),
    REMOVE_BIND_FAIL(100031013),
    OPENID_IS_NOT_BIND(100031014),


    // 生成图片验证码失败
    GET_VERIFIEDGRAPHICCODE_FAIL(100041014),


    //---------------用户模块异常码-------------------


    //-----------------联盟模块----------------------------------------
    APP_IS_NULL(800000000),
    UDID_IS_NULL(800000001),
    CALLBACKURL_IS_NULL(800000002),
    APP_UDID_IS_EXISTS(800000003),
    APP_UDID_IS_NOT_EXISTS(800000004),
    APP_UDID_IS_ACTIVED(800000005),

    //-----------------联盟模块----------------------------------------

    OTHER_ERROR(111111111),
    ERROR(222222222),

    //-----------resources模块异常处理----------------
    RESOURCES_REQUEST_ERROR(300000001),
    RESOURCES_SERVICE_ERROR(300000002),
    RESOURCES_CONTENT_CODE_IS_EMPTY(300001001),
    RESOURCES_CLIENT_TYPE_IS_EMPTY(300001002),
    RESOURCES_GENDER_IS_EMPTY(300001003),
    RESOURCES_PAGE_MUST_BE_GREATER_THAN_0(300001004),
    RESOURCES_LIMIT_MUST_BE_GREATER_THAN_0(300001005),

    RESOURCES_UID_IS_EMPTY(300002001),
    RESOURCES_UDID_IS_EMPTY(300002002),
    RESOURCES_APP_VERSION_IS_EMPTY(300002003),
    RESOURCES_SCREEN_SIZE_EMPTY(300002004),
    RESOURCES_NO_CACHE_CLEAR_INFO(300002005),

    RESOURCES_NO_CLIENT_TYPE(300003001),
    RESOURCES_NO_APP_CLIENT_TYPE_ADS(300003002),
    RESOURCES__NO_APP_CLIENT_TYPE_ADS(300003004),
    RESOURCES_NODE_IS_EMPTY(300003003),
    RESOURCES_USERPROFILE_IS_EMPTY(300004001),
    RESOURCES_USERBASE_IS_EMPTY(300004002),
    RESOURCES_YOHOOD_PASSKIT_UID_EMPTY(300004005),
    RESOURCES_YOHOOD_PASSKIT_TICKET_CODE_EMPTY(300004006),
    RESOURCES_YOHOOD_PASSKIT_TICKET_DB_NOT_FOUND(300004007),
    RESOURCES_YOHOOD_PASSKIT_TICKET_UID_UNMATCH(300004008),
    RESOURCES_YOHOOD_PASSKIT_GENERATE_ERROR(300004009),
    RESOURCES_YOHOOD_LARGEVIEW_TAG_ID_ERROR(300004010),
    RESOURCES_SINGLE_NOT_FIND(300005001),
    RESOURCES_SINGLE_PARSE_DATA_ERROR(300005002),

    // 2016/12/9 v5.3帮助中心接口 对应的错误消息
    PLATFORM_NAME_IS_NULL(300006001),
    PLATFORM_IS_INVALID(300006002),
    FIRST_LEVEL_CATEGORY_IS_NOTEXIST(300006003),
    HELPER_CONTENT_IS_NOTEXIST(300006004),


    //-----------resources模块异常处理----------------
    //-----------order模块异常处理----------------
    ORDER_REQUEST_ERROR(400000001),
    ORDER_SERVICE_ERROR(400000002),
    ORDER_NULL(400001001),
    ORDER_ORDER_CODE_IS_EMPTY(400001002),
    ORDER_UID_IS_EMPTY(400001003),
    ORDER_DELETE_ORDER_FAIL(400001004),
    ORDER_ORDERS_GOODS_IS_EMPTY(400001005),
    ORDER_REQUEST_PARM_IS_EMPTY(400001000),
    ORDER_ORDER_HAS_PAID(400001006),
    ORDER_SUBMIT_ORDER_STATUS_FAIL(400001007),
    ORDER_PAYMENT_IS_EMPTY(400001008),
    ORDER_NO_DELIVERY_ORDER(400001009),
    ORDER_NO_LOGISTICS_ORDER(400001010),
    ORDER_NOT_FIND_LOGISTICS_COMPANY(400001011),
    ORDER_LOGISTICS_INFORMATION(400001012),
    ORDER_CHANGE_NO_ID(400001013),
    ORDER_CHANGE_NO_EXPRESS_COMPANY(400001014),
    ORDER_CHANGE_NO_EXPRESS_NUM(400001015),
    ORDER_CHANGE_NO_LOGIN(400001016),
    ORDER_HAS_DELETE(400001017),
    ORDER_CHANGE_ORDER_NO_CONFIRM(400001018),
    ORDER_CHANGE_ORDER_EXPIRED(400001019),
    ORDER_SAVE_EXPRESS_FAIL(400001020),
    ORDER_SAVE_EXPRESS_SUCCESS(400001021),
    ORDER_CHANGE_NO_CHANGEID(400001022),
    ORDER_CHANGE_ORDER_NO_EXISTS(400001023),
    ORDER_CHANGE_SOURCE_NO_EXISTS(400001024),
    ORDER_CHANGE_APPLY_NO_SIGN(400001025),
    ORDER_CHANGE_APPLY_HAS_EXPIRED(400001026),
    ORDER_CHANGE_APPLY_NO_GOODS(400001027),
    ORDER_CHANGE_APPLY_NO_RECEIVE_NAME(400001028),
    ORDER_CHANGE_APPLY_NO_AREA(400001029),
    ORDER_CHANGE_APPLY_NO_ADDRESS(400001030),
    ORDER_CHANGE_APPLY_PHONE_WRONG(400001031),
    ORDER_CHANGE_APPLY_NO_DEVELIVERY_TYPE(400001032),
    ORDER_CHANGE_APPLY_NO_CHANGE_REASON(400001033),
    ORDER_CHANGE_APPLY_NO_FULL_INFO(400001034),
    ORDER_CHANGE_APPLY_NO_SUBMIT_REPEAT(400001035),
    ORDER_CHANGE_APPLY_CHANGE_NUM_WRONG(400001036),
    ORDER_CHANGE_NO_EXISTS(400001037),
    ORDER_CHANGE_APPLY_ERP_ERROR(400001038),
    ORDER_CHANGE_CREATE_LOCAL_ERROR(400001039),
    ORDER_PAY_CANCELED_AND_PAID(400001038),
    ORDER_PAY_AMOUNT_NOT_EQUAL(400001039),



    ORDER_PAY_ATTRIBUTE_EMPTY(400001040),
    ORDER_PAY_ID_EMPTY(400001041),
    ORDER_PAY_UID_EMPTY(400001042),

    ORDER_CANCEL_ORDERS_OUPONS_FAIL(400001043),
    ORDER_CANCEL_ORDERS_LIMITCODE_FAIL(400001044),
    ORDER_PRODUCT_ID_EMPTY(400001045),
    
    ORDER_CANCEL_FAILED_BY_STATUS_PAYFINISHED(400001046),//取消订单错误码,已支付的不能取消
    ORDER_CANCEL_FAILED_BY_STATUS_SHIPPED(400001047),////取消订单错误码,已发货的不能取消
    ORDER_CHANGE_CREATE_STORAGE_NOT_ENOUGH(400001048),
    ORDER_CONFIRM_FAILED_BY_STATUS_NOT_SHIPPED(400001049), //确认未发货的订单错误码,未发货的订单不能确认
    ORDER_CANCEL_FAILED_NOT_FIT_TIME(400001050),//取消订单错误码,预支付时间不够
    ORDER_EXPRESS_NOT_VALIDATE(400001051),
    // 收货地址
    ORDER_DELIVERY_ADDRESSID_IS_EMPTY(400001052),
    ORDER_NOT_EXIST(400001053),
    ORDER_HAS_BEEN_REMOVED(400001054),
    ORDER_HAS_BEEN_DELIVERED(400001055),
    ORDER_THE_REGION_NOT_EXIST(400001056),
    ORDER_MODIFY_ONE_TIMES_DELIVERY_ADDRESS(400001057),
    ORDER_DELIVERY_ADDRESSID_NOT_SUPPORT_SF_DISTRIBUTION_AREA(400001058),
    ORDER_PAY_NOT_ALLOW(400001059),
    ORDER_THE_ORDER_HAS_BEEN_CANCELLED(400001060),
    ORDER_DELIVERY_ADDRESSID_NOT_SUPPORT_SF_EXPRESS_TRANSPORT(400001061),
    ORDER_NOT_SUPPORT_CODPAY(400001062),
    ORDER_NOW_IS_CODPAY(400001063),

    ORDER_PAYRESULT_CONFIRM_ING(400001070),
    ORDER_NOT_OUTLINE_GET_PAYMENTSTATUS(400001080),

    //退货
    ORDER_UID_ERROR(400002001),
    ORDER_REFUND_REQUEST_ID_ERROR(400002002),
    ORDER_REFUND_REQUEST_NOT_EXIST(400002003),
    ORDER_NO_REFUND_GOODS(400002004),
    ORDER_SET_REFUND_REQUEST(400002005),
    ORDER_LOGISTICS_COMPANY(400002006),
    ORDER_FILL_OUT_EXPRESS_ORDER(400002007),
    ORDER_LOGIN_FIRST(400002008),
    ORDER_NO_REFUND_REQUEST(400002009),
    ORDER_FAIL_EXPRESS_ORDER(400002010),
    ORDER_REFUND_EXPRESS_DATA_FAIL(400002011),
    ORDER_NO_REFUND_REQUEST_GOODS(400002012),
    ORDER_INVALID_USER_ID(400002013),
    ORDER_ORDER_NUMBER_ERROR(400002014),
    ORDER_DOES_NOT_EXIST(400002015),
    ORDER_HAS_BEEN_DELETED(400002016),
    ORDER_NOT_CONFIRMED_CANNOT_RETURNED(400002017),
    ORDER_EXCEEDED_RETURN_PERIOD(400002018),
    ORDER_NUMBER_ERROR(400002019),
    ORDER_USER_ID_ERROR(400002020),
    ORDER_SELECT_GOODS_TO_RETURN(400002021),
    ORDER_SELECT_RETURN_SET(400002022),
    ORDER_SELECT_RETURN_METHOD(400002023),
    ORDER_SETUP_BANK_CARD_INFORMATION(400002024),
    ORDER_SETUP_ALIPAY_ACCOUNT(400002025),
    ORDER_RETURN_ORDER_NOT_EXIST(400002026),
    ORDER_ORDER_DELETE(400002027),
    ORDER_SELECT_RETURN_GOODS(400002028),
    ORDER_SELECT_RETURN_REASON(400002029),
    ORDER_UPLOAD_REAL_PICTURE(400002030),
    ORDER_FILLOUT_RETURN_INSTRUCTION(400002031),
    ORDER_RETURN_AMOUNT_EXCEED(400002032),
    ORDER_NO_DUPLICATE_SUBMIT(400002033),
    ORDER_FAILTO_LOCAL_CREDIT_ORDER(400002034),
    ORDER_FAILTO_CREDIT_ORDER(400002035),
    ORDER_REFUND_SUBMIT_FAIL(400002036),
    ORDER_REFUND_QUERY_ORDER_GOODS_NULL(400002037),
    ORDER_REFUND_CANCAEL_STATUS_ILLEGAL(400002038),
    ORDER_CHANGE_CANCAEL_STATUS_ILLEGAL(400002039),
    ORDER_CHANGE_GOODS_NOT_EXISTS(400002040),
    ORDER_EXPRESS_COMPANY_NOT_MORE_THAN_10_WORDS(400002041),
    ORDER_INPUT_CORRECT_BANK_CARD(400002042),
    ORDER_INPUT_CORRECT_ALIPAY_ACCOUNT(400002043),
    ORDER_INPUT_BRANCH_BANK_INFORMATION(400002044),


    //物流
    ORDER_PARAMETER_PASSING_INCORRECT(400003001),
    ORDER_NO_EXCHANGE_REFUND_INFORMATION(400003002),
    ORDER_NOT_FIND_THE_LOGISTICS_COMPANY(400003003),
    ORDER_NO_LOGISTICS_COMPANY(400003004),

    //动态参数
    ORDER_SUBMIT_CALL_ERP(400004001),
    ORDER_SET_EXPRESS_CALL_ERP(400004002),
    ORDER_MISSING_REQUIRED_FIELD(400004003),
    ORDER_SUBMIT_CALL_ERP_RESULT(400004004),

    //拆分订单
    ORDER_SPLIT_ORDER_FAIL(400005001),
    //电子发票
    ORDER_INVOICE_NOT_ELETRONIC(400006001),
    ORDER_INVOICE_HEADER_BLANK(400006002),
    ORDER_INVOICE_GOODSITEMS_EMPTY(400006003),
    ORDER_INVOICE_ORDERSTATUS_NULL(400006004),
    ORDER_INVOICE_QUERY_SKNS_MARKETPRICE_NULL(400006005),
    ORDER_INVOICE_ACTUAL_AMOUNT_IS_ZERO(400006006),

    //门票
    ORDER_TICKET_SOLD_OUT(400007001),
    ORDER_TICKET_COLORNAME_FORMAT_IS_RIGHT(400007002),
    ORDER_TICKET_SEAT_SOLD_OUT(400007003),
    ORDER_TICKET_TYPE_IS_EMPTY(400007004),
    ORDER_TICKET_IS_EMPTY(400007005),
    ORDER_UID_NOT_EXIST(400007006),

    //-----------order模块异常处理----------------

    //-----------MESSAGE模块异常处理----------------
    SMS_REQUEST_PARAM_NULL(600001001),
    SMS_IP_REQUEST_OVER_1000_TIME(600001002),
    SMS_MOBILE_REQUEST_OVER_100_TIME(600001003),
    SMS_REDIS_ERROR(600001004),
    SMS_TEMPLATE_ID_NULL(600001005),
    SMS_TEMPLATE_NOT_EXIST(600001006),
    SMS_TEMPLATE_NO_FIT_USER(600001007),
    SMS_TEMPLATE_USER_NOT_EXIST(600001008),
    SMS_MESSAGE_SEND_FAILED(600001009),
    SMS_INBOX_UID_NULL(600001010),
    SMS_MOBILE_IN_BLACKLIST(600001011),
    SMS_IP_IN_BLACKLIST(600001012),
    SMS_SEND_NUM_OUTOFLIMIT(600001013),
    SMS_TEMPLATE_PROJECT_NULL(600001014),
    SMS_MESSAGE_IS_NULL(600001015),
    SMS_TOKEN_IS_NULL(600001016),
    SMS_TOKEN_IS_ERRPR(600001017),
    
    //-----------PUSH模块异常处理----------------
    PUSH_RECYCLETASK_TASKKEY_EMPTY(600002001),
    PUSH_RECYCLETASK_TASKKEY_NOTEXIST(600002002),
    PUSH_RECYCLETASK_UID_EMPTY(600002003),
    

    //-----------SNS模块异常处理----------------
    SNS_PARAMS_IS_NULL(700001001),
    // 700-003 guang 逛
    ARTICLE_GET_ID_ISNULL(700003001),
    ARTICLE_GET_DATA_ISNULL(700003002),
    ARTICLE_FAV_UID_ISNULL(700003003),
    ARTICLE_FAV_ARTID_ISNULL(700003004),
    ARTICLE_FAV_ADD_FAIL(700003005),
    ARTICLE_FAV_DEL_FAIL(700003006),
    ARTICLE_GETBASEINFO_ID_ISNULL(700003007),
    ARTICLE_GETBASEINFO_DATA_ISNULL(700003008),
    ARTICLECOMMENTS_GETLIST_ARTICLEID_ISNULL(700003009),
    ARTICLECOMMENTS_GETLIST_DATA_ISNULL(700003010),
    ARTICLECOMMENTS_ADD_UID_ISNULL(700003011),
    ARTICLECOMMENTS_ADD_ARTICLEID_ISNULL(700003012),
    ARTICLECOMMENTS_ADD_ARTICLE_ISNULL(700003013),
    ARTICLECOMMENTS_ADD_USER_ISNULL(700003014),
    ARTICLE_PRAISE_ARTID_ISNULL(700003015),
    ARTICLE_PRAISE_UDID_ISNULL(700003016),
    ARTICLE_PRAISE_GET_FAIL(700003017),
    ARTICLE_PRAISE_SET_FAIL(700003030),
    SHAREBRAND_DETAIL_ID_ISNULL(700003018),
    SHAREBRAND_DETAIL_BRANDRELATION_ISNULL(700003019),
    SHAREBRAND_DETAIL_BRAND_ISNULL(700003020),
    PLUSTAR_BRAND_TYPE_IS_NULL(700003021),
    ARTICLE_AUTHOR_UID_NULL(700003022),
    ARTICLE_AUTHOR_UID_PARAM_ERROR(700003023),
    ARTICLE_AUTHOR_NOT_EXIST(700003024),
    ARTICLE_CONTENT_ARTICLEID_NULL(700003025),
    ARTICLE_CONTENT_ARTICLEID_ERROR(700003026),
    ARTICLE_CONTENT_ARTICLE_NOT_EXIST(700003027),
    ARTICLE_NEXT_PRE_NOT_EXIST(700003031),
    BRAND_RELATION_NOT_EXIST(700003028),
    ARTICLE_TAG_IS_EMPTY(700003029),
    ARTICLE_PRAISE_CANCEL_FAIL(700003032),


    //-------------PROMOTION促销优惠券模块------------------------/
    PROMOTION_REQUEST_PAREMENT_ERROR(700001000),
    PROMOTION_PARAM_IS_ERROR(700001001),
    PROMOTION_COUPON_IS_INVAILD(700001002),
    PROMOTION_COUPON_IS_CLOSED(700001003),
    PROMOTION_COUPON_NOT_EXISTS(700001004),
    PROMOTION_COUPONINFO_NOT_EXIST(700001005),
    PROMOTION_COUPON_IS_NOT_VAILD(700001006),
    PROMOTION_COUPON_CANNOT_USE(700001007),
    PROMOTION_COUPON_USE_TYPE_NOT_ALLOW(700001008),
    PROMOTION_COUPON_USED_MAX(700001009),
    PROMOTION_COUPON_NOT_USE_DOUBLE(700001010),
    PROMOTION_COUPON_NOT_ALLOW_OR_EXPIRE(700001011),
    PROMOTION_COUPON_USE_MAX(700001012),
    PROMOTION_COUPON_IS_NOT_YOUS(700001013),
    PROMOTION_COUPON_HAS_RECEIVED(700001014),
    PROMOTION_COUPON_HAS_NOT_EXISTS(700001015),
    PROMOTION_COUPON_SEND_FAIL(700001016),
    PROMOTION_COUPON_HAS_NO_VAILD(700001017),
    PROMOTION_COUPON_CONFIG_NOT_EXISTS(700001018),
    PROMOTION_YOHOBI_SEND_FAIL(700001019),
    PROMOTION_COUPON_USER_BIRTH_IS_NULL(700001020),
    PROMOTION_COUPON_USER_BIRTH_IS_NOT_ALLOW(700001021),
    PROMOTION_COUPON_USER_BIRTH_ONE_YEAR_ONE(700001022),
    PROMOTION_ACTIVITY_NOT_EXISTS(700001041),
    PROMOTION_ACTIVITY_CONFIGURATION_NOT_EXISTS(700001042),
    PROMOTION_COUPON_ONLY_NEW_USER_CAN_ACQUIRE(700001043),
    PROMOTION_ACTIVITY_COUPON_HAS_ACQUIRED(700001044),
    POROMTION_COUPON_USER_LEVEL_CAN_NOT_ACQUIRE(700001045),
    ACTIVITY_STATUS_ERROR(700001046),
    HAVE_NOT_EXISTS_SHARE_HISTORY(700001047),
    REQUEST_PARAM_INVALID(700001048),
    PROMOTION_PCOUPON_ARRIVED_MAX_TIMES(700001049),
    PROMOTION_COUPON_BROADCAST_SEND_FAIL(700001051),
    PROMOTION_COUPON_NOT_ARRIVE_GET_START_TIME(700001052),
    PROMOTION_COUPON_TIME_OUT_CAN_NOT_GET(700001053),
    PROMOTION_COUPON_VIP_LEVEL_NO_BIRTH_COUPON(700001054),
    PROMOTION_COUPON_NO_BIRTH_COUPON_GET(700001055),
    //限购码异常
    LIMIT_CODE_NOT_EXIST(700001030),
    LIMIT_CODE_INVALID(700001031),
    LIMIT_CODE_EXPIRED(700001032),
    LIMIT_CODE_NOT_AVAILABLE(700001033),
    LIMIT_CODE_EXCEED_LIMIT_NUM(700001034),
    LIMIT_CODE_UNFIT_CONDITION(700001035),
    LIMIT_CODE_NOT_PRODUCT(700001036),
    HAS_RECEIVE_LIMIT_CODE_PRODUCT(700001037),
    LIMIT_CODE_BATCH_NOT_EXIST(700001038),
    LIMIT_PRODUCT_TYPE_NOT_SHARE(700001039),
    LIMIT_CODE_SKU_NOT_MATCH_PRODUCTSKU(700001040),
    LIMIT_PRODUCT_TYPE_SPECIAL_NOT_SHARE(700001050),
    

    //优惠码异常
    PROMOTION_CODE_NOT_EXIST(700001023),
    PROMOTION_CODE_INVALID(700001024),
    PROMOTION_CODE_EXPIRED(700001025),
    PROMOTION_CODE_EXCEED_LIMIT_NUM(700001026),
    PROMOTION_CODE_UNFIT_CONDITION(700001027),
    PROMOTION_CODE_NOT_AVAILABLE(700001028),

    //----------------购物车异常码-------------------/
    SHOPPING_REQUESTPARAMS_IS_NULL(200001001),
    SHOPPING_PRODUCTSKU_IS_NULL(200001002),
    SHOPPING_SHOPPINGKEY_IS_NULL(200001003),
    SHOPPING_PRODUCTSKN_BUYNUMBER_OVER_MAX(200001004),
    SHOPPING_CART_NUMBER_OVER_MAX(200001005),
    SHOPPING_PROFILE_IS_EMPTY(200001006),
    SHOPPING_CART_IS_EMPTY(200001007),
    SHOPPING_BUSCHECK_STORAGE_NUM_NOT_SUPPORT(200001008),
    SHOPPING_PRODUCT_ATTRIBUTE_NOT_SUPPORT(200001009),
    SHOPPING_PRODUCT_NOT_EXIST(200001010),
    SHOPPING_VRESION_NOT_SUPPORT_ADVANCE(200001011),
    SHOPPING_CART_ONLY_ONE_PRODUCT(200001012),
    SHOPPING_PRODUCT_SKU_LIST_IS_NULL(200001013),
    SHOPPING_PACKAGE_FORMAT_IS_NULL(200001014),
    SHOPPING_SWAP_DATA_IS_NULL(200001015),
    SHOPPING_UID_IS_NULL(200001016),
    SHOPPING_PRODUCT_NOT_BELONG_PROMOTION(200001017),
    SHOPPING_GOODS_NUMBER_NOTMEET_COUPONS(200001018),
    SHOPPING_GOODS_AMOUNT_NOTMEET_COUPONS(200001019),
    SHOPPING_SHIPPINGCOST_IS_FREE_NEXTTEIME_USE_COUPONCODE(200001020),
    SHOPPING_NON_USE_COUPONS_GOODS(200001021),
    SHOPPING_COUPONCODE_IS_NULL(200001022),
    SHOPPING_CART_IS_EMPTY_FOR_QUERY(200001023),
    SHOPPING_CART_IS_EMPTY_FOR_INCREASE(200001024),
    SHOPPING_CART_IS_EMPTY_FOR_DECREASE(200001025),
    SHOPPING_CART_IS_EMPTY_FOR_REMOVE(200001026),
    SHOPPING_CART_IS_EMPTY_FOR_SWAP(200001027),
    SHOPPING_CART_IS_EMPTY_FOR_PAYMENT(200001028),
    SHOPPING_CART_IS_EMPTY_FOR_COUNT(200001029),
    SHOPPING_CART_IS_EMPTY_FOR_SELECTED(200001030),
    SHOPPING_CART_IS_EMPTY_FOR_COMPUTE(200001031),
    SHOPPING_CART_IS_EMPTY_FOR_USECOUPON(200001032),
    SHOPPING_CART_IS_EMPTY_FOR_SUBMIT(200001033),
    SHOPPING_CART_IS_EMPTY_FOR_ADDFAVORITE(200001034),

    SHOPPING_CART_ORDER_TAG_IS_USED(200001040),
    SHOPPING_CART_GET_ORDERCODE_ERROR(200001041),
    SHOPPING_PROMOTION_NOT_EXIST(200001042),
    SHOPPING_ERP_ORDER_GOODS_IS_EMPTY(200001043),
    SHOPPING_BUSCHECK_ERP_ORDER_MISSING_FIELDS(200001044),
    SHOPPING_BUSCHECK_ERP_ORDER_GOODS_MISSING_FIELDS(200001045),

    SHOPPING_BUSCHECK_ERP_ORDER_RECEIVER_MISSING_FIELDS(200001046),
    SHOPPING_ERP_ORDER_PROMOTION_MISSING_FIELDS(200001047),
    SHOPPING_ERP_ORDER_CREATION_ERROR(200001048),
    SHOPPING_BUSCHECK_LOCAL_ORDER_MISSING_FIELDS(200001049),
    SHOPPING_YOHO_EXCEED_REAL_AMOUT(200001050),
    SHOPPING_BUSCHECK_PRODUCT_EXCEED_BUYLIMIT(200001051),
    SHOPPING_ERP_ORDER_STATUS_ERROR(200001052),
    SHOPPING_ORDER_ADDRESS_IS_NULL(200001053),
    SHOPPING_ORDER_PAYMENTTYPE_IS_NULL(200001054),
    SHOPPING_ORDER_PAYBY_IS_NULL(200001055),
    SHOPPING_BUSCHECK_ERP_STATUS_RETURN_CODE_NOT_200(200001056),
    SHOPPING_CART_ADDFAVORITE_ACTION_ERROR(200001057),
    SHOPPING_BUSCHECK_ERP_ORDER_CREATION_RETURN_CODE_NOT_200(200001058),
    SHOPPING_ORDER_GOODS_IS_EMPTY(200001059),
    SHOPPING_COUPONS_PROMOTIONCODE_BOTH_NOT_NULL(200001060),
    SHOPPING_PROMOTIONCODE_NOTMEETING_CONDITION(200001061),
    SHOPPING_PRMOTIONCODE_NOT_EXISTS(200001062),
    SHOPPING_BLACK_LIST(200001063),
    SHOPPING_CASH_PAYMENT_AMOUNT_OVER_LIMIT(200001064),
    SHOPPING_SHOPPINGKEY_LENGTH_OVERLIMIT(200001065),
    SHOPPING_PRODUCT_STORAGE_NUM_NOT_ENOUGH(200001066),
    SHOPPING_CART_VERSION_NOT_SUPPORT(200001067),
    SHOPPING_CART_ILLEGAL_PARAMETER(200001068),
    SHOPPING_USE_YOHOCOIN_AMOUNT_OVER_ORDER_AMOUNT(200001069),
    SHOPPING_USER_BLACK_LIST(200001070),
    SHOPPING_ORDER_MUST_ONLINE_PAY(200001071),
    SHOPPING_ORDER_AMOUNT_ERROR(200001072),
    SHOPPING_ONLINE_PAY_ORDER_AMOUNT_OVERLIMIT(200001073),
    SHOPPING_JIT_SUPPLIER_ERROR(200001074),
    SHOPPING_CART_TYPE_NOT_SUPPORT(200001075),
    SHOPPING_USER_MOBILE_IS_INVALID(200021001),
    SHOPPING_PRODUCT_ATTRIBUTE_NOT_SUPPORT_TICKET(200021002),
    SHOPPING_TICKET_SYSCONFIG_IS_NULL(200021003),
    SHOPPING_TICKET_HAS_BUY(200021004),
    SHOPPING_TICKET_SIZENAME_FORMST_IS_RIGHT(200021005),
    SHOPPING_SUBMIT_ORDER_FAIL(200021006),
    SHOPPING_ORDER_AMOUNT_INCORRECT(200021007),
    SHOPPING_ORDER_REPEATABL_SUBMIT(200021008),
    SHOPPING_TICKET_MUST_UPGRADE_VERSION(200021009),
    SHOPPING_PRODUCT_NOT_SUPPORT_BUYNOW(200021010),
    
    SHOPPING_CART_OFFLINE_PRODUCT_LOCK_ERROR(200021011),
    SHOPPING_CART_OFFLINE_PRODUCT_UN_LOCK_ERROR(200021012),
    SHOPPING_CART_OFFLINE_PRODUCT_CHECK_LOCK_ERROR(200021013),
    SHOPPING_CART_OFFLINE_STOCK_QUERY_ERROR(200021014),
    SHOPPING_CART_OFFLINE_QR_BIND_ERROR(200021015),
    SHOPPING_CART_OFFLINE_QR_ACTIVATE_ERROR(200021016),
    SHOPPING_CART_OFFLINE_QR_NOT_MATCH(200021017),
    SHOPPING_CART_OFFLINE_PAYMENT_STORAGE_UNSATISFY(200021018),
    SHOPPING_CART_OFFLINE_SUBMIT_STORAGE_UNSATISFY(200021019),
    SHOPPING_CART_OFFLINE_PAYMENT_STORAGE_NOT_ENOUGH(200021020),
    SHOPPING_CART_OFFLINE_SUBMIT_STORAGE_NOT_ENOUGH(200021021),

    //秒杀
    SHOPPING_PRODUCT_NOT_SUPPORT_SECKILL(200022010),
    SHOPPING_SECKILL_NOT_SUPPORT_OPERATION(200022011),
    SHOPPING_SECKILL_ONLY_BUY_ONE_GOODS(200022012),
    SHOPPING_SECKILL_NOT_SUPPORT_ADD_SHOPPINGCART(200022013),
    SHOPPING_SECKILL_ONLY_BUY_ONE(200022014),
    SHOPPING_SECKILL_GOODS_SOLD_OUT(200022018),
    SHOPPING_SECKILL_ACTIVITY_NOT_START(200022019),
    SHOPPING_SECKILL_ACTIVITY_IS_OVER(200022020),

    SHOPPING_PRODUCT_NOT_SUPPORT_DEPOSIT(200022021),
    SHOPPING_DEPOSIT_ACTIVITY_IS_OUT(200022023),
    SHOPPING_DEPOSIT_ACTIVITY_IS_OVER(200022025),
    
    //线下店
    SHOPPING_CART_OFFLINE_DONT_HAVE_PERMISSION_ACTIVATE(200022015),
    SHOPPING_CART_OFFLINE_ILLEGAL_PARAMETER_FOR_DELETE(200022016),
    SHOPPING_CART_OFFLINE_CANNT_CHANGE_NUM_FOR_SWAP(200022017),
    SHOPPING_CART_OFFLINE_LOCK_STORAGE_FAILED(200022022),
    SHOPPING_CART_OFFLINE_IS_INVALID(200022024),
    SHOPPING_CART_OFFLINE_ACTIVATE_NOT_ENOUGH_STORAGE(200022026),

    SHOPPING_PRODUCT_STORAGE_NUM_NOT_ENOUGH_SOLDOUT(200022027),

    //套餐
    SHOPPING_ACTIVITY_IS_INVALID(200022028),
    SHOPPING_THE_SAME_SKN_ONLY_BUY_ONE_IN_AN_ACTIVITY(200022029),
    SHOPPING_SKN_NOT_BELONG_TO_ACTIVITY(200022030),
    SHOPPING_ACTIVITY_SKN_MUST_NEED_BUY(200022031),
    SHOPPING_PRODUCT_BUNDLE_NOT_EXIST(200022032),
    SHOPPING_CART_NOT_SUPPORT_ADD_THE_PRODUCT(200022033),
    SHOPPING_PRODUCT_BUY_NUMBER_NOT_MEET_CONDITION(200022034),
    SHOPPING_CART_PRODUCT_BUY_NUMBER_NOT_MEET_CONDITION(200022035),

    SHOPPING_SYS_ERROR(200009999),


    //----------------商品异常码 start-------------------/
    //商品收藏服务接口
    PRODUCT_TYPE_INCORRECT(500001001),
    PRODUCT_ID_INCORRECT(500001002),
    PRODUCT_NOT_EXIST(500001003),
    PRODUCT_EXISTS(500001004),
    PRODUCT_ADD_FAVORITE_SUCCESS(500001005),
    PRODUCT_ADD_FAVORITE_FAIL(500001006),
    PRODUCT_CANCLE_FAVORITE_SUCCESS(500001007),
    PRODUCT_CANCLE_FAVORITE_FAIL(500001008),
    FAVORITED_OVER_LIMIT(500001016),
    //品牌收藏服务接口
    UID_NOT_EXIST(500001009),
    BRAND_NOT_EXISTS(500001010),
    BRAND_ALREADY_FAVORITE(500001011),
    //加价购服务接口
    PRODUCTSKN_IS_NULL(500001012),
    PROMOTIONID_IS_NULL(500001013),
    PRODUCT_DATA_NOT_EXIST(500001014),
    ACTIVITY_NOT_CONTAIN_PRODUCT(500001015),

    // Outlets 专题
    PRODUCT_ACTIVITY_PARAMS_PLATFORM(500001019),
    PRODUCT_ACTIVITY_PARAMS_TYPE(500001020),
    PRODUCT_ACTIVITY_PARAMS_ID(500001021),
    PRODUCT_ACTIVITY_NOT_EXIST(500001022),
    PRODUCT_ACTIVITY_NOT_START(500001023),
    PRODUCT_ACTIVITY_IS_END(500001024),

    //微信
    WECHAT_USERFOLLOW_OPENID_ISBLANK(800001001),
    WECHAT_USERFOLLOW_NO_UNIONID(800001002),
    WECHAT_USERFOLLOW_NO_TOKEN(800001003),
    WECHAT_USERFOLLOW_INVOKE_API_FAIL(800001004),
    WECHAT_PARAM_ISNULL(800001005),
    WECHAT_INTERFACE_ERROR(800001006),
    WECHAT_NOTSUPPORT_INTERFACE(800001007),

    //---------------社区异常码——————————————————————————/
    POSTS_PRAISE_ID_ISNULL(900001001),
    POSTS_PRAISE_UID_ISNULL(900001002),
    POSTS_PRAISE_FAIL(900001003),
    POSTS_PRAISE_GET_FAIL(900001004),
    POSTS_ID_ISNULL(900001005),
    POSTS_ISNULL(900001006),
    POSTS_COMMENT_UID_IS_NULL(900001007),
    POSTS_UID_IS_NULL(900001008),
    SOCIAL_UID_IS_NULL(900001009),
    SOCIAL_USERINFO_IS_NULL(900001010),
    SOCIAL_INBOX_MSG_ID_IS_NULL(900001011),
    SOCIAL_SSOUID_IS_NULL(900001012),
    SOCIAL_INBOX_TYPE_NULL(900001013),
    SOCIAL_APPTYPE_TYPE_NULL(900001014),

    POSTS_AUTHOR_UID_NULL(900002002),
    POSTS_AUTHOR_ISNOT_EXIST(900002003),
    POSTS_FORUM_ISNOT_EXIST(900002004),
    POSTS_INFO_IS_NULL(900002005),
    POSTS_FORUM_CODE_IS_NULL(90000206),
    POSTS_AUTHOR_ID_IS_NULL(90000207),
    POSTS_CONTENT_IS_NULL(90000208),
    POSTS_FORUM_GET_FAIL(900002009),
    POSTS_ADVERT_CODE_ISNOT_EXIST(900002010),
    POSTS_IMAGE_SIZE_ISNOT_SAME(900002011),
    
    POSTS_COMMENT_IS_NULL(900003001),
    POSTS_COMMENT_ID_IS_NULL(900003002),
    POSTS_COMMENT_DEL_INVALID(900003003),


    //----------------商品异常码 end-------------------/

    //---- EPR-Stock CODE ---//
    ERP_STOCK_ORDER_CODE_IS_EMPTY(70001002),
    ERP_STOCK_CHANNEL_CODE_IS_EMPTY(70001003),
    ERP_STOCK_ORDER_NOT_IN_MAP(70001004),
    ERP_STOCK_SHIFT_LOG_NOT_PRODUCT_SKU(70001005),
    ERP_STOCK_CHANGE_LOG_NOT_SKN_SKC_SKU(70001006),
    ERP_STOCK_OCCUP_NOT_SKU(70001007),
    ERP_STOCK_OCCUP_NOT_SHOPID(70001008),
    ERP_STOCK_OCCUP_NOT_SHOPKEY(70001009),
    ERP_STOCK_OCCUP_NOT_STOCKNUM(70001010),
    ERP_STOCK_CANNOT_GET_ANY_ORDERS(70001011),
    ERP_STOCK_CHECK_CAUSE_FAILURE(70001012),
    ERP_STOCK_WRONG_STOREHOUSE_ID(70001013),
    ERP_STOCK_IRREGULAR_PARAMETERS(70001014),
	ERP_STOCK_INVALID_SEAT_CODE(70001015),
	
	
	
	//################################################## ERP BEGIN ##############################
	
    SERVICE_ID_NOT_AVAILBLE(20001002),//param is null
    //----------------外采单异常码 begin-------------------/
    ERP_WEBSERVICE_SUCCESS(90001000),
    ERP_WEBSERVICE_EXCEPTION(90001001),
    ERP_WEBSERVICE_PARAM_ERROR(90001002),
    ERP_WEBSERVICE_SERVICE_NOT_AVAILABLE(90001003),
    ERP_POP_SKU_EMPTY(60001002),
    ERP_POP_EMPTY_JIT(60001003),
    ERP_POP_PURCHASE_EMPTY(60001004),
    ERP_POP_PURCHASE_GOODS_EMPTY(60001005),
    ERP_POP_EMPTY_BRAND_ID(60001006),
    ERP_POP_INVALID_BRAND_NAME(60001007),
    ERP_POP_NO_OUTSTORAGE_RECORD(60001008),
    ERP_POP_NO_REQUISITION_RECORD(60001009),
    ERP_POP_NO_PRO_REQUISITION_RECORD(60001010),
    ERP_POP_INPUT_FACTORYCODE_INVALID(60001011),
    ERP_POP_NO_PRO_REQUISITION_GOODS(60001012),
    ERP_POP_CASE_EXCEPTION(60001013),
    ERP_POP_NO_SALE(60001014),
    ERP_POP_ABNORMAL_INVENTORY(60001015),
    ERP_POP_ABNORMAL_SKU(60001016),
    ERP_POP_PARAM_ILLEGAL(60001017),
    ERP_POP_NO_PRO_REQUISITION_ERROR(60001018),
    ERP_POP_PRO_REQUISITION_COMMITTED(60001019),
    ERP_POP_MAIN_PRO_REQUISITION_NOT_COMMITED(60001020),
    ERP_POP_SUPPLY_PRO_REQ_FORBID(60001021),
    ERP_POP_REQUISITION_AUDIT_STATUS_ERROR(60001022),
    ERP_POP_NO_GOODS(60001023),
    ERP_POP_REQUISITION_STATUS_ERROR(60001024),
	ERP_POP_PRO_REQUISITION_STATUS_ERROR(60001025),
	ERP_POP_UNCOMMITTED_SUPPLY_PRO_REQUISITON(60001026),
	ERP_POP_IMPORT_NUM_GREATER_THAN(60001027),
    ERP_POP_NOT_DISTRIBUTION(60001028),
    ERP_POP_SYNC_VIR_STORAGE_ERROR(60001029),
    ERP_POP_PRO_REQUISITION_FINISHED(60001030),
    ERP_POP_DUPLICATE_KEY_OF_EXPRESS(60001031),
    ERP_POP_INVOKE_FMS_PAYEDAMOUNT_ERROR(60001032),
    ERP_POP_INVOKE_FMS_INSERTDEALERBALANCE_ERROR(60001033),
    //----------------外采单异常码 end-------------------/

	//----------------财务结算异常码 begin-------------------/
    ERP_FMS_SUCCESS(30001000),
    ERP_FMS_EXCEPTION(30001001),
    ERP_FMS_OUTINSTORAGE_EMPTY(30001002),
    ERP_FMS_REQUISITIONFORM_EMPTY(30001003),
	ERP_FMS_CLAUSESETTLEMENT_EMPTY(30001004),
	ERP_FMS_AGREEMENTClAUSE_EMPTY(30001005),
	ERP_FMS_BASEPRODUCT_EMPTY(30001006),
	ERP_FMS_SELL_TYPE_EXCEPTION(30001007),	
	ERP_FMS_PURCHASE_DISCOUNT_EXCEPTION(30001008),
	ERP_FMS_BALANCE_DETAIL_INSERT_ERROR_EXCEPTION(30001009),
	ERP_FMS_FINANCE_CLEARING_UPDATE_ERROR_EXCEPTION(30001010),
	ERP_FMS_PAYINFO_INSERT_DUPLICATE(30001011),
	ERP_FMS_PAYINFO_INSERT_ERROR(30001012),
	ERP_FMS_PAYINFO_INSERT_INVALID(30001013),
	ERP_FMS_USERRECEIVABLES_INSERT_DUPLICATE(30001013),
	ERP_FMS_USERRECEIVABLES_INSERT_ERROR(30001014),
	ERP_FMS_USERRECEIVABLES_INSERT_INVALID(30001015),
	ERP_FMS_USERRECEIVABLESSPLIT_INSERT_DUPLICATE(30001016),
	ERP_FMS_USERRECEIVABLESSPLIT_INSERT_ERROR(30001017),
	ERP_FMS_USERRECEIVABLESSPLIT_INSERT_INVALID(30001018),
	ERP_FMS_USER_PAYMENT_TOO_LARGE(30002006),
	ERP_FMS_SPECIAL_RETURN_STATUS_NOT_AUDITED(30002007),
    ERP_FMS_COSTCHANGE_NOT_EXISTED(30002008),
    ERP_FMS_COSTCHANGE_HAS_AUDITED(30002009),

	//----------------CRF分期付款异常码start-------------------/
	ERP_FMS_INSTALLMENT_REFUND_NOTIFY_INSERT_ERROR(30002000),
	ERP_FMS_INSTALLMENT_REFUND_NOTIFY_PARAMS_ERROR(30002001),
	ERP_FMS_INSTALLMENT_PAYMENT_NOTIFY_HAS_EXIST_ERROR(30002002),
	ERP_FMS_PARAMETER_ERROR(30002003),
    ERP_FMS_NO_REPAY_PLAN_RECORD(30002004),
	//----------------CRF分期付款异常码 end-------------------/
    
    
    //----------------经销请款异常码start-------------------/
    ERP_FMS_NO_SUPPLIER_INVOICE(30003000),
    ERP_FMS_SUPPLIER_INVOICE_NO_ENOUGH_AMOUNT(30003001),
    ERP_FMS_EMPTY_REQUISITION_INVOICE(30003002),
    ERP_FMS_EMPTY_REQUISITION_INVOICE_LIST(30003003),
    ERP_FMS_EMPTY_SUPPLIER_INVOICE(30003004),
    ERP_FMS_SUPPLIER_BRAND_ERROR(30003005),
    ERP_FMS_PRO_INVOICE_AMOUNT_ERROR(30003006),
    ERP_FMS_NET_INVOICE_AMOUNT_ERROR(30003007),
	ERP_FMS_NO_REQUISITION_GOODS(30003008),
	ERP_FMS_NO_PRO_REQUISITION_GOODS(30003009),
	ERP_FMS_SUPPLIER_INVOCIE_STATUS_ERROR(30003010),
	ERP_FMS_NO_PRO_REQUISITION(30003011),
	ERP_FMS_REQUISITION_INVOCIE_STATUS_ERROR(30003012),
	ERP_FMS_NO_AGREEMENT(30003013),
	ERP_FMS_NO_AGREEMENT_CLAUSE(30003014),
    ERP_FMS_REJECT_REASON(30003015),
    ERP_FMS_WORKFLOW_EMPTY(30003016),
    ERP_FMS_REQUISITION_EMPTY(30003017),
    ERP_FMS_CREATOR_NO_PERMISSION(30003018),
    ERP_FMS_NODE_STATUS_NOT_CHECK_PENDING(30003019),
    ERP_FMS_PID_IS_INVALID(30003020),
    ERP_FMS_ROLE_ID_NOT_FOUND(30003021),
    ERP_FMS_AMOUNT_GREATER_THAN_BALANCE_AMOUNT(30003022),
    ERP_FMS_AUDIT_FLAG_INVALID(30003023),
    ERP_FMS_PID_NOT_EXIST(30003024),
    ERP_FMS_ROLE_ID_NOT_MATCHING_PID(30003025),
	//----------------经销请款异常码end-------------------/
 	
    //----------------财务结算异常码 end-------------------/
	
	//----------------基础公共bms begin-------------------/
    ERP_BMS_SUCCESS(10001000),
    ERP_BMS_EXCEPTION(10001001),
    ERP_BMS_SMSBO_PARAMS_EMPTY(10001002),
    ERP_BMS_ACCOUNT_NOT_EXISTS(10001003),
    ERP_BMS_ACCOUNT_EXPIRED(10001004),
    ERP_BMS_ACCOUNT_CLOSED(10001005),
    ERP_BMS_ACCOUNT_NOT_AUTHORIZED(10001006),
    ERP_BMS_PASSWORD_NOT_CORRECT(10001007),
    ERP_BMS_ROLE_STATE_ERROR(10001008),
    ERP_BMS_ACCOUNT_HAS_EXISTED(10001009),
    ERP_BMS_SYN_ERP_PROFILE_EXCEPTION(10001010),
    ERP_BMS_NO_RECORD(10001011),
    ERP_BMS_PARAMS_EMPTY(10001012),
    //----------------基础公共bms end-------------------/
    
    //----------------权限系统ams begin  start with 1100xxxx-------------------/
    ERP_AMS_SUCCESS(11001000),
    ERP_AMS_EXCEPTION(11001001),
    ERP_AMS_SMSBO_PARAMS_EMPTY(11001002),
    ERP_AMS_ACCOUNT_NOT_EXISTS(11001003),
    ERP_AMS_ACCOUNT_EXPIRED(11001004),
    ERP_AMS_ACCOUNT_CLOSED(11001005),
    ERP_AMS_ACCOUNT_NOT_AUTHORIZED(11001006),
    ERP_AMS_PASSWORD_NOT_CORRECT(11001007),
    ERP_AMS_ROLE_STATE_ERROR(11001008),
    ERP_AMS_ACCOUNT_HAS_EXISTED(11001009),
    ERP_AMS_SYN_ERP_PROFILE_EXCEPTION(11001010),
    ERP_AMS_NO_RECORD(11001011),
    ERP_AMS_BLACK_ACCOUNT(11001012),
    ERP_AMS_NO_LEGAL_PIDS(11001013),
    //----------------权限系统ams end-------------------/
    
    
	//----------------订单异常码 begin-------------------/
    
    ERP_ORDER_SUCCESS(50001000),
    ERP_ORDER_EXCEPTION(50001001),
    ERP_ORDER_STATUS_DELIVERY_ERROR(50001002),
    ERP_ORDER_STATUS_CANCEL_ERROR(50001003),
    ERP_ORDER_STATUS_EMPTY(50001004),
    ERP_ORDER_EMPTY(50001005),
    ERP_ORDER_CODE_OR_STATUS_EMPTY(50001006),
    ERP_ORDER_BO_PARAMS_INVALID(50001007),
    ERP_ORDER_PARENT_ORDER_FAILED(50001008),
    ERP_ORDER_PARENT_ORDER_EMPTY(50001009),
    ERP_ORDER_COMPARE_AMOUNT_FAILED(50001010),
    ERP_ORDER_UPDATE_PARENT_PAYMENT_FAILED(50001011),
    ERP_ORDER_UPDATE_SUBORDERS_PAYINFO_FAILED(50001012),
    ERP_ORDER_ORDER_CODE_INVALID(50001013),
    ERP_ORDER_ORDER_TYPE_INVALID(50001014),
	
	ERP_ORDER_CALL_ERROR(50001140),
	ERP_ORDER_CHANGE_NOT_OPERATE(50001211),
	ERP_ORDER_AMOUNT_INVALID(50001212),
	ERP_ORDER_PARAM_INVALID(50001213),
	ERP_ORDER_CREATE_ORDER_FAILD(50001230),
	ERP_ORDER_INSERT_ERROR(50001226),
	ERP_ORDER_INSERT_GOODS_ERROR(50001229),
	ERP_ORDER_INSERT_COUPONS_ERROR(50001223),
	ERP_ORDER_INSERT_SPLITINFO_ERROR(50001224),
	ERP_ORDER_INSERT_PARENT_ORDER_ERROR(50001225),
	ERP_ORDER_INSERT_PROMO_ERROR(50001227),
	ERP_ORDER_NOT_EXISTS(50001217),
	ERP_ORDER_PARENT_EXISTS(50001218),
	ERP_ORDER_PARENT_NOT_EXISTS(50001219),
    ERP_ORDER_PARENT_NOT_PAYMENT(50001221),
	ERP_ORDER_IT_IS_PARENT_ORDER(50001228),
	ERP_ORDER_CHANNELS_ORDER_EXIST(50001220),
	ERP_ORDER_GOODS_IS_NULL(50001231),
	ERP_ORDER_USER_RECEIVABLE_INVALIDATE(50001232),
	ERP_ORDER_USER_RECEIVABLE_SPLIT_INVALIDATE(50001233),
	ERP_ORDER_CHILD_ORDER_GOODS_INVALID(50001222),
	ERP_ORDER_SET_PAYMENT_STATE_FAILD(50001215),
	ERP_ORDER_CODE_INVALID(50001214),
	ERP_ORDER_CANCEL_INSERT_USER_PAYMENT_FAILED(50001234),
	ERP_ORDER_CANCEL_FAILED(50001235),
	ERP_ORDER_CANCEL_REFUND_FAILED(50001236),
	ERP_ORDER_REFUND_GOODS_NUMBER_ERROR(50001237),
	ERP_ORDER_REFUND_CALC_MONEY_FAILED(50001238),
	ERP_ORDER_REFUND_CANNOT_MATCH_GOODS(50001239),
	ERP_ORDER_INSERT_PAYINFO_FAILED(50001240),
	ERP_ORDER_INSERT_USER_RECEIVABLES_FAILED(50001241),
	ERP_ORDER_INSERT_USER_RECEIVABLES_SPLIT_FAILED(50001242),
	ERP_ORDER_CHEAT_ORDER(50001243),
	ERP_ORDER_ORDER_STATUS_ERROR(50001244),
	ERP_ORDER_STATUS_CALL_ERROR(50001245),
	ERP_ORDER_INSERT_INVOICE_ERROR(50001246),
    ERP_ORDER_INSERT_ORDER_DUPLICATE(50001247),
    ERP_ORDER_RETURN_INSERT_USER_PAYMENT_FAILED(50001248),
    ERP_ORDER_INSTALMENT_RETURN_CRF_RESP_NULL(50001249),
    ERP_ORDER_INSTALMENT_HAS_RETURNED(50001250),
    ERP_ORDER_INSTALMENT_RATE_EMPTY(50001251),
    ERP_ORDER_INSTALMENT_NOT_EXIST(50001252),
    ERP_ORDER_INSTALMENT_CRF_RESPONSE_ERROR(50001253),
    ERP_ORDER_PAYMENT_INSTALLMENTRATES_INSERT_ERROR(50001254),
    ERP_ORDER_PAYMENT_INSTALLMENTREPAYPLAN_INSERT_ERROR(50001255),
    ERP_ORDER_INSTALMENT_CANCEL_SUCCESS(50001256),
    ERP_ORDER_INSTALMENT_CANCEL_FAILED(50001257),
    ERP_ORDER_STATUS_CANCEL_CODE_INVALID(50001258),
    ERP_ORDER_UPDATE_ADDRESS_ORDERCODE_INVALID(50001259),
    ERP_ORDER_UPDATE_ADDRESS_ORDERSTATUS_INVALID(50001260),
    ERP_ORDER_UPDATE_ADDRESS_SUCCESS(50001261),
    ERP_ORDER_PAYMENT_CHKACTINFO_ERROR(50001262),
    ERP_ORDER_STOCK_ERROR(50001263),
    ERP_ORDER_TYPE_ERROR(50001264),
    ERP_ORDER_CANNOT_DELETE_USER_RETURN(50001265),
    ERP_ORDER_NO_CHANGE_GOODS(50001266),
    ERP_ORDER_REFUSE_USED(50001267),
    ERP_ORDER_UPDATE_ORDERSTATUS_BYSKU_CANNOT_MATCH_ORDER(50001268),
    ERP_ORDER_CANNOT_RETURN(50001276),
    ERP_ORDER_NULL(50001277),

    //亿起发
    ORDER_EMAR_USER_EMPRY(50001269),
    ORDER_EMAR_USER_KEY_ERROR(50001270),
    ORDER_EMAR_CID_WI_NOT_FOUND(50001271),
    ORDER_EMAR_NO_ORDERS(50001272),
    ORDER_EMAR_PROPERTY_ERROR(50001273),
    
    ORDER_MARK_ORDER_TOO_MANY_SKUS(50001274),
    //----------------订单异常码 end-------------------/
	
	
	//----------------WMS异常码 begin-------------------/
	ERP_WMS_SUCCEED(80001000),
	ERP_WMS_FAIL(80001001),
	ERP_WMS_IMPERFECT_PARAM_ERROR(80001002),
	ERP_WMS_IMPERFECT_ORIGINAL_SKU_NOT_EXIST(80001003),
	ERP_WMS_IMPERFECT_ORIGINAL_SKC_NOT_EXIST(80001004),
	ERP_WMS_IMPERFECT_ORIGINAL_SKN_NOT_EXIST(80001005),
	ERP_WMS_IMPERFECT_ORIGINAL_SKUSKCSKN_NOT_EXIST(80001006),
	ERP_WMS_IMPERFECT_OUTSTOCK_FAIL(80001007),
	ERP_WMS_IMPERFECT_UPDATE_INSTOCK_NUM_FAIL(80001008),
	ERP_WMS_IMPERFECT_BUILD_INSTORAGE_ORDER_FAIL(80001009),
	ERP_WMS_IMPERFECT_SEAT_CODE_STRING_ERROR(80001010),
	ERP_WMS_IMPERFECT_SKU_IS_IMPERFECT(80001011),
	ERP_WMS_IMPERFECT_STORAGE_NOT_ENOUGH(80001012),
    ERP_WMS_GET_OFFLINE_ALLOCATION_SN_FAIL(80001013),
    ERP_WMS_OFFLINE_NO_APPROVAL_GOODS(80001014),
    ERP_WMS_SUBMITTED_ALLOCATION(80001015),
    ERP_WMS_NO_ALLOCATION_RECORD(80001016),
    ERP_WMS_OPT_AUDITING_ALLOCATION(80001017),
    ERP_WMS_OFFLINE_NO_SHOP_ID(80001018),
    ERP_WMS_OFFLINE_PDA_NO_MOVED_GOODS(80001019),
    ERP_WMS_OFFLINE_PDA_NOT_ENOUGH_GOODS(80001020),
    ERP_WMS_GET_OFFLINE_INSTORE_PRODUCT_ERROR(80001021),
    ERP_WMS_GET_PRODUCT_STOCK_NUM_ERROR(80001022),
    ERP_WMS_OFFLINE_PDA_SEAT_SHIFT_PARAMETER_ERROR(80001023),
    ERP_WMS_GET_STORE_SALE_PRODUCT_ERROR(80001024),
    ERP_WMS_SKU_NOT_FOUND_IN_PICKING_ORDER_ERROR(80001025),
    ERP_WMS_NO_GOODS_IN_PICKING_ORDER_ERROR(80001026),
    ERP_WMS_SEATCODESTRING_NOT_EXISTED_ERROR(80001027),
    ERP_WMS_SEATCODESTRING_PROPERTY_NOT_CORRECT_ERROR(80001028),
    ERP_WMS_ALLOCATION_EMPTY(80001029),
    ERP_WMS_ILLEGAL_OUT_STORAGE_TYPE(80001030),
    ERP_WMS_QUERY_NJ_GOODS_ERROR(80001031),
    ERP_WMS_QUERY_NJ_GOODS_EXCEPTION(80001032),
    ERP_WMS_QUERY_AllOCATION_PARAM_EMPTY(80001033),
    ERP_WMS_QUERY_AllOCATION_GOODS_PARAM_EMPTY(80001034),
    ERP_WMS_QUERY_SHELF_GOODS_PARAM_EMPTY(80001035),
    ERP_WMS_PARAM_ERROR(80001036),
    ERP_WMS_OFFLINE_PDA_IN_STOREORDER_PARAMETER_ERROR(80001037),
    ERP_WMS_OFFLINE_PDA_IN_STOREORDER_SEATSHIFT_ERROR(80001038),
    ERP_WMS_OFFLINE_PDA_IN_STOREORDER_GENERATE_ERROR(80001039),
    ERP_WMS_OFFLINE_UPDATE_OCCUPATION_ERROR(80001040),
    ERP_WMS_OFFLINE_PDA_IN_OPERATETYPE_ERROR(80001041),
    ERP_WMS_NOT_GOODS_TO_UPDATE(80001042),
    ERP_WMS_NOT_ALLOCATION_BY_PICKINGID(80001043),
    ERP_WMS_VIRTUAIL_OUTIN_FAIL(80001044),
    ERP_WMS_VIRTUAL_PURCHASE_FORM_NOT_EXIST(80001045),
    ERP_WMS_VIRTUAL_OUTIN_STATUS_ERROR(80001046),
    ERP_WMS_VIRTUAL_OUTIN_GOODS_NOTFOUND(80001047),
    ERP_WMS_VIRTUAL_OUTIN_SHIFTLOGS_NOTVALID(80001048),
    ERP_WMS_OFFLINE_GOODS_ALREADY_EXIST(80001049),
    ERP_WMS_TOTAL_ALLOCATION_CLOSED(80001050),
    ERP_WMS_PURCHASE_FORM_NOT_EXIST(80001051),
    ERP_WMS_OFFLINE_GOODS_NOT_EXIST(80001052),
    ERP_WMS_VIRTUAL_OUT_GOODS_NOTFOUND(80001053),
    ERP_WMS_VIRTUAL_OUT_SHIFTLOGS_NOTFOUND(80001054),
    ERP_WMS_VIRTUAL_OUT_PURCHASE_FORM_NOT_EXIST(80001055),
    ERP_WMS_VIRTUAL_OUTIN_CHECKLOCK_ERROR(80001056),
    ERP_WMS_OFFLINE_ALLOCATION_DONOT_HAS_ANY_GOODS(80001057),
    ERP_WMS_DEFECT_PICKING_PARAM_NULL(80001058),
    ERP_WMS_DEFECT_PICKING_PARAM_HOUSEID_NULL(80001059),
    ERP_WMS_DEFECT_PICKING_PARAM_CREATEBY_NULL(80001060),
    ERP_WMS_DEFECT_PICKING_PARAM_DESTSHELFCODE_NULL(80001061),
    ERP_WMS_DEFECT_PICKING_PARAM_GOODSLIST_EMPTY(80001062),
    ERP_WMS_DEFECT_PICKING_PARAM_GOODSLIST_SKU_NULL(80001063),
    ERP_WMS_DEFECT_PICKING_PARAM_GOODSLIST_NUM_LESS0(80001064),
    ERP_WMS_DEFECT_PICKING_PARAM_GOODSLIST_SOURSESHELFCODE_NULL(80001065),
    ERP_WMS_DEFECT_PICKING_PARAM_GOODSLIST_DEFECTSOURSE_NULL(80001066),  
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_NULL(80001067),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_CREATEBY_NULL(80001068),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_SHELFCODE_NULL(80001069),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_SHOPID_NULL(80001070),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_SOURCE_NULL(80001071),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_LIST_NULL(80001072),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_LIST_SKU_NULL(80001073),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_NULL(80001074),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_ALLOCATION_ID_AND_CODE_NULL(80001075),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_CREATEBY_NULL(80001076),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_PICKINGORDERSID_NULL(80001077),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_STOREID_NULL(80001078),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_TYPE_NULL(80001079),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_SOURCESHELFCODE_NULL(80001080),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_DESTSHELFCODE_NULL(80001081),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_OUTBOXLIST_NULL(80001082),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_OUTBOXCODE_NULL(80001083),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_GOODSLIST_NULL(80001084),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_BRANDID_NULL(80001085),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_NUM_LESS_0(80001086),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_NUM_SKC_NULL(80001087),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_NUM_SKN_NULL(80001088),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_NUM_SKU_NULL(80001089),
    ERP_WMS_DEFECT_CREATE_ALLOCATION_PARAM_LIST_NULL_LESS_0(80001090),
    ERP_WMS_QUERY_OUTSTORE_DETAIL_PARAM_OUTSTOREORDERID_NULL(80001091),
    ERP_WMS_QUERY_INSTORE_DETAIL_PARAM_INSTOREORDERID_NULL(80001092),
    ERP_WMS_OUTSTOREORDER_NOT_EXIST(80001093),
    ERP_WMS_INSTOREORDER_NOT_EXIST(80001094),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_GOODS_NUM_NULL(80001095),
    ERP_WMS_PICKINGORDER_NOT_EXISTED(80001096),
    ERP_WMS_PICKINGORDER_FINISHED_OR_OUTED(80001097),
    ERP_WMS_PICKINGNUM_GREATER_THAN_ALLOCATIONNUM_ERROR(80001098),
    ERP_WMS_FOLLOW_GIFTS_BATCH_NO_ERROR(80001099),
    ERP_WMS_BULID_PICKING_ORDER_ISEMPTY(80001100),
    ERP_WMS_FOLLOW_GIFTS_STATUS_ERROR(80001101),
    ERP_WMS_SEATCODESTRINGSTOREHOUSEID_NOT_EQUALS_STOREHOUSEID(80001102),
    ERP_WMS_OUTSTOREORDER_HAS_BEEN_COMPLETED(80001103),
    ERP_WMS_QUERY_NJ_SHIFT_SHELF_ERROR(80001104),
    ERP_WMS_ALLOCATION_FINISHED_OR_OUTED(80001105),
    ERP_WMS_PICKINGID_IS_NULL(80001106),
    ERP_WMS_ALLOCATIONID_IS_NULL(80001107),
    ERP_WMS_OUTSTORENUM_GREATER_THAN_ALLOCATIONNUM(80001108),
    ERP_WMS_OUTSTORENUM_GREATER_THAN_PICKINGNUM(80001109),
    ERP_WMS_INSTORENUM_GREATER_THAN_OUTSTORENUM(80001110),
    ERP_WMS_SHELF_GOODS_EMPTY(80001111),
    ERP_WMS_INVALID_OFFLINE_ALLOCATION_TYPE(80001112),
    ERP_WMS_QUERY_NJ_USE_GOODS_ERROR(80001113),
    ERP_WMS_QUERY_NJ_SHELFCODE_TO_SEATCODE_ERROR(80001114),
    ERP_WMS_QUERY_STOCK_GETSTOCK_ERROR(80001115),
    ERP_WMS_CALL_NJ_UPDATE_PRODUCT_RELPLENISHSWITCHES_ERROR(80001116),
    ERP_WMS_NO_GOODS_NEED_BE_SHIFT(80001117),
    ERP_WMS_CALL_NJ_SYNC_AUDIT_ALLOCATION_GOODS_FAILURE(80001118),
    ERP_WMS_ALLOCATION_NUM_MUST_GT_ZERO(80001119),
    ERP_WMS_ALLOCATION_NUM_MUST_LTET_STOCK_NUM(80001120),
    ERP_WMS_GOODS_IS_NOT_SALABLE_FOR_SHOP(80001121),
    ERP_WMS_CONFIRM_OUTSTORE_PARAM_OUTBOXCODE_IS_SAME(80001122),
    ERP_WMS_BRAND_NOT_BINDING_SHELF(80001123),
    ERP_WMS_NO_BRAND_AUTH(80001124),
    ERP_WMS_NO_PICK_GOODS(80001125),
    ERP_SCAN_SHELF_CODE_ERROR(80001126),
    ERP_SCAN_SALE_SHELF_ERROR(80001127),
    //----------------WMS异常码 end-------------------/
	
	//----------------Invoice异常码 begin-------------------/
	ERP_INVOICE_SUCCESS(13001000),
	ERP_INVOICE_BO_PARAMS_INVALID(13001002),
	ERP_INVOICE_CALL_ERROR(13001003),
	ERP_INVOICE_ORDER_EMPTY(13001004),
	ERP_INVOICE_MQ_FAILED(13001005),
	ERP_INVOICE_RETURN_GOODS_UNSTORE(13001006),
	ERP_INVOICE_RED_INVOICE_HAD_ISSUED(13001007),
	ERP_INVOICE_RETURNED_GOODS_NUM_ERROR(13001008),
	ERP_INVOICE_GOODSLIST_NULL(13001009),
	ERP_INVOICE_PHONE_ILLEGAL(13001010),
	ERP_INVOICE_LASTBLUEINVOICE_IS_NULL(13001011),
	//----------------Invoice异常码 end-------------------/
	
	//----------------Printer异常码 begin-------------------/
	ERP_PRINTER_REQUEST_CONTENT_EMPTY(13010000),
	ERP_PRINTER_REQUEST_PRINTERNO_EMPTY(13010001),
	ERP_PRINTER_REQUEST_PRINTERNO_INVALID(13010002),
	
	//----------------Printer异常码 end-------------------/

    //----------------customerservice异常码 begin-------------------/
    ERP_CS_PROFILE_ACCOUNT_ISNOT_EXIST(25001003),
    ERP_CS_PROFILE_ACCOUNT_HAS_BEEN_BOUND(25001004),
    ERP_CS_PROFILE_ACCOUNT_HAS_NOT_BEEN_BOUND(25001005),
    ERP_CS_SETTING_HAS_BEEN_EXIST(25001006),
    ERP_CS_SETTING_IS_NULL(25001007),
    ERP_CS_SETTING_ENTERPRISE_TERMINAL_PARAMS_NULL(25001008),
    ERP_CS_SETTING_WINDOWTITLE_TOO_LONG(25001009),
    ERP_CS_SETTING_PCADLINK_TOO_LONG(25001010),
    ERP_CS_SETTING_USERQUEUETIPS_TOO_LONG(25001011),
    ERP_CS_SETTING_RECEIVETIPS_TOO_LONG(25001012),
    ERP_CS_SETTING_OFFLINETIPS_TOO_LONG(25001013),
    ERP_CS_SETTING_BREAKCOUNTDOWNTIPS_TOO_LONG(25001014),
    ERP_CS_SETTING_BREAKCOUNTDOWNTIME_TOO_LONG(25001015),
    ERP_CS_SETTING_BREAKTIME_TOO_LONG(25001016),
    ERP_CS_SETTING_BREAKTIPS_TOO_LONG(25001017),
    ERP_CS_SETTING_AUTOMATON_TERMINAL_PARAMS_NULL(25001018),
    ERP_CS_ROLE_UNDEFINED(25001019),
    ERP_CS_SETTING_ILLEGAL_DELETE(25001020),

    //----------------customerservice异常码 end-------------------/

	//----------------Ticket异常码 begin-------------------/
	ERP_TICKET_VALIDATE_SUCCEED(12001000),
	ERP_TICKET_VALIDATE_FAIL(12001001),
	ERP_TICKET_VALIDATE_PARAM_ERROR(12001002),
	ERP_TICKET_BEEN_USED(12001003),
	ERP_TICKET_SHOW_UNFINDABLE(12001004),
	ERP_TICKET_INVALIDATE(12001005),
	ERP_TICKET_FAIL_UPDATE(12001006),
	ERP_TICKET_TYPE_ERROR(12001007),
	//----------------Ticket异常码 end-------------------/

	//----------------全球购异常码 begin---------------------/
	GLOBALBUY_ADDRESS_UID_NULL(16001001),
	GLOBALBUY_ADDRESS_USERNAME_NULL(16001002),
	GLOBALBUY_ADDRESS_MOBILE_INVALID(16001003),
	GLOBALBUY_ADDRESS_ADDRESS_NULL(16001004),
	GLOBALBUY_ADDRESS_IDCARD_INVALID(16001005),
	//----------------全球购异常码 end-----------------------/

    //sso异常码
    //系统提示
    SYSTEM(500),
    MISSING_PARAMETER(500001),
    ERROR_PARAMETER(500002),

    //用户相关提示
    USER_EXIST(50100),
    USER_NOT_EXIST(50101),
    USER_DISABLED(50102),
    USER_NO_LOGIN(50103),

    //密码相关提示
    PWD_ERROR(50200),
    PWD_FORMAT(50201),

    //账号相关提示
    ACCOUNT_FORMAT(50300),
    ACCOUNT_TYPE(50301),
    ACCOUNT_SET(50302),
    ACCOUNT_ONLY_ONE(50303),
    ACCOUNT_EXIST(50304),

    //用户资料
    USERINFO_SET(50400);

	//################################################## ERP END ##############################
    private final int code;
    private String message;

    //可选,映射到gateway的错误码
    private String gwInfo;


    ServiceError(int code) {
        this.code = code;
    }


    @Override
    public int getCode() {
        return code;
    }

    /**
     * 获取yml中定义的错误信息
     *
     * @return 错误信息
     */
    public String getMessage() {
        return message;
    }

    /**
     * 获取错误信息,支持格式化。使用yml定义的模板,对参数进行 String.format
     *
     * @param params 格式化输入参数
     * @return 格式化之后的错误消息
     */
    public String getMessage(Object... params) {
        return String.format(this.message, params);
    }

    @Override
    public void setErrorContent(Map<String, Object> content) {

        this.message = (String) content.get("message");
        this.gwInfo = (String) content.get("gwError");
    }


    /**
     * 获取映射的Gateway错误.
     * 1. 如果配置了gw_info, 则直接映射为gw_info中的code和message
     * 2. 如果没有配置gw_info, 直接返回service error 中定义的东西
     *
     * @return Getaway错误
     */
    public Pair<Integer, String> getMappingGatewayError() {
        Pair<Integer, String> gwError;
        if (StringUtils.isEmpty(this.gwInfo)) {
            gwError = Pair.of(GatewayError.DEFAULT_ERROR_CODE, GatewayError.DEFAULT_ERROR_MSG);
        } else {
            gwError = this.getGwErrorByMappingInfo();
        }
        return gwError;
    }

    private Pair<Integer, String> getGwErrorByMappingInfo() {
        String[] codeMessage = this.gwInfo.split(":", 2);
        int gwCode = Integer.parseInt(codeMessage[0]);
        String gwMsg = codeMessage[1];

        //如果gwInfo只配置了code,则需要去找message
        if (StringUtils.isEmpty(gwMsg)) {
            GatewayError error = GatewayError.getGatewayErrorByCode(gwCode);
            if (error != null) {
                gwMsg = error.getMessage();
            } else {  //默认的错误
                gwMsg = GatewayError.DEFAULT_ERROR_MSG;
            }
        }
        return Pair.of(gwCode, gwMsg);
    }


    /**
     * 根据code 获取 error
     *
     * @param code
     * @return
     */
    public static ServiceError getServiceErrorByCode(int code) {
        for (ServiceError error : values()) {
            if (error.getCode() == code) {
                return error;
            }
        }
        return null;
    }

}