清理15天 客户数据

页面bug处理 样式优化
This commit is contained in:
wangshuai 2024-07-16 16:14:19 +08:00
parent 4263e1b23e
commit 742b6d353b
8 changed files with 54 additions and 25 deletions

View File

@ -1,22 +1,25 @@
//package com.ruoyi.quartz.task;
//
//import com.ruoyi.business.service.IAiService;
//import com.ruoyi.business.service.IMeituanService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * 定时任务调度测试
// *
// * @author ruoyi
// */
//@Component("ryTask")
//public class RyTask {
// @Autowired
// private IAiService aiService;
// @Autowired
// private IMeituanService iMeituanService;
//
package com.ruoyi.quartz.task;
import com.ruoyi.business.service.IAiService;
import com.ruoyi.business.service.IBusFifteenInfoService;
import com.ruoyi.business.service.IMeituanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 定时任务调度测试
*
* @author ruoyi
*/
@Component("ryTask")
public class RyTask {
@Autowired
private IAiService aiService;
@Autowired
private IMeituanService iMeituanService;
@Autowired
private IBusFifteenInfoService iBusFifteenInfoService;
// /**
// * 获取订单并解析号码 5分钟
// */
@ -47,5 +50,11 @@
// iMeituanService.getReturnInfo();
//
// }
//
//}
/**
* 清理表 15天前数据
*/
public void deleteBusFifteenInfo() {
iBusFifteenInfoService.deleteBusFifteenInfo();
}
}

View File

@ -58,4 +58,6 @@ public interface BusFifteenInfoMapper
* @return 结果
*/
public int deleteBusFifteenInfoByIds(Long[] ids);
void deleteBusFifteenInfo();
}

View File

@ -58,4 +58,6 @@ public interface IBusFifteenInfoService
* @return 结果
*/
public int deleteBusFifteenInfoById(Long id);
void deleteBusFifteenInfo();
}

View File

@ -6,6 +6,7 @@ import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusFifteenInfoMapper;
import com.ruoyi.business.domain.BusFifteenInfo;
import com.ruoyi.business.service.IBusFifteenInfoService;
import org.springframework.transaction.annotation.Transactional;
/**
* 回访记录15天信息Service业务层处理
@ -90,4 +91,10 @@ public class BusFifteenInfoServiceImpl implements IBusFifteenInfoService
{
return busFifteenInfoMapper.deleteBusFifteenInfoById(id);
}
@Override
@Transactional
public void deleteBusFifteenInfo() {
busFifteenInfoMapper.deleteBusFifteenInfo();
}
}

View File

@ -58,4 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
<delete id="deleteBusFifteenInfo">
delete from bus_fifteen_info where last_visit_time &lt; CURDATE() - INTERVAL 15 DAY;
</delete>
</mapper>

View File

@ -685,6 +685,12 @@ export default {
});
},
/** 导出按钮操作 */
handleExport() {
this.download('business/store/export', {
...this.queryParams
}, `store_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -27,7 +27,7 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="infoList" @selection-change="handleSelectionChange">
<el-table v-loading="loading" :data="infoList" >
<el-table-column label="序号" align="center" prop="id" />
<el-table-column label="店铺名称" align="center" prop="storeName" />
<el-table-column label="店铺标识" align="center" prop="storeCode" />

View File

@ -99,7 +99,7 @@
</el-col>
<el-col :span="8">
<el-col :span="10">
<el-form-item label="创建时间">
<el-date-picker
v-model="dateRange"
@ -122,7 +122,7 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="4">
<el-form-item label="开启数量" ><span>{{map.openCount}}</span></el-form-item>
</el-col>
</el-row>
@ -370,7 +370,6 @@
value-format="yyyy-MM-dd"
type="daterange"
range-separator="至"
:picker-options="pickerOptions"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right">