TYPE=VIEW query=select `heatwatch`.`cow`.`varCowCode` AS `varCowCode`,if((`heatwatch`.`cow`.`intCurBar` > 0),`heatwatch`.`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,floor(`heatwatch`.`cow`.`monthAge`) AS `sort`,concat(\'出生日期:\',`heatwatch`.`cow`.`dateBirthDate`) AS `DESCRIB`,`heatwatch`.`cow`.`intPastureId` AS `intPastureId` from (`heatwatch`.`cow` left join `heatwatch`.`weight` on(((`heatwatch`.`cow`.`intCowId` = `heatwatch`.`weight`.`intCowId`) and (floor(`heatwatch`.`cow`.`monthAge`) = `heatwatch`.`weight`.`intWeightClass`)))) where (find_in_set(floor(`heatwatch`.`cow`.`monthAge`),(select `heatwatch`.`manageparam`.`varVal` from `heatwatch`.`manageparam` where ((`heatwatch`.`manageparam`.`varDiscribe` = \'体尺月龄\') and (`heatwatch`.`manageparam`.`intPastureId` = `heatwatch`.`cow`.`intPastureId`)))) and isnull(`heatwatch`.`weight`.`intCowId`)) order by `heatwatch`.`cow`.`intCurBar`,`heatwatch`.`cow`.`varCowCode` md5=2be65d977761b5325dbf5c9205caac3d updatable=0 algorithm=0 definer_user=roo definer_host=% suid=1 with_check_option=0 timestamp=2022-12-14 10:07:39 create-version=1 source=select `cow`.`varCowCode` AS `varCowCode`,if(`cow`.`intCurBar` > 0,`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,floor(`cow`.`monthAge`) AS `sort`,concat(\'出生日期:\',`cow`.`dateBirthDate`) AS `DESCRIB`,`cow`.`intPastureId` AS `intPastureId` from (`cow` left join `weight` on(`cow`.`intCowId` = `weight`.`intCowId` and floor(`cow`.`monthAge`) = `weight`.`intWeightClass`)) where find_in_set(floor(`cow`.`monthAge`),(select `manageparam`.`varVal` from `manageparam` where `manageparam`.`varDiscribe` = \'体尺月龄\' and `manageparam`.`intPastureId` = `cow`.`intPastureId`)) and `weight`.`intCowId` is null order by `cow`.`intCurBar`,`cow`.`varCowCode` client_cs_name=utf8 connection_cl_name=utf8_general_ci view_body_utf8=select `heatwatch`.`cow`.`varCowCode` AS `varCowCode`,if((`heatwatch`.`cow`.`intCurBar` > 0),`heatwatch`.`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,floor(`heatwatch`.`cow`.`monthAge`) AS `sort`,concat(\'出生日期:\',`heatwatch`.`cow`.`dateBirthDate`) AS `DESCRIB`,`heatwatch`.`cow`.`intPastureId` AS `intPastureId` from (`heatwatch`.`cow` left join `heatwatch`.`weight` on(((`heatwatch`.`cow`.`intCowId` = `heatwatch`.`weight`.`intCowId`) and (floor(`heatwatch`.`cow`.`monthAge`) = `heatwatch`.`weight`.`intWeightClass`)))) where (find_in_set(floor(`heatwatch`.`cow`.`monthAge`),(select `heatwatch`.`manageparam`.`varVal` from `heatwatch`.`manageparam` where ((`heatwatch`.`manageparam`.`varDiscribe` = \'体尺月龄\') and (`heatwatch`.`manageparam`.`intPastureId` = `heatwatch`.`cow`.`intPastureId`)))) and isnull(`heatwatch`.`weight`.`intCowId`)) order by `heatwatch`.`cow`.`intCurBar`,`heatwatch`.`cow`.`varCowCode`