parent
7d20fb4f77
commit
9e42550ea2
|
@ -166,7 +166,7 @@ public class AiConsumer {
|
|||
int a = 1;
|
||||
if("AI".equals(busStoreInfo.getMarketingChannels())){
|
||||
int reduce = busAgentInfo.getAiRealTimeNum() - a;
|
||||
busAgentInfo.setAiDurationBalance(reduce);
|
||||
busAgentInfo.setAiRealTimeNum(reduce);
|
||||
record.setIntegralType("AI");
|
||||
record.setAiIntegralBalance(reduce);
|
||||
returnVisitInfo.setIsCharging("AI-0");
|
||||
|
|
|
@ -268,7 +268,7 @@ public class AiServiceImpl implements IAiService {
|
|||
if (cha < list.size()&&(cha - 1)>0) {
|
||||
list.subList(0, cha - 1);
|
||||
log.error("安全账分不足截取部分订单营销");
|
||||
} else if(cha < 0){
|
||||
} else if(cha <= 0){
|
||||
continue;
|
||||
}
|
||||
}else if("AI".equals(busStoreInfo.getMarketingChannels())){
|
||||
|
@ -276,7 +276,7 @@ public class AiServiceImpl implements IAiService {
|
|||
if (cha < list.size()&&(cha - 1)>0) {
|
||||
list.subList(0, cha - 1);
|
||||
log.error("普通账分不足截取部分订单营销");
|
||||
} else if(cha < 0){
|
||||
} else if(cha <= 0){
|
||||
continue;
|
||||
}
|
||||
}else{
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
value-format="yyyy-MM-dd"
|
||||
format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
|
@ -122,6 +123,7 @@ export default {
|
|||
deptNodeAll: false,
|
||||
// 日期范围
|
||||
dateRange: [],
|
||||
defaultTime: [],
|
||||
// 数据范围选项
|
||||
dataScopeOptions: [
|
||||
{
|
||||
|
@ -179,14 +181,20 @@ export default {
|
|||
};
|
||||
},
|
||||
created() {
|
||||
this.setDefaultDateRange();
|
||||
this.initDateRange();
|
||||
this.userAccount = this.$store.state.user.name;
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
setDefaultDateRange() {
|
||||
const now = new Date();
|
||||
this.dateRange = [now, now];
|
||||
initDateRange() {
|
||||
const today = this.formatDate(new Date());
|
||||
this.dateRange = [today, today];
|
||||
},
|
||||
formatDate(date) {
|
||||
const year = date.getFullYear();
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||
const day = date.getDate().toString().padStart(2, '0');
|
||||
return `${year}-${month}-${day}`;
|
||||
},
|
||||
/** 查询角色列表 */
|
||||
getList() {
|
||||
|
|
Loading…
Reference in New Issue