Commit b8fcb563 authored by Cheng C Yang's avatar Cheng C Yang

Pom Add analysis_excel_init

parent 83586368
...@@ -193,6 +193,15 @@ public class TaxDocumentServiceImpl { ...@@ -193,6 +193,15 @@ public class TaxDocumentServiceImpl {
@Transactional @Transactional
public synchronized boolean addTaxDocumentList(MultipartFile file, TaxDocument taxDocument) { public synchronized boolean addTaxDocumentList(MultipartFile file, TaxDocument taxDocument) {
try { try {
TaxDocumentExample taxDocumentExample = new TaxDocumentExample();
taxDocumentExample.createCriteria().andFileNameEqualTo(taxDocument.getFileName());
List<TaxDocument> list = taxDocumentMapper.selectByExample(taxDocumentExample);
if (list.size() > 0) {
return false;
}
//上传文件 //上传文件
if (StringUtils.isBlank(taxDocument.getFileUploadId())) { if (StringUtils.isBlank(taxDocument.getFileUploadId())) {
...@@ -311,6 +320,15 @@ public class TaxDocumentServiceImpl { ...@@ -311,6 +320,15 @@ public class TaxDocumentServiceImpl {
public boolean editFilesType(TaxDocument taxDocument) { public boolean editFilesType(TaxDocument taxDocument) {
try { try {
TaxDocumentExample taxDocumentExample = new TaxDocumentExample();
taxDocumentExample.createCriteria().andFileNameEqualTo(taxDocument.getFileName());
List<TaxDocument> list = taxDocumentMapper.selectByExample(taxDocumentExample);
if (list.size() > 0) {
return false;
}
taxDocument.setUpdateTime(new Date()); taxDocument.setUpdateTime(new Date());
int num = taxDocumentMapper.updateByPrimaryKey(taxDocument); int num = taxDocumentMapper.updateByPrimaryKey(taxDocument);
if (num > 0) { if (num > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment