parent
4263e1b23e
commit
742b6d353b
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,4 +58,6 @@ public interface BusFifteenInfoMapper
|
|||
* @return 结果
|
||||
*/
|
||||
public int deleteBusFifteenInfoByIds(Long[] ids);
|
||||
|
||||
void deleteBusFifteenInfo();
|
||||
}
|
||||
|
|
|
@ -58,4 +58,6 @@ public interface IBusFifteenInfoService
|
|||
* @return 结果
|
||||
*/
|
||||
public int deleteBusFifteenInfoById(Long id);
|
||||
|
||||
void deleteBusFifteenInfo();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 < CURDATE() - INTERVAL 15 DAY;
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
|
@ -685,6 +685,12 @@ export default {
|
|||
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('business/store/export', {
|
||||
...this.queryParams
|
||||
}, `store_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue