BuildingInformationController.class.php 492 B

12345678910111213141516171819
  1. <?php
  2. namespace Home\Controller;
  3. use Think\Controller;
  4. class BuildingInformationController extends ComController
  5. {
  6. //建筑基础信息
  7. public function getBuildingManagement(){
  8. $Data =I();
  9. $company_code=$Data['company_code'];
  10. $R=M()->query("select * from sp_build_basic_information where company_code='".$company_code."'");
  11. $res['msg'] = '操作成功';
  12. $res['flag'] = true;
  13. $res['data'] = $R;
  14. echo json_encode($res);
  15. }
  16. }