CREATE ALGORITHM=UNDEFINED DEFINER=`ordertest`@`%` SQL SECURITY DEFINER VIEW `view_unified_area_web_child` AS select `a`.`id` AS `area_item_id`,`a`.`area_id` AS `area_id`,`a`.`city_name` AS `area_item_name`,`a`.`customer_user_id` AS `customer_user_id`,`a`.`purchase_user_id` AS `purchase_user_id`,`c`.`fullname` AS `purchase_user_name`,`b`.`fullname` AS `customer_user_name`,`d`.`kpi_target` AS `kpi_target`,`d`.`okr_target` AS `okr_target`,`d`.`yearly` AS `yearly`,`d`.`monthly` AS `monthly` from (((`unified_area_city` `a` left join `sys_user` `b` on((`a`.`customer_user_id` = `b`.`id`))) left join `sys_user` `c` on((`a`.`purchase_user_id` = `c`.`id`))) left join `unified_area_city_target` `d` on(((`a`.`id` = `d`.`area_city_id`) and (`d`.`yearly` = year(curdate())) and (`d`.`monthly` = month(curdate())))))