def phone_stock_in_datas(self, fileFullPath, operator): bFlag, dataSet = get_phone_data_set_from_excel(fileFullPath) if not bFlag: return False, u'解析Excel失败' params = copy.deepcopy(dataSet) bRet, msg = self.get_actual_phone_in_datas(dataSet) if bRet: aos = AssetOperateService() aos.construct_and_add_phone_batch_operate_info(params, operator) LOG.info("[multi stock in] put data into database is success") return True, u'批量入库成功!' return False, u'批量入库失败'
def get_phone_operate_json(self, operInfos): aos = AssetOperateService() en_ch_dict = self.get_phone_en_ch_dict() return aos.get_operate_json(operInfos, en_ch_dict)