|
@@ -8,9 +8,12 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.diagbot.client.UserServiceClient;
|
|
import com.diagbot.client.UserServiceClient;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
|
|
+import com.diagbot.dto.ScaleContentDTO;
|
|
|
|
+import com.diagbot.dto.ScaleContentIndexDTO;
|
|
import com.diagbot.dto.ScaleContentPageDTO;
|
|
import com.diagbot.dto.ScaleContentPageDTO;
|
|
import com.diagbot.entity.ScaleContent;
|
|
import com.diagbot.entity.ScaleContent;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
|
+import com.diagbot.enums.LexiconTypeEnum;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
import com.diagbot.exception.CommonException;
|
|
import com.diagbot.exception.CommonException;
|
|
import com.diagbot.service.ScaleContentService;
|
|
import com.diagbot.service.ScaleContentService;
|
|
@@ -20,7 +23,9 @@ import com.diagbot.util.DateUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.util.RespDTOUtil;
|
|
import com.diagbot.util.UserUtils;
|
|
import com.diagbot.util.UserUtils;
|
|
import com.diagbot.vo.DeleteScaleVO;
|
|
import com.diagbot.vo.DeleteScaleVO;
|
|
|
|
+import com.diagbot.vo.ScaleContentIndexVO;
|
|
import com.diagbot.vo.ScaleContentPageVO;
|
|
import com.diagbot.vo.ScaleContentPageVO;
|
|
|
|
+import com.diagbot.vo.ScaleContentParamVO;
|
|
import com.diagbot.vo.ScaleContentSaveVO;
|
|
import com.diagbot.vo.ScaleContentSaveVO;
|
|
import com.diagbot.vo.ScaleContentVO;
|
|
import com.diagbot.vo.ScaleContentVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -86,6 +91,7 @@ public class ScaleContentFacade extends ScaleContentServiceImpl {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public IPage<ScaleContentPageDTO> getListFac(ScaleContentPageVO scaleContentPageVO) {
|
|
public IPage<ScaleContentPageDTO> getListFac(ScaleContentPageVO scaleContentPageVO) {
|
|
|
|
+ scaleContentPageVO.setLibType(LexiconTypeEnum.GAUGE.getKey());
|
|
IPage<ScaleContentPageDTO> res = this.getList(scaleContentPageVO);
|
|
IPage<ScaleContentPageDTO> res = this.getList(scaleContentPageVO);
|
|
if (res.getTotal() <= 0) {
|
|
if (res.getTotal() <= 0) {
|
|
return res;
|
|
return res;
|
|
@@ -98,17 +104,32 @@ public class ScaleContentFacade extends ScaleContentServiceImpl {
|
|
}
|
|
}
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|
|
-//
|
|
|
|
-//
|
|
|
|
-// /**
|
|
|
|
-// * 量表列表
|
|
|
|
-// *
|
|
|
|
-// * @param scaleId
|
|
|
|
-// * @return
|
|
|
|
-// */
|
|
|
|
-// public List<ScaleContentDTO> getByParamFac(Long scaleId) {
|
|
|
|
-// return this.getByParam(scaleId);
|
|
|
|
-// }
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 量表检索
|
|
|
|
+ *
|
|
|
|
+ * @param scaleContentIndexVO
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public List<ScaleContentIndexDTO> indexFac(ScaleContentIndexVO scaleContentIndexVO) {
|
|
|
|
+ // 设置量表类型
|
|
|
|
+ scaleContentIndexVO.setLibType(LexiconTypeEnum.GAUGE.getKey());
|
|
|
|
+ return this.index(scaleContentIndexVO);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 量表内容
|
|
|
|
+ *
|
|
|
|
+ * @param scaleContentParamVO
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public List<ScaleContentDTO> getByParamFac(ScaleContentParamVO scaleContentParamVO) {
|
|
|
|
+ return this.getByParam(scaleContentParamVO.getConceptId());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|