浏览代码

查客户资料增加区域id

zou.yingbin 4 年之前
父节点
当前提交
e7db834c01
共有 4 个文件被更改,包括 14 次插入0 次删除
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 3 0
      models/ermcpUser.go

+ 4 - 0
docs/docs.go

@@ -13244,6 +13244,10 @@ var doc = `{
                     "description": "企业名称",
                     "type": "string"
                 },
+                "districtid": {
+                    "description": "区域",
+                    "type": "integer"
+                },
                 "memberuserid": {
                     "description": "所属机构ID",
                     "type": "integer"

+ 4 - 0
docs/swagger.json

@@ -13228,6 +13228,10 @@
                     "description": "企业名称",
                     "type": "string"
                 },
+                "districtid": {
+                    "description": "区域",
+                    "type": "integer"
+                },
                 "memberuserid": {
                     "description": "所属机构ID",
                     "type": "integer"

+ 3 - 0
docs/swagger.yaml

@@ -4645,6 +4645,9 @@ definitions:
       customername:
         description: 企业名称
         type: string
+      districtid:
+        description: 区域
+        type: integer
       memberuserid:
         description: 所属机构ID
         type: integer

+ 3 - 0
models/ermcpUser.go

@@ -34,6 +34,7 @@ type ErmcpUserModel struct {
 	COUNTRYID         int32  `json:"countryid"  xorm:"'COUNTRYID'"`                 // 国家
 	PROVINCEID        int32  `json:"provinceid"  xorm:"'PROVINCEID'"`               // 省
 	CITYID            int32  `json:"cityid"  xorm:"'CITYID'"`                       // 市
+	DISTRICTID        int32  `json:"districtid"  xorm:"'DISTRICTID'"`               // 区域
 	CREATETIME        string `json:"createtime"  xorm:"'CREATETIME'"`               // 创建时间
 	MODIFYTIME        string `json:"modifytime"  xorm:"'MODIFYTIME'"`               // 修改时间
 	AUDITTIME         string `json:"audittime"  xorm:"'AUDITTIME'"`                 // 审核时间
@@ -56,6 +57,7 @@ func (r *ErmcpUserModel) buildWskhSql(accStatus string) string {
 		"       t.userstate         status," +
 		"       t.countryid," +
 		"       t.provinceid," +
+		"       t.districtid," +
 		"       to_char(t.createtime,'yyyy-mm-dd hh24:mi:ss') createtime," +
 		"       t.cityid," +
 		"       to_char(t.modifiedtime,'yyyy-mm-dd hh24:mi:ss') modifytime," +
@@ -88,6 +90,7 @@ func (r *ErmcpUserModel) buildSql(accStatus string) string {
 		"       t.accountstatus     status," +
 		"       u.countryid," +
 		"       u.provinceid," +
+		"       u.districtid," +
 		"       to_char(t.createtime,'yyyy-mm-dd hh24:mi:ss') createtime," +
 		"       to_char(t.modifytime,'yyyy-mm-dd hh24:mi:ss') modifytime," +
 		"       to_char(t.audittime,'yyyy-mm-dd hh24:mi:ss') audittime," +