Example #1
0
 /**
  * @author mao
  * @date 创建时间:2016-3-23下午1:56:19
  * @see com.monkey77.service.ICartService#updateCartByMobile(java.lang.String, java.lang.String)
  */
 @Override
 public Map<String, Object> updateCartByMobile(String mobile, String cartData) {
   // TODO Auto-generated method stub
   Gson g = new Gson();
   CartInfo ci = g.fromJson(cartData, CartInfo.class);
   int userId = userDao.getUserByMobile(mobile).getId();
   cartDao.updateCartByMobile(ci.getCart(), userId);
   Map<String, Object> result = new HashMap<String, Object>();
   result.put("statusCode", 0);
   return result;
 }