|
@@ -18,6 +18,7 @@ import com.diagbot.service.impl.ScaleContentServiceImpl;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
+import com.diagbot.vo.DeleteScaleVO;
|
|
|
import com.diagbot.vo.QuestionPageVO;
|
|
|
import com.diagbot.vo.ScaleContentSaveVO;
|
|
|
import com.diagbot.vo.ScaleContentVO;
|
|
@@ -112,4 +113,25 @@ public class ScaleContentFacade extends ScaleContentServiceImpl {
|
|
|
public List<ScaleContentDTO> getByParamFac(Long scaleId) {
|
|
|
return this.getByParam(scaleId);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 量表列表
|
|
|
+ *
|
|
|
+ * @param deleteScaleVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public void delete(DeleteScaleVO deleteScaleVO) {
|
|
|
+ Date now = DateUtil.now();
|
|
|
+ String person = UserUtils.getCurrentPrincipleID();
|
|
|
+ List<Long> ids = deleteScaleVO.getIds();
|
|
|
+ for(Long id : ids) {
|
|
|
+ this.update(new ScaleContent(), new UpdateWrapper<ScaleContent>()
|
|
|
+ .eq("scale_id", id)
|
|
|
+ .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .set("gmt_modified", now)
|
|
|
+ .set("modifier", person)
|
|
|
+ .set("is_deleted", IsDeleteEnum.Y.getKey()));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|