コード例 #1
0
 public TaobaoShop selectByPrimaryKey(Long userId) {
   TaobaoShop _key = new TaobaoShop();
   _key.setUserId(userId);
   TaobaoShop record =
       (TaobaoShop)
           getSqlMapClientTemplate().queryForObject("taobao_shop.selectByPrimaryKey", _key);
   return record;
 }
コード例 #2
0
 public int deleteByPrimaryKey(Long userId) {
   TaobaoShop _key = new TaobaoShop();
   _key.setUserId(userId);
   int rows = getSqlMapClientTemplate().delete("taobao_shop.deleteByPrimaryKey", _key);
   return rows;
 }