update

1 个父辈 04276e0f
......@@ -298,8 +298,18 @@ public class WxMiniController extends BaseController {
@ResponseBody
public Object prizes(@RequestParam(value = "openId") String openId) {
Fans fans = fansService.getFansByMiniOpenid(openId);
List<Lotterylog> list = prizeService.getMyLotteryLog(fans.getId());
return new Vo_msg(0, list);
if(fans!=null ) {
try {
List<Lotterylog> list = prizeService.getMyLotteryLog(fans.getId());
return new Vo_msg(0, list);
} catch (Exception e) {
e.printStackTrace();
}
}
return new Vo_msg(0, null);
}
@RequestMapping(value = "/prizes/{id}", method = RequestMethod.GET)
......
......@@ -11,7 +11,6 @@ public class Lotterylog {
private Integer fansid;
private String prizeName;
private BigDecimal mny;
private String name;
private Integer status;
private Integer turn;
......@@ -73,12 +72,5 @@ public class Lotterylog {
this.createdtime = createdtime;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
\ No newline at end of file
......@@ -96,7 +96,6 @@ public class ActivityService {
log.setMny(mny);
log.setStatus(status);
log.setTurn(turn);
log.setName(name);
int row = logDao.insertSelective(log);
return row > 0 ? "ok" : "error";
}
......
Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
请先完成此消息的编辑!