作者 唐旭辉

bug 修复

@@ -37,6 +37,5 @@ file_save_path = "/var/www/oppmg/file" @@ -37,6 +37,5 @@ file_save_path = "/var/www/oppmg/file"
37 file_host = "http://mmm-oppmg-dev.fjmaimaimai.com" 37 file_host = "http://mmm-oppmg-dev.fjmaimaimai.com"
38 file_host_path = "/file/opp" 38 file_host_path = "/file/opp"
39 39
40 -# 审批流程修改 消息发布  
41 -message_publish = "audit_change" 40 +
42 #---自定义配置 结束---- 41 #---自定义配置 结束----
1 [prod] 1 [prod]
2 -config_name = "prod" 2 +cconfig_name = "prod"
3 #----beego的默认配置 开始--- 3 #----beego的默认配置 开始---
4 #端口号 4 #端口号
5 -httpport = 8080  
6 -  
7 -##---beego的默认配置 结束--- 5 +httpport = 8080
  6 +#开启应用内监控
  7 +EnableAdmin = false
  8 +AdminPort = 8088
  9 +#---beego的默认配置 结束---
8 10
9 #---自定义配置 开始---- 11 #---自定义配置 开始----
10 -#数据库连接  
11 -# sqlconn = "${MYSQL_CONN||root:sutianxia2015@tcp(115.29.205.99:3306)/opportunity?charset=utf8&loc=Asia%2FShanghai}" 12 +##数据库连接
  13 +# sqlconn ="${MYSQL_CONN||root:sutianxia2015@tcp(115.29.205.99:3306)/opportunity?charset=utf8&loc=Asia%2FShanghai}"
12 mysql_user = "${MYSQL_USER||root}" 14 mysql_user = "${MYSQL_USER||root}"
13 -mysql_password = "${MYSQL_PASSWORD||sutianxia2015}"  
14 -mysql_host = "${MYSQL_HOST||115.29.205.99}" 15 +mysql_password = "${MYSQL_PASSWORD||sutianxia2018}"
  16 +mysql_host = "${MYSQL_HOST||101.37.68.23}"
15 mysql_port = "${MYSQL_PORT||3306}" 17 mysql_port = "${MYSQL_PORT||3306}"
16 -mysql_db_name = "${MYSQL_DB_NAME||opportunity}"  
17 -#redis相关配置  
18 -redis_add_port = "127.0.0.1:6379" 18 +mysql_db_name = "${MYSQL_DB_NAME||opportunity_dev}"
  19 +##redis相关配置
  20 +redis_add = "${REDIS_HOST||127.0.0.1}"
  21 +redis_add_port = "${REDIS_PORT||6379}"
19 redis_auth = "" 22 redis_auth = ""
20 -#log相关配置  
21 -#out_put:"console","file" 23 +##log相关配置
  24 +##out_put:"console","file"
22 log_output = "file" 25 log_output = "file"
23 -log_filename = "${LOG_FILENAME||./log/ability.log}"  
24 -log_level = "${LOG_LEVEL||debug}" 26 +log_filename = "${aliyun_logs_access||./log/ability.log}"
  27 +log_level = "${LOG_LEVEL||error}"
  28 +
25 ##统一用户中心相关配置 29 ##统一用户中心相关配置
26 -ucenter_app_key = ""  
27 -ucenter_base_url = ""  
28 -# 审批流程修改 消息发布  
29 -message_publish = "audit_change" 30 +ucenter_check_alt = "rsF0pL!6DwjBO735"
  31 +ucenter_base_url = "http://suplus-ucenter-dev.fjmaimaimai.com"
  32 +ucenter_app_key = "39aefef9e22744a3b2d2d3791824ae7b"
  33 +ucenter_secret = "cykbjnfqgctn"
  34 +
  35 +# 上传文件保存路径
  36 +file_save_path = "/var/www/oppmg/file"
  37 +file_host = "http://mmm-oppmg-dev.fjmaimaimai.com"
  38 +file_host_path = "/file/opp"
  39 +
30 #---自定义配置 结束---- 40 #---自定义配置 结束----
@@ -36,6 +36,5 @@ ucenter_secret = "cykbjnfqgctn" @@ -36,6 +36,5 @@ ucenter_secret = "cykbjnfqgctn"
36 file_save_path = "/var/www/oppmg/file" 36 file_save_path = "/var/www/oppmg/file"
37 file_host = "http://mmm-oppmg-test.fjmaimaimai.com" 37 file_host = "http://mmm-oppmg-test.fjmaimaimai.com"
38 file_host_path = "/file/opp" 38 file_host_path = "/file/opp"
39 -# 审批流程修改 消息发布  
40 -message_publish = "audit_change" 39 +
41 #---自定义配置 结束---- 40 #---自定义配置 结束----
@@ -36,7 +36,7 @@ func (c *AuditController) AuditList() { @@ -36,7 +36,7 @@ func (c *AuditController) AuditList() {
36 if err == nil && len(param.CreateTimeEndS) > 0 { 36 if err == nil && len(param.CreateTimeEndS) > 0 {
37 param.CreateTimeEnd = endTime.Unix() + 864399 37 param.CreateTimeEnd = endTime.Unix() + 864399
38 } 38 }
39 - param.EnableStatus, _ = strconv.Atoi(param.EnableStatusS) 39 + param.Status, _ = strconv.Atoi(param.StatusS)
40 param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS) 40 param.ReviewStatus, _ = strconv.Atoi(param.ReviewStatusS)
41 param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS) 41 param.PublishStatus, _ = strconv.Atoi(param.PublishStatusS)
42 uid := c.GetUserId() 42 uid := c.GetUserId()
@@ -236,8 +236,8 @@ type RequestAuditList struct { @@ -236,8 +236,8 @@ type RequestAuditList struct {
236 PublishStatus int `json:"-"` //公开状态 236 PublishStatus int `json:"-"` //公开状态
237 ReviewStatus int `json:"-"` // 237 ReviewStatus int `json:"-"` //
238 ReviewStatusS string `json:"review_status"` // 238 ReviewStatusS string `json:"review_status"` //
239 - EnableStatus int `json:"-"` //关闭状态  
240 - EnableStatusS string `json:"enable_status"` //关闭状态 239 + Status int `json:"-"` //关闭状态
  240 + StatusS string `json:"status"` //关闭状态
241 DepartmentID int `json:"department_id"` //提交部门 241 DepartmentID int `json:"department_id"` //提交部门
242 CreateTimeBegin int64 `json:"-"` // 242 CreateTimeBegin int64 `json:"-"` //
243 CreateTimeBeginS string `json:"create_time_begin"` 243 CreateTimeBeginS string `json:"create_time_begin"`
@@ -218,9 +218,9 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 @@ -218,9 +218,9 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64
218 datasql.WriteString(s) 218 datasql.WriteString(s)
219 countsql.WriteString(s) 219 countsql.WriteString(s)
220 } 220 }
221 - if param.EnableStatus >= 0 {  
222 - cond = append(cond, param.EnableStatus)  
223 - s := ` AND a.enable_status=? ` 221 + if param.Status >= 0 {
  222 + cond = append(cond, param.Status)
  223 + s := ` AND a.status=? `
224 datasql.WriteString(s) 224 datasql.WriteString(s)
225 countsql.WriteString(s) 225 countsql.WriteString(s)
226 } 226 }