|
@@ -5,8 +5,6 @@ import java.util.List;
|
|
|
|
|
|
import org.fouram.core.base.service.BaseService;
|
|
|
import org.fouram.core.base.service.RequestService;
|
|
|
-import org.fouram.core.util.Base64Util;
|
|
|
-import org.fouram.core.util.ConfConfig;
|
|
|
import org.fouram.entity.SapUser;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
@@ -25,15 +23,6 @@ public class SapReportService extends BaseService {
|
|
|
return (List<SapUser>) findList("SapUserMapper.selectReportUserList", null);
|
|
|
}
|
|
|
|
|
|
- private HttpHeaders getHttpHeaders() {
|
|
|
- HttpHeaders headers = new HttpHeaders();
|
|
|
- StringBuilder stringBuilder = new StringBuilder();
|
|
|
- String sapApiUser = ConfConfig.getConfigString("sapApi.user");
|
|
|
- String authorizationStr = stringBuilder.append("Basic ").append(Base64Util.encodeString(sapApiUser)).toString();
|
|
|
- headers.add("Authorization", authorizationStr);
|
|
|
- return headers;
|
|
|
- }
|
|
|
-
|
|
|
public void saveAllReportData() throws Exception {
|
|
|
HttpHeaders headers = getHttpHeaders();
|
|
|
List<SapUser> sapUsers = selectReportUserList();
|