| | |
| | | // 修改 |
| | | int i = addOrUpdateByGuid(detail,tbFileStorageLocation); |
| | | if (i>0){ |
| | | if (!edit) { |
| | | tbAttResBaseService.updateFinalState(tbFileStorageLocation.getResGuid(), 0); |
| | | } |
| | | return true; |
| | | } |
| | | return false; |
| | |
| | | tbFileStorageLocation.setGuid(oldAbAttResBase.getGuid()); |
| | | // 更新 |
| | | i = baseMapper.updateById(tbFileStorageLocation); |
| | | tbAttResBaseService.updateFinalState(tbFileStorageLocation.getResGuid(), tbFileStorageLocation.getCheckState()); |
| | | }else { |
| | | tbFileStorageLocation.setCreateTime(new Date()); |
| | | i = baseMapper.insert(tbFileStorageLocation); |