psiDeptOutBillId=get_id("select id from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;"%(branch_id,bill_mode))
psiDeptOutOrderNo=get_id("select order_no from mcms_psi_dept where target_branch_id='%s' and bill_mode='%s' and stock_kind='CK_TK' order by CREATE_TIME desc LIMIT 1;"%(branch_id,bill_mode))