| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.common.constant.FtpConstant; |
| | | import org.springblade.common.config.FtpConfig; |
| | | import org.springblade.common.utils.arg; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | |
| | | String[] directiveUrl = directive.getUrl().split(","); |
| | | for (String url : directiveUrl) { |
| | | String s = url.substring(26, url.length()); |
| | | String urls = FtpConstant.ip + s; |
| | | //内网url |
| | | String urls = FtpConfig.ip + s; |
| | | DirectiveFile directiveFile = new DirectiveFile(); |
| | | directiveFile.setType(1); |
| | | directiveFile.setDirectiveId(directive.getId()); |
| | | directiveFile.setUrl(urls); |
| | | directiveFile.setUrl(url); |
| | | status = directiveService.saveDirectiveFile(directiveFile); |
| | | String s2 = |
| | | "insert into sys_directive_file(id,type,directive_id,url) " + |
| | |
| | | String[] directiveUrl = directive.getUrl().split(","); |
| | | for (String url : directiveUrl) { |
| | | String s = url.substring(26, url.length()); |
| | | String urls = FtpConstant.ip + s; |
| | | String urls = FtpConfig.ip + s; |
| | | DirectiveFile directiveFile = new DirectiveFile(); |
| | | directiveFile.setType(1); |
| | | directiveFile.setDirectiveId(directive.getId()); |