如果是三类考试工作类别不做过期检测
This commit is contained in:
parent
5fc75c4e06
commit
7624f450c3
|
@ -25,7 +25,9 @@ VistorPerms = [
|
||||||
from .spider import getZs
|
from .spider import getZs
|
||||||
def get_consumerperm_list(consumer):
|
def get_consumerperm_list(consumer):
|
||||||
perms = list(consumer.role.perms.values_list('code', flat=True))
|
perms = list(consumer.role.perms.values_list('code', flat=True))
|
||||||
if consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
|
if consumer.workscope.can_exam: # 如果是三类考试工作类别不做过期检测
|
||||||
|
pass
|
||||||
|
elif consumer.exceed_date and (consumer.exceed_date < datetime.date(timezone.now())):
|
||||||
if consumer.name and consumer.ID_number1:
|
if consumer.name and consumer.ID_number1:
|
||||||
candidates = getZs(consumer.name, consumer.ID_number1)
|
candidates = getZs(consumer.name, consumer.ID_number1)
|
||||||
if candidates:
|
if candidates:
|
||||||
|
|
Loading…
Reference in New Issue