Sfoglia il codice sorgente

修改 查询用户申请状态 接口

tags/V1.8.0^2
wanghaoran 1 anno fa
parent
commit
ee7d20e9cd
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +4
    -2
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/ThWestreamTiktokServiceImpl.java

+ 4
- 2
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/ThWestreamTiktokServiceImpl.java Vedi File

@@ -98,14 +98,16 @@ public class ThWestreamTiktokServiceImpl extends ServiceImpl<ThWestreamTiktokMap
.eq(ThWestreamTiktok::getMark, 1)
.orderByDesc(ThWestreamTiktok::getCreateTime)
.last("limit 1"));
//0未申请 1待审核(或驳回) 2通过
//0未申请(或驳回) 1待审核 2通过
if(ObjectUtil.isNull(thWestreamTiktok)){
return JsonResult.success(0);
}else {
if(1 == thWestreamTiktok.getStatus() || 3 == thWestreamTiktok.getStatus()){
if(1 == thWestreamTiktok.getStatus()){
return JsonResult.success(1);
}else if(2 == thWestreamTiktok.getStatus()){
return JsonResult.success(2);
}else if(3 == thWestreamTiktok.getStatus()){
return JsonResult.success(0);
}else {
return JsonResult.success(0);
}

Loading…
Annulla
Salva