v_duecalv.frm 2.2 KB

123456789101112131415
  1. TYPE=VIEW
  2. query=select `heatwatch`.`cow`.`varCowCode` AS `varCowCode`,if((`heatwatch`.`cow`.`intCurBar` > 0),`heatwatch`.`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,`heatwatch`.`cow`.`intCurFetal` AS `intCurFetal`,date_format(`heatwatch`.`cow`.`productionDate`,\'%m-%d\') AS `productionDate`,`heatwatch`.`cow`.`intPastureId` AS `intPastureId`,`heatwatch`.`cow`.`sireClass` AS `sireClass` from (`heatwatch`.`cow` join `heatwatch`.`bar` on(((`heatwatch`.`cow`.`intCurBar` = `heatwatch`.`bar`.`varBarCode`) and (`heatwatch`.`cow`.`intPastureId` = `heatwatch`.`bar`.`intPastureId`)))) where (((to_days(`heatwatch`.`cow`.`productionDate`) - to_days(curdate())) < 7) and isnull(`heatwatch`.`cow`.`dateLeave`) and (`heatwatch`.`cow`.`sireClass` = \'已孕\'))
  3. md5=c93a13cf8e55f8531c9b2c4845d59620
  4. updatable=1
  5. algorithm=0
  6. definer_user=roo
  7. definer_host=%
  8. suid=1
  9. with_check_option=0
  10. timestamp=2022-12-14 10:07:39
  11. create-version=1
  12. source=select `cow`.`varCowCode` AS `varCowCode`,if(`cow`.`intCurBar` > 0,`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,`cow`.`intCurFetal` AS `intCurFetal`,date_format(`cow`.`productionDate`,\'%m-%d\') AS `productionDate`,`cow`.`intPastureId` AS `intPastureId`,`cow`.`sireClass` AS `sireClass` from (`cow` join `bar` on(`cow`.`intCurBar` = `bar`.`varBarCode` and `cow`.`intPastureId` = `bar`.`intPastureId`)) where to_days(`cow`.`productionDate`) - to_days(curdate()) < 7 and `cow`.`dateLeave` is null and `cow`.`sireClass` = \'已孕\'
  13. client_cs_name=utf8
  14. connection_cl_name=utf8_general_ci
  15. view_body_utf8=select `heatwatch`.`cow`.`varCowCode` AS `varCowCode`,if((`heatwatch`.`cow`.`intCurBar` > 0),`heatwatch`.`cow`.`intCurBarName`,\'待分配\') AS `intCurBarName`,`heatwatch`.`cow`.`intCurFetal` AS `intCurFetal`,date_format(`heatwatch`.`cow`.`productionDate`,\'%m-%d\') AS `productionDate`,`heatwatch`.`cow`.`intPastureId` AS `intPastureId`,`heatwatch`.`cow`.`sireClass` AS `sireClass` from (`heatwatch`.`cow` join `heatwatch`.`bar` on(((`heatwatch`.`cow`.`intCurBar` = `heatwatch`.`bar`.`varBarCode`) and (`heatwatch`.`cow`.`intPastureId` = `heatwatch`.`bar`.`intPastureId`)))) where (((to_days(`heatwatch`.`cow`.`productionDate`) - to_days(curdate())) < 7) and isnull(`heatwatch`.`cow`.`dateLeave`) and (`heatwatch`.`cow`.`sireClass` = \'已孕\'))