TYPE=VIEW
query=select `heatwatch`.`cow`.`intCowId` AS `intCowId`,`heatwatch`.`cow`.`varCowCode` AS `varCowCode`,if((`heatwatch`.`cow`.`intCurBar` > 0),`heatwatch`.`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,concat(floor(`heatwatch`.`cow`.`monthAge`),\'月龄\') AS `sort`,concat(\'出生日：\',date_format(`heatwatch`.`cow`.`dateBirthDate`,\'%y-%m-%d\')) 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=0553cc9277622f731b99c5ad33094326
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`.`intCowId` AS `intCowId`,`cow`.`varCowCode` AS `varCowCode`,if(`cow`.`intCurBar` > 0,`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,concat(floor(`cow`.`monthAge`),\'月龄\') AS `sort`,concat(\'出生日：\',date_format(`cow`.`dateBirthDate`,\'%y-%m-%d\')) 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`.`intCowId` AS `intCowId`,`heatwatch`.`cow`.`varCowCode` AS `varCowCode`,if((`heatwatch`.`cow`.`intCurBar` > 0),`heatwatch`.`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,concat(floor(`heatwatch`.`cow`.`monthAge`),\'月龄\') AS `sort`,concat(\'出生日：\',date_format(`heatwatch`.`cow`.`dateBirthDate`,\'%y-%m-%d\')) 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`
