|
|
@@ -19,6 +19,7 @@ import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.customer.bo.*;
|
|
|
import com.goafanti.customer.service.CustomerService;
|
|
|
+import com.goafanti.customer.service.UserArchivesService;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
@@ -51,6 +52,8 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
private Integer USER_RECEIVE_MAX = null;
|
|
|
@Resource
|
|
|
private AdminService adminService;
|
|
|
+ @Resource
|
|
|
+ private UserArchivesService userArchivesService;
|
|
|
|
|
|
@Value(value = "${aesSecretKey}")
|
|
|
private String secretKey = null;
|
|
|
@@ -1648,6 +1651,10 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
@GetMapping("/getPublicReleaseList")
|
|
|
public Result<List<PublicReleaseListBo>> getPublicReleaseList(String id) {
|
|
|
Result res = new Result();
|
|
|
+ if (userArchivesService.checkPermission(id)){
|
|
|
+ res.error(buildError("查看超时,请要分享人重新分享。"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
res.setData(customerService.getPublicReleaseList(id));
|
|
|
return res;
|
|
|
}
|