From 2a55ab04f0b5e324d16b42876dabff47885b28c2 Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期五, 14 四月 2023 17:33:35 +0800
Subject: [PATCH] 主题库相关的代码实现功能,包括excel导入导出,树形查看等功能
---
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsattributeController.java | 126 +++++++++
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeOsbtmtypeattributeService.java | 43 +++
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/pagemodel/DataGrid.java | 112 ++++++++
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsattributeMapper.java | 43 +++
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeOsbtmtypeattributeDTO.java | 34 ++
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsbtmtypeattributeController.java | 126 +++++++++
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsbtmtypeattributeMapper.xml | 38 ++
Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeOsbtmtypeattributeEntity.java | 101 +++++++
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsattributeWrapper.java | 50 +++
Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsattributeMapper.xml | 38 ++
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsbtmtypeattributeWrapper.java | 50 +++
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsbtmtypeattributeMapper.java | 43 +++
12 files changed, 804 insertions(+), 0 deletions(-)
diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeOsbtmtypeattributeDTO.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeOsbtmtypeattributeDTO.java
new file mode 100644
index 0000000..e947292
--- /dev/null
+++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/dto/CodeOsbtmtypeattributeDTO.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.dto;
+
+import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鏁版嵁浼犺緭瀵硅薄瀹炰綋绫�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class CodeOsbtmtypeattributeDTO extends CodeOsbtmtypeattributeEntity {
+ private static final long serialVersionUID = 1L;
+
+}
diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeOsbtmtypeattributeEntity.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeOsbtmtypeattributeEntity.java
new file mode 100644
index 0000000..4202813
--- /dev/null
+++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/code/entity/CodeOsbtmtypeattributeEntity.java
@@ -0,0 +1,101 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Date;
+import lombok.EqualsAndHashCode;
+import org.springblade.core.tenant.mp.TenantEntity;
+
+/**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 瀹炰綋绫�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+@Data
+@TableName("PL_CODE_OSBTMTYPEATTRIBUTE")
+@ApiModel(value = "CodeOsbtmtypeattribute瀵硅薄", description = "涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬�")
+@EqualsAndHashCode(callSuper = true)
+public class CodeOsbtmtypeattributeEntity extends BaseModel {
+
+
+ /**
+ * 鎵�灞炰笟鍔$被鍨�
+ */
+ @ApiModelProperty(value = "鎵�灞炰笟鍔$被鍨�")
+ private String pkbtmtype;
+ /**
+ * 灞炴�х殑闀垮害
+ */
+ @ApiModelProperty(value = "灞炴�х殑闀垮害")
+ private String attributelength;
+ /**
+ * 鏁版嵁绫诲瀷
+ */
+ @ApiModelProperty(value = "鏁版嵁绫诲瀷")
+ private String attrdatatype;
+ /**
+ * 鏄惁鍙互涓虹┖
+ */
+ @ApiModelProperty(value = "鏄惁鍙互涓虹┖")
+ private String nullableflag;
+ /**
+ * 榛樿鍊�
+ */
+ @ApiModelProperty(value = "榛樿鍊�")
+ private String defaultvalue;
+ /**
+ * 灏忔暟绮惧害浣嶆暟
+ */
+ @ApiModelProperty(value = "灏忔暟绮惧害浣嶆暟")
+ private String precisionlength;
+ /**
+ * 鍒诲害
+ */
+ @ApiModelProperty(value = "鍒诲害")
+ private String scalelength;
+ /**
+ * 鍙栧�艰寖鍥�
+ */
+ @ApiModelProperty(value = "鍙栧�艰寖鍥�")
+ private String range;
+ /**
+ * 鍙傜収涓氬姟绫诲瀷
+ */
+ @ApiModelProperty(value = "鍙傜収涓氬姟绫诲瀷")
+ private String referbtmtypeid;
+ /**
+ * 鍙傜収涓氬姟绫诲瀷鍚嶇О
+ */
+ @ApiModelProperty(value = "鍙傜収涓氬姟绫诲瀷鍚嶇О")
+ private String referbtmtypename;
+ /**
+ * 鏋氫妇缂栧彿
+ */
+ @ApiModelProperty(value = "鏋氫妇缂栧彿")
+ private String enumid;
+ /**
+ * 鏋氫妇鍚嶇О
+ */
+ @ApiModelProperty(value = "鏋氫妇鍚嶇О")
+ private String enumname;
+
+}
diff --git a/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/pagemodel/DataGrid.java b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/pagemodel/DataGrid.java
new file mode 100644
index 0000000..f12e362
--- /dev/null
+++ b/Source/UBCS/ubcs-service-api/ubcs-code-api/src/main/java/com/vci/ubcs/com/vci/starter/web/pagemodel/DataGrid.java
@@ -0,0 +1,112 @@
+package com.vci.ubcs.com.vci.starter.web.pagemodel;
+
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+public class DataGrid<T> implements Serializable {
+ private static final long serialVersionUID = -5909212697362510055L;
+ private long total = 0L;
+ private List<T> data = new ArrayList();
+ private int start;
+ private int limit;
+ private int page;
+ private String sort;
+ private String order;
+ private String msg;
+ private int code = 0;
+ private String traceId;
+
+ public DataGrid() {
+ }
+
+ public DataGrid(String msg) {
+ this.msg = msg;
+ this.code = 1;
+ }
+
+ public long getTotal() {
+ return this.total;
+ }
+
+ public void setTotal(long total) {
+ this.total = total;
+ }
+
+ public List<T> getData() {
+ return this.data;
+ }
+
+ public void setData(List<T> data) {
+ this.data = data;
+ }
+
+ public int getStart() {
+ return this.start;
+ }
+
+ public void setStart(int start) {
+ this.start = start;
+ }
+
+ public int getLimit() {
+ return this.limit;
+ }
+
+ public void setLimit(int limit) {
+ this.limit = limit;
+ }
+
+ public int getPage() {
+ return this.page;
+ }
+
+ public void setPage(int page) {
+ this.page = page;
+ }
+
+ public String getSort() {
+ return this.sort;
+ }
+
+ public void setSort(String sort) {
+ this.sort = sort;
+ }
+
+ public String getOrder() {
+ return this.order;
+ }
+
+ public void setOrder(String order) {
+ this.order = order;
+ }
+
+ public String getMsg() {
+ return this.msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public int getCode() {
+ return this.code;
+ }
+
+ public void setCode(int code) {
+ this.code = code;
+ }
+
+ public String getTraceId() {
+ return this.traceId;
+ }
+
+ public void setTraceId(String traceId) {
+ this.traceId = traceId;
+ }
+
+ public String toString() {
+ return "DataGrid{total=" + this.total + ", data=" + this.data + ", start=" + this.start + ", limit=" + this.limit + ", page=" + this.page + ", sort='" + this.sort + '\'' + ", order='" + this.order + '\'' + ", msg='" + this.msg + '\'' + ", code=" + this.code + ", traceId='" + this.traceId + '\'' + '}';
+ }
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsattributeController.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsattributeController.java
new file mode 100644
index 0000000..f93a5c9
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsattributeController.java
@@ -0,0 +1,126 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.secure.BladeUser;
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.vci.ubcs.code.entity.CodeOsattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsattributeVO;
+import com.vci.ubcs.code.wrapper.CodeOsattributeWrapper;
+import com.vci.ubcs.code.service.ICodeOsattributeService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 灞炴�ф樉绀哄璞� 鎺у埗鍣�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/CodeOsattribute")
+@Api(value = "灞炴�ф樉绀哄璞�", tags = "灞炴�ф樉绀哄璞℃帴鍙�")
+public class CodeOsattributeController extends BladeController {
+
+ private final ICodeOsattributeService CodeOsattributeService;
+
+ /**
+ * 灞炴�ф樉绀哄璞� 璇︽儏
+ */
+ @GetMapping("/detail")
+ @ApiOperationSupport(order = 1)
+ @ApiOperation(value = "璇︽儏", notes = "浼犲叆CodeOsattribute")
+ public R<CodeOsattributeVO> detail(CodeOsattributeEntity CodeOsattribute) {
+ CodeOsattributeEntity detail = CodeOsattributeService.getOne(Condition.getQueryWrapper(CodeOsattribute));
+ return R.data(CodeOsattributeWrapper.build().entityVO(detail));
+ }
+ /**
+ * 灞炴�ф樉绀哄璞� 鍒嗛〉
+ */
+ @GetMapping("/list")
+ @ApiOperationSupport(order = 2)
+ @ApiOperation(value = "鍒嗛〉", notes = "浼犲叆CodeOsattribute")
+ public R<IPage<CodeOsattributeVO>> list(CodeOsattributeEntity CodeOsattribute, Query query) {
+ IPage<CodeOsattributeEntity> pages = CodeOsattributeService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeOsattribute));
+ return R.data(CodeOsattributeWrapper.build().pageVO(pages));
+ }
+
+ /**
+ * 灞炴�ф樉绀哄璞� 鑷畾涔夊垎椤�
+ */
+ @GetMapping("/page")
+ @ApiOperationSupport(order = 3)
+ @ApiOperation(value = "鍒嗛〉", notes = "浼犲叆CodeOsattribute")
+ public R<IPage<CodeOsattributeVO>> page(CodeOsattributeVO CodeOsattribute, Query query) {
+ IPage<CodeOsattributeVO> pages = CodeOsattributeService.selectCodeOsattributePage(Condition.getPage(query), CodeOsattribute);
+ return R.data(pages);
+ }
+
+ /**
+ * 灞炴�ф樉绀哄璞� 鏂板
+ */
+ @PostMapping("/save")
+ @ApiOperationSupport(order = 4)
+ @ApiOperation(value = "鏂板", notes = "浼犲叆CodeOsattribute")
+ public R save(@Valid @RequestBody CodeOsattributeEntity CodeOsattribute) {
+ return R.status(CodeOsattributeService.save(CodeOsattribute));
+ }
+
+ /**
+ * 灞炴�ф樉绀哄璞� 淇敼
+ */
+ @PostMapping("/update")
+ @ApiOperationSupport(order = 5)
+ @ApiOperation(value = "淇敼", notes = "浼犲叆CodeOsattribute")
+ public R update(@Valid @RequestBody CodeOsattributeEntity CodeOsattribute) {
+ return R.status(CodeOsattributeService.updateById(CodeOsattribute));
+ }
+
+ /**
+ * 灞炴�ф樉绀哄璞� 鏂板鎴栦慨鏀�
+ */
+ @PostMapping("/submit")
+ @ApiOperationSupport(order = 6)
+ @ApiOperation(value = "鏂板鎴栦慨鏀�", notes = "浼犲叆CodeOsattribute")
+ public R submit(@Valid @RequestBody CodeOsattributeEntity CodeOsattribute) {
+ return R.status(CodeOsattributeService.saveOrUpdate(CodeOsattribute));
+ }
+
+ /**
+ * 灞炴�ф樉绀哄璞� 鍒犻櫎
+ */
+ @PostMapping("/remove")
+ @ApiOperationSupport(order = 7)
+ @ApiOperation(value = "閫昏緫鍒犻櫎", notes = "浼犲叆ids")
+ public R remove(@ApiParam(value = "涓婚敭闆嗗悎", required = true) @RequestParam String ids) {
+ return R.status(CodeOsattributeService.removeBatchByIds(Func.toLongList(ids)));
+ }
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsbtmtypeattributeController.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsbtmtypeattributeController.java
new file mode 100644
index 0000000..92cd51b
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeOsbtmtypeattributeController.java
@@ -0,0 +1,126 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import javax.validation.Valid;
+
+import org.springblade.core.secure.BladeUser;
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.utils.Func;
+import org.springframework.web.bind.annotation.*;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
+import com.vci.ubcs.code.wrapper.CodeOsbtmtypeattributeWrapper;
+import com.vci.ubcs.code.service.ICodeOsbtmtypeattributeService;
+import org.springblade.core.boot.ctrl.BladeController;
+
+/**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鎺у埗鍣�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/CodeOsbtmtypeattribute")
+@Api(value = "涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬�", tags = "涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬ф帴鍙�")
+public class CodeOsbtmtypeattributeController extends BladeController {
+
+ private final ICodeOsbtmtypeattributeService CodeOsbtmtypeattributeService;
+
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 璇︽儏
+ */
+ @GetMapping("/detail")
+ @ApiOperationSupport(order = 1)
+ @ApiOperation(value = "璇︽儏", notes = "浼犲叆CodeOsbtmtypeattribute")
+ public R<CodeOsbtmtypeattributeVO> detail(CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
+ CodeOsbtmtypeattributeEntity detail = CodeOsbtmtypeattributeService.getOne(Condition.getQueryWrapper(CodeOsbtmtypeattribute));
+ return R.data(CodeOsbtmtypeattributeWrapper.build().entityVO(detail));
+ }
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鍒嗛〉
+ */
+ @GetMapping("/list")
+ @ApiOperationSupport(order = 2)
+ @ApiOperation(value = "鍒嗛〉", notes = "浼犲叆CodeOsbtmtypeattribute")
+ public R<IPage<CodeOsbtmtypeattributeVO>> list(CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute, Query query) {
+ IPage<CodeOsbtmtypeattributeEntity> pages = CodeOsbtmtypeattributeService.page(Condition.getPage(query), Condition.getQueryWrapper(CodeOsbtmtypeattribute));
+ return R.data(CodeOsbtmtypeattributeWrapper.build().pageVO(pages));
+ }
+
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鑷畾涔夊垎椤�
+ */
+ @GetMapping("/page")
+ @ApiOperationSupport(order = 3)
+ @ApiOperation(value = "鍒嗛〉", notes = "浼犲叆CodeOsbtmtypeattribute")
+ public R<IPage<CodeOsbtmtypeattributeVO>> page(CodeOsbtmtypeattributeVO CodeOsbtmtypeattribute, Query query) {
+ IPage<CodeOsbtmtypeattributeVO> pages = CodeOsbtmtypeattributeService.selectCodeOsbtmtypeattributePage(Condition.getPage(query), CodeOsbtmtypeattribute);
+ return R.data(pages);
+ }
+
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鏂板
+ */
+ @PostMapping("/save")
+ @ApiOperationSupport(order = 4)
+ @ApiOperation(value = "鏂板", notes = "浼犲叆CodeOsbtmtypeattribute")
+ public R save(@Valid @RequestBody CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
+ return R.status(CodeOsbtmtypeattributeService.save(CodeOsbtmtypeattribute));
+ }
+
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 淇敼
+ */
+ @PostMapping("/update")
+ @ApiOperationSupport(order = 5)
+ @ApiOperation(value = "淇敼", notes = "浼犲叆CodeOsbtmtypeattribute")
+ public R update(@Valid @RequestBody CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
+ return R.status(CodeOsbtmtypeattributeService.updateById(CodeOsbtmtypeattribute));
+ }
+
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鏂板鎴栦慨鏀�
+ */
+ @PostMapping("/submit")
+ @ApiOperationSupport(order = 6)
+ @ApiOperation(value = "鏂板鎴栦慨鏀�", notes = "浼犲叆CodeOsbtmtypeattribute")
+ public R submit(@Valid @RequestBody CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
+ return R.status(CodeOsbtmtypeattributeService.saveOrUpdate(CodeOsbtmtypeattribute));
+ }
+
+ /**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鍒犻櫎
+ */
+ @PostMapping("/remove")
+ @ApiOperationSupport(order = 7)
+ @ApiOperation(value = "閫昏緫鍒犻櫎", notes = "浼犲叆ids")
+ public R remove(@ApiParam(value = "涓婚敭闆嗗悎", required = true) @RequestParam String ids) {
+ return R.status(CodeOsbtmtypeattributeService.removeBatchByIds(Func.toLongList(ids)));
+ }
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsattributeMapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsattributeMapper.java
new file mode 100644
index 0000000..495f6f3
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsattributeMapper.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.mapper;
+
+import com.vci.ubcs.code.entity.CodeOsattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsattributeVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 灞炴�ф樉绀哄璞� Mapper 鎺ュ彛
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+public interface CodeOsattributeMapper extends BaseMapper<CodeOsattributeEntity> {
+
+ /**
+ * 鑷畾涔夊垎椤�
+ *
+ * @param page
+ * @param CodeOsattribute
+ * @return
+ */
+ List<CodeOsattributeVO> selectCodeOsattributePage(IPage page, CodeOsattributeVO CodeOsattribute);
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsbtmtypeattributeMapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsbtmtypeattributeMapper.java
new file mode 100644
index 0000000..7f20ad9
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/mapper/CodeOsbtmtypeattributeMapper.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.mapper;
+
+import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import java.util.List;
+
+/**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� Mapper 鎺ュ彛
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+public interface CodeOsbtmtypeattributeMapper extends BaseMapper<CodeOsbtmtypeattributeEntity> {
+
+ /**
+ * 鑷畾涔夊垎椤�
+ *
+ * @param page
+ * @param CodeOsbtmtypeattribute
+ * @return
+ */
+ List<CodeOsbtmtypeattributeVO> selectCodeOsbtmtypeattributePage(IPage page, CodeOsbtmtypeattributeVO CodeOsbtmtypeattribute);
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeOsbtmtypeattributeService.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeOsbtmtypeattributeService.java
new file mode 100644
index 0000000..c234501
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/ICodeOsbtmtypeattributeService.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
+import org.springblade.core.mp.base.BaseService;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+/**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鏈嶅姟绫�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+public interface ICodeOsbtmtypeattributeService extends IService<CodeOsbtmtypeattributeEntity> {
+
+ /**
+ * 鑷畾涔夊垎椤�
+ *
+ * @param page
+ * @param CodeOsbtmtypeattribute
+ * @return
+ */
+ IPage<CodeOsbtmtypeattributeVO> selectCodeOsbtmtypeattributePage(IPage<CodeOsbtmtypeattributeVO> page, CodeOsbtmtypeattributeVO CodeOsbtmtypeattribute);
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsattributeWrapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsattributeWrapper.java
new file mode 100644
index 0000000..ebd1bbf
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsattributeWrapper.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import com.vci.ubcs.code.entity.CodeOsattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsattributeVO;
+import java.util.Objects;
+
+/**
+ * 灞炴�ф樉绀哄璞� 鍖呰绫�,杩斿洖瑙嗗浘灞傛墍闇�鐨勫瓧娈�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+public class CodeOsattributeWrapper extends BaseEntityWrapper<CodeOsattributeEntity, CodeOsattributeVO> {
+
+ public static CodeOsattributeWrapper build() {
+ return new CodeOsattributeWrapper();
+ }
+
+ @Override
+ public CodeOsattributeVO entityVO(CodeOsattributeEntity CodeOsattribute) {
+ CodeOsattributeVO CodeOsattributeVO = Objects.requireNonNull(BeanUtil.copy(CodeOsattribute, CodeOsattributeVO.class));
+
+ //User createUser = UserCache.getUser(CodeOsattribute.getCreateUser());
+ //User updateUser = UserCache.getUser(CodeOsattribute.getUpdateUser());
+ //CodeOsattributeVO.setCreateUserName(createUser.getName());
+ //CodeOsattributeVO.setUpdateUserName(updateUser.getName());
+
+ return CodeOsattributeVO;
+ }
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsbtmtypeattributeWrapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsbtmtypeattributeWrapper.java
new file mode 100644
index 0000000..b4b5c3c
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeOsbtmtypeattributeWrapper.java
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * Neither the name of the dreamlu.net developer nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ * Author: Chill 搴勯獮 (smallchill@163.com)
+ */
+package com.vci.ubcs.code.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity;
+import com.vci.ubcs.code.vo.CodeOsbtmtypeattributeVO;
+import java.util.Objects;
+
+/**
+ * 涓氬姟绫诲瀷鍖呭惈鐨勫睘鎬� 鍖呰绫�,杩斿洖瑙嗗浘灞傛墍闇�鐨勫瓧娈�
+ *
+ * @author yuxc
+ * @since 2023-04-14
+ */
+public class CodeOsbtmtypeattributeWrapper extends BaseEntityWrapper<CodeOsbtmtypeattributeEntity, CodeOsbtmtypeattributeVO> {
+
+ public static CodeOsbtmtypeattributeWrapper build() {
+ return new CodeOsbtmtypeattributeWrapper();
+ }
+
+ @Override
+ public CodeOsbtmtypeattributeVO entityVO(CodeOsbtmtypeattributeEntity CodeOsbtmtypeattribute) {
+ CodeOsbtmtypeattributeVO CodeOsbtmtypeattributeVO = Objects.requireNonNull(BeanUtil.copy(CodeOsbtmtypeattribute, CodeOsbtmtypeattributeVO.class));
+
+ //User createUser = UserCache.getUser(CodeOsbtmtypeattribute.getCreateUser());
+ //User updateUser = UserCache.getUser(CodeOsbtmtypeattribute.getUpdateUser());
+ //CodeOsbtmtypeattributeVO.setCreateUserName(createUser.getName());
+ //CodeOsbtmtypeattributeVO.setUpdateUserName(updateUser.getName());
+
+ return CodeOsbtmtypeattributeVO;
+ }
+
+
+}
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsattributeMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsattributeMapper.xml
new file mode 100644
index 0000000..0907b0f
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsattributeMapper.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.vci.ubcs.code.mapper.CodeOsattributeMapper">
+
+ <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
+ <resultMap id="CodeOsattributeResultMap" type="com.vci.ubcs.code.entity.CodeOsattributeEntity">
+ <result column="OID" property="oid"/>
+ <result column="ID" property="id"/>
+ <result column="NAME" property="name"/>
+ <result column="DESCRIPTION" property="description"/>
+ <result column="ATTRIBUTEDATATYPE" property="attributedatatype"/>
+ <result column="ATTRIBUTEDATATYPETEXT" property="attributedatatypetext"/>
+ <result column="NULLABLEFLAG" property="nullableflag"/>
+ <result column="DEFAULTVALUE" property="defaultvalue"/>
+ <result column="ENUMID" property="enumid"/>
+ <result column="ENUMNAME" property="enumname"/>
+ <result column="BTMTYPEID" property="btmtypeid"/>
+ <result column="BTMTYPENAME" property="btmtypename"/>
+ <result column="ATTRLENGTH" property="attrlength"/>
+ <result column="PRECISIONLENGTH" property="precisionlength"/>
+ <result column="SCALELENGTH" property="scalelength"/>
+ <result column="RANGE" property="range"/>
+ <result column="BTMNAME" property="btmname"/>
+ <result column="OWNER" property="owner"/>
+ <result column="CREATOR" property="creator"/>
+ <result column="CREATETIME" property="createTime"/>
+ <result column="LASTMODIFIER" property="lastModifier"/>
+ <result column="LASTMODIFYTIME" property="lastModifyTime"/>
+ <result column="TS" property="ts"/>
+ </resultMap>
+
+
+ <select id="selectCodeOsattributePage" resultMap="CodeOsattributeResultMap">
+ select * from PL_CODE_OSATTRIBUTE where is_deleted = 0
+ </select>
+
+
+</mapper>
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsbtmtypeattributeMapper.xml b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsbtmtypeattributeMapper.xml
new file mode 100644
index 0000000..6abc6b7
--- /dev/null
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/resources/mapper/CodeOsbtmtypeattributeMapper.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.vci.ubcs.code.mapper.CodeOsbtmtypeattributeMapper">
+
+ <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 -->
+ <resultMap id="CodeOsbtmtypeattributeResultMap" type="com.vci.ubcs.code.entity.CodeOsbtmtypeattributeEntity">
+ <result column="OID" property="oid"/>
+ <result column="PKBTMTYPE" property="pkbtmtype"/>
+ <result column="ID" property="id"/>
+ <result column="NAME" property="name"/>
+ <result column="ATTRIBUTELENGTH" property="attributelength"/>
+ <result column="DESCRIPTION" property="description"/>
+ <result column="ATTRDATATYPE" property="attrdatatype"/>
+ <result column="NULLABLEFLAG" property="nullableflag"/>
+ <result column="DEFAULTVALUE" property="defaultvalue"/>
+ <result column="PRECISIONLENGTH" property="precisionlength"/>
+ <result column="SCALELENGTH" property="scalelength"/>
+ <result column="RANGE" property="range"/>
+ <result column="REFERBTMTYPEID" property="referbtmtypeid"/>
+ <result column="REFERBTMTYPENAME" property="referbtmtypename"/>
+ <result column="ENUMID" property="enumid"/>
+ <result column="ENUMNAME" property="enumname"/>
+ <result column="BTMNAME" property="btmname"/>
+ <result column="OWNER" property="owner"/>
+ <result column="CREATOR" property="creator"/>
+ <result column="CREATETIME" property="createTime"/>
+ <result column="LASTMODIFIER" property="lastModifier"/>
+ <result column="LASTMODIFYTIME" property="lastModifyTime"/>
+ <result column="TS" property="ts"/>
+ </resultMap>
+
+
+ <select id="selectCodeOsbtmtypeattributePage" resultMap="CodeOsbtmtypeattributeResultMap">
+ select * from PL_CODE_OSBTMTYPEATTRIBUTE where is_deleted = 0
+ </select>
+
+
+</mapper>
--
Gitblit v1.9.3