¼¯ÍÅ¿Í»§ÃÅ»§ - ÏêϸÉè¼Æ¹æ¸ñ˵Ã÷Êé ÏÂÔر¾ÎÄ

ÖйúÒƶ¯ºÓÄϹ«Ë¾ÍøÉÏÓªÒµÌüÏêϸÉè¼Æ˵Ã÷Êé

2 Msg ״̬ÃèÊö 20 Y µ±²éѯ״̬ʱYʱ£º ·µ»ØÉÌ»ú״̬ µ±²éѯ״̬ʱNʱ£º δ²éѯµ½Ïà¹ØÐÅÏ¢£¡ State ÉÌ»ú״̬ 20 ״̬£ºÒÑ´¦Àí¡¢´¦ÀíÖР˵Ã÷£º´«È뼯ÍűàºÅ£¬ÉÌ»ú±àºÅ£¬²éѯÉÌ»ú״̬£¬Èç¹û²éѯµ½ÉÌ»úÐÅÏ¢£¬·µ»Ø״̬Âë¡°Y¡±¼°ÉÌ»ú״̬£¬Èô²éѯ²»µ½ÉÌ»úÐÅÏ¢£¬·µ»Ø״̬Âë¡°N¡±¼°ÃèÊö¡°Î´²éѯµ½Ïà¹ØÐÅÏ¢£¡¡±¡£ ¹¦ÄÜÐèÇó

¸ù¾ÝÔ¤Ô¼·µ»ØµÄbusiOppoId¼°¼¯ÍűàºÅ£¬²éѯԤԼÊÜÀí״̬

3.1.1.2 BOSS3.0½Ó¿Ú

Ô¶³Ìµ÷Óýӿڣ¬ÊµÏÖÒµÎñ²éѯ¡¢ÒµÎñ°ìÀíµÈ¹¦ÄÜ¡£ µ÷Ó÷½Ê½£º

1£® ×éºÏµ÷ÓòÎÊý

2£® µ÷Óýӿڿͻ§¶Ë·½·¨ 3£® ´¦Àí½Ó¿Ú·µ»ØÊý¾Ý

ÑÇÐſƼ¼£¨Öйú£©ÓÐÏÞ¹«Ë¾ - 12 -

ÖйúÒƶ¯ºÓÄϹ«Ë¾ÍøÉÏÓªÒµÌüÏêϸÉè¼Æ˵Ã÷Êé

4 Êý¾ÝÄ£ÐÍ£¨Data Model£©Éè¼Æ

4.1 ¼¯ÍÅÃÅ»§¿ÉÅäÖÃÊý¾ÝÄ£ÐÍ

4.2 Óû§½ÇÉ«±í

USER_MOBILE + ROLE_IDΪ±íΨһÊý¾Ý¡£ ÁÐ PK ×Ö¶ÎÃû ±¸×¢ ÀàÐÍ Îª¿Õ Ψһ ³¤¶È ¾«Ð¡Êý ¶È ³õʼֵ False False False False USER_MOBILE ROLE_ID USER_STATE GROUP_ID µÇ½Õ˺ţ¨ÊÖ»úºÅ£© ½ÇÉ«ID VARCHAR2 True False 20 VARCHAR2 True False 10 Óû§×´Ì¬ 0£ºÕý³£1£ºVARCHAR2 True False 1 ×¢Ïú ¼¯ÍÅID (±àÂë) VARCHAR2 True False 20 Óû§ÃèÊö ´´½¨Ê±¼ä VARCHAR2 False False 50 DATE False False FalsUSER_DESC e FalsCREATE_TIME e ÑÇÐſƼ¼£¨Öйú£©ÓÐÏÞ¹«Ë¾ - 13 - ÖйúÒƶ¯ºÓÄϹ«Ë¾ÍøÉÏÓªÒµÌüÏêϸÉè¼Æ˵Ã÷Êé

FalsUSER_NAME e FalsUSER_PHONE e FalsROLE_TYPE e

Óû§Ãû Óû§µç»° ½ÇÉ«ÀàÐÍ£¨Ôݱ£Áô£© VARCHAR2 False False 20 VARCHAR2 False False 15 VARCHAR2 False False 5 4.3 ½ÇÉ«±í

