1;优化短信余额修改

2;优化营销订单查询sql
3;流水导出
4;回访数据页日期限制
This commit is contained in:
wangshuai 2024-08-22 14:13:50 +08:00
parent 48a8a30f89
commit aa30813cc7
5 changed files with 23 additions and 10 deletions

View File

@ -68,12 +68,15 @@ public class BusIntegralRecordController extends BaseController
/** /**
* 导出积分变更记录列表 * 导出积分变更记录列表
*/ */
@PreAuthorize("@ss.hasPermi('system:record:export')") // @PreAuthorize("@ss.hasPermi('system:record:export')")
@Log(title = "积分变更记录", businessType = BusinessType.EXPORT) @Log(title = "积分变更记录", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, BusIntegralRecord busIntegralRecord) public void export(HttpServletResponse response, BusIntegralRecord busIntegralRecord)
{ {
List<BusIntegralRecord> list = busIntegralRecordService.selectBusIntegralRecordList(busIntegralRecord); if(!"admin".equals(SecurityUtils.getLoginUser().getUsername())){
busIntegralRecord.setAccount(SecurityUtils.getLoginUser().getUsername());
}
List<BusIntegralRecord> list = busIntegralRecordService.selectBusIntegralRecordListA(busIntegralRecord);
ExcelUtil<BusIntegralRecord> util = new ExcelUtil<BusIntegralRecord>(BusIntegralRecord.class); ExcelUtil<BusIntegralRecord> util = new ExcelUtil<BusIntegralRecord>(BusIntegralRecord.class);
util.exportExcel(response, list, "积分变更记录数据"); util.exportExcel(response, list, "积分变更记录数据");
} }

View File

@ -328,7 +328,6 @@ public class AiServiceImpl implements IAiService {
} }
@Override @Override
@Transactional(rollbackFor = ServiceException.class)
public Boolean sendSmsTask(String content, BusOrderInfo busOrderInfo) { public Boolean sendSmsTask(String content, BusOrderInfo busOrderInfo) {
try { try {
String limitNum = Optional.ofNullable(redisTemplate.opsForValue().get("limitNum")).orElse(null); String limitNum = Optional.ofNullable(redisTemplate.opsForValue().get("limitNum")).orElse(null);

View File

@ -57,10 +57,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN bus_order_info a on b.phone_number=a.privcy_phone LEFT JOIN bus_order_info a on b.phone_number=a.privcy_phone
where b.return_visit_time is null and b.phone_number != '' where b.return_visit_time is null and b.phone_number != ''
and a.store_code = #{storeCode} and a.store_code = #{storeCode}
and a.complete_time &gt; #{t1} -- and a.complete_time &gt; #{t1}
and a.complete_time &lt;= #{t2} -- and a.complete_time &lt;= #{t2}
and a.complete_time between #{t1} and #{t2}
GROUP BY a.privcy_phone,a.order_no GROUP BY a.privcy_phone,a.order_no
) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id; ) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id
order by t1.complete_time
</select> </select>
<select id="selectBusZpsOrderInfoListToAi" resultMap="BusOrderInfoResult"> <select id="selectBusZpsOrderInfoListToAi" resultMap="BusOrderInfoResult">
@ -72,11 +74,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN bus_order_info a on b.phone_number=a.privcy_phone LEFT JOIN bus_order_info a on b.phone_number=a.privcy_phone
where b.return_visit_time is null and b.phone_number != '' where b.return_visit_time is null and b.phone_number != ''
and a.store_code = #{storeCode} and a.store_code = #{storeCode}
and a.order_time &lt;= #{t2} -- and a.order_time &lt;= #{t2}
and a.order_time &gt; #{t1} -- and a.order_time &gt; #{t1}
and a.order_time &lt;= #{t2} -- and a.order_time &lt;= #{t2}
and a.order_time between #{t1} and #{t2}
GROUP BY a.privcy_phone,a.order_no GROUP BY a.privcy_phone,a.order_no
) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id; ) AS t2 ON t1.order_no = t2.order_no AND t1.id = t2.min_id;
order by t1.order_time
</select> </select>
<select id="selectBusOrderInfoListA" resultMap="BusOrderInfoResult"> <select id="selectBusOrderInfoListA" resultMap="BusOrderInfoResult">
select store_code, store_name, custom_id, order_no, min(id) id select store_code, store_name, custom_id, order_no, min(id) id

View File

@ -37,6 +37,13 @@
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
>导出</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

View File

@ -104,7 +104,7 @@ export default {
let date1 = 16 * 24 * 3600 * 1000; let date1 = 16 * 24 * 3600 * 1000;
let date2 = curDate-date1; let date2 = curDate-date1;
// return time.getTime() > Date.now() || time.getTime() < date2; // return time.getTime() > Date.now() || time.getTime() < date2;
return time.getTime() > Date.now() - 8.64e7; //-8.64e7 return time.getTime() > Date.now(); //-8.64e7
} }
}, },
// //