月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
src/main/java/com/moon/server/controller/data/PublishController.java
@@ -23,12 +23,9 @@
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
 * 数据发布
 * @author WWW
 */
@Api(tags = "数据管理\\发布管理")
@RestController
@SuppressWarnings("ALL")
@RequestMapping("/publish")
public class PublishController extends BaseController {
    @Resource
@@ -78,9 +75,6 @@
        }
    }
    /**
     * 获取类型
     */
    private String getType(String type) throws Exception {
        switch (type) {
            case "DOM":
@@ -126,9 +120,6 @@
        }
    }
    /**
     * 获取发布类型
     */
    private String getPubType(String type) throws Exception {
        if (StringHelper.isEmpty(type)) {
            return null;
@@ -325,6 +316,12 @@
                return fail("实体类为空或图层ID为空", 0);
            }
            UserEntity ue = tokenService.getCurrentUser(req);
            if (null != ue) {
                entity.setUserId(ue.getId());
                entity.setDepcode(ue.getDepcode());
            }
            Integer rows = shuJianService.updateSjLayerStretch(entity);
            return success(rows);