def _add_sub(self, pg, data, update_time): hu_id = data.get(self.id_col) def_data_list = data.get(self.sub_list_name) def_obj = BasicDefRecord() sub_log_list = def_obj.add_list(pg, hu_id, def_data_list, update_time) if sub_log_list is None: return None point_out = PointOut(self.table_name) po_log_list = point_out.add_list(pg, data.get(self.id_col), data.get("point_list"), update_time) if po_log_list is None: return None return sub_log_list + po_log_list
def _add_sub(self, pg, data, update_time): def_id = data.get(self.id_col) def_data_list = data.get(self.sub_list_name) analysis_obj = AnalysisRecord() sub_log_list = analysis_obj.add_list(pg, def_id, def_data_list, update_time) if sub_log_list is None: return None point_out = PointOut("DEF") po_log_list = point_out.add_list(pg, data.get(self.id_col), data.get("point_list"), update_time) if po_log_list is None: return None return sub_log_list + po_log_list
def _add_sub(self, pg, data, update_time): point_out = PointOut(self.table_name) return point_out.add_list(pg, data.get(self.id_col), data.get("point_list"), update_time)