| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.se.simu.config.PropertiesConfig; |
| | | import com.se.simu.domain.dto.GeDb; |
| | | import com.se.simu.domain.dto.GeLayer; |
| | | import com.se.simu.domain.po.DataPo; |
| | |
| | | @Service |
| | | @SuppressWarnings("ALL") |
| | | public class SimuService { |
| | | @Value("${sys.path.in}") |
| | | String inPath; |
| | | |
| | | @Value("${sys.path.out}") |
| | | String outPath; |
| | | |
| | | @Resource |
| | | SimuMapper simuMapper; |
| | | |
| | | @Resource |
| | | PropertiesConfig config; |
| | | |
| | | @Resource |
| | | GedbService gedbService; |
| | |
| | | DataPo dp = JSONUtil.toBean(po.getData(), DataPo.class); |
| | | if (null == dp) continue; |
| | | |
| | | delDir(inPath + File.separator + dp.getInPath()); |
| | | delDir(outPath + File.separator + dp.getOutPath()); |
| | | delDir(config.getInPath() + File.separator + dp.getInPath()); |
| | | delDir(config.getOutPath() + File.separator + dp.getOutPath()); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | |
| | | } |
| | | |
| | | private void initPath(DataPo data) { |
| | | createDir(inPath + File.separator + data.getInPath()); |
| | | createDir(outPath + File.separator + data.getOutPath()); |
| | | createDir(config.getInPath() + File.separator + data.getInPath()); |
| | | createDir(config.getOutPath() + File.separator + data.getOutPath()); |
| | | } |
| | | |
| | | private void createDir(String path) { |