|
|
|
@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.dreamchaser.depository_manage.entity.UserByPort; |
|
|
|
import com.dreamchaser.depository_manage.utils.HttpUtils; |
|
|
|
import com.dreamchaser.depository_manage.utils.LinkInterfaceUtil; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.extern.log4j.Log4j; |
|
|
|
import lombok.extern.log4j.Log4j2; |
|
|
|
@ -45,6 +46,12 @@ public class PublicConfig { |
|
|
|
*/ |
|
|
|
public static List<UserByPort> findDepartmentHeadByUser(Integer maindeparment,String userKey,String userToken){ |
|
|
|
List<UserByPort> userByPortList = new ArrayList<>(); |
|
|
|
if (Integer.compare(maindeparment, 361) == 0) { |
|
|
|
// 如果申请人部门为仓储
|
|
|
|
UserByPort userByPort = LinkInterfaceUtil.FindUserById(119, userKey,userToken); |
|
|
|
userByPortList.add(userByPort); |
|
|
|
return userByPortList; |
|
|
|
} |
|
|
|
String url = PublicConfig.external_url + "/staff/archiveslist"; |
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
map.put("adminorg",maindeparment); |
|
|
|
|