|
@@ -78,12 +78,19 @@ func (this *CompanyController) CompanyShare() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ {
|
|
|
+ var remark string
|
|
|
+ var operation string
|
|
|
+ if req.IsShare == 1 {
|
|
|
+ remark = "设置共享"
|
|
|
+ operation = "set_share"
|
|
|
+ } else {
|
|
|
+ remark = "取消共享"
|
|
|
+ operation = "cancel_share"
|
|
|
+ }
|
|
|
+ services.AddCompanyOperationRecord(req.CompanyId, companyProductItem.SellerId, sysUser.AdminId, productId, sysUser.AdminId, companyProductItem.CompanyName,
|
|
|
+ companyProductItem.ProductName, sysUser.RealName, remark, operation, "", sysUser.RealName, "", companyProductItem.Status)
|
|
|
+ }
|
|
|
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
@@ -754,6 +761,7 @@ func (this *CompanyController) MoveShareSeller() {
|
|
|
br.ErrMsg = "查找客户失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ oldShareSellerId := companyProductItem.ShareSellerId
|
|
|
|
|
|
|
|
|
updateCol := make([]string, 0)
|
|
@@ -772,13 +780,21 @@ func (this *CompanyController) MoveShareSeller() {
|
|
|
{
|
|
|
services.UpdateCompanyContractSellerMove(req.CompanyId, productId)
|
|
|
}
|
|
|
+
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ {
|
|
|
+ var remark string
|
|
|
+ var operation string
|
|
|
+ if oldShareSellerId == 0 {
|
|
|
+ remark = "分配给" + seller.RealName
|
|
|
+ operation = "set_share_seller"
|
|
|
+ } else {
|
|
|
+ remark = "移动到" + seller.RealName
|
|
|
+ operation = "set_share_seller"
|
|
|
+ }
|
|
|
+ services.AddCompanyOperationRecord(req.CompanyId, seller.AdminId, sysUser.AdminId, productId, sysUser.AdminId, companyProductItem.CompanyName,
|
|
|
+ companyProductItem.ProductName, sysUser.RealName, remark, operation, "", sysUser.RealName, "", companyProductItem.Status)
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|