门店红线/黄线统计-写入数据库

This commit is contained in:
Rosy-zhudan
2019-09-29 18:32:55 +08:00
parent 55548ced11
commit 1ef5d248e8
9 changed files with 291 additions and 38 deletions

View File

@@ -320,13 +320,16 @@ func (c *TempOpController) CreateConsumerFromOrders() {
// @Title 触犯红线通知
// @Description 触犯红线通知
// @Param token header string true "认证token"
// @Param storeIDs formData string false "门店列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /CheckStoreAlert [post]
func (c *TempOpController) CheckStoreAlert() {
c.callCheckStoreAlert(func(params *tTempopCheckStoreAlertParams) (retVal interface{}, errCode string, err error) {
misc.CheckStoreAlert(params.Ctx)
var storeIDs []int
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err == nil {
misc.CheckStoreAlert(params.Ctx, storeIDs)
}
return retVal, "", err
})
}