|
@@ -3,6 +3,7 @@ package org.jeecg.modules.oa.service.impl;
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
import org.jeecg.common.constant.CommonConstant;
|
|
@@ -768,6 +769,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
incidentTicketEntity.setState("2");//1未处理 2已通知 3通知已反馈 4已推送 5已完结
|
|
incidentTicketEntity.setState("2");//1未处理 2已通知 3通知已反馈 4已推送 5已完结
|
|
|
incidentTicketEntity.setUpdateBy(sysUser.getUsername());
|
|
incidentTicketEntity.setUpdateBy(sysUser.getUsername());
|
|
|
incidentTicketEntity.setUpdateTime(new Date());
|
|
incidentTicketEntity.setUpdateTime(new Date());
|
|
|
|
|
+ incidentTicketEntity.setMsgTime(new Date());
|
|
|
incidentTicketMapper.updateById(incidentTicketEntity);
|
|
incidentTicketMapper.updateById(incidentTicketEntity);
|
|
|
// this.save(incidentTicketEntity);
|
|
// this.save(incidentTicketEntity);
|
|
|
return Result.ok("已通知");
|
|
return Result.ok("已通知");
|
|
@@ -839,6 +841,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
incidentTicketEntity.setState("3");//1未处理 2已通知 3通知已反馈 4已推送 5已完结
|
|
incidentTicketEntity.setState("3");//1未处理 2已通知 3通知已反馈 4已推送 5已完结
|
|
|
incidentTicketEntity.setUpdateBy(sysUser.getUsername());
|
|
incidentTicketEntity.setUpdateBy(sysUser.getUsername());
|
|
|
incidentTicketEntity.setUpdateTime(new Date());
|
|
incidentTicketEntity.setUpdateTime(new Date());
|
|
|
|
|
+ incidentTicketEntity.setMsgTime(new Date());
|
|
|
incidentTicketMapper.updateById(incidentTicketEntity);
|
|
incidentTicketMapper.updateById(incidentTicketEntity);
|
|
|
// this.save(incidentTicketEntity);
|
|
// this.save(incidentTicketEntity);
|
|
|
// }
|
|
// }
|
|
@@ -918,5 +921,26 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
incidentTicketMapper.deleteById(id);
|
|
incidentTicketMapper.deleteById(id);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<Map<String,Object>> selectConfigList() {
|
|
|
|
|
+ return incidentTicketMapper.selectConfigList();
|
|
|
|
|
+ }
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<String> selectTicketList(int frequency,String stateText,int minute){
|
|
|
|
|
+ return incidentTicketMapper.selectTicketList(frequency,stateText,minute);
|
|
|
|
|
+ }
|
|
|
|
|
+ @Override
|
|
|
|
|
+ @Transactional
|
|
|
|
|
+ public int setMsgLog(String order_status,String user_id,String user_name,
|
|
|
|
|
+ int minute,int frequency,String demo) {
|
|
|
|
|
+ return incidentTicketMapper.setMsgLog(order_status,user_id,user_name,
|
|
|
|
|
+ minute,frequency,demo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ @Transactional
|
|
|
|
|
+ public int updateIncidentInfo(@Param("id") List<String> id) {
|
|
|
|
|
+ return incidentTicketMapper.updateIncidentInfo(id);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|