1
This commit is contained in:
@@ -3,10 +3,13 @@ package controllers
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/business/bidding"
|
||||
"git.rosy.net.cn/jx-callback/business/jxcallback/scheduler"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/excel"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
@@ -136,7 +139,7 @@ func (c *BiddingController) JXPrintAfsOrder() {
|
||||
// @Title 创建超市签约信息
|
||||
// @Description 创建超市签约信息:记录已经签约的门店信息
|
||||
// @Param signObj formData string true "model.SupermarketSign"
|
||||
// @Param token header string false "认证token"
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CreateSupermarketSign [post]
|
||||
@@ -147,7 +150,7 @@ func (c *BiddingController) CreateSupermarketSign() {
|
||||
return nil, "", err
|
||||
}
|
||||
|
||||
retVal = bidding.CreateSupermarketSign(supermarket, params.Ctx.GetUserName())
|
||||
retVal = bidding.CreateSupermarketSign(supermarket, params.Ctx.GetUserID())
|
||||
return retVal, "", nil
|
||||
})
|
||||
}
|
||||
@@ -166,7 +169,7 @@ func (c *BiddingController) CreateSupermarketSign() {
|
||||
// @Param signPeople formData string false "签约人"
|
||||
// @Param page formData int64 true "页码"
|
||||
// @Param size formData int64 true "页数"
|
||||
// @Param token header string false "认证token"
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetSupermarketSign [post]
|
||||
@@ -178,6 +181,21 @@ func (c *BiddingController) GetSupermarketSign() {
|
||||
})
|
||||
}
|
||||
|
||||
// DeleteSignData 查询超市签约信息
|
||||
// @Title 查询超市签约信息
|
||||
// @Description 查询超市签约信息:记录已经签约的门店信息
|
||||
// @Param storeID formData string true "美团门店ID"
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /DeleteSignData [delete]
|
||||
func (c *BiddingController) DeleteSignData() {
|
||||
c.callDeleteSignData(func(params *tBindDeleteSignDataParams) (retVal interface{}, hint string, err error) {
|
||||
retVal, err = bidding.DeleteSignData(params.StoreID)
|
||||
return retVal, hint, err
|
||||
})
|
||||
}
|
||||
|
||||
// DownSupermarketSign 下载超市签约信息
|
||||
// @Title 下载超市签约信息
|
||||
// @Description 下载超市签约信息
|
||||
@@ -237,7 +255,11 @@ func (c *BiddingController) DownSupermarketSign() {
|
||||
key := "export/" + strings.Join(keyPart, "_")
|
||||
excelURL, err2 := jxutils.UploadExportContent(excelBin, key)
|
||||
if err = err2; err == nil {
|
||||
task.SetNoticeMsg(excelURL)
|
||||
//task.SetNoticeMsg(excelURL)
|
||||
if authInfo, err := params.Ctx.GetV2AuthInfo(); err == nil {
|
||||
noticeMsg := fmt.Sprintf("path=%s\n", excelURL)
|
||||
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, authInfo.UserID, "导出签约门店数据", noticeMsg)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user