|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | InoutSysConf inoutSysConf = inoutManagerService.getCacheInoutSysConf(companyId, deptId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(Constant.YN_Y.equals(inoutSysConf.getNoticeTagIn())){ | 
|---|
|  |  |  | List<InoutNoticeIn> noticeInList = inoutManagerService.getUnComNoticeIn(companyId); | 
|---|
|  |  |  | List<InoutNoticeIn> noticeInList = inoutManagerService.getUnComNoticeIn(companyId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (noticeInList != null && noticeInList.size() > 0) { | 
|---|
|  |  |  | inoutManagerService.updateSumNoticeIn(inoutSysConf.getDeptId(), noticeInList); | 
|---|
|  |  |  | return "success"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (noticeInList != null && noticeInList.size() > 0) { | 
|---|
|  |  |  | inoutManagerService.updateSumNoticeIn(inoutSysConf.getDeptId(), noticeInList); | 
|---|
|  |  |  | return "success"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return "fail"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | InoutSysConf inoutSysConf = inoutManagerService.getCacheInoutSysConf(companyId, deptId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(Constant.YN_Y.equals(inoutSysConf.getNoticeTagOut())){ | 
|---|
|  |  |  | List<InoutNoticeOut> noticeOutList = inoutManagerService.getUnComNoticeOut(companyId); | 
|---|
|  |  |  | List<InoutNoticeOut> noticeOutList = inoutManagerService.getUnComNoticeOut(companyId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (noticeOutList != null && noticeOutList.size() > 0) { | 
|---|
|  |  |  | inoutManagerService.updateSumNoticeOut(inoutSysConf.getDeptId(), noticeOutList); | 
|---|
|  |  |  | return "success"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (noticeOutList != null && noticeOutList.size() > 0) { | 
|---|
|  |  |  | inoutManagerService.updateSumNoticeOut(inoutSysConf.getDeptId(), noticeOutList); | 
|---|
|  |  |  | return "success"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return "fail"; | 
|---|
|  |  |  | } | 
|---|