1
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtwmapi"
|
||||
"git.rosy.net.cn/jx-callback/business/authz/autils"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/mtwm"
|
||||
"strings"
|
||||
@@ -114,6 +115,28 @@ func (c *StoreController) UpdateStore() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 获取门店违约金详情
|
||||
// @Description 获取门店违约金详情
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs query string false "京西门店ID列表[1,2,3],缺省不限制"
|
||||
// @Param fromTime query string true "起始时间"
|
||||
// @Param toTime query string true "结束时间"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStoreFineDesc [get]
|
||||
func (c *StoreController) GetStoreFineDesc() {
|
||||
c.callGetStoreFineDesc(func(params *tStoreGetStoreFineDescParams) (retVal interface{}, errCode string, err error) {
|
||||
timeList, err := jxutils.BatchStr2Time(params.FromTime, params.ToTime)
|
||||
if err == nil {
|
||||
var storeIDList []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
|
||||
retVal, err = dao.StatisticsFineFee(dao.GetDB(), timeList[0], timeList[1], storeIDList)
|
||||
}
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 删除京西门店
|
||||
// @Description 删除京西门店
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user