|
@@ -165,7 +165,11 @@ func (this *EdbSourceStatController) EdbDeleteLog() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ source, _ := this.GetInt("Source", -1)
|
|
|
+ if source < 0 {
|
|
|
+ br.Msg = "请选择数据源"
|
|
|
+ return
|
|
|
+ }
|
|
|
sortParamReq := this.GetString("SortParam", "")
|
|
|
sortType := this.GetString("SortType", "desc")
|
|
|
createTime := this.GetString("CreateTime", "")
|
|
@@ -185,7 +189,7 @@ func (this *EdbSourceStatController) EdbDeleteLog() {
|
|
|
|
|
|
condition := " and source = ?"
|
|
|
var pars []interface{}
|
|
|
- pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL)
|
|
|
+ pars = append(pars, source)
|
|
|
|
|
|
if createTime != "" {
|
|
|
startT, err := time.ParseInLocation(utils.FormatDate, createTime, time.Local)
|
|
@@ -314,7 +318,11 @@ func (this *EdbSourceStatController) EdbUpdateLog() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ source, _ := this.GetInt("Source", -1)
|
|
|
+ if source < 0 {
|
|
|
+ br.Msg = "请选择数据源"
|
|
|
+ return
|
|
|
+ }
|
|
|
sortParamReq := this.GetString("SortParam", "")
|
|
|
sortType := this.GetString("SortType", "desc")
|
|
|
createTime := this.GetString("CreateTime", "")
|
|
@@ -335,7 +343,7 @@ func (this *EdbSourceStatController) EdbUpdateLog() {
|
|
|
|
|
|
condition := " and source = ? and (data_update_result=1 or data_update_result=0)"
|
|
|
var pars []interface{}
|
|
|
- pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL)
|
|
|
+ pars = append(pars, source)
|
|
|
|
|
|
if createTime != "" {
|
|
|
startT, err := time.ParseInLocation(utils.FormatDate, createTime, time.Local)
|
|
@@ -469,6 +477,11 @@ func (this *EdbSourceStatController) EdbUpdateStat() {
|
|
|
|
|
|
sortParamReq := this.GetString("SortParam", "")
|
|
|
sortType := this.GetString("SortType", "desc")
|
|
|
+ source, _ := this.GetInt("Source", -1)
|
|
|
+ if source < 0 {
|
|
|
+ br.Msg = "请选择数据源"
|
|
|
+ return
|
|
|
+ }
|
|
|
terminalCode := this.GetString("TerminalCode", "")
|
|
|
sysUserId := this.GetString("SysUserId", "")
|
|
|
frequency := this.GetString("Frequency", "")
|
|
@@ -491,7 +504,7 @@ func (this *EdbSourceStatController) EdbUpdateStat() {
|
|
|
|
|
|
condition := " and source = ?"
|
|
|
var pars []interface{}
|
|
|
- pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL)
|
|
|
+ pars = append(pars, source)
|
|
|
if createTime != "" {
|
|
|
startT, err := time.ParseInLocation(utils.FormatDate, createTime, time.Local)
|
|
|
if err != nil {
|
|
@@ -666,7 +679,11 @@ func (this *EdbSourceStatController) EdbSourceStat() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
+ source, _ := this.GetInt("Source", -1)
|
|
|
+ if source < 0 {
|
|
|
+ br.Msg = "请选择数据源"
|
|
|
+ return
|
|
|
+ }
|
|
|
sortParamReq := this.GetString("SortParam", "")
|
|
|
sortType := this.GetString("SortType", "desc")
|
|
|
createTime := this.GetString("CreateTime", "")
|
|
@@ -686,7 +703,7 @@ func (this *EdbSourceStatController) EdbSourceStat() {
|
|
|
|
|
|
condition := " and source = ?"
|
|
|
var pars []interface{}
|
|
|
- pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL)
|
|
|
+ pars = append(pars, source)
|
|
|
|
|
|
if createTime != "" {
|
|
|
startT, err := time.ParseInLocation(utils.FormatDate, createTime, time.Local)
|
|
@@ -801,13 +818,18 @@ func (this *EdbSourceStatController) EdbUpdateFailedList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
+ source, _ := this.GetInt("Source", -1)
|
|
|
+ if source < 0 {
|
|
|
+ br.Msg = "请选择数据源"
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
terminalCode := this.GetString("TerminalCode", "")
|
|
|
createTime := this.GetString("CreateTime", "")
|
|
|
|
|
|
condition := " and source = ? and terminal_code = ?"
|
|
|
var pars []interface{}
|
|
|
- pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL, terminalCode)
|
|
|
+ pars = append(pars, source, terminalCode)
|
|
|
|
|
|
terminalName := ""
|
|
|
terminalDir := ""
|
|
@@ -889,6 +911,11 @@ func (this *EdbSourceStatController) EdbUpdateFailedDetailList() {
|
|
|
br.Ret = 408
|
|
|
return
|
|
|
}
|
|
|
+ source, _ := this.GetInt("Source", -1)
|
|
|
+ if source < 0 {
|
|
|
+ br.Msg = "请选择数据源"
|
|
|
+ return
|
|
|
+ }
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
|
|
@@ -919,7 +946,7 @@ func (this *EdbSourceStatController) EdbUpdateFailedDetailList() {
|
|
|
|
|
|
condition := " and source = ? AND terminal_code = ? and frequency=? and data_update_failed_reason=? and data_update_result = 2"
|
|
|
var pars []interface{}
|
|
|
- pars = append(pars, utils.DATA_SOURCE_MYSTEEL_CHEMICAL, terminalCode, frequency, sourceUpdateFailedReason)
|
|
|
+ pars = append(pars, source, terminalCode, frequency, sourceUpdateFailedReason)
|
|
|
|
|
|
if createTime != "" {
|
|
|
startT, err := time.ParseInLocation(utils.FormatDate, createTime, time.Local)
|