Commit b0c320d1e6d22c2a2cbb7427aa54b111f188689c

Authored by 王言钊
1 parent 91be0086

修改赋值对象、代码顺序

src/main/java/com/cnlive/shenhe/api/LiveControllerApi.java
... ... @@ -105,12 +105,13 @@ public class LiveControllerApi {
105 105 List<ShyLive> listshyLive = liveService.findshyLive(shylive1);
106 106 //更新
107 107 if (listshyLive.size() > 0) {
  108 +
  109 + ShyLive shyLive = listshyLive.get(0);
108 110 //拒绝状态等于4
109 111 if (activityStatus == 4) {
110 112 //领取状态改为未领
111   - shylive1.setShenhe_state(CommonConst.RECEIVE_BEFORE);
  113 + shyLive.setShenhe_state(CommonConst.RECEIVE_BEFORE);
112 114 }
113   - ShyLive shyLive = listshyLive.get(0);
114 115 //封装数据入库
115 116 //设置spid
116 117 shyLive.setSp_id(spId);
... ...