Example #1
0
 def get_asset_consume_info_all_show(self, start, count):
     aci = AssetConsumeInfoDal()
     assetInfos = aci.get_asset_consume_info_limit(start, count)
     count = aci.get_asset_consume_info_num()
     return self.get_asset_consume_info_all(assetInfos, count)
 def test_get_all_asset_consume(self):
     dal = AssetConsumeInfoDal()
     records = dal.get_asset_consume_info_all()
     self.assertEqual(len(records), 1)
     self.assertEqual(records[0].user_name, 'shadow.zhang')
Example #3
0
 def get_advanced_consume_search_val_all(self, params, start, count):
     aid = AssetConsumeInfoDal()
     assetInfos = aid.get_advanced_consume_search_val_limit(params, start, count)
     count = aid.get_advanced_consume_search_val_count(params)
     return self.get_asset_consume_info_all(assetInfos, count)