|
|
@@ -74,8 +74,10 @@ public class OthreceiptsServiceImpl extends CommonBaseServiceImpl<OthreceiptsMap
|
|
|
if (othreceipts.getId() > 0){
|
|
|
othreceiptsMapper.updateByPrimaryKeySelective(othreceipts);
|
|
|
baseDTO = getBaseDTOById(id);
|
|
|
- //日志记录
|
|
|
- messageLogService.update(baseDTO);
|
|
|
+ if (!("AUDITED".equals(othreceipts.getOr_statuscode()))) {
|
|
|
+ //日志记录
|
|
|
+ messageLogService.update(baseDTO);
|
|
|
+ }
|
|
|
}else {
|
|
|
othreceipts.setCompanyId(BaseContextHolder.getCompanyId());
|
|
|
othreceipts.setOr_recorder(BaseContextHolder.getUserName());
|
|
|
@@ -84,8 +86,10 @@ public class OthreceiptsServiceImpl extends CommonBaseServiceImpl<OthreceiptsMap
|
|
|
othreceiptsMapper.insertSelective(othreceipts);
|
|
|
id = othreceipts.getId();
|
|
|
baseDTO = getBaseDTOById(id);
|
|
|
- //日志记录
|
|
|
- messageLogService.save(baseDTO);
|
|
|
+ if (!("AUDITED".equals(othreceipts.getOr_statuscode()))) {
|
|
|
+ //日志记录
|
|
|
+ messageLogService.save(baseDTO);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
Iterator isdet = othreceiptsdetail.iterator();
|