| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 | syntax = "proto3";package backend.operation;option go_package = ".;operationPb";import "backend/operation/pagination.proto";import "backend/operation/enum.proto";import "backend/operation/pasture.proto";// SearchFormulaEstimateRequest 配方评估message SearchFormulaEstimateRequest {  string start_time  = 1;     // 开始时间  string end_time    = 2;     // 结束时间  int32 search_type = 3;      // 查询方式  0 安照配方 1 按照栏舍  string api_name = 4;        // 牧场端接口标识名称  int32 pasture_id = 5;       // 牧场id  int32 template_id = 6;     // 配方模板id  int32 barn_id = 7;          // 栏舍id  PaginationModel pagination = 8; // 分页}// SearchInventoryStatisticsRequest 库存管理-库存统计message SearchInventoryStatisticsRequest {  string start_time  = 1;     // 开始时间  string end_time    = 2;     // 结束时间  string api_name = 3;        // 牧场端接口标识名称  string feed_name = 4;       // 饲料名称  int32 pasture_id = 5;       // 牧场id  PaginationModel pagination = 6; // 分页}// SearchUserMaterialsStatisticsRequest 库存管理-用料分析message SearchUserMaterialsStatisticsRequest {  string start_time  = 1;     // 开始时间  string end_time    = 2;     // 结束时间  string api_name = 3;        // 牧场端接口标识名称  int32 pasture_id = 4;       // 牧场id  int32 error_check = 5;       // 误差是否选中 0 未选中 1 选中  int32 type_check = 6;        // 返回实际或理论 1 理论 2 实际  string feed_name = 7;        // 名称  PaginationModel pagination = 8; // 分页}// SearchPriceStatisticsRequest 库存管理-价格分析message SearchPriceStatisticsRequest {  string start_time  = 1;     // 开始时间  string end_time    = 2;     // 结束时间  string api_name = 3;        // 牧场端接口标识名称  int32 pasture_id = 4;       // 牧场id  string feed_name = 5;        // 名称  PaginationModel pagination = 6; // 分页}// SearchFeedStatisticsRequest 饲喂效率-效率统计message SearchFeedStatisticsRequest {  string start_time  = 1;            // 开始时间  string api_name = 2;               // 牧场端接口标识名称  repeated int32 pasture_id = 3;     // 牧场id  string formula_template = 4;       // 配方模板名称  string barn_name = 5;               // 栏舍名称  string cattle_category_name = 6;   // 畜牧类别名称  int32 cattle_category_id = 7;     // 畜牧类别id  int32 class_number = 8;            // 班次  PaginationModel pagination = 9;   // 分页  string end_time = 10;            // 结束时间}// FeedChartStatisticsRequest 饲喂效率chart图表message FeedChartStatisticsRequest {  string start_time = 1;     // 开始时间  string end_time = 2;       // 结束时间  int32 pasture_id = 3;      // 牧场id  int32 status = 4;  string api_type = 5;       // mr 泌乳牛干物质采食量 sl 牛栏剩料率 hl 混料时间统计 zh 转化率 cbft 成本分析}// CowsAnalysisRequest 饲喂效率-牛群评估message CowsAnalysisRequest {  string start_time = 1;     // 开始时间  string api_name = 2;       // 牧场端接口标识名称  int32 pasture_id = 3;      // 牧场id  PaginationModel pagination = 4;   // 分页}// AccuracyAggStatisticsRequest 准确性分析-汇总统计message AccuracyAggStatisticsRequest {  string start_time = 1;     // 开始时间  string end_time = 2;       // 结束时间  int32 pasture_id = 3;      // 牧场id  string fname = 4;         // 查询名称  string sort = 5;  string status = 6;  int32 genre = 7;  int32 isdate = 8;  int32 hlwc1 = 9;  int32 hlwc2 = 10;  int32 hlzq1 = 11;  int32 hlzq2 = 12;  int32 hlzql1 = 13;  int32 hlzql2 = 14;  int32 slwc1 = 15;  int32 slwc2 = 16;  int32 slzq1 = 17;  int32 slzq2 = 18;  int32 slzql1 = 19;  int32 slzql2 = 20;  string projname = 21;  string Times = 22;  bool is_error = 23;}// MixFeedStatisticsRequest 准确性分析-混料统计message MixFeedStatisticsRequest {  string start_time  = 1;            // 开始时间  string end_time = 2;               // 结束时间  string api_name = 3;               // 牧场端接口标识名称  int32 pasture_id = 4;              // 牧场id  string equipment_name = 5;         // 设备名称  string train_number = 6;           // 车次  int32 class_number = 7;            // 班次  string formulation_name = 8;       // 配方名称  int32 jump_type = 9;               // 跳转方式 0 手动跳转 1 自动跳转  int32 hlwc1 = 10;                  // 混料误差值1  int32 hlwc2 = 11;                  // 混料误差值2  int32 hlzq1 = 12;                  // 混料准确率1  int32 hlzq2 = 13;                  // 混料准确率2  int32 hlzql1 = 14;                 // 混料正确率1  int32 hlzql2 = 15;                 // 混料正确率2  bool is_error = 16;                // 只看超出预设值数据  string button_type = 17;  string is_use = 18;  PaginationModel pagination = 19;   // 分页}// SprinkleStatisticsRequest 准确性分析-撒料统计message SprinkleStatisticsRequest {  string start_time  = 1;            // 开始时间  string end_time = 2;               // 结束时间  string api_name = 3;               // 牧场端接口标识名称  int32 pasture_id = 4;              // 牧场id  string equipment_name = 5;         // tmr设备名称  string train_number = 6;           // 车次  int32 class_number = 7;            // 班次  string formulation_name = 8;       // 配方名称  string barn_name = 9;              // 栏舍名称  int32 jump_type = 10;               // 跳转方式 0 手动跳转 1 自动跳转  int32 slwc1 = 11;                  // 撒料误差值1  int32 slwc2 = 12;                  // 撒料误差值2  int32 slzq1 = 13;                  // 撒料准确率1  int32 slzq2 = 14;                  // 撒料准确率2  int32 slzql1 = 15;                 // 撒料正确率1  int32 slzql2 = 16;                 // 撒料正确率2  bool is_error = 17;                // 只看超出预设值数据  string button_type = 18;  string is_use = 19;  PaginationModel pagination = 20;   // 分页}// GetDataByNameRequestmessage GetDataByNameRequest {  string start_time  = 1;            // 开始时间  string end_time = 2;               // 结束时间  string api_name = 3;               // 牧场端接口标识名称  int32 pasture_id = 4;              // 牧场id}// ProcessAnalysisRequest 过程分析message ProcessAnalysisRequest {  string start_time  = 1;            // 开始时间  string end_time = 2;               // 结束时间  string api_name = 3;               // 牧场端接口标识名称  int32 pasture_id = 4;              // 牧场id  int32 plan_type = 5;               // 计划类型  repeated string tmr_name = 6;      // TMR名称  string error_range = 7;            // 误差筛选范围  string work_status = 8;            // 工作状态  string mix_feed_type = 9;          // 混料类别  int32 hlwc1 = 10;                  // 混料误差值1  int32 hlwc2 = 11;                  // 混料误差值2  int32 hlzq1 = 12;                  // 混料准确率1  int32 hlzq2 = 13;                  // 混料准确率2  int32 slwc1 = 14;                  // 撒料误差值1  int32 slwc2 = 15;                  // 撒料误差值2  int32 slzq1 = 16;                  // 撒料准确率1  int32 slzq2 = 17;                  // 撒料准确率2  PaginationModel pagination = 18;   // 分页}// ProcessMixedSprinkleDetailRequestmessage ProcessMixedSprinkleDetailRequest {  string api_name = 1;  int32 pasture_id = 2;  string pid = 3;  string fclass_id = 4;  string id = 5;  PaginationModel pagination = 6;   // 分页}message TrainNumberRequest {  string api_name = 1;               // 牧场端接口标识名称  int32 pasture_id = 2;              // 牧场id  string info_name = 3;  PaginationModel pagination = 4;   // 分页}message TrainNumberResponse {  int32 code = 1;  string msg = 2;  TrainNumberData data = 3;}message TrainNumberData {  repeated FormulaOptionEnum list = 1;}// 首页 dashboard 准确性分析message SearchAnalysisAccuracyRequest {  CattleCategoryParent.Kind cattle_parent_category_id = 1;   // 牧畜分类id 泌乳牛  int32 feed_formula_id = 2;    // 配方id  string start_date = 3;       // 开始时间  string end_date = 4;         // 结束时间  repeated int32 pasture_ids = 5;   //牧场ids  float top_rand_start = 6;         // 排名区间开始位  float top_rand_end = 7;           // 排名区间结束位  DashboardTopType.Kind dashboard_top_type = 8;  // 排序区间标识}message SearchAnalysisAccuracyResponse {  int32 code = 1;  string msg = 2;  AnalysisAccuracy data = 3;}message AnalysisAccuracy {  Chart chart = 1;  Table table = 2;}message Chart {  CommonValueRatio mixed_fodder_accurate_ratio = 4;              // 混料准确率  CommonValueRatio mixed_fodder_correct_ratio = 5;               // 混料正确率  CommonValueRatio sprinkle_fodder_accurate_ratio = 6;           // 撒料准确率  CommonValueRatio sprinkle_fodder_correct_ratio = 7;            // 撒料正确率}message Table {  message TableList {    int32 id = 1;    string name = 2;  }  repeated TableList table_list = 1;}message CommonValueRatio {  string max_value = 1;                  // 最高值  string middle_value = 2;               // 中位值  string min_value = 3;                  // 最低值  repeated ValueRatio data_list = 4;     // 数据集合  repeated string pasture_name = 5;      // 牧场名称集合  repeated string date_day = 6;          // 日期集合}message ValueRatio {  repeated string value_ratio = 1;}// 首页 dashboard 撒料时间统计分析message SprinkleFeedTimeRequest {  int32 feed_formula_id = 1;    // 配方id  string start_date = 2;       // 开始时间  string end_date = 3;         // 结束时间  repeated int32 pasture_ids = 4;   //牧场ids  int32 data_type = 5;       // 过滤的数据类型 0 不过滤 1 正常 2 异常}// MixedCategoryTmrName tmr名称和混料类别message MixedCategoryTmrName  {  string api_name   = 1;  int32 pasture_id = 2;  string start_time = 3;  string end_time = 4;}
 |