修复land_area 错误 breed_area 错误

This commit is contained in:
mkm 2023-03-22 13:51:45 +08:00
parent b4d2add477
commit 5870683c22

View File

@ -754,12 +754,17 @@ class Maintainentry extends BaseController
// }
}
}
$waste_land_area = 0;
$waste_land_area = $post['land_area'] - $mianji - $post['breed_area'];
if($waste_land_area < 0){
$waste_land_area = 0;
if (!empty($post['land_area']) && !empty($post['breed_area']))
{
$waste_land_area = $post['land_area'] - $mianji - $post['breed_area'];
if($waste_land_area < 0){
$waste_land_area = 0;
}
}
if ($find) {
// 修改人员信息
$data['tools_msg'] = $post['tools_msg'];