|
@@ -844,7 +844,7 @@ class AgentTools{
|
|
|
$this->dbNewAgentDetail->beginTransaction();
|
|
|
$lms = "";
|
|
|
foreach($calcData as $k=>$v){
|
|
|
- $count = $this->dbNewAgentDetail->count(["purchaseId"=>$v["purchaseId"],"agentId"=>$v["agentId"]]);
|
|
|
+ $count = $this->dbNewAgentDetail->count(["purchaseId"=>$v["purchaseId"],"shopId"=>$v["shopId"]]);
|
|
|
if($count>0){
|
|
|
$lms.="当前采购单已计算佣金[{$v['purchaseId']}];";
|
|
|
continue;
|