|
@@ -20,6 +20,7 @@ import com.diagbot.service.ScaleContentService;
|
|
|
import com.diagbot.service.impl.ScaleContentServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
+import com.diagbot.util.ListUtil;
|
|
|
import com.diagbot.util.RespDTOUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.DeleteScaleVO;
|
|
@@ -141,8 +142,11 @@ public class ScaleContentFacade extends ScaleContentServiceImpl {
|
|
|
|| IsDeleteEnum.Y.getKey().equals(deleteScaleVO.getStatus()))) {
|
|
|
throw new CommonException(CommonErrorCode.STATUS_IS_ERROR, "状态值错误【Y】或【N】");
|
|
|
}
|
|
|
- String person = UserUtils.getCurrentPrincipleID();
|
|
|
List<Long> ids = deleteScaleVO.getIds();
|
|
|
+ if (ListUtil.isEmpty(ids)) {
|
|
|
+ throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "量表概念id不能为空");
|
|
|
+ }
|
|
|
+ String person = UserUtils.getCurrentPrincipleID();
|
|
|
Date now = DateUtil.now();
|
|
|
this.update(new ScaleContent(), new UpdateWrapper<ScaleContent>()
|
|
|
.in("concept_id", ids)
|