fixed formatter fetch brand_id issue/ updated data 20170220

This commit is contained in:
2017-02-20 21:29:00 +08:00
parent 2a3a15c6b0
commit b4d6403a98
8 changed files with 7 additions and 8 deletions

View File

@@ -12,7 +12,6 @@ import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
import com.mysql.jdbc.ResultSet;
import java.io.*;
import java.sql.DriverManager;
public class DataFormatter {
@@ -196,8 +195,8 @@ public class DataFormatter {
int brandID = 0;
if (3 != categoryID) {
innerDestSqlString = "SELECT * FROM remote_index WHERE category_id = '" + categoryID + "' AND " +
"brand_name = '" + brandName + "';";
innerDestSqlString = "SELECT * FROM brand WHERE category_id = '" + categoryID + "' AND " +
"name = '" + brandName + "';";
innerDestStatement = (PreparedStatement) mDestConnection.prepareStatement(innerDestSqlString);
innerDestResultSet = (ResultSet) innerDestStatement.executeQuery();
if (innerDestResultSet.next()) {

Binary file not shown.