| | |
| | | import com.whyc.mapper.*; |
| | | import com.whyc.pojo.*; |
| | | import com.whyc.util.MathUtil; |
| | | import com.whyc.util.MessageUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | fileInfo.setFileNameTmp(fileName+" tmp1.~xml"); |
| | | return new Response().setII(1,fileInfo!=null,fileInfo,"返回解析数据"); |
| | | }else{ |
| | | return new Response().set(1,false,"文件路径不正确"); |
| | | return new Response().set(1,false,MessageUtils.getMessage("filePathIncorrect")); |
| | | } |
| | | }else{ |
| | | return new Response().set(1,false,"文件路径不正确"); |
| | | return new Response().set(1,false,MessageUtils.getMessage("filePathIncorrect")); |
| | | } |
| | | } |
| | | //解析xml文件(传参一个文件夹) |
| | |
| | | } |
| | | return new Response().setII(1,list.size()>0,list,"返回解析数据"); |
| | | }else{ |
| | | return new Response().set(1,false,"文件路径不正确"); |
| | | return new Response().set(1,false, MessageUtils.getMessage("filePathIncorrect")); |
| | | } |
| | | } |
| | | |