|
@@ -67,7 +67,8 @@ func (this *CompanyController) CompanyShare() {
|
|
|
if req.IsShare == 0 {
|
|
|
companyProductItem.ShareSeller = ""
|
|
|
companyProductItem.ShareSellerId = 0
|
|
|
- updateCol = append(updateCol, "ShareSeller", "ShareSellerId")
|
|
|
+ companyProductItem.ShareGroupId = 0
|
|
|
+ updateCol = append(updateCol, "ShareSeller", "ShareSellerId", "ShareGroupId")
|
|
|
}
|
|
|
|
|
|
err = companyProductItem.Update(updateCol)
|
|
@@ -221,7 +222,6 @@ func (this *CompanyController) CompanyShareList() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
if listParam == 0 {
|
|
|
if sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_FICC_SELLER || sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_FICC_GROUP ||
|
|
|
sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_FICC_TEAM || sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_RAI_SELLER ||
|
|
@@ -753,7 +753,8 @@ func (this *CompanyController) MoveShareSeller() {
|
|
|
updateCol := make([]string, 0)
|
|
|
companyProductItem.ShareSeller = seller.RealName
|
|
|
companyProductItem.ShareSellerId = seller.AdminId
|
|
|
- updateCol = append(updateCol, "ShareSeller", "ShareSellerId")
|
|
|
+ companyProductItem.ShareGroupId = seller.GroupId
|
|
|
+ updateCol = append(updateCol, "ShareSeller", "ShareSellerId", "ShareGroupId")
|
|
|
|
|
|
err = companyProductItem.Update(updateCol)
|
|
|
if err != nil {
|