- mark store sku bind as modified when change storevendor price percentage

This commit is contained in:
gazebo
2018-11-19 20:49:18 +08:00
parent aa75705d95
commit bc9f801d2d
4 changed files with 44 additions and 25 deletions

View File

@@ -127,8 +127,9 @@ func (c *StoreController) GetStoreVendorMaps() {
// @router /UpdateStoreVendorMap [put]
func (c *StoreController) UpdateStoreVendorMap() {
c.callUpdateStoreVendorMap(func(params *tStoreUpdateStoreVendorMapParams) (retVal interface{}, errCode string, err error) {
storeMap := make(map[string]interface{})
if err = utils.UnmarshalUseNumber([]byte(params.Payload), &storeMap); err == nil {
var storeMap map[string]interface{}
var storeMapStruct model.StoreMap
if storeMap, err = utils.Unmarshal2Map([]byte(params.Payload), &storeMapStruct); err == nil {
retVal, err = cms.UpdateStoreVendorMap(params.Ctx, nil, params.StoreID, params.VendorID, storeMap, params.Ctx.GetUserName())
}
return retVal, "", err