|
|
|
@ -3,13 +3,13 @@ package com.shxy.xymanager_service.impl;
|
|
|
|
|
import com.shxy.xymanager_common.bean.PermissionDetail;
|
|
|
|
|
import com.shxy.xymanager_common.entity.*;
|
|
|
|
|
import com.shxy.xymanager_common.enums.CommonStatus;
|
|
|
|
|
import com.shxy.xymanager_common.exception.ApiException;
|
|
|
|
|
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
|
|
|
|
|
import com.shxy.xymanager_common.vo.TerminalSelectVo;
|
|
|
|
|
import com.shxy.xymanager_dao.dao.MntnStatusMapper;
|
|
|
|
|
import com.shxy.xymanager_dao.dao.TerminalsDao;
|
|
|
|
|
import com.shxy.xymanager_dao.dao.View_Dy_Line_Tower_TerminalsDao;
|
|
|
|
|
import com.shxy.xymanager_service.service.ActivitiesService;
|
|
|
|
|
import com.shxy.xymanager_service.service.NewCacheService;
|
|
|
|
|
import com.shxy.xymanager_service.service.TerminalExtService;
|
|
|
|
|
import com.shxy.xymanager_service.service.UserService;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@ -20,7 +20,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.math.BigInteger;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@ -157,4 +157,15 @@ public class TerminalExtServiceImpl implements TerminalExtService {
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateComment(MntnStatus model) {
|
|
|
|
|
MntnStatus item = statusMapper.selectByPrimaryKey(model.getTermId());
|
|
|
|
|
if (item == null) {
|
|
|
|
|
throw new ApiException("未找到该装置的status数据");
|
|
|
|
|
}
|
|
|
|
|
item.setComment(model.getComment());
|
|
|
|
|
item.setUpdateTime(new Date());
|
|
|
|
|
statusMapper.updateByPrimaryKey(item);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|