fix
This commit is contained in:
@@ -7,6 +7,7 @@ import com.starry.admin.modules.custom.module.vo.PlayCustomRankingQueryVo;
|
||||
import com.starry.admin.modules.custom.module.vo.PlayCustomRankingReturnVo;
|
||||
import com.starry.admin.modules.custom.module.vo.PlayCustomUserQueryVo;
|
||||
import com.starry.admin.modules.custom.module.vo.PlayCustomUserReturnVo;
|
||||
import com.starry.admin.modules.order.module.entity.PlayOrderInfoEntity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
@@ -121,5 +122,5 @@ public interface IPlayCustomUserInfoService extends IService<PlayCustomUserInfoE
|
||||
|
||||
List<PlayCustomUserInfoEntity> simpleList();
|
||||
|
||||
void saveOrderTime(String id);
|
||||
void saveOrderInfo(PlayOrderInfoEntity entity);
|
||||
}
|
||||
|
||||
@@ -284,12 +284,14 @@ public class PlayCustomUserInfoServiceImpl extends ServiceImpl<PlayCustomUserInf
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveOrderTime(String id) {
|
||||
public void saveOrderInfo(PlayOrderInfoEntity entity) {
|
||||
String id = entity.getPurchaserBy();
|
||||
LambdaUpdateWrapper<PlayCustomUserInfoEntity> wrapper = Wrappers.lambdaUpdate(PlayCustomUserInfoEntity.class).eq(PlayCustomUserInfoEntity::getId, id).set(PlayCustomUserInfoEntity::getLastPurchaseTime, new Date());
|
||||
PlayCustomUserInfoEntity userInfoEntity = selectById(id);
|
||||
if(Objects.isNull(userInfoEntity.getFirstPurchaseTime())){
|
||||
wrapper.set(PlayCustomUserInfoEntity::getFirstPurchaseTime,new Date());
|
||||
}
|
||||
wrapper.set(PlayCustomUserInfoEntity::getWeiChatCode,entity.getWeiChatCode());
|
||||
this.update(wrapper);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user