From 9c49f1bd055122b63c04bdd42c6262dba1ea3eff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Tue, 11 Jul 2023 15:59:56 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=96=B0=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/RequirementItemForm.vue | 51 ++++++++++++++-----
.../entity/RequirementItem.java | 10 ++--
2 files changed, 46 insertions(+), 15 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
index 3e06c82..7264ed3 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
@@ -8,10 +8,23 @@
-
+
+
+
+
+
@@ -28,14 +41,19 @@
+
+
+
+
+
-
+
-
+
@@ -43,13 +61,11 @@
-
-
-
-
-
-
-
+
+
+
+
+
@@ -83,13 +99,21 @@
model:{
},
labelCol: {
- xs: { span: 24 },
- sm: { span: 5 },
+ xs: { span: 23 },
+ sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 16 },
},
+ labelCol1: {
+ xs: { span: 24 },
+ sm: { span: 3 },
+ },
+ wrapperCol1: {
+ xs: { span: 24 },
+ sm: { span: 20 },
+ },
confirmLoading: false,
validatorRules: {
projectId: [
@@ -127,6 +151,9 @@
//备份model原始值
},
methods: {
+ popupCallback(value,row){
+ this.model = Object.assign(this.model, row);
+ },
getxqbm(){
if(this.model.upperId===undefined||this.model.upperId===null){
this.model.upperId = "";
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requirementitem/entity/RequirementItem.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requirementitem/entity/RequirementItem.java
index 75522d7..53b0968 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requirementitem/entity/RequirementItem.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requirementitem/entity/RequirementItem.java
@@ -62,11 +62,15 @@ public class RequirementItem implements Serializable {
@Dict(dictTable = "projectx", dicText = "project_name", dicCode = "id")
@ApiModelProperty(value = "项目id")
private java.lang.String projectId;
- /**类型id*/
- @Excel(name = "类型id", width = 15, dictTable = "requirement_type", dicText = "type_name", dicCode = "id")
- @Dict(dictTable = "requirement_type", dicText = "type_name", dicCode = "id")
+ /**类型id*/
+ @Excel(name = "类型id", width = 15, dictTable = "requirement_type", dicText = "type_name", dicCode = "id")
+ @Dict(dictTable = "requirement_type", dicText = "type_name", dicCode = "id")
@ApiModelProperty(value = "类型id")
private java.lang.String typeId;
+ /**类型*/
+ @Excel(name = "类型", width = 15)
+ @ApiModelProperty(value = "类型")
+ private java.lang.String typeName;
/**上级需求id*/
@Excel(name = "上级需求id", width = 15)
@ApiModelProperty(value = "上级需求id")
From 8112129d1f4eb1de85490f46a02f223c4b6fa3aa Mon Sep 17 00:00:00 2001
From: shiji <1913712590@qq.com>
Date: Tue, 11 Jul 2023 16:01:39 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E7=82=B9=E5=87=BB=E6=A8=A1=E5=9D=97=EF=BC=8C?=
=?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=A8=A1=E5=9D=97=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E7=9A=84bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ant-design-vue-jeecg/src/views/modulex/ModulexList.vue | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
index 750f5e2..21f50f2 100644
--- a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
+++ b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
@@ -624,7 +624,9 @@ export default {
param.pageSize = this.ipagination.pageSize
//param.id=this.id;
//!!!!!!!
- // param.projectId = this.$route.query.project;
+ //模块管理 条件查询如果没有条件,则使用路由跳转值 ;直接点击模块管理则查询全部
+ if(param.projectId==null)
+ param.projectId = this.$route.query.project;
// console.log('paaaaaaaaaaaaaaaaaaaaa')
return filterObj(param)
},
From 475921a9495a7c414689278674aaa8504a9bcc79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Tue, 11 Jul 2023 16:02:58 +0800
Subject: [PATCH 03/12] =?UTF-8?q?=E9=9C=80=E6=B1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/requirementitem/RequirementItemList.vue | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
index 1e94e75..e69ed90 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
@@ -170,9 +170,14 @@
align:"center",
dataIndex: 'projectId_dictText'
},
+ // {
+ // title:'类型',
+ // align:"center",
+ // dataIndex: 'typeId_dictText'
+ // },
{
- title:'类型',
- align:"center",
+ title: '类型id',
+ align: "center",
dataIndex: 'typeId_dictText'
},
{
From 03c76491ee586521a4368950bb4684e65f916d1f Mon Sep 17 00:00:00 2001
From: Gitea
Date: Tue, 11 Jul 2023 16:47:58 +0800
Subject: [PATCH 04/12] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=8A=BD=E5=8F=96?=
=?UTF-8?q?=E5=AE=9E=E4=BD=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/requirementitem/RequirementItemList.vue | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
index e69ed90..4cb12fd 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
@@ -119,6 +119,8 @@
拆分
+ 抽取对象
+
确认需求
@@ -129,6 +131,7 @@
+
@@ -143,12 +146,13 @@
import ModulexModal1 from "../modulex/modules/ModulexModal1";
import FunctionxModal1 from "../functionx/modules/FunctionxModal1";
import RulexModal1 from "../rulex/modules/RulexModal1";
+ import RequirementEntityList1 from "../requiremententity/RequirementEntityList1";
export default {
name: 'RequirementItemList',
mixins:[JeecgListMixin, mixinDevice],
components: {
- RequirementItemModal,ModulexModal1,FunctionxModal1,RulexModal1
+ RequirementItemModal,ModulexModal1,FunctionxModal1,RulexModal1,RequirementEntityList1
},
data () {
return {
@@ -315,6 +319,15 @@
}
});
},
+ cqdx(record){
+ let s = null
+ getAction('/requiremententity/requirementEntity/list', { requirementId: record.id }).then((res) => {
+ s = res.result.records;
+ this.$refs.rel1.showModal();
+ this.$refs.rel1.edit(s[0]);
+ this.$refs.rel1.disableSubmit = false;
+ })
+ },
wdxq(){
this.searchQuerywdxq();
},
From 2ef9b39cf98b1639ff09c38e35195d1df74c32b0 Mon Sep 17 00:00:00 2001
From: Gitea
Date: Tue, 11 Jul 2023 16:48:58 +0800
Subject: [PATCH 05/12] wenti
---
.../src/views/requirementitem/RequirementItemList.vue | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
index 4cb12fd..9103237 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
@@ -174,13 +174,8 @@
align:"center",
dataIndex: 'projectId_dictText'
},
- // {
- // title:'类型',
- // align:"center",
- // dataIndex: 'typeId_dictText'
- // },
{
- title: '类型id',
+ title: '类型',
align: "center",
dataIndex: 'typeId_dictText'
},
From 9d1aaaec6d3cc9d3dc727902c1b7105a71383a22 Mon Sep 17 00:00:00 2001
From: zhc077 <565291854>
Date: Tue, 11 Jul 2023 17:03:22 +0800
Subject: [PATCH 06/12] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=AE=A1=E7=90=86-?=
=?UTF-8?q?=E5=A6=82=E6=9E=9C=E5=8A=9F=E8=83=BD=E7=B1=BB=E5=9E=8B=E6=98=AF?=
=?UTF-8?q?=E2=80=98=E6=96=B0=E5=A2=9E=E2=80=99=E5=92=8C=E2=80=98=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E2=80=99=20=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90?=
=?UTF-8?q?=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../controller/FunctionxController.java | 7 +
.../demo/rulex/service/IRulexService.java | 2 +
.../rulex/service/impl/RulexServiceImpl.java | 120 +++++++++++++-----
3 files changed, 96 insertions(+), 33 deletions(-)
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/controller/FunctionxController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/controller/FunctionxController.java
index ab5d776..bbde1a4 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/controller/FunctionxController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/controller/FunctionxController.java
@@ -28,6 +28,7 @@ import org.jeecg.modules.demo.requirementfun.entity.RequirementFun;
import org.jeecg.modules.demo.requirementfun.service.IRequirementFunService;
import org.jeecg.modules.demo.requirementitem.entity.RequirementItem;
import org.jeecg.modules.demo.requirementitem.service.IRequirementItemService;
+import org.jeecg.modules.demo.rulex.service.IRulexService;
import org.jeecg.modules.modulex.entity.Modulex;
import org.jeecg.modules.modulex.service.IModulexService;
import org.jeecgframework.poi.excel.ExcelImportUtil;
@@ -66,6 +67,9 @@ public class FunctionxController extends JeecgController {
Result> sort(String id);
List queryRuleListByFunctionId(Functionx functionx);
+
+ void saveRulex(Functionx functionx);
}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/service/impl/RulexServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/service/impl/RulexServiceImpl.java
index 8b3babc..126b80e 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/service/impl/RulexServiceImpl.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/rulex/service/impl/RulexServiceImpl.java
@@ -1,16 +1,23 @@
package org.jeecg.modules.demo.rulex.service.impl;
+import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.functionx.entity.Functionx;
import org.jeecg.modules.demo.rulex.entity.Rulex;
import org.jeecg.modules.demo.rulex.mapper.RulexMapper;
import org.jeecg.modules.demo.rulex.service.IRulexService;
+import org.jeecg.modules.fieldx.entity.Fieldx;
+import org.jeecg.modules.fieldx.service.IFieldxService;
+import org.jeecg.modules.tablex.entity.Tablex;
+import org.jeecg.modules.tablex.service.ITablexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
+import org.springframework.util.ObjectUtils;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-
+import java.util.Date;
import java.util.List;
/**
@@ -19,39 +26,86 @@ import java.util.List;
* @Date: 2023-04-10
* @Version: V1.0
*/
+
+@Slf4j
@Service
public class RulexServiceImpl extends ServiceImpl implements IRulexService {
- @Autowired
- RulexMapper rulexMapper;
-
- @Override
- public Result> sort(String id) {
- String sort = rulexMapper.sort(id);
- String functioncode = rulexMapper.find(id);
- if (sort == null) {
- return Result.OK("001" + functioncode);
- } else {
- int i = Integer.parseInt(sort);
- i++;
- String s = Integer.toString(i);
- while (s.length() < 3) {
- s = "0" + s;
- }
- return Result.OK(s + functioncode);
+ @Autowired
+ RulexMapper rulexMapper;
+
+ @Autowired
+ private ITablexService iTablexService;
+
+ @Autowired
+ private IFieldxService iFieldxService;
+
+ @Override
+ public Result> sort(String id) {
+ String sort = rulexMapper.sort(id);
+ String functioncode = rulexMapper.find(id);
+ if (sort == null) {
+ return Result.OK("001" + functioncode);
+ } else {
+ int i = Integer.parseInt(sort);
+ i++;
+ String s = Integer.toString(i);
+ while (s.length() < 3) {
+ s = "0" + s;
+ }
+ return Result.OK(s + functioncode);
+ }
+ }
+
+ /**
+ * 根据功能id查询对应的规则
+ *
+ * @param functionx functionx
+ * @return {@link List}<{@link Rulex}>
+ */
+ @Override
+ public List queryRuleListByFunctionId(Functionx functionx) {
+ LambdaQueryWrapper ruleWrapper = new LambdaQueryWrapper<>();
+ ruleWrapper.eq(Rulex::getFunctionId, functionx.getId());
+ return this.list(ruleWrapper);
+ }
+
+ /**
+ * 功能管理新增规则操作时,如果功能类型是‘新增’和‘修改’,自动根据实体对应的字段,自动生成若干条记录(根据实体的字段生成多条规则)
+ *
+ * @param functionx
+ */
+ @Override
+ public void saveRulex(Functionx functionx) {
+ int functionType = functionx.getFunctionType().intValue();
+ if (1 == functionType || 3 == functionType) {
+ String moduleId = functionx.getModuleId();
+ Tablex tablex = iTablexService.getOne(new LambdaQueryWrapper().eq(Tablex::getModuleId, moduleId));
+ if (!ObjectUtils.isEmpty(tablex)) {
+ List fieldxList = iFieldxService.list(new LambdaQueryWrapper().eq(Fieldx::getTableId, tablex.getId()));
+ if (!ObjectUtils.isEmpty(fieldxList)) {
+ fieldxList.stream().forEach(o -> {
+ //主键字段不创建规则
+ if (0 == o.getIsPk()) {
+ Rulex rulex = new Rulex();
+ rulex.setModuleId(moduleId);
+ rulex.setTableId(tablex.getId());
+ rulex.setFunctionId(functionx.getId());
+ rulex.setFieldId(o.getId());
+ rulex.setCreateTime(new Date());
+ Result> result = this.sort(functionx.getId());
+ String roleCodeStr = result.getResult().toString();
+ log.info("-----------------the roleCodeStr:{}", roleCodeStr);
+ String ruleNo = roleCodeStr.substring(0, 3);
+ String ruleCode = roleCodeStr.substring(3) + ruleNo;
+ rulex.setRuleNo(ruleNo);
+ rulex.setRuleCode(ruleCode);
+ rulex.setPmDescribe(JSON.toJSONString(o));
+ this.save(rulex);
+ }
+ });
+ }
+ }
+ }
}
- }
-
- /**
- * 根据功能id查询对应的规则
- *
- * @param functionx functionx
- * @return {@link List}<{@link Rulex}>
- */
- @Override
- public List queryRuleListByFunctionId(Functionx functionx) {
- LambdaQueryWrapper ruleWrapper = new LambdaQueryWrapper<>();
- ruleWrapper.eq(Rulex::getFunctionId, functionx.getId());
- return this.list(ruleWrapper);
- }
}
From 81ecf23eaf7cc1e1f61710171012fd2612e1befe Mon Sep 17 00:00:00 2001
From: Gitea
Date: Tue, 11 Jul 2023 17:14:46 +0800
Subject: [PATCH 07/12] =?UTF-8?q?=E6=8A=BD=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../RequirementEntityList.vue | 210 ++++++++++
.../RequirementEntityList1.vue | 382 ++++++++++++++++++
.../modules/RequirementEntityForm.vue | 133 ++++++
.../modules/RequirementEntityModal.vue | 60 +++
.../RequirementEntityModal__Style#Drawer.vue | 84 ++++
.../RequirementEntityController.java | 171 ++++++++
.../entity/RequirementEntity.java | 79 ++++
.../mapper/RequirementEntityMapper.java | 17 +
.../mapper/xml/RequirementEntityMapper.xml | 5 +
.../service/IRequirementEntityService.java | 14 +
.../impl/RequirementEntityServiceImpl.java | 19 +
11 files changed, 1174 insertions(+)
create mode 100644 ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue
create mode 100644 ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue
create mode 100644 ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityForm.vue
create mode 100644 ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal.vue
create mode 100644 ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal__Style#Drawer.vue
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/entity/RequirementEntity.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/RequirementEntityMapper.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/xml/RequirementEntityMapper.xml
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/IRequirementEntityService.java
create mode 100644 jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/impl/RequirementEntityServiceImpl.java
diff --git a/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue
new file mode 100644
index 0000000..c16119b
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList.vue
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
新增
+
导出
+
+ 导入
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无图片
+
+
+
+ 无文件
+
+ 下载
+
+
+
+
+ 编辑
+
+
+ 详情
+
+ handleDelete(record.id)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue
new file mode 100644
index 0000000..3317328
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue
@@ -0,0 +1,382 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityForm.vue b/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityForm.vue
new file mode 100644
index 0000000..2bc44a7
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityForm.vue
@@ -0,0 +1,133 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal.vue b/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal.vue
new file mode 100644
index 0000000..20fcb28
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal.vue
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal__Style#Drawer.vue
new file mode 100644
index 0000000..edfb89a
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/requiremententity/modules/RequirementEntityModal__Style#Drawer.vue
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java
new file mode 100644
index 0000000..264bcd4
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/controller/RequirementEntityController.java
@@ -0,0 +1,171 @@
+package org.jeecg.modules.demo.requiremententity.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.demo.requiremententity.entity.RequirementEntity;
+import org.jeecg.modules.demo.requiremententity.service.IRequirementEntityService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 需求实体抽取管理
+ * @Author: jeecg-boot
+ * @Date: 2023-07-10
+ * @Version: V1.0
+ */
+@Api(tags="需求实体抽取管理")
+@RestController
+@RequestMapping("/requiremententity/requirementEntity")
+@Slf4j
+public class RequirementEntityController extends JeecgController {
+ @Autowired
+ private IRequirementEntityService requirementEntityService;
+
+ /**
+ * 分页列表查询
+ *
+ * @param requirementEntity
+ * @param pageNo
+ * @param pageSize
+ * @param req
+ * @return
+ */
+ @AutoLog(value = "需求实体抽取管理-分页列表查询")
+ @ApiOperation(value="需求实体抽取管理-分页列表查询", notes="需求实体抽取管理-分页列表查询")
+ @GetMapping(value = "/list")
+ public Result> queryPageList(RequirementEntity requirementEntity,
+ @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+ @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+ HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(requirementEntity, req.getParameterMap());
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = requirementEntityService.page(page, queryWrapper);
+ return Result.OK(pageList);
+ }
+
+ /**
+ * 添加
+ *
+ * @param requirementEntity
+ * @return
+ */
+ @AutoLog(value = "需求实体抽取管理-添加")
+ @ApiOperation(value="需求实体抽取管理-添加", notes="需求实体抽取管理-添加")
+ @PostMapping(value = "/add")
+ public Result> add(@RequestBody RequirementEntity requirementEntity) {
+ requirementEntityService.save(requirementEntity);
+ return Result.OK(requirementEntity);
+ }
+
+ /**
+ * 编辑
+ *
+ * @param requirementEntity
+ * @return
+ */
+ @AutoLog(value = "需求实体抽取管理-编辑")
+ @ApiOperation(value="需求实体抽取管理-编辑", notes="需求实体抽取管理-编辑")
+ @PutMapping(value = "/edit")
+ public Result> edit(@RequestBody RequirementEntity requirementEntity) {
+ requirementEntityService.updateById(requirementEntity);
+ return Result.OK("编辑成功!");
+ }
+
+ /**
+ * 通过id删除
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "需求实体抽取管理-通过id删除")
+ @ApiOperation(value="需求实体抽取管理-通过id删除", notes="需求实体抽取管理-通过id删除")
+ @DeleteMapping(value = "/delete")
+ public Result> delete(@RequestParam(name="id",required=true) String id) {
+ requirementEntityService.removeById(id);
+ return Result.OK("删除成功!");
+ }
+
+ /**
+ * 批量删除
+ *
+ * @param ids
+ * @return
+ */
+ @AutoLog(value = "需求实体抽取管理-批量删除")
+ @ApiOperation(value="需求实体抽取管理-批量删除", notes="需求实体抽取管理-批量删除")
+ @DeleteMapping(value = "/deleteBatch")
+ public Result> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+ this.requirementEntityService.removeByIds(Arrays.asList(ids.split(",")));
+ return Result.OK("批量删除成功!");
+ }
+
+ /**
+ * 通过id查询
+ *
+ * @param id
+ * @return
+ */
+ @AutoLog(value = "需求实体抽取管理-通过id查询")
+ @ApiOperation(value="需求实体抽取管理-通过id查询", notes="需求实体抽取管理-通过id查询")
+ @GetMapping(value = "/queryById")
+ public Result> queryById(@RequestParam(name="id",required=true) String id) {
+ RequirementEntity requirementEntity = requirementEntityService.getById(id);
+ if(requirementEntity==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(requirementEntity);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param requirementEntity
+ */
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, RequirementEntity requirementEntity) {
+ return super.exportXls(request, requirementEntity, RequirementEntity.class, "需求实体抽取管理");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, RequirementEntity.class);
+ }
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/entity/RequirementEntity.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/entity/RequirementEntity.java
new file mode 100644
index 0000000..a194949
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/entity/RequirementEntity.java
@@ -0,0 +1,79 @@
+package org.jeecg.modules.demo.requiremententity.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 需求实体抽取管理
+ * @Author: jeecg-boot
+ * @Date: 2023-07-10
+ * @Version: V1.0
+ */
+@Data
+@TableName("requirement_entity")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="requirement_entity对象", description="需求实体抽取管理")
+public class RequirementEntity implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.ASSIGN_ID)
+ @ApiModelProperty(value = "主键")
+ private java.lang.String id;
+ /**创建人*/
+ @ApiModelProperty(value = "创建人")
+ private java.lang.String createBy;
+ /**创建日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "创建日期")
+ private java.util.Date createTime;
+ /**更新人*/
+ @ApiModelProperty(value = "更新人")
+ private java.lang.String updateBy;
+ /**更新日期*/
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @ApiModelProperty(value = "更新日期")
+ private java.util.Date updateTime;
+ /**所属部门*/
+ @ApiModelProperty(value = "所属部门")
+ private java.lang.String sysOrgCode;
+ /**需求id*/
+ @Excel(name = "需求id", width = 15, dictTable = "requirement_item", dicText = "requirement_name", dicCode = "id")
+ @Dict(dictTable = "requirement_item", dicText = "requirement_name", dicCode = "id")
+ @ApiModelProperty(value = "需求id")
+ private java.lang.String requirementId;
+ /**名称*/
+ @Excel(name = "名称", width = 15)
+ @ApiModelProperty(value = "名称")
+ private java.lang.String entityName;
+ /**英文名称*/
+ @Excel(name = "英文名称", width = 15)
+ @ApiModelProperty(value = "英文名称")
+ private java.lang.String entityEnName;
+ /**实体描述*/
+ @Excel(name = "实体描述", width = 15)
+ @ApiModelProperty(value = "实体描述")
+ private java.lang.String entityDescribe;
+ /**实体状态*/
+ @Excel(name = "实体状态", width = 15, dicCode = "entity_status")
+ @Dict(dicCode = "entity_status")
+ @ApiModelProperty(value = "实体状态")
+ private java.lang.Integer entityStatus;
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/RequirementEntityMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/RequirementEntityMapper.java
new file mode 100644
index 0000000..e2fe915
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/RequirementEntityMapper.java
@@ -0,0 +1,17 @@
+package org.jeecg.modules.demo.requiremententity.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.demo.requiremententity.entity.RequirementEntity;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 需求实体抽取管理
+ * @Author: jeecg-boot
+ * @Date: 2023-07-10
+ * @Version: V1.0
+ */
+public interface RequirementEntityMapper extends BaseMapper {
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/xml/RequirementEntityMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/xml/RequirementEntityMapper.xml
new file mode 100644
index 0000000..fa57acf
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/mapper/xml/RequirementEntityMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/IRequirementEntityService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/IRequirementEntityService.java
new file mode 100644
index 0000000..cd54740
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/IRequirementEntityService.java
@@ -0,0 +1,14 @@
+package org.jeecg.modules.demo.requiremententity.service;
+
+import org.jeecg.modules.demo.requiremententity.entity.RequirementEntity;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 需求实体抽取管理
+ * @Author: jeecg-boot
+ * @Date: 2023-07-10
+ * @Version: V1.0
+ */
+public interface IRequirementEntityService extends IService {
+
+}
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/impl/RequirementEntityServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/impl/RequirementEntityServiceImpl.java
new file mode 100644
index 0000000..c3c8506
--- /dev/null
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/requiremententity/service/impl/RequirementEntityServiceImpl.java
@@ -0,0 +1,19 @@
+package org.jeecg.modules.demo.requiremententity.service.impl;
+
+import org.jeecg.modules.demo.requiremententity.entity.RequirementEntity;
+import org.jeecg.modules.demo.requiremententity.mapper.RequirementEntityMapper;
+import org.jeecg.modules.demo.requiremententity.service.IRequirementEntityService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 需求实体抽取管理
+ * @Author: jeecg-boot
+ * @Date: 2023-07-10
+ * @Version: V1.0
+ */
+@Service
+public class RequirementEntityServiceImpl extends ServiceImpl implements IRequirementEntityService {
+
+}
From 15917569cc26a0e9780a59b6e1f08116d1369122 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Tue, 11 Jul 2023 17:44:53 +0800
Subject: [PATCH 08/12] =?UTF-8?q?=E9=9C=80=E6=B1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/requirementitem/modules/RequirementItemForm.vue | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
index 7264ed3..bd8d70d 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
@@ -26,6 +26,13 @@
/>
+
+
+
+
+
+
+
From 89b95608ed8249f867a6e589d97022dfd82603b7 Mon Sep 17 00:00:00 2001
From: Gitea
Date: Tue, 11 Jul 2023 17:54:50 +0800
Subject: [PATCH 09/12] =?UTF-8?q?=E6=8A=BD=E5=8F=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/requiremententity/RequirementEntityList1.vue | 6 +++---
.../src/views/requirementitem/RequirementItemList.vue | 10 +++-------
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue
index 3317328..90d1715 100644
--- a/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue
+++ b/ant-design-vue-jeecg/src/views/requiremententity/RequirementEntityList1.vue
@@ -262,9 +262,9 @@
this.model = Object.assign({}, record);
console.log(this.model)
//console.log(topicid);
- this.queryParam.requirementId = this.model.requirementId;
- this.tableid = this.model.requirementId
- this.tableName=this.model.requirementId_dictText;
+ this.queryParam.requirementId = this.model.id;
+ this.tableid = this.model.id;
+ this.tableName=this.model.requirementName;
//console.log(this.queryParam.topicid);
this.loadData();
},
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
index 9103237..56dbb56 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/RequirementItemList.vue
@@ -315,13 +315,9 @@
});
},
cqdx(record){
- let s = null
- getAction('/requiremententity/requirementEntity/list', { requirementId: record.id }).then((res) => {
- s = res.result.records;
- this.$refs.rel1.showModal();
- this.$refs.rel1.edit(s[0]);
- this.$refs.rel1.disableSubmit = false;
- })
+ this.$refs.rel1.showModal();
+ this.$refs.rel1.edit(record);
+ this.$refs.rel1.disableSubmit = false;
},
wdxq(){
this.searchQuerywdxq();
From 3ab6b01f0015bcd86e4d4494016cc8d789567f53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Tue, 11 Jul 2023 18:09:49 +0800
Subject: [PATCH 10/12] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../requirementitem/modules/RequirementItemForm.vue | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
index bd8d70d..4b38260 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
@@ -21,7 +21,7 @@
org-fields="id,type_name"
dest-fields="typeId,typeName"
code="typename"
- :multi="true"
+ :multi="multi"
@input="popupCallback"
/>
@@ -101,6 +101,7 @@
},
data () {
return {
+ multi: "false",
disablecol:false,
num:0,
model:{
@@ -126,8 +127,11 @@
projectId: [
{ required: true, message: '请输入项目!'},
],
- typeId: [
- { required: true, message: '请输入类型!'},
+ // typeId: [
+ // { required: true, message: '请输入类型!'},
+ // ],
+ typeName: [
+ { required: true, message: '请输入!'},
],
/* upperId: [
{ required: true, message: '请输入上级需求!'},
From 5fc6b94f6bb831a6e23408cc26b896be03a7a38e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Tue, 11 Jul 2023 18:16:23 +0800
Subject: [PATCH 11/12] =?UTF-8?q?=E9=9C=80=E6=B1=82=E6=9B=B4=E6=96=B02?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../requirementitem/modules/RequirementItemForm.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
index 4b38260..c5cf02f 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
@@ -101,10 +101,10 @@
},
data () {
return {
- multi: "false",
- disablecol:false,
- num:0,
- model:{
+ multi: false,
+ disablecol: false,
+ num: 0,
+ model: {
},
labelCol: {
xs: { span: 23 },
@@ -131,7 +131,7 @@
// { required: true, message: '请输入类型!'},
// ],
typeName: [
- { required: true, message: '请输入!'},
+ { required: true, message: '请选择类型!'},
],
/* upperId: [
{ required: true, message: '请输入上级需求!'},
From a7c2c3bc82bed52a63429639c09f12083c00fb0b Mon Sep 17 00:00:00 2001
From: shiji <1913712590@qq.com>
Date: Tue, 11 Jul 2023 19:01:13 +0800
Subject: [PATCH 12/12] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=EF=BC=8C=E5=92=8C=E5=9B=BE=E7=89=87=E4=B8=8D=E8=83=BD=E4=B8=8A?=
=?UTF-8?q?=E4=BC=A0=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ant-design-vue-jeecg/public/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ant-design-vue-jeecg/public/index.html b/ant-design-vue-jeecg/public/index.html
index d99759e..2ffd6a0 100644
--- a/ant-design-vue-jeecg/public/index.html
+++ b/ant-design-vue-jeecg/public/index.html
@@ -268,7 +268,7 @@