123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- CREATE TABLE `downloadedplan_delrecord` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `pastureid` bigint(20) NOT NULL,
- `mydate` datetime NOT NULL COMMENT '计划日期',
- `projname` varchar(12) DEFAULT NULL COMMENT '计划编号',
- `datacaptureno` int(11) DEFAULT NULL COMMENT '设备编号',
- `tmrid` bigint(20) DEFAULT NULL COMMENT 'tmr主键',
- `tmrtname` varchar(20) DEFAULT NULL COMMENT 'tmr名称',
- `havebutton` tinyint(1) DEFAULT 0 COMMENT '是否开始执行',
- `inbuttontype` int(11) DEFAULT 0 COMMENT '按钮类型',
- `plantime` varchar(50) DEFAULT NULL COMMENT '计划时分',
- `intime` datetime DEFAULT NULL COMMENT '开始执行时间',
- `completedtime` datetime DEFAULT NULL COMMENT '结束执行时间',
- `processtime` time DEFAULT NULL COMMENT '过程时间',
- `iscompleted` tinyint(4) DEFAULT 0 COMMENT '是否已完成',
- `lpplantype` int(11) DEFAULT 0 COMMENT '计算模式: 0、混合,1、上料,2、发料,3、剩料,4、预混',
- `times` int(11) DEFAULT 0 COMMENT '班次',
- `sort` int(11) DEFAULT 0 COMMENT '顺序',
- `remark` varchar(50) DEFAULT NULL COMMENT '备注',
- `itemnum` int(11) DEFAULT NULL COMMENT '添加饲料种类数',
- `outitems` int(11) DEFAULT NULL COMMENT '发料牛舍数',
- `feedpname` varchar(200) DEFAULT NULL COMMENT '牛舍列表',
- `feedpcount` int(11) DEFAULT 0 COMMENT '牛头数',
- `pid` bigint(20) DEFAULT NULL COMMENT '发料计划编号',
- `tempid` bigint(20) DEFAULT NULL COMMENT '配方id',
- `templetname` varchar(50) DEFAULT NULL COMMENT '配方模版名称',
- `ptstempid` bigint(20) DEFAULT NULL COMMENT '补料配方id',
- `ptstempletname` varchar(50) DEFAULT NULL COMMENT '补料配方模版名称',
- `thoweight` char(20) DEFAULT NULL COMMENT '配方理论干物质',
- `fpweight` char(20) DEFAULT NULL COMMENT '配方总重',
- `lweight` decimal(38,2) DEFAULT NULL COMMENT '应做料总量',
- `iweight` int(11) DEFAULT NULL COMMENT '实际做料总量',
- `oweight` int(11) DEFAULT NULL COMMENT '实发料重量',
- `tversion` int(11) DEFAULT 0 COMMENT '配方版本',
- `ptversion` int(11) DEFAULT 0 COMMENT '补料配方版本',
- `enable` tinyint(4) DEFAULT 1 COMMENT '是否启用',
- `isUse` int(11) DEFAULT 0 COMMENT '是否使用(1 为已使用)格润富德接口使用',
- `deletetime` datetime DEFAULT NULL,
- PRIMARY KEY (`id`) USING BTREE,
- KEY `newindex1` (`mydate`) USING BTREE,
- KEY `newindex2` (`lpplantype`) USING BTREE,
- KEY `newindex3` (`havebutton`) USING BTREE,
- KEY `pid` (`pid`) USING BTREE,
- KEY `downloadedplan_uni` (`pastureid`,`mydate`,`pid`,`lpplantype`,`tmrid`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=1211346 DEFAULT CHARSET=utf8mb3 COMMENT='计划';
- CREATE TABLE `downloadplandtl1_delrecord` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `pastureid` bigint(20) NOT NULL,
- `pid` bigint(20) NOT NULL COMMENT '计划id',
- `flpid` bigint(20) DEFAULT NULL COMMENT '发料计划的主id',
- `fid` bigint(20) NOT NULL COMMENT '饲料id',
- `lweight` decimal(10,2) NOT NULL COMMENT '理论重量',
- `sort` int(11) NOT NULL DEFAULT 0 COMMENT '顺序',
- `lastactualweight` decimal(10,2) DEFAULT NULL COMMENT '上次重量',
- `actualweight` decimal(10,2) DEFAULT NULL COMMENT '实际重量',
- `actualweightminus` decimal(10,2) DEFAULT NULL COMMENT '实际重量',
- `havebuttom` tinyint(1) DEFAULT 0 COMMENT '是否操作',
- `begintime` datetime DEFAULT NULL COMMENT '操作开始时间',
- `intime` datetime DEFAULT NULL COMMENT '操作结束时间',
- `buttontype` int(11) DEFAULT 0 COMMENT '操作类型',
- `optdevice` bigint(20) DEFAULT NULL COMMENT '操作车id',
- `feedcode` varchar(50) DEFAULT NULL COMMENT '饲料编码',
- `fname` varchar(20) DEFAULT NULL COMMENT '饲料名称',
- `feedsort` int(11) DEFAULT 0 COMMENT '饲料顺序',
- `feedallowratio` float DEFAULT 0 COMMENT '饲料允许误差率',
- `stirdelay` int(11) DEFAULT 0 COMMENT '搅拌延时(分钟)',
- `fweight` decimal(10,3) DEFAULT NULL COMMENT '配方明细量',
- `tmrloadname` varchar(20) DEFAULT NULL COMMENT '相同饲料顺序在tmr车上的显示名称',
- `dryfeed` decimal(38,2) DEFAULT NULL COMMENT '饲料干物质',
- `pricefeed` decimal(38,2) DEFAULT NULL COMMENT '饲料单价',
- `outweight` int(11) DEFAULT NULL COMMENT '人工确认出库量',
- `errratio` decimal(38,2) DEFAULT NULL,
- `date` date NOT NULL,
- `buttonsucc` tinyint(4) DEFAULT NULL,
- `type` tinyint(4) DEFAULT 0 COMMENT '类型 1是tmr 0 是饲料',
- PRIMARY KEY (`id`,`pastureid`,`date`) USING BTREE,
- KEY `ai_id` (`id`) USING BTREE,
- KEY `newindex1` (`fid`) USING BTREE,
- KEY `fk_downloadplandtl1` (`pid`) USING BTREE,
- KEY `date` (`date`) USING BTREE,
- KEY `flpid` (`flpid`) USING BTREE,
- KEY `downloadplandtl1_uni` (`pastureid`,`flpid`,`fid`,`date`,`pid`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=13234709 DEFAULT CHARSET=utf8mb3 COMMENT='计划1';
- CREATE TABLE `downloadplandtl1_exec_delrecord` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `pastureid` bigint(20) NOT NULL,
- `pid` bigint(20) NOT NULL COMMENT '计划id',
- `flpid` bigint(20) DEFAULT NULL,
- `lastactualweight` decimal(10,2) DEFAULT NULL COMMENT '上次重量',
- `actualweight` decimal(10,2) DEFAULT NULL COMMENT '本次重量',
- `lweight` decimal(10,2) NOT NULL COMMENT '理论重量',
- `actualweightminus` decimal(10,2) DEFAULT NULL COMMENT '实际重量',
- `begintime` datetime DEFAULT NULL COMMENT '操作开始时间',
- `intime` datetime DEFAULT NULL COMMENT '操作结束时间',
- `havebuttom` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已操作',
- `buttontype` int(11) DEFAULT 0 COMMENT '按钮类型',
- `optdevice` bigint(20) DEFAULT NULL COMMENT '操作车id',
- `sort` int(11) NOT NULL DEFAULT 0 COMMENT '顺序',
- `fname` varchar(50) DEFAULT NULL COMMENT '饲料名称,多饲料,逗号分开',
- `fcount` int(11) DEFAULT NULL COMMENT '饲料数',
- `tmrloadname` varchar(20) DEFAULT NULL COMMENT '相同饲料顺序在tmr车上的显示名称',
- `feedallowratio` float DEFAULT 0 COMMENT '饲料允许误差公斤',
- `processtime` time DEFAULT NULL COMMENT '过程时间',
- `stirdelay` int(11) DEFAULT 0 COMMENT '搅拌延时(分钟)',
- `buttonsucc` tinyint(4) DEFAULT 0,
- `errratio` decimal(38,2) DEFAULT NULL,
- `date` date NOT NULL,
- `type` tinyint(4) DEFAULT 0 COMMENT '类型 1是tmr 0 是饲料',
- PRIMARY KEY (`id`,`pastureid`,`date`) USING BTREE,
- KEY `ai_id` (`id`) USING BTREE,
- KEY `fk_downloadplandtl1_exec` (`pid`) USING BTREE,
- KEY `p-pid` (`pastureid`,`pid`) USING BTREE,
- KEY `date` (`date`,`pastureid`) USING BTREE,
- KEY `intime` (`intime`,`pastureid`) USING BTREE,
- KEY `flpid` (`flpid`) USING BTREE,
- KEY `downloadplandtl1_exec_sort` (`pastureid`,`pid`,`sort`,`date`,`type`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=13234709 DEFAULT CHARSET=utf8mb3 COMMENT='计划1_exec';
- CREATE TABLE `downloadplandtl2_delrecord` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `pastureid` bigint(20) NOT NULL,
- `pid` bigint(20) NOT NULL COMMENT '计划id',
- `flpid` bigint(20) DEFAULT NULL COMMENT ',发料计划的主id',
- `fbarid` bigint(20) NOT NULL COMMENT '牛舍id',
- `fname` varchar(50) DEFAULT NULL COMMENT '牛舍名称',
- `lastactualweight` decimal(10,0) DEFAULT NULL COMMENT '上次重量',
- `actualweight` decimal(10,2) DEFAULT NULL COMMENT '本次重量',
- `lweight` decimal(10,2) DEFAULT NULL COMMENT '理论重量',
- `lweighthis` decimal(10,2) DEFAULT NULL COMMENT '历史理论重量(剩料)',
- `remainleftw` decimal(10,2) DEFAULT NULL COMMENT '剩料量',
- `allowrw` decimal(10,2) DEFAULT NULL COMMENT '允许分配剩料量',
- `actualweightminus` decimal(10,2) DEFAULT NULL COMMENT '实际重量',
- `sort` int(11) NOT NULL DEFAULT 0 COMMENT '顺序',
- `havebuttom` tinyint(1) DEFAULT 0 COMMENT '是否操作',
- `begintime` datetime DEFAULT NULL COMMENT '操作开始时间',
- `begintag` varchar(50) DEFAULT NULL COMMENT '开始标签',
- `intime` datetime DEFAULT NULL COMMENT '操作完成时间',
- `endtag` varchar(50) DEFAULT NULL COMMENT '结束标签',
- `buttontype` int(11) DEFAULT 0 COMMENT '操作按键类型',
- `optdevice` bigint(20) DEFAULT NULL COMMENT '操作车id',
- `cowcount` int(11) DEFAULT 0 COMMENT '牛头数',
- `cowclassid` bigint(20) DEFAULT NULL COMMENT '牛只类型id',
- `cowclassname` varchar(50) DEFAULT NULL COMMENT '类型名称',
- `bigcowname` varchar(50) DEFAULT NULL,
- `pweight` decimal(10,2) DEFAULT NULL COMMENT '通过加料计算出重量',
- `ccountratio` float DEFAULT 100 COMMENT '牛头系数',
- `sumrtime` float DEFAULT 0 COMMENT '该班次比例(%)',
- `feedtempletid` bigint(20) DEFAULT NULL COMMENT '配方模版id',
- `feedtempletname` varchar(20) DEFAULT NULL COMMENT '配方模版名称',
- `dryweight` decimal(10,2) DEFAULT NULL COMMENT '配方干物质',
- `sumweight` decimal(10,2) DEFAULT NULL COMMENT '配方饲料总重量',
- `priceweight` decimal(10,2) DEFAULT NULL COMMENT '配方单价',
- `processtime` time DEFAULT NULL COMMENT '过程时间',
- `fpid` bigint(20) DEFAULT NULL COMMENT '栏舍配方id',
- `useinbartype` bigint(20) DEFAULT NULL COMMENT '转投栏舍类型(0收集剩料,1撒剩料)',
- `date` date NOT NULL,
- `allowratio` int(11) DEFAULT NULL COMMENT '栏舍允许误差',
- `errratio` decimal(38,2) DEFAULT NULL,
- `buttonsucc` tinyint(4) DEFAULT NULL,
- `type` tinyint(4) DEFAULT 0 COMMENT '类型 1是铲车 0 是栏舍',
- PRIMARY KEY (`id`,`pastureid`,`date`) USING BTREE,
- KEY `ai_id` (`fbarid`) USING BTREE,
- KEY `newindex2` (`flpid`) USING BTREE,
- KEY `newindex1` (`pid`) USING BTREE,
- KEY `intime` (`intime`) USING BTREE,
- KEY `date` (`date`) USING BTREE,
- KEY `pastureid` (`pastureid`,`pid`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=3912367 DEFAULT CHARSET=utf8mb3 COMMENT='计划2';
- CREATE TABLE `downloadedplan_log` (
- `id` bigint(20) NOT NULL DEFAULT 0,
- `times` tinyint(2) DEFAULT NULL,
- `date` date DEFAULT NULL,
- `status` tinyint(1) DEFAULT 0 COMMENT '同步状态',
- `push_status` tinyint(1) DEFAULT NULL COMMENT '微信推送状态',
- `classes` tinyint(1) DEFAULT 0 COMMENT '班次状态',
- `dailyplan` tinyint(1) DEFAULT 0 COMMENT '当日计划',
- PRIMARY KEY (`id`) USING BTREE,
- KEY `date_2` (`date`) USING BTREE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- CREATE TABLE `downloadplandtl1_log` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `sort` int(11) DEFAULT NULL,
- `planid` bigint(20) DEFAULT NULL COMMENT 'downloadedplan id ',
- `pastureid` int(11) DEFAULT NULL,
- `date` date DEFAULT NULL,
- `plandtl1` bigint(20) DEFAULT NULL COMMENT 'downloadplandtl1 id ',
- `type` tinyint(1) DEFAULT NULL,
- `abnormalMixingDelay` tinyint(1) DEFAULT 0 COMMENT '混料搅拌延时异常',
- `InventoryWarning` tinyint(1) DEFAULT NULL COMMENT '库存预警',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=7395 DEFAULT CHARSET=utf8mb4;
- CREATE TABLE `wx_config` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `grantType` varchar(50) DEFAULT NULL,
- `appid` varchar(100) DEFAULT NULL,
- `secret` varchar(100) DEFAULT NULL,
- `system` varchar(30) DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;
- CREATE TABLE `dungandbodyhistory` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `barname` varchar(50) DEFAULT NULL COMMENT '栏舍名称',
- `standardscore` varchar(50) DEFAULT NULL COMMENT '标准分数',
- `barid` bigint(20) DEFAULT NULL COMMENT '栏舍id',
- `cowsum` varchar(50) DEFAULT NULL COMMENT '牛头数',
- `onescore` varchar(50) DEFAULT NULL COMMENT '1',
- `twoscore` varchar(50) DEFAULT NULL COMMENT '2',
- `threescore` varchar(50) DEFAULT NULL COMMENT '3',
- `fourscore` varchar(50) DEFAULT NULL COMMENT '4',
- `fivescore` varchar(50) DEFAULT NULL COMMENT '5',
- `pastureid` bigint(20) DEFAULT NULL COMMENT '牧场id',
- `species` varchar(50) DEFAULT NULL COMMENT '种类',
- `changetime` datetime DEFAULT NULL COMMENT '操作时间',
- `sixscore` varchar(50) DEFAULT NULL COMMENT '6',
- `sevenscore` varchar(50) DEFAULT NULL COMMENT '7',
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb3;
- CREATE TABLE `feedtemplethistory` (
- `id` bigint(20) NOT NULL COMMENT '配方模板id',
- `pastureid` bigint(20) NOT NULL,
- `tcode` varchar(50) DEFAULT NULL COMMENT '配方编码',
- `tname` varchar(50) NOT NULL COMMENT '配方名称',
- `tcolor` varchar(50) DEFAULT '#ccc' COMMENT '配方模板颜色',
- `ccid` bigint(20) DEFAULT NULL COMMENT '牲畜类别id',
- `ccname` varchar(50) DEFAULT NULL COMMENT '类别名称',
- `fttype` varchar(50) DEFAULT NULL COMMENT '配方类型',
- `fttypeid` tinyint(1) DEFAULT 0 COMMENT '配方类型id(1饲喂,2预混,3补料)',
- `source` varchar(50) DEFAULT NULL COMMENT '来源',
- `remark` varchar(255) DEFAULT NULL COMMENT '备注',
- `enable` tinyint(1) DEFAULT 1 COMMENT '启用',
- `sort` int(11) DEFAULT 1 COMMENT '排序',
- `owner` varchar(50) DEFAULT NULL COMMENT '来源',
- `weight` decimal(38,3) DEFAULT NULL COMMENT '总重',
- `dryweight` decimal(38,3) DEFAULT NULL COMMENT '干物质含量',
- `isdelete` tinyint(1) DEFAULT 0 COMMENT '是否删除(0为未删除,1为伪删除)',
- `version` int(11) DEFAULT 1 COMMENT '修改一次增加版本号',
- `savetime` datetime DEFAULT current_timestamp() COMMENT '保存日期',
- `isissue` tinyint(4) DEFAULT 0 COMMENT '下发是否为当前配方(1是,0否)',
- `issueversion` int(11) DEFAULT 0 COMMENT '下发时的版本',
- `issueid` bigint(20) DEFAULT NULL COMMENT '下发时的id',
- `backup1` varchar(255) DEFAULT NULL COMMENT '备用1',
- `backup2` varchar(255) DEFAULT NULL COMMENT '备用2',
- `createdate` datetime DEFAULT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
- CREATE TABLE `feedphistory` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
- `pastureid` bigint(20) NOT NULL,
- `barname` char(20) DEFAULT NULL,
- `barid` bigint(20) NOT NULL COMMENT '舍栏id',
- `softccount` int(11) DEFAULT NULL COMMENT '软件牛头数',
- `ccount` int(11) NOT NULL DEFAULT 0 COMMENT '实际头数',
- `ratio` decimal(38,2) DEFAULT NULL COMMENT '系数',
- `ccountratio` decimal(38,2) DEFAULT 100.00 COMMENT '系数牛头数',
- `ftid` bigint(20) DEFAULT NULL COMMENT '配方模版id(不是补料模版的id)',
- `ftname` varchar(50) DEFAULT NULL COMMENT '配方名称',
- `ptsfid` bigint(20) DEFAULT NULL COMMENT '配方模版id(补料模版的id)',
- `ptsfname` varchar(50) DEFAULT NULL COMMENT '补料名称',
- `feedweight` decimal(38,3) DEFAULT NULL COMMENT '投喂量',
- `ftweight` decimal(38,3) DEFAULT NULL COMMENT '配方重量',
- `supplyweight` decimal(38,3) DEFAULT 0.000 COMMENT '补料重量',
- `owner` varchar(20) DEFAULT NULL COMMENT '编制人',
- `createdate` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=3976043477267383674 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC COMMENT='栏舍';
- CREATE TABLE `fit_history` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) DEFAULT NULL COMMENT '饲料名称',
- `weight` decimal(10,2) DEFAULT NULL COMMENT '修改前重量',
- `pastureId` bigint(20) DEFAULT NULL COMMENT '牧场id',
- `fitId` bigint(20) DEFAULT NULL COMMENT '配方id',
- `dateTime1` datetime DEFAULT NULL COMMENT '修改时间',
- `Eweight` decimal(10,2) DEFAULT NULL COMMENT '修改后重量',
- `change` varchar(20) DEFAULT NULL COMMENT '判断是否改变',
- `autosecond` int(11) DEFAULT NULL,
- `feedgroup` varchar(50) DEFAULT NULL,
- `preftid` bigint(20) DEFAULT 0,
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=7571 DEFAULT CHARSET=utf8mb3;
- CREATE TABLE `fpdetailhistory` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '配方子表id',
- `pastureid` bigint(20) NOT NULL,
- `barid` bigint(20) NOT NULL COMMENT '栏舍id',
- `barname` varchar(50) DEFAULT NULL COMMENT '栏舍名称',
- `times` tinyint(4) DEFAULT NULL COMMENT '班次',
- `tratio` decimal(38,1) DEFAULT NULL COMMENT '班次比例',
- `weight` decimal(38,2) unsigned DEFAULT 0.00 COMMENT '重量',
- `ptsrate` decimal(38,6) unsigned zerofill DEFAULT 00000000000000000000000000000000.000000 COMMENT '补料比例',
- `cowcount` char(20) DEFAULT NULL COMMENT '牛头数',
- `ccountradio` char(20) DEFAULT NULL COMMENT '牛头系数',
- `ptid` bigint(20) DEFAULT -1 COMMENT '配方模板',
- `ptsid` bigint(20) DEFAULT -1 COMMENT '补料配方',
- `ptuse` decimal(38,2) unsigned NOT NULL DEFAULT 0.00 COMMENT '0 未分配 大于0分配',
- `ptsuse` decimal(38,2) unsigned NOT NULL DEFAULT 0.00 COMMENT '0 未分配 大于0分配',
- `supplement` decimal(38,2) DEFAULT 0.00,
- `createdate` datetime DEFAULT NULL,
- PRIMARY KEY (`id`,`pastureid`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=3976043477519043775 DEFAULT CHARSET=utf8mb3 COMMENT='栏舍配方子表历史记录';
- CREATE TABLE `ftdry_history` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT,
- `barname` varchar(50) DEFAULT NULL COMMENT '栏舍名称',
- `times` varchar(50) DEFAULT NULL COMMENT '班次',
- `freshweight` decimal(20,2) DEFAULT NULL COMMENT '新鲜重量',
- `dryweight` decimal(20,2) DEFAULT NULL COMMENT '烘干重量',
- `thoweight` decimal(20,0) DEFAULT NULL COMMENT '理论干物质',
- `actweight` decimal(20,0) DEFAULT NULL COMMENT '实际干物质',
- `barid` bigint(20) DEFAULT NULL COMMENT '栏舍id',
- `changeTime` datetime DEFAULT NULL COMMENT '操作时间',
- `pastureid` bigint(20) DEFAULT NULL COMMENT '牧场id',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb3;
- CREATE TABLE `lpplandtl1history` (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '发料计划详情',
- `pastureid` bigint(20) NOT NULL,
- `lppid` bigint(20) DEFAULT NULL COMMENT '计划id',
- `barid` bigint(20) DEFAULT NULL COMMENT '栏舍id',
- `barname` varchar(50) DEFAULT NULL COMMENT '栏舍名称',
- `fpdid` bigint(20) DEFAULT NULL COMMENT '栏舍配方子id',
- `fttype` tinyint(4) DEFAULT 1 COMMENT '配方类型(1饲喂,0补料)',
- `lweight` decimal(10,2) unsigned DEFAULT NULL COMMENT '重量',
- `sort` int(11) DEFAULT 0 COMMENT '顺序',
- `tmrid` bigint(20) DEFAULT NULL COMMENT '撒料车id',
- `tmrname` varchar(50) DEFAULT NULL COMMENT '撒料车名称',
- `background` varchar(50) DEFAULT NULL COMMENT '颜色',
- `cowcount` int(11) DEFAULT NULL COMMENT '牛头数',
- `ccountradio` decimal(38,2) DEFAULT NULL COMMENT '牛头系数',
- `lweighthis` decimal(10,2) DEFAULT NULL,
- `createdate` datetime DEFAULT NULL,
- PRIMARY KEY (`id`,`pastureid`) USING BTREE,
- KEY `fpdid` (`fpdid`) USING BTREE,
- KEY `lppid` (`lppid`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=3932719861083938115 DEFAULT CHARSET=utf8mb3;
- CREATE TABLE `notice` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `content` varchar(200) DEFAULT NULL,
- `status` tinyint(1) DEFAULT 0,
- `pastureid` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;
-
|