Search in sources :

Example 11 with EvidenceSaveService

use of com.itrus.portal.db.EvidenceSaveService in project portal by ixinportal.

the class SaveServiceImpl method selectById.

/**
 * 得到对应id的数据 (有缓存)
 * @param id
 * @return
 */
public EvidenceSaveService selectById(Long id) {
    EvidenceSaveService evidenceSaveService = null;
    evidenceSaveService = CacheCustomer.getEVIDENCE_SAVE_SERVICE_MAP().get(id);
    if (evidenceSaveService == null) {
        evidenceSaveService = sqlSession.selectOne("com.itrus.portal.db.EvidenceSaveServiceMapper.selectByPrimaryKey", id);
    }
    return evidenceSaveService;
}
Also used : EvidenceSaveService(com.itrus.portal.db.EvidenceSaveService)

Aggregations

EvidenceSaveService (com.itrus.portal.db.EvidenceSaveService)11 AppService (com.itrus.portal.db.AppService)9 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)8 HashMap (java.util.HashMap)6 EvidenceBasicInformation (com.itrus.portal.db.EvidenceBasicInformation)5 EvidenceSaveServiceExample (com.itrus.portal.db.EvidenceSaveServiceExample)4 Date (java.util.Date)4 JSONObject (com.alibaba.fastjson.JSONObject)3 EvidenceBasicInformationExample (com.itrus.portal.db.EvidenceBasicInformationExample)3 EvidenceEnclosure (com.itrus.portal.db.EvidenceEnclosure)3 EvidenceEventContent (com.itrus.portal.db.EvidenceEventContent)3 RealNameAuthentication (com.itrus.portal.db.RealNameAuthentication)3 IOException (java.io.IOException)3 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)3 AppServiceExample (com.itrus.portal.db.AppServiceExample)2 ApplicationInfo (com.itrus.portal.db.ApplicationInfo)2 EvidenceEventContentExample (com.itrus.portal.db.EvidenceEventContentExample)2 Map (java.util.Map)2 EvidenceCert (com.itrus.portal.db.EvidenceCert)1 EvidenceCheck (com.itrus.portal.db.EvidenceCheck)1