FIX:is_fsm判断条件
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -2061,7 +2061,7 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -2061,7 +2061,7 @@ class Command(BaseCommand, LoggerMixin): |
2061 | # 是否fsm | 2061 | # 是否fsm |
2062 | cms_status_class = HILCmsStatusInfo if business_type in consts.HIL_SET else AFCCmsStatusInfo | 2062 | cms_status_class = HILCmsStatusInfo if business_type in consts.HIL_SET else AFCCmsStatusInfo |
2063 | cms_status_info = cms_status_class.objects.filter(application_id=doc.application_id).first() | 2063 | cms_status_info = cms_status_class.objects.filter(application_id=doc.application_id).first() |
2064 | is_fsm = cms_status_info and cms_status_info.is_fsm == 1 | 2064 | is_fsm = cms_status_info is not None and cms_status_info.is_fsm == 1 |
2065 | self.online_log.info('{0} [isfsm] [task={1}] [true or false={2}]'.format( | 2065 | self.online_log.info('{0} [isfsm] [task={1}] [true or false={2}]'.format( |
2066 | self.log_base, task_str, is_fsm)) | 2066 | self.log_base, task_str, is_fsm)) |
2067 | if is_fsm: | 2067 | if is_fsm: | ... | ... |
-
Please register or sign in to post a comment