Woocom (#50)
* orders * woocommerce support * working with MariaDB + Derby
This commit is contained in:
@@ -197,7 +197,7 @@ public class DataLogicSales extends BeanFactoryDataSingle {
|
||||
, new SerializerWriteBasic(new Datas[]{
|
||||
Datas.STRING,
|
||||
Datas.STRING,
|
||||
Datas.BOOLEAN})
|
||||
Datas.INT})
|
||||
);
|
||||
|
||||
m_createSupp = new StaticSentence(s,
|
||||
@@ -635,6 +635,22 @@ public class DataLogicSales extends BeanFactoryDataSingle {
|
||||
|
||||
}
|
||||
|
||||
public final CategoryInfo getCategoryInfoByName(String name) throws BasicException {
|
||||
return (CategoryInfo) new PreparedSentence(s
|
||||
, "SELECT "
|
||||
+ "ID, "
|
||||
+ "NAME, "
|
||||
+ "IMAGE, "
|
||||
+ "TEXTTIP, "
|
||||
+ "CATSHOWNAME, "
|
||||
+ "CATORDER "
|
||||
+ "FROM categories "
|
||||
+ "WHERE NAME = ? "
|
||||
+ "ORDER BY CATORDER, NAME"
|
||||
, SerializerWriteString.INSTANCE
|
||||
, CategoryInfo.getSerializerRead()).find(name);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param id
|
||||
|
||||
Reference in New Issue
Block a user