Commit 1a82882f authored by yanzg's avatar yanzg

修复实体关系

parent 4e6dda63
......@@ -19,7 +19,7 @@ import java.util.List;
*/
@Component
public class YzgFileDaoImpl extends BaseDaoImpl implements YzgFileDao, InitializingBean {
private static final String QUERY_TABLE_SQL = "SHOW TABLES LIKE 'queue_message'";
private static final String QUERY_TABLE_SQL = "SHOW TABLES LIKE 'Yzg_File'";
private static final String CREATE_TABLE_SQL = "CREATE TABLE Yzg_File ( " +
" fileId VARCHAR(32) NOT NULL COMMENT '编号', " +
" companyId VARCHAR(32) NOT NULL COMMENT '公司编号', " +
......@@ -45,8 +45,8 @@ public class YzgFileDaoImpl extends BaseDaoImpl implements YzgFileDao, Initializ
protected void init() {
register(MessageVo.class);
table.add(DaoConst.QUERY, "SELECT a.* FROM Queue_Message AS a WHERE 1=1 ")
.add("batchId", "AND a.batchId=?")
getSql(DaoConst.LOAD)
.addCode("{ORDER}", "ORDER BY createDate DESC")
;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment