|
@@ -1,5 +1,7 @@
|
|
|
package org.jeecg.modules.ctop.service.impl;
|
|
|
|
|
|
+import cn.com.ctop.common.module.utils.ResultMapUtils;
|
|
|
+import cn.com.ctop.common.module.utils.StatusCode;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.jeecg.modules.ctop.entity.DramaItemInfo;
|
|
@@ -11,7 +13,9 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 剧本内容信息
|
|
@@ -56,4 +60,18 @@ public class DramaItemInfoServiceImpl extends ServiceImpl<DramaItemInfoMapper, D
|
|
|
return itemInfo.getRank() + 1;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> delete(Long id) {
|
|
|
+ Map<String, Object> result = new HashMap<>();
|
|
|
+ DramaItemInfo info = this.getById(id);
|
|
|
+ if (null == info) {
|
|
|
+ ResultMapUtils.setResultMap(result, StatusCode.COMMON_DATA_NOT_EXIST);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ info.setEnabled(0);
|
|
|
+ this.updateById(info);
|
|
|
+ ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|