@@ -26,7 +26,7 @@ class SpAction extends CommonAction{
...
@@ -26,7 +26,7 @@ class SpAction extends CommonAction{
$id=I('id','',int)?I('id','',int):0;
$id=I('id','',int)?I('id','',int):0;
$model=D("Sp");
$model=D("Sp");
$spModel=D("Sp");
$siteModel=D("Site");
$confTypeModel=D("ConfType");
$confTypeModel=D("ConfType");
$regionModel=D("Region");
$regionModel=D("Region");
...
@@ -37,6 +37,8 @@ class SpAction extends CommonAction{
...
@@ -37,6 +37,8 @@ class SpAction extends CommonAction{
$conf_type_lists=$confTypeModel->join(" A left join sh_sp_config B on A.`code` = B.type_code and B.sp_id = $id ")->field("A.id,A.`name`,A.remark,A.`code`,A.`v` default_v,B.`v`")->where("A.`status`=0")->select();
$conf_type_lists=$confTypeModel->join(" A left join sh_sp_config B on A.`code` = B.type_code and B.sp_id = $id ")->field("A.id,A.`name`,A.remark,A.`code`,A.`v` default_v,B.`v`")->where("A.`status`=0")->select();
$region_lists=$regionModel->where("pid = 1 and `status`=0")->select();
$region_lists=$regionModel->where("pid = 1 and `status`=0")->select();
$region_city_lists=$regionModel->where("pid > 1 and `status`=0")->select();
$region_city_lists=$regionModel->where("pid > 1 and `status`=0")->select();