diff --git a/app/api/controller/Statistics.php b/app/api/controller/Statistics.php index e7920b1..36527d7 100644 --- a/app/api/controller/Statistics.php +++ b/app/api/controller/Statistics.php @@ -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,