|
|
@@ -13,8 +13,9 @@ import com.usoftchina.smartschool.school.wxschool.utils.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
-import java.util.*;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
|
|
|
@Service
|
|
|
@@ -43,7 +44,7 @@ public class WxOutInRecordServiceImpl implements WxOutInRecordService {
|
|
|
Integer pageStart = (pageIndex-1)*pageSize;
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
List<OutInRecordDO> outInRecordDOS = outInRecordMapper.selectOutInRecordDOListByStuId(stuId, pageStart, pageSize);
|
|
|
- List<Map<String, Object>> maps = new ArrayList<>();
|
|
|
+ //List<Map<String, Object>> maps = new ArrayList<>();
|
|
|
if (ObjectUtils.isNotEmpty(outInRecordDOS)){
|
|
|
Long stuId1 = outInRecordDOS.get(0).getStuId();
|
|
|
StudentDO studentDO = studentMapper.get(stuId1);
|
|
|
@@ -52,7 +53,7 @@ public class WxOutInRecordServiceImpl implements WxOutInRecordService {
|
|
|
map1.put("clazzName",clazzDO.getClazzName());
|
|
|
map1.put("gradeName",gradeMapper.get(clazzDO.getGradeId()).getGradeName());
|
|
|
map.put("student",map1);
|
|
|
- for (OutInRecordDO oi:outInRecordDOS) {
|
|
|
+ /*for (OutInRecordDO oi:outInRecordDOS) {
|
|
|
Map<String, Object> toMap = JavaBeanUtil.convertBeanToMap(oi);
|
|
|
SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm");
|
|
|
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT-6"));
|
|
|
@@ -63,9 +64,9 @@ public class WxOutInRecordServiceImpl implements WxOutInRecordService {
|
|
|
toMap.put("outDate",dateFormat.format(oi.getOutDate()));
|
|
|
}
|
|
|
maps.add(toMap);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
- map.put("outInRecordDOS",maps);
|
|
|
+ map.put("outInRecordDOS",outInRecordDOS);
|
|
|
return map;
|
|
|
}
|
|
|
|