#20230510 欣影管理平台装置信息查询代码

master
18616268358 2 years ago
parent 21b87aa9f5
commit edfe19c953

@ -32,15 +32,15 @@
where request_id = #{requestId} where request_id = #{requestId}
</select> </select>
<!-- <select id="selectByTypeAndStatus" resultMap="BaseResultMap">--> <select id="selectByTypeAndStatus" resultMap="BaseResultMap">
<!-- select--> select
<!-- <include refid="Base_Column_List"/>--> <include refid="Base_Column_List"/>
<!-- from request_results--> from request_results
<!-- where request_type = #{requesttype}--> where request_type = #{requesttype}
<!-- and client_id = #{clientid}--> and client_id = #{clientid}
<!-- and result = #{result}--> and result = #{result}
<!-- and request_schedule_status = #{schedulestatus}--> and request_schedule_status = #{schedulestatus}
<!-- </select>--> </select>
<select id="selectByRequestIdList" resultMap="BaseResultMap"> <select id="selectByRequestIdList" resultMap="BaseResultMap">
select select

@ -0,0 +1,29 @@
package com.shxy.xymanager_framework.timeTask;
import com.shxy.xymanager_framework.timeTask.TerminalTime.TerminalTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* @author CY
* @date 2021-01-27 15:06
*/
@Component
@EnableScheduling
@Slf4j
public class ScheduledTask {
@Autowired
private TerminalTask terminalTask;
@Scheduled(cron = "0 0/2 * * * ?")
private void terminalTask() {
log.info("我进来了");
terminalTask.execute();
}
}

@ -0,0 +1,27 @@
package com.shxy.xymanager_framework.timeTask.TerminalTime;
import com.shxy.xymanager_service.service.TerminalScheduleRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @author Bobi_huo
* @date 2020-12-22 15:12
*/
@Slf4j
@Component("TerminalTask")
public class TerminalTask {
@Autowired
TerminalScheduleRuleService terminalScheduleRuleService;
/**
*
*/
public void execute() {
terminalScheduleRuleService.timerscheckScheldule();
log.info("-- >>> 下发结束");
}
}

@ -417,7 +417,7 @@ public class TerminalScheduleRuleServiceImpl implements TerminalScheduleRuleServ
/*定时任务查询下发*/ /*定时任务查询下发*/
public ServiceBody<String> TimerscheckScheldule() { public ServiceBody<String> timerscheckScheldule() {
/* /*
* *
* */ * */

@ -84,4 +84,10 @@ public interface TerminalScheduleRuleService {
* @return * @return
*/ */
ServiceBody<TerminalScheduleRuleTimeListModel> getCmaSchelduleDetials(RequestIdVo vo); ServiceBody<TerminalScheduleRuleTimeListModel> getCmaSchelduleDetials(RequestIdVo vo);
/**
*
* @return
*/
ServiceBody<String> timerscheckScheldule();
} }

Loading…
Cancel
Save