接口修改3

This commit is contained in:
彭桃 2023-02-02 14:30:47 +08:00
parent a2ac35d730
commit f1279af860

View File

@ -69,7 +69,7 @@ class Maintainentry extends BaseController
//获取已录入人数
$www[] = ['village_id','=',$village_id];
$www[] = ['status','=','1'];
$www[] = ['enter_id','=',JWT_UID];
// $www[] = ['enter_id','=',JWT_UID];
$have = Db::table('fa_szxc_information_usermsg')->where($www)->count();
$man_num = Db::table('fa_szxc_information_usermsg')->where($www)->where('gender',1)->count();
$woman_num = Db::table('fa_szxc_information_usermsg')->where($www)->where('gender',2)->count();
@ -1703,8 +1703,8 @@ class Maintainentry extends BaseController
}
}
// 获取种植信息
// $www['user_id'] = $user_id;
// $planting = Db::table('fa_szxc_information_planting')->where($www)->field('id,crops_msg,land_area')->find();
$www['user_id'] = $user_id;
$planting = Db::table('fa_szxc_information_planting')->where($www)->field('id,crops_msg,land_area')->find();
// if($planting && $planting['crops_msg']){
// $crops_msg = json_decode($planting['crops_msg'], 1);
// $crops_msg = array_filter(array_column($crops_msg,'name'));