use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class RecordController method dealCondition.
public void dealCondition(Map<String, Object> param, Records records, List<RecordData> recordDataList, List<RecordData> srecordDataList) {
List<Record> conditionList = new ArrayList<>();
List<Record> s_conditionList = new ArrayList<>();
List<Map<String, Object>> conditionmonthList = sqlSession.selectList("com.itrus.portal.db.ConditionRecordMapper.selectOneMonth", param);
Map<String, String> conditionmap = dealMonthList(conditionmonthList);
convertList(conditionList, conditionmap);
List<Map<String, Object>> sixMonthList = sqlSession.selectList("com.itrus.portal.db.ConditionRecordMapper.selectSixMonth", param);
Map<String, String> sconditionmap = dealSixList(sixMonthList);
convertList(s_conditionList, sconditionmap);
RecordData recordData = new RecordData();
RecordData srecordData = new RecordData();
ConditionRecord record = getConditionBean(sixMonthList);
recordData.setType("3");
recordData.setValue(("null").equals(String.valueOf(record.getOneCount())) ? "0" : String.valueOf(record.getOneCount()));
recordData.setTime(record.getDateTime());
recordData.setName("环境检测");
recordDataList.add(recordData);
srecordData.setType("3");
srecordData.setValue(("null").equals(String.valueOf(record.getOneCount())) ? "0" : String.valueOf(record.getSixCount()));
// srecordData.setTime(record.getDateTime());
srecordData.setName("环境检测");
srecordDataList.add(srecordData);
records.setConditionList(conditionList);
records.setSconditionList(s_conditionList);
}
use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class RecordController method dealOnLine.
public void dealOnLine(Map<String, Object> param, Records records, List<RecordData> recordDataList, List<RecordData> srecordDataList) {
List<Record> onlineList = new ArrayList<>();
List<Record> s_onlineList = new ArrayList<>();
List<Map<String, Object>> onlinemonthlist = sqlSession.selectList("com.itrus.portal.db.ActivityMsgTempMapper.selectOneMonth", param);
Map<String, String> onlinemap = dealMonthList(onlinemonthlist);
convertList(onlineList, onlinemap);
List<Map<String, Object>> sixMonthList = sqlSession.selectList("com.itrus.portal.db.ActivityMsgTempMapper.selectSixMonth", param);
Map<String, String> sonlinemap = dealSixList(sixMonthList);
convertList(s_onlineList, sonlinemap);
RecordData recordData = new RecordData();
RecordData srecordData = new RecordData();
SignatureRecord record = getOnlineBean(sixMonthList);
recordData.setType("1");
recordData.setValue(("null").equals(String.valueOf(record.getOneCount())) ? "0" : String.valueOf(record.getOneCount()));
recordData.setTime(record.getDateTime());
recordData.setName("安全在线");
recordDataList.add(recordData);
srecordData.setType("1");
srecordData.setValue(("null").equals(String.valueOf(record.getSixCount())) ? "0" : String.valueOf(record.getSixCount()));
// srecordData.setTime(record.getDateTime());
srecordData.setName("安全在线");
srecordDataList.add(srecordData);
records.setOnlineList(onlineList);
records.setSonlineList(s_onlineList);
}
use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class SignatureRecordService method dealCondition.
public void dealCondition(Map<String, Object> param, Records records, List<RecordData> recordDataList, List<RecordData> srecordDataList) {
List<Record> conditionList = new ArrayList<>();
List<Record> s_conditionList = new ArrayList<>();
List<Map<String, Object>> conditionmonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectOneMonth", param);
Map<String, String> conditionmap = dealMonthList(conditionmonthList);
convertList(conditionList, conditionmap);
List<Map<String, Object>> sixMonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectSixMonth", param);
Map<String, String> sconditionmap = dealSixList(sixMonthList);
convertList(s_conditionList, sconditionmap);
RecordData recordData = new RecordData();
RecordData srecordData = new RecordData();
ConditionRecord record = getConditionBean(sixMonthList);
recordData.setType("3");
recordData.setValue(String.valueOf(record.getOneCount()));
recordData.setTime(record.getDateTime());
recordData.setName("环境检测");
recordDataList.add(recordData);
srecordData.setType("3");
srecordData.setValue(String.valueOf(record.getSixCount()));
srecordData.setTime(record.getDateTime());
srecordData.setName("环境检测");
srecordDataList.add(srecordData);
records.setConditionList(conditionList);
records.setSconditionList(s_conditionList);
}
Aggregations