Commit 612888f7 by 裴大威

fix add default

parent 685f101c
......@@ -133,10 +133,13 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
final Long warehouseId = bookKeywordWarehouseBiz.addBookKeyword(setKeywordVO);
bookKeyword.setWarehouseId(warehouseId);
bookKeyword.setIsWarehouse(1);
} else {
bookKeyword.setWarehouseId(0L);
}
if(null == bookKeyword.getIsWarehouse()){
bookKeyword.setIsWarehouse(0);
}
if(null == bookKeyword.getWarehouseId()){
bookKeyword.setWarehouseId(0L);
}
bookKeywordDao.insert(bookKeyword);
}
......
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