ÁÐ PK ×Ö¶ÎÃû ±¸×¢ ½ÇÉ«ID ½ÇÉ«Ãû×Ö ½Çɫ״̬ 0:²»¿ÉÓà 1:¿ÉÒÔ ½ÇÉ«ÃèÊö ´´½¨Ê±¼ä ÀàÐÍ NUMBER VARCHAR2 VARCHAR2 VARCHAR2 DATE Ϊ¿Õ Ψһ ³¤¶È ¾«¶È True True 10 True False 20 True False 1 True False 50 False False False False 5 СÊý 0 ³õʼֵ True ROLE_ID False ROLE_NAME False ROLE_STATE False ROLE_DESC False CREATE_TIME False ROLE_TYPE Ô¼Êø ½ÇÉ«ÀàÐÍ£¨Ôݱ£VARCHAR2 Áô£© ÀàÐÍ ?PK? ÁÐÃû ½ÇÉ«ID Ãû³Æ PK_WTJT_ROLE ¹ØÁª ÁÐÃû (½ÇÉ«ID=½ÇÉ«ID) ³õʼ ±¸×¢ ¹ØÁª 0 ½ÇÉ«±í.PK_WTJT_ROLE 1 ½ÇÉ«¹¦ÄܹØÁª±í.PK_ROLE_ID ±¸×¢ 4.4 ½ÇÉ«¹¦Äܱí

ÁÐ PK ×Ö¶ÎÃû ±¸×¢ True ID False ACTION_ID False ROLE_ID False STATE ³¤¶È ½ÇÉ«¹¦ÄÜ ID NUMBER True True ¹¦ÄÜID VARCHAR2 True False 20 ½ÇÉ«ID VARCHAR2 True False 20 ¹¦ÄÜ״̬0:²»¿ÉÓà 1:VARCHAR2 True False 1 ¿ÉÒÔ ÀàÐÍ Îª¿Õ Ψһ ¾«¶È 10 СÊý 0 ³õʼֵ ÑÇÐſƼ¼£¨Öйú£©ÓÐÏÞ¹«Ë¾ - 14 -

ÖйúÒƶ¯ºÓÄϹ«Ë¾ÍøÉÏÓªÒµÌüÏêϸÉè¼Æ˵Ã÷Êé

False CREATE_TIME Ô¼Êø Ãû³Æ PK_WTJT_ROLE_ACTION ¹ØÁª ÁÐÃû (½ÇÉ«ID=½ÇÉ«ID) (¹¦ÄÜID=¹¦ÄÜID) ¹ØÁª 0 ¹¦ÄܽÇÉ«±í.PK_ROLE_ID 1 ½ÇÉ«±í.PK_WTJT_ROLE 0 ¹¦ÄܽÇÉ«±í.PK_ROLE_ID 1 ¹¦Äܱí.pk_ACTION_ID ±¸×¢ ÀàÐÍ ? PK ? ÁÐÃû ½ÇÉ«¹¦ÄÜ ID ³õʼ ±¸×¢ ´´½¨Ê±¼ä DATE False False 4.5 ¹¦Äܱí

ÁÐ PK ×Ö¶ÎÃû ±¸×¢ ÀàÐÍ True MODULE_ID ²Ëµ¥ID Ò»¼¶²Ëµ¥NUMBER ʱ£¬¸¸²Ëµ¥IDĬÈÏÌîд0 False PARENT_MODULE_I¸¸²Ëµ¥ID NUMBER D False MODULE_NAME ²Ëµ¥Ãû×Ö VARCHAR2 False MODULE_STATE False MODULE_URL False MODULE_LEVEL False CREATE_TIME False ACTIONE_DESC Ô¼Êø Ãû³Æ PK_WTJT_ACTION ¹ØÁª ÁÐÃû (²Ëµ¥ID = ²Ëµ¥ID) ÀàÐÍ ?FK? ÁÐÃû ²Ëµ¥ID ²Ëµ¥×´Ì¬ ²Ëµ¥URL ²Ëµ¥¼¶±ð 1Ϊһ¼¶²Ëµ¥£¬ÒÔ´ÎÅÅÁÐ ´´½¨Ê±¼ä ²Ëµ¥ÃèÊö VARCHAR2 VARCHAR2 VARCHAR2 DATE VARCHAR2 Ϊ¿Õ Ψһ ³¤¶È True True ¾«¶È 10 СÊý 0 ³õʼֵ True False True False True False True False True False False False 10 20 1 1 1 50 0 ³õʼ ±¸×¢ ¹ØÁª 0 ¹¦Äܱí.MODULE_ID 1 ½ÇÉ«¹¦ÄܹØÁª±í.ACTION_ID ±¸×¢ ÑÇÐſƼ¼£¨Öйú£©ÓÐÏÞ¹«Ë¾ - 15 -