sql=" select * from mcms_psi_dept_batch where pid='%s';"%(
DR_ID)
actual=check_mcms_dept_buy_sql(sql)
print(actual)
defcheck_mcms_psi_dept(type=16):
branch_id=get_branch_id()
sql=" select * from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_SL' order by CREATE_TIME desc LIMIT 1;"%(branch_id,type)