浏览代码

Merge branch 'dev'

master
父节点
当前提交
f5cfded9a5
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      common/models/Distribution.php

+ 4
- 1
common/models/Distribution.php 查看文件

@@ -159,6 +159,9 @@ class Distribution extends ActiveRecordCommon
if($idProducer) {
$paramsDistribution['distribution.id_producer'] = (int) $idProducer ;
}
else {
$idProducer = Producer::getId() ;
}
$distribution = Distribution::searchOne($paramsDistribution) ;
@@ -166,7 +169,7 @@ class Distribution extends ActiveRecordCommon
$distribution = new Distribution;
$distribution->date = $date;
$distribution->delivery = 1;
$distribution->id_producer = Producer::getId();
$distribution->id_producer = $idProducer ;
$distribution->save();
}
}

正在加载...
取消
保存