| | |
| | | import com.se.simu.helper.WebHelper; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import rainfall.Rainfall; |
| | | import com.se.simu.Rainfall; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.*; |
| | |
| | | |
| | | public void createConfig(DataPo data) throws IOException { |
| | | ConfigDto dto = new ConfigDto(); |
| | | dto.setProperties(data.getInPath(), data.getDuration(), config); |
| | | dto.setProperties(data.getInPath(), data.getStartTime(), data.getDuration(), config); |
| | | |
| | | String json = JSONUtil.toJsonPrettyStr(dto); |
| | | String filePath = config.getInPath() + File.separator + data.getInPath() + ".json"; |