Commit 2e4979d0 authored by litengwei's avatar litengwei

中心BUG修改

parent dcb12c6f
......@@ -138,7 +138,7 @@
AND is_delete = 0 AND now() > rec_date
</select>
<select id="querySignInfo" resultType="java.lang.Integer">
<select id="querySignInfo" resultType="java.util.Map">
SELECT
count(DISTINCT user_id) num, biz_org_name bizOrgName, biz_org_code bizOrgCode
FROM
......
......@@ -2017,6 +2017,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
@Scheduled(cron = "${equip.patrol.cron:0 0 23 * * ?}")
@Transactional(rollbackFor = Exception.class)
public void patrolTaskStatic() throws Exception {
log.info("开始每天巡检定时任务===========");
List<Map<String, Object>> mapPatrol = equipmentSpecificIndexMapper.patrolTaskStatic();
List<Map<String, Object>> mapList = new ArrayList<>();
for (Map<String, Object> m : mapPatrol
......
......@@ -401,7 +401,7 @@ public interface CheckMapper extends BaseMapper {
" date_format(\n" +
" `a`.`check_time`,\n" +
" '%Y-%m-%d %H:%i:%s'\n" +
" ) AS `checkDate`,\n" +
" ) AS `checkTime`,\n" +
" (\n" +
" CASE\n" +
" WHEN `a`.`is_ok` = 1\n" +
......
......@@ -515,7 +515,7 @@
FROM
`p_plan_task` ppt
LEFT JOIN `p_plan` pp ON pp.id = ppt.plan_id
where ppt.check_date = DATE_FORMAT( now(), '%Y-%m-%d' ) and pp.biz_org_code is not null
where ppt.check_date = DATE_FORMAT( now(), '%Y-%m-%d' ) and pp.biz_org_code is not null and ppt.plan_name is not null
GROUP BY biz_org_code
</select>
<select id="getEquipIndexInIndex" resultType="com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment