接口修改2

This commit is contained in:
彭桃 2023-02-15 13:39:52 +08:00
parent 9f1a87c01b
commit e1bba828d2

View File

@ -546,12 +546,16 @@ class Statistics extends BaseController
$num2 = Db::table('fa_szxc_information_usermsg')->where($map)->where('gender',1)->count();
//女
$num3 = Db::table('fa_szxc_information_usermsg')->where($map)->where('gender',2)->count();
//已婚
$num4 = Db::table('fa_szxc_information_usermsg')->where($map)->where('marital_status',170)->count();
//未婚
$num5 = Db::table('fa_szxc_information_usermsg')->where($map)->where('marital_status',169)->count();
$return = [
'villagernum' => $num1,
'mannum' => $num2,
'wumannum' => $num3,
'married' => 600,
'unmarried' => 400,
'married' => $num4,
'unmarried' => $num5,
'skillnum' => 20,
'policynum' => 20,
'agriculture' => 20,