def TD0202_STEP4_NODE3(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 更新批次状态"); _Arg0_ = "ABOP_CustBatchInfo"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = [ ["ExcuteStatus","21"], ["Status","1"], ["ErroCode","0000"], ["ErroMsg",""] ]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = [ ["CustBatchID","=",__REQ__["__BODY__"]["CustBatchID"],None] ]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = True; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = B_ABOP_DB_B_DBDMLUpd(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["TMP"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["TMP"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0202_STEP4_NODE5; elif(_Result_[0] == 2): return TD0202_STEP4_NODE6; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP4_NODE4); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0202_STEP4_NODE4);
def TD0209_STEP2_NODE3(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 数据更新"); _Arg0_ = "ABOP_SysBatchInfo"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = [ ["CapitalRecover","9"], ["CapitalRecoverStatus","11"], ["CapitalErrorCode","000000"], ["CapitalErrorMsg","圈存状态正常,解圈存交易末进行实际操作。"]]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = [["SysBatchID","=",__REQ__["__BODY__"]["SysBatchID"],None]]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = True; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = B_ABOP_DB_B_DBDMLUpd(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["TMP"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["TMP"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0209_STEP2_NODE5; elif(_Result_[0] == 2): return TD0209_STEP2_NODE4; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0209_STEP2_NODE2); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0209_STEP2_NODE2);
def TD0208_STEP3_NODE5(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 批次状态更新"); _Arg0_ = "ABOP_HostBatchInfo"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = [ ["TotalRecords",str(int(__REQ__["headInfoList"][1]))],["TotalAmount",str(int(__REQ__["headInfoList"][2])/100.0)],["SucRecords",str(int(__REQ__["headInfoList"][3]))],["SucAmount",str(int(__REQ__["headInfoList"][4])/100.0)],["HostFileDealStatus","41"], ["NearOperateDate",__REQ__["CurrentDate"]], ["NearOperateTime",__REQ__["CurrentTime"]] ]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = [ ["HostBatchID","=",__REQ__["__BODY__"]["HostBatchID"],None] ]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = True; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = B_ABOP_DB_B_DBDMLUpd(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["TMP"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["TMP"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0208_STEP3_NODE7; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0208_STEP3_NODE6); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0208_STEP3_NODE6);
def TD0207_STEP5_NODE4(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 更新主机批次信息"); _Arg0_ = "ABOP_HostBatchInfo"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = [ ["ExcuteStatus","FF"], ["ErrorCode",__REQ__["ErrorCode"]], ["ErrorMsg",__REQ__["ErrorMsg"]], ["NearOperateDate",__REQ__["CurrentDate"]], ["NearOperateTime",__REQ__["CurrentTime"]] ]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = [ ["HostBatchID","=",__REQ__["__BODY__"]["HostBatchID"],None] ]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = True; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = B_ABOP_DB_B_DBDMLUpd(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["TMP"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["TMP"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0207_STEP5_NODE5; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0207_STEP5_NODE7); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0207_STEP5_NODE7);
def TD0208_STEP2_NODE20(__REQ__,__RSP__,__SND__,__RCV__): try: AFALoggerInfor("功能 更新批次明细信息"); _Arg0_ = "BPDM_OP_LZGasPayment"; ACMP_Builtin_LoggerVar(4,"A0",_Arg0_); _Arg1_ = [ ["RecordStatus",__REQ__["Statues"]],["ErrorCode",__REQ__["TmpList"][6]],["ErrorMsg",__REQ__["Message"]],["STATUSCODE",__REQ__["Statue"]]]; ACMP_Builtin_LoggerVar(4,"A1",_Arg1_); _Arg2_ = [ ["HostBatchID","=",__REQ__["__BODY__"]["HostBatchID"],"and"], ["LineNo","=",__REQ__["TmpList"][0],None]]; ACMP_Builtin_LoggerVar(4,"A2",_Arg2_); _Arg3_ = True; ACMP_Builtin_LoggerVar(4,"A3",_Arg3_); _Result_ = B_ABOP_DB_B_DBDMLUpd(_Arg0_,_Arg1_,_Arg2_,_Arg3_); if((_Result_[1] == None) and (_Result_[2] == None)): _RTVAL_ = _Result_[3]; __REQ__["TEMP"] = _RTVAL_[0]; ACMP_Builtin_LoggerVar(4,"O0",__REQ__["TEMP"]); else: ACMP_Builtin_SetGlobalError("D",str(_Result_[1]),str(_Result_[2])); AFALoggerInfor("RET="+str(_Result_[0])); if(_Result_[0] == 1): return TD0208_STEP2_NODE7; else: ACMP_Builtin_SetGlobalError("E",_Result_[1],_Result_[2]); return ACMP_Builtin_GetDefaultExceptNode(TD0208_STEP2_NODE17); except Exception,PyExcp: ACMP_Builtin_SetGlobalError("E","ACMP0E001",str(PyExcp)); AFALoggerError(str(format_exc())); AFALoggerError(str(PyExcp)); return ACMP_Builtin_GetDefaultExceptNode(TD0208_STEP2_NODE17);