|
|
@ -53,6 +53,9 @@ public class TimeChange {
|
|
|
|
@Value("${isTiming}")
|
|
|
|
@Value("${isTiming}")
|
|
|
|
private Boolean isTiming;
|
|
|
|
private Boolean isTiming;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${updateEnterprise}")
|
|
|
|
|
|
|
|
private Boolean updateEnterprise;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private ISysJobService jobService;
|
|
|
|
private ISysJobService jobService;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -170,7 +173,7 @@ public class TimeChange {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Scheduled(cron = "0 0 2 * * *")
|
|
|
|
@Scheduled(cron = "0 0 2 * * *")
|
|
|
|
public void changeEnterpriseInfo() {
|
|
|
|
public void changeEnterpriseInfo() {
|
|
|
|
if (isTiming) {
|
|
|
|
if (updateEnterprise) {
|
|
|
|
List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
|
|
|
|
List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
|
|
|
|
List<BmsEnterpriseBasicInfo> allList = new ArrayList<>();
|
|
|
|
List<BmsEnterpriseBasicInfo> allList = new ArrayList<>();
|
|
|
|
for (BmsEnterpriseBasicInfo items : list) {
|
|
|
|
for (BmsEnterpriseBasicInfo items : list) {
|
|
|
@ -213,7 +216,7 @@ public class TimeChange {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Scheduled(cron = "0 0 3 * * *")
|
|
|
|
@Scheduled(cron = "0 0 3 * * *")
|
|
|
|
public void changeContacts() {
|
|
|
|
public void changeContacts() {
|
|
|
|
if (isTiming) {
|
|
|
|
if (updateEnterprise) {
|
|
|
|
List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
|
|
|
|
List<BmsEnterpriseBasicInfo> list = bmsEnterpriseBasicInfoService.list();
|
|
|
|
for (BmsEnterpriseBasicInfo items : list) {
|
|
|
|
for (BmsEnterpriseBasicInfo items : list) {
|
|
|
|
String contacts = enterpriseUrl + "/645383/qyllrytyshxydm";
|
|
|
|
String contacts = enterpriseUrl + "/645383/qyllrytyshxydm";
|
|
|
|