|
@@ -7,8 +7,6 @@ import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.entity.ScaleContent;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.enums.ScaleTypeEnum;
|
|
|
-import com.diagbot.exception.CommonErrorCode;
|
|
|
-import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.impl.ScaleContentServiceImpl;
|
|
|
import com.diagbot.util.RespDTOUtil;
|
|
|
import com.diagbot.vo.PushVO;
|
|
@@ -38,9 +36,7 @@ public class ScaleContentFacade extends ScaleContentServiceImpl {
|
|
|
public List<ScaleContent> getContent(PushVO pushVO) {
|
|
|
SearchData searchData = pushFacade.assembleData(pushVO);
|
|
|
RespDTO<List<ScaleContent>> res = aiptServiceClient.getScale(searchData);
|
|
|
- if (RespDTOUtil.respIsNG(res)) {
|
|
|
- throw new CommonException(CommonErrorCode.RPC_ERROR, "远程调用量表内容失败");
|
|
|
- }
|
|
|
+ RespDTOUtil.respNGDeal(res, "远程调用量表内容失败");
|
|
|
return res.data;
|
|
|
}
|
|
|
|