diff --git a/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/service/AliyunOssFileServiceImpl.java b/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/service/AliyunOssFileServiceImpl.java index a548a69c..7f348648 100644 --- a/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/service/AliyunOssFileServiceImpl.java +++ b/ruoyi-modules/ruoyi-file/src/main/java/com/ruoyi/file/service/AliyunOssFileServiceImpl.java @@ -66,7 +66,14 @@ public class AliyunOssFileServiceImpl implements ISysFileService { String bucketName = aliyunOssProperties.getBucketName(); String host = HTTPS + bucketName + DOT + endpoint + SLASH; + //如果路径中不包含host + if (!url.contains(host)) { + return; + } + String objectName = url.substring(host.length()); + + OSS ossClient = this.getOssClient(); //执行删除 diff --git a/ruoyi-ui/src/views/business/english/word/index.vue b/ruoyi-ui/src/views/business/english/word/index.vue index 62c7596e..a41b5380 100644 --- a/ruoyi-ui/src/views/business/english/word/index.vue +++ b/ruoyi-ui/src/views/business/english/word/index.vue @@ -23,7 +23,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - @change="handleQuery" + @change="dateQuery" > @@ -387,6 +387,14 @@ export default { }) }, + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + //根据id查询放入抽屉 findById(id) { this.loadingC = true; diff --git a/ruoyi-ui/src/views/business/log/apilog/index.vue b/ruoyi-ui/src/views/business/log/apilog/index.vue index e321dc1a..d89d8d67 100644 --- a/ruoyi-ui/src/views/business/log/apilog/index.vue +++ b/ruoyi-ui/src/views/business/log/apilog/index.vue @@ -94,7 +94,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - @change="handleQuery" + @change="dateQuery" > @@ -300,6 +300,14 @@ export default { }); }, + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/ruoyi-ui/src/views/business/log/reptilelog/index.vue b/ruoyi-ui/src/views/business/log/reptilelog/index.vue index 26641372..63fc4fb0 100644 --- a/ruoyi-ui/src/views/business/log/reptilelog/index.vue +++ b/ruoyi-ui/src/views/business/log/reptilelog/index.vue @@ -52,7 +52,7 @@ style="width: 240px" value-format="yyyy-MM-dd" type="daterange" - @change="handleQuery('queryForm')" + @change="dateQuery('queryForm')" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" @@ -246,9 +246,16 @@ export default { return false; } }); + }, + dateQuery(formName) { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + this.handleQuery(formName); }, + /** 重置按钮操作 */ resetQuery() { this.daterangeCreateTime = []; diff --git a/ruoyi-ui/src/views/business/log/tasklog/index.vue b/ruoyi-ui/src/views/business/log/tasklog/index.vue index 5a763eea..08733503 100644 --- a/ruoyi-ui/src/views/business/log/tasklog/index.vue +++ b/ruoyi-ui/src/views/business/log/tasklog/index.vue @@ -22,7 +22,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - @change="handleQuery" + @change="dateQuery" > @@ -184,6 +184,14 @@ export default { this.queryParams.orderByColumn = this.defaultSort.prop }, + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1; diff --git a/ruoyi-ui/src/views/business/openapi/copywriting/index.vue b/ruoyi-ui/src/views/business/openapi/copywriting/index.vue index 8db2e68d..b8b698b4 100644 --- a/ruoyi-ui/src/views/business/openapi/copywriting/index.vue +++ b/ruoyi-ui/src/views/business/openapi/copywriting/index.vue @@ -47,7 +47,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - @change="handleQuery" + @change="dateQuery" > @@ -235,6 +235,15 @@ export default { this.queryParams.pageNum = 1; this.getList(); }, + + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + /** 重置按钮操作 */ resetQuery() { this.daterangeCreateTime = []; diff --git a/ruoyi-ui/src/views/business/openapi/topsearch/index.vue b/ruoyi-ui/src/views/business/openapi/topsearch/index.vue index 82d2a3f1..7849788c 100644 --- a/ruoyi-ui/src/views/business/openapi/topsearch/index.vue +++ b/ruoyi-ui/src/views/business/openapi/topsearch/index.vue @@ -9,6 +9,7 @@ v-model="dateValue" align="left" type="date" + :clearable=false placeholder="选择日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" diff --git a/ruoyi-ui/src/views/business/statistics/weatherstatistics/index.vue b/ruoyi-ui/src/views/business/statistics/weatherstatistics/index.vue index c0b7f6ff..d9f01b4c 100644 --- a/ruoyi-ui/src/views/business/statistics/weatherstatistics/index.vue +++ b/ruoyi-ui/src/views/business/statistics/weatherstatistics/index.vue @@ -20,7 +20,7 @@ start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" - @change="handleQuery" + @change="dateQuery" > @@ -178,11 +178,20 @@ export default { }) }, + dateQuery() { + //清空时间参数 + this.historyWeatherParams.startDate=null + this.historyWeatherParams.endDate=null + + this.handleQuery(); + }, /** 搜索按钮操作 */ handleQuery() { this.getHistoryWeather(); }, + + /** 重置按钮操作 */ resetQuery() { this.daterangeCreateTime = []; diff --git a/ruoyi-ui/src/views/business/webmagic/copywritingnetwork/index.vue b/ruoyi-ui/src/views/business/webmagic/copywritingnetwork/index.vue index f210c0df..f2b42a7d 100644 --- a/ruoyi-ui/src/views/business/webmagic/copywritingnetwork/index.vue +++ b/ruoyi-ui/src/views/business/webmagic/copywritingnetwork/index.vue @@ -43,7 +43,7 @@ start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" - @change="handleQuery" + @change="dateQuery" > @@ -194,6 +194,15 @@ export default { this.queryParams.pageNum = 1; this.getList(); }, + + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + /** 重置按钮操作 */ resetQuery() { this.daterangeCreateTime = []; diff --git a/ruoyi-ui/src/views/business/webmagic/sina/sinaNews/index.vue b/ruoyi-ui/src/views/business/webmagic/sina/sinaNews/index.vue index b99d4594..c1fc911b 100644 --- a/ruoyi-ui/src/views/business/webmagic/sina/sinaNews/index.vue +++ b/ruoyi-ui/src/views/business/webmagic/sina/sinaNews/index.vue @@ -36,7 +36,7 @@ start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" - @change="handleQuery" + @change="dateQuery" > @@ -184,6 +184,15 @@ export default { this.queryParams.pageNum = 1; this.getList(); }, + + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + /** 重置按钮操作 */ resetQuery() { this.daterangeCreateTime = []; diff --git a/ruoyi-ui/src/views/business/webmagic/weixinsougou/index.vue b/ruoyi-ui/src/views/business/webmagic/weixinsougou/index.vue index a28fd4ea..784e9640 100644 --- a/ruoyi-ui/src/views/business/webmagic/weixinsougou/index.vue +++ b/ruoyi-ui/src/views/business/webmagic/weixinsougou/index.vue @@ -26,7 +26,7 @@ range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" - @change="handleQuery" + @change="dateQuery" > @@ -220,6 +220,15 @@ export default { this.queryParams.pageNum = 1; this.getList(); }, + + dateQuery() { + //清空时间参数 + this.queryParams.createTime=null + this.queryParams.endCreateTime=null + + this.handleQuery(); + }, + /** 重置按钮操作 */ resetQuery() { this.resetSort() diff --git a/xjs-business/xjs-business-english/src/main/java/com/xjs/word/service/impl/EnglishWordServiceImpl.java b/xjs-business/xjs-business-english/src/main/java/com/xjs/word/service/impl/EnglishWordServiceImpl.java index 1c38390d..193651f0 100644 --- a/xjs-business/xjs-business-english/src/main/java/com/xjs/word/service/impl/EnglishWordServiceImpl.java +++ b/xjs-business/xjs-business-english/src/main/java/com/xjs/word/service/impl/EnglishWordServiceImpl.java @@ -192,6 +192,10 @@ public class EnglishWordServiceImpl extends ServiceImpl wr = new LambdaQueryWrapper<>(); + + boolean b = Objects.nonNull(englishWord.getCreateTime()) &&Objects.nonNull(englishWord.getEndCreateTime()); + wr.between(b,EnglishWord::getCreateTime,englishWord.getCreateTime(),englishWord.getEndCreateTime()); + wr.and(StringUtils.isNotEmpty(condition), obj -> { obj.like(EnglishWord::getEnglishWord, condition).or().like(EnglishWord::getChineseWord, condition); });