| | |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.alibaba.fastjson2.JSONArray; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.dy.common.mw.protocol.Command; |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoPr.PrControllerMapper; |
| | | import com.dy.pipIrrGlobal.daoPr.PrIntakeControllerMapper; |
| | |
| | | import com.dy.pipIrrGlobal.pojoPr.PrController; |
| | | import com.dy.pipIrrGlobal.pojoPr.PrIntakeController; |
| | | import com.dy.pipIrrGlobal.voPr.VoController; |
| | | import com.dy.pipIrrProject.result.ProjectResultCode; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.dubbo.common.utils.PojoUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpEntity; |
| | | import org.springframework.http.HttpHeaders; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.client.RestClientException; |
| | | import org.springframework.web.client.RestTemplate; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Optional; |
| | | |
| | | import static com.dy.common.mw.protocol.CommandType.innerCommand; |
| | | |
| | | /** |
| | | * @author ZhuBaoMin |
| | |
| | | } |
| | | return array; |
| | | } |
| | | |
| | | /** |
| | | * 根据控制器编号物理删除控制 |
| | | *2024-6-7 |
| | | * @param controllerId |
| | | * @return |
| | | */ |
| | | public Integer deleteControllerByIdTwo(Long controllerId) { |
| | | return prControllerMapper.deleteByPrimaryKey(controllerId); |
| | | } |
| | | |
| | | /** |
| | | * 根据主键查询控制器列表 |
| | | *2024-6-7 |
| | | * @param controllerId |
| | | * @return |
| | | */ |
| | | public PrController getByControllerId(Long controllerId) { |
| | | return prControllerMapper.selectByPrimaryKey(controllerId); |
| | | } |
| | | } |