Răsfoiți Sursa

客户信息

shish 5 ani în urmă
părinte
comite
6f1ea1ddb6
2 a modificat fișierele cu 7 adăugiri și 11 ștergeri
  1. 0 11
      biz-ghs/custom/services/CustomService.php
  2. 7 0
      sql.sql

+ 0 - 11
biz-ghs/custom/services/CustomService.php

@@ -34,17 +34,6 @@ class CustomService extends BaseService
         }
         $list = CustomClass::groupBaseInfo([$custom]);
         $custom = current($list);
-        $customShopId = $custom['customShopId'] ?? 0;
-        $customShop = ShopClass::getShopInfo($customShopId);
-        $super = ShopClass::getSuper($customShopId);
-        $custom['province'] = $customShop['province'] ?? '';
-        $custom['city'] = $customShop['city'] ?? '';
-        $custom['address'] = $customShop['address'] ?? '';
-        $custom['floor'] = $customShop['floor'] ?? '';
-        $custom['lat'] = $customShop['lat'] ?? '';
-        $custom['long'] = $customShop['long'] ?? '';
-        $custom['userName'] = $super['adminName'] ?? '';
-        $custom['mobile'] = $super['mobile'] ?? '';
         return $custom;
     }
 

+ 7 - 0
sql.sql

@@ -1649,3 +1649,10 @@ ALTER TABLE xhGhsOrder ADD customName VARCHAR(50) NOT NULL DEFAULT '' COMMENT '
 ALTER TABLE xhGhsOrder ADD customNamePy VARCHAR(20) NOT NULL DEFAULT '' COMMENT '客户名称拼音首字母' AFTER `customName`;
 ALTER TABLE xhGhsOrder ADD customAvatar VARCHAR(800) NOT NULL DEFAULT '' COMMENT '客户头像' AFTER `customNamePy`;
 ALTER TABLE xhGhsOrder ADD customMobile CHAR(15) NOT NULL DEFAULT '' COMMENT '客户手机号' AFTER `customAvatar`;
+ALTER TABLE xhGhsCustom ADD `province` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '省' AFTER `debtAmount`;
+ALTER TABLE xhGhsCustom ADD `city` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '市' AFTER `province`;
+ALTER TABLE xhGhsCustom ADD `dist` VARCHAR(100) NOT NULL DEFAULT '' COMMENT '区县' AFTER `city`;
+ALTER TABLE xhGhsCustom ADD `floor` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '楼号门牌号' AFTER `province`;
+ALTER TABLE xhGhsCustom ADD `fullAddress` VARCHAR(500) NOT NULL DEFAULT '' COMMENT '完整地址' AFTER `floor`;
+ALTER TABLE xhGhsCustom ADD `lat` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '纬度' AFTER `fullAddress`;
+ALTER TABLE xhGhsCustom ADD `long` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '经度' AFTER `lat`;