|
@@ -36,10 +36,10 @@ class ItemController extends Controller
|
|
|
$connection = Yii::$app->db;
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
try {
|
|
|
- $oldItemList = ItemClass::getAllByCondition(['classId' => 26011, 'delStatus' => 0], null, '*');
|
|
|
|
|
|
|
+ $oldItemList = ItemClass::getAllByCondition(['classId' => 25831, 'delStatus' => 0], null, '*');
|
|
|
foreach ($oldItemList as $oldItem) {
|
|
foreach ($oldItemList as $oldItem) {
|
|
|
unset($oldItem['id']);
|
|
unset($oldItem['id']);
|
|
|
- $oldItem['classId'] = 31099;
|
|
|
|
|
|
|
+ $oldItem['classId'] = 31100;
|
|
|
$oldItem['stock'] = 0;
|
|
$oldItem['stock'] = 0;
|
|
|
$oldItem['status'] = 2;
|
|
$oldItem['status'] = 2;
|
|
|
$oldItem['mainId'] = 4553;
|
|
$oldItem['mainId'] = 4553;
|