|
@@ -5,6 +5,7 @@ import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.dgtly.common.core.domain.Ztree;
|
|
import com.dgtly.common.core.domain.Ztree;
|
|
|
import com.dgtly.common.utils.DateUtils;
|
|
import com.dgtly.common.utils.DateUtils;
|
|
|
import com.dgtly.common.utils.StringUtils;
|
|
import com.dgtly.common.utils.StringUtils;
|
|
@@ -13,6 +14,7 @@ import com.dgtly.system.domain.*;
|
|
|
import com.dgtly.system.mapper.*;
|
|
import com.dgtly.system.mapper.*;
|
|
|
import com.dgtly.system.service.ISysDictDataService;
|
|
import com.dgtly.system.service.ISysDictDataService;
|
|
|
import com.dgtly.system.util.MailUtils;
|
|
import com.dgtly.system.util.MailUtils;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
@@ -33,6 +35,7 @@ import javax.mail.internet.MimeMessage;
|
|
|
* @author dgtly
|
|
* @author dgtly
|
|
|
* @date 2022-03-22
|
|
* @date 2022-03-22
|
|
|
*/
|
|
*/
|
|
|
|
|
+@Slf4j
|
|
|
@Service
|
|
@Service
|
|
|
@Component
|
|
@Component
|
|
|
public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
@@ -872,6 +875,9 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
|
public void customersStart() {
|
|
public void customersStart() {
|
|
|
List<DataMasterCustomerVO> customerVOS = customersMapper.selectCustomerCodeByNotStart();
|
|
List<DataMasterCustomerVO> customerVOS = customersMapper.selectCustomerCodeByNotStart();
|
|
|
if(customerVOS !=null && customerVOS.size()>0){
|
|
if(customerVOS !=null && customerVOS.size()>0){
|
|
|
|
|
+ log.info("开始执行经销商自动上线");
|
|
|
|
|
+ log.info("待上线经销商:{}", JSON.toJSON(customerVOS));
|
|
|
|
|
+ List<CustomersVo> customers = new ArrayList<>();
|
|
|
customerVOS.forEach(customer->{
|
|
customerVOS.forEach(customer->{
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
//昨日
|
|
//昨日
|
|
@@ -882,8 +888,9 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
|
customersStart.setOnlineTime(calendar.getTime());
|
|
customersStart.setOnlineTime(calendar.getTime());
|
|
|
//all
|
|
//all
|
|
|
customersStart.setCustomerType(3);
|
|
customersStart.setCustomerType(3);
|
|
|
- customersMapper.insertCustomersStart(customersStart);
|
|
|
|
|
|
|
+ customers.add(customersStart);
|
|
|
});
|
|
});
|
|
|
|
|
+ customersMapper.insertCustomersStartBatch(customers);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|