|
@@ -23,9 +23,9 @@ public class SapEmployeeTimeService extends BaseService {
|
|
|
@Autowired
|
|
|
private WxUserService wxUserService;
|
|
|
|
|
|
- public String getUserIdList(List<String> sapUsers) {
|
|
|
+ public String getUserIdList(List<String> sapUserIds) {
|
|
|
String userIds = "";
|
|
|
- for (String sapUser : sapUsers) {
|
|
|
+ for (String sapUser : sapUserIds) {
|
|
|
userIds += "'" + sapUser + "',";
|
|
|
}
|
|
|
return userIds;
|
|
@@ -33,8 +33,8 @@ public class SapEmployeeTimeService extends BaseService {
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
public void saveEmployeeTimes() throws Exception {
|
|
|
- List<String> allUserIds = wxUserService.selectAllUserIds();
|
|
|
- Map<String, List<String>> map = groupList(allUserIds, 25);
|
|
|
+ List<String> allSapUserIds = wxUserService.selectSapUserId();
|
|
|
+ Map<String, List<String>> map = groupList(allSapUserIds, 25);
|
|
|
String url = null;
|
|
|
for (String key : map.keySet()) {
|
|
|
System.out.println(getUserIdList(map.get(key)));
|