Authored by ping

update

... ... @@ -42,9 +42,9 @@ public class OrderShareController {
*/
@RequestMapping(params = "methods=app.activity.getActivityInfo")
@ResponseBody
public ApiResponse getActivityInfo(int id) {
logger.info("getActivityInfo param id={}", id);
OrderShareActivityBO data = orderShareActivityService.getActivityInfoById(id);
public ApiResponse getActivityInfo() {
logger.info("getActivityInfo");
OrderShareActivityBO data = orderShareActivityService.getActivityInfoById();
return new ApiResponse(data);
}
... ...
... ... @@ -7,11 +7,10 @@ import com.yoho.activity.common.bo.OrderShareBO;
public interface IOrderShareActivityService {
/**
* 根据id查询订单分享活动详情
* @param id
* 获取有效的活动详情
* @return
*/
public OrderShareActivityBO getActivityInfoById(Integer id);
public OrderShareActivityBO getActivityInfoById();
/**
* 查询用户订单分享状况
... ...
... ... @@ -62,11 +62,11 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService
private int orderShareOldUserLimit;
@Override
public OrderShareActivityBO getActivityInfoById(Integer id) {
// TODO Auto-generated method stub
OrderShareActivity db = orderShareActivityDAO.selectByPrimaryKey(id);
if (db == null)
public OrderShareActivityBO getActivityInfoById() {
OrderShareActivity db = orderShareActivityDAO.selectOne();
if (db == null) {
return null;
}
return OrderShareActivityConvert.db2bo(db);
}
... ...