‘linchangsheng’ 1 ماه پیش
والد
کامیت
765602cbf0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      mall-server-api/src/main/java/com/gree/mall/manager/logic/comlist/WorkerComListLogic.java

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/comlist/WorkerComListLogic.java

@@ -194,7 +194,7 @@ public class WorkerComListLogic {
         }
         WorkerComList workerComList = workerComListService.getById(id);
 
-        if (adminUser.getType() == 1 || adminUser.getNickName().contains(workerComList.getCreateBy())) {
+        if (adminUser.getType() == 1 || workerComList.getCreateBy().indexOf(adminUser.getNickName()) != -1) {
             log.info("【中心文件下发下载】:{}", JSONObject.toJSONString(adminUser));
             CommonUtils.downloadFile(workerComList.getFileUrl(),workerComList.getTitle()+".xlsx" , response);
         } else {