| | |
| | | import com.whyc.mapper.DevParamMapper; |
| | | import com.whyc.pojo.DevParam; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private DevParamMapper mapper; |
| | | |
| | | @Autowired |
| | | private ProcessSurveyService proSurveyservice; |
| | | |
| | | //电池告警参数设置--列表查询 |
| | | public Response serchByCondition(int devId, int almId) { |
| | |
| | | wrapper.set("alm_low_coe_lower_en", devParam.getAlmLowCoeLowerEn()); |
| | | } |
| | | int flag = mapper.update((DevParam) ActionUtil.objeNull, wrapper); |
| | | //修改告警阈值重启线程 |
| | | proSurveyservice.setAlmThreadRestart(); |
| | | return new Response().set(flag); |
| | | } |
| | | //在线监测-实时监控-查询告警 |