1
This commit is contained in:
parent
2d47880e59
commit
fdbf6d14bc
@ -29,11 +29,12 @@ func (this *recharge) process() {
|
|||||||
func (lastIdx int64, maxIdx int64) (string, []string) {
|
func (lastIdx int64, maxIdx int64) (string, []string) {
|
||||||
sql := fmt.Sprintf(`
|
sql := fmt.Sprintf(`
|
||||||
SELECT * FROM t_recharge
|
SELECT * FROM t_recharge
|
||||||
WHERE idx > %d AND idx <= %d AND status = 0
|
WHERE idx > %d AND idx <= %d AND status = %d
|
||||||
ORDER BY idx LIMIT 1000
|
ORDER BY idx LIMIT 1000
|
||||||
`,
|
`,
|
||||||
lastIdx,
|
lastIdx,
|
||||||
maxIdx)
|
maxIdx,
|
||||||
|
jccommon.RECHARGE_ORDER_STATUS_PENDING)
|
||||||
params := []string{
|
params := []string{
|
||||||
}
|
}
|
||||||
return sql, params
|
return sql, params
|
||||||
@ -61,6 +62,7 @@ func (this *recharge) deliverGoods(ds *f5.DataSet) bool {
|
|||||||
result = this.markStatus(idx, jccommon.RECHARGE_ORDER_STATUS_SENT) == nil
|
result = this.markStatus(idx, jccommon.RECHARGE_ORDER_STATUS_SENT) == nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
result = this.markStatus(idx, jccommon.RECHARGE_ORDER_STATUS_SENT) == nil
|
||||||
})
|
})
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user