check duplicate khi đồng bộ
This commit is contained in:
@@ -97,8 +97,10 @@ class ApiController extends Controller {
|
||||
}
|
||||
|
||||
public function actionData() {
|
||||
Yii::$app->response->format = "json";
|
||||
return ListManagement::find()->orderBy(['id' => SORT_DESC])->all();
|
||||
if (Yii::$app->request->post()) {
|
||||
Yii::$app->response->format = "json";
|
||||
return ListManagement::find()->andWhere(["NOT IN", "name", Yii::$app->request->post()])->orderBy(['id' => SORT_DESC])->all();
|
||||
}
|
||||
}
|
||||
|
||||
public function actionFullData() {
|
||||
|
||||
Reference in New Issue
Block a user