use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class RecordController method convertList.
public void convertList(List<Record> list, Map<String, String> map) {
for (Map.Entry<String, String> entry : map.entrySet()) {
Record record = new Record();
record.setDay(entry.getKey());
record.setCounts(entry.getValue());
list.add(record);
}
}
use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class RecordController method dealSignature.
public void dealSignature(Map<String, Object> param, Records records, List<RecordData> recordDataList, List<RecordData> srecordDataList) {
List<Record> signatureList = new ArrayList<>();
List<Record> s_signatureList = new ArrayList<>();
List<Map<String, Object>> signaturemonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectOneMonth", param);
Map<String, String> signaturemap = dealMonthList(signaturemonthList);
convertList(signatureList, signaturemap);
List<Map<String, Object>> sixMonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectSixMonth", param);
Map<String, String> ssignaturemap = dealSixList(sixMonthList);
convertList(s_signatureList, ssignaturemap);
RecordData recordData = new RecordData();
RecordData srecordData = new RecordData();
SignatureRecord record = getsignatureBean(sixMonthList);
recordData.setType("2");
recordData.setValue(("null").equals(String.valueOf(record.getOneCount())) ? "0" : String.valueOf(record.getOneCount()));
recordData.setTime(record.getDateTime());
recordData.setName("电子签名");
recordDataList.add(recordData);
srecordData.setType("2");
srecordData.setValue(("null").equals(String.valueOf(record.getOneCount())) ? "0" : String.valueOf(record.getSixCount()));
// srecordData.setTime(record.getDateTime());
srecordData.setName("电子签名");
srecordDataList.add(srecordData);
records.setSignatureList(signatureList);
records.setSsignatureList(s_signatureList);
}
use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class SignatureRecordService method dealSignature.
public void dealSignature(Map<String, Object> param, Records records, List<RecordData> recordDataList, List<RecordData> srecordDataList) {
List<Record> signatureList = new ArrayList<>();
List<Record> s_signatureList = new ArrayList<>();
List<Map<String, Object>> signaturemonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectOneMonth", param);
Map<String, String> signaturemap = dealMonthList(signaturemonthList);
convertList(signatureList, signaturemap);
List<Map<String, Object>> sixMonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectSixMonth", param);
Map<String, String> ssignaturemap = dealSixList(sixMonthList);
convertList(s_signatureList, ssignaturemap);
RecordData recordData = new RecordData();
RecordData srecordData = new RecordData();
SignatureRecord record = getsignatureBean(sixMonthList);
recordData.setType("2");
recordData.setValue(String.valueOf(record.getOneCount()));
recordData.setTime(record.getDateTime());
recordData.setName("电子签名");
recordDataList.add(recordData);
srecordData.setType("2");
srecordData.setValue(String.valueOf(record.getSixCount()));
srecordData.setTime(record.getDateTime());
srecordData.setName("电子签名");
srecordDataList.add(srecordData);
records.setSignatureList(signatureList);
records.setSsignatureList(s_signatureList);
}
use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class SignatureRecordService method convertList.
public void convertList(List<Record> list, Map<String, String> map) {
for (Map.Entry<String, String> entry : map.entrySet()) {
Record record = new Record();
record.setDay(entry.getKey());
record.setCounts(entry.getValue());
list.add(record);
}
}
use of com.itrus.portal.entity.Record in project portal by ixinportal.
the class SignatureRecordService 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.SignatureRecordMapper.selectOneMonth", param);
Map<String, String> onlinemap = dealMonthList(onlinemonthlist);
convertList(onlineList, onlinemap);
List<Map<String, Object>> sixMonthList = sqlSession.selectList("com.itrus.portal.db.SignatureRecordMapper.selectSixMonth", param);
Map<String, String> sonlinemap = dealSixList(sixMonthList);
convertList(s_onlineList, sonlinemap);
RecordData recordData = new RecordData();
RecordData srecordData = new RecordData();
SignatureRecord record = getsignatureBean(sixMonthList);
recordData.setType("1");
recordData.setValue(String.valueOf(record.getOneCount()));
recordData.setTime(record.getDateTime());
recordData.setName("安全在线");
recordDataList.add(recordData);
srecordData.setType("1");
srecordData.setValue(String.valueOf(record.getSixCount()));
srecordData.setTime(record.getDateTime());
srecordData.setName("安全在线");
srecordDataList.add(srecordData);
records.setOnlineList(onlineList);
records.setSonlineList(s_onlineList);
}
Aggregations