Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_platformV2
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_platformV2
Commits
0b73f4a8
Commit
0b73f4a8
authored
Aug 25, 2023
by
赵剑炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整组织机构懒加载接口
parent
554e3c1c
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
121 行增加
和
12 行删除
+121
-12
EquipmentSizeDto.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/EquipmentSizeDto.java
+1
-6
OrgDto.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/OrgDto.java
+1
-0
QueryOrgReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/QueryOrgReq.java
+1
-0
UpdateOrgReq.java
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/req/UpdateOrgReq.java
+1
-1
PubOrgService.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/PubOrgService.java
+0
-2
PubOrgServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PubOrgServiceImpl.java
+13
-2
EquipmentSizeMapper.xml
jyzb-biz/src/main/resources/mapper/EquipmentSizeMapper.xml
+2
-1
application-local.yml.orig
jyzb-boot/src/main/resources/application-local.yml.orig
+102
-0
没有找到文件。
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/EquipmentSizeDto.java
View file @
0b73f4a8
...
@@ -53,12 +53,7 @@ public class EquipmentSizeDto {
...
@@ -53,12 +53,7 @@ public class EquipmentSizeDto {
/**
/**
* 类别汇总名称
* 类别汇总名称
*/
*/
private
String
typeAllName
;
private
String
combinedTypes
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
/**
* 更新时间
* 更新时间
*/
*/
...
...
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/dto/OrgDto.java
View file @
0b73f4a8
...
@@ -12,5 +12,6 @@ public class OrgDto {
...
@@ -12,5 +12,6 @@ public class OrgDto {
private
String
areaName
;
private
String
areaName
;
private
String
levelFlag
;
private
String
levelFlag
;
private
String
dName
;
private
String
dName
;
private
Boolean
isLeaf
;
}
}
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/query/QueryOrgReq.java
View file @
0b73f4a8
...
@@ -12,6 +12,7 @@ public class QueryOrgReq {
...
@@ -12,6 +12,7 @@ public class QueryOrgReq {
private
String
parentId
;
private
String
parentId
;
private
Integer
isDepartment
;
private
Integer
isDepartment
;
private
Integer
level
;
private
Integer
level
;
private
Integer
delFlag
;
}
}
jyzb-api/src/main/java/com/junmp/jyzb/api/bean/req/UpdateOrgReq.java
View file @
0b73f4a8
...
@@ -14,7 +14,7 @@ public class UpdateOrgReq {
...
@@ -14,7 +14,7 @@ public class UpdateOrgReq {
* 状态
* 状态
*/
*/
@NotNull
(
message
=
"状态不能为空"
,
groups
=
{
ValidationApi
.
updateStatus
.
class
})
@NotNull
(
message
=
"状态不能为空"
,
groups
=
{
ValidationApi
.
updateStatus
.
class
})
private
Integer
status
Flag
;
private
Integer
del
Flag
;
/**
/**
* 组织机构列表
* 组织机构列表
*/
*/
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/PubOrgService.java
View file @
0b73f4a8
...
@@ -27,6 +27,4 @@ public interface PubOrgService extends IService<PubOrg> {
...
@@ -27,6 +27,4 @@ public interface PubOrgService extends IService<PubOrg> {
//根据组织机构id查询出组织机构是否存在
//根据组织机构id查询出组织机构是否存在
PubOrg
PubOrgExist
(
Long
id
);
PubOrg
PubOrgExist
(
Long
id
);
}
}
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/PubOrgServiceImpl.java
View file @
0b73f4a8
...
@@ -234,7 +234,7 @@ public class PubOrgServiceImpl extends ServiceImpl<PubOrgMapper, PubOrg> implem
...
@@ -234,7 +234,7 @@ public class PubOrgServiceImpl extends ServiceImpl<PubOrgMapper, PubOrg> implem
List
<
PubOrg
>
st
=
list
(
wp
);
List
<
PubOrg
>
st
=
list
(
wp
);
st
.
forEach
(
p
->
st
.
forEach
(
p
->
{
{
p
.
set
StatusFlag
(
req
.
getStatus
Flag
());
p
.
set
DelFlag
(
req
.
getDel
Flag
());
});
});
return
this
.
updateBatchById
(
st
);
return
this
.
updateBatchById
(
st
);
...
@@ -329,12 +329,22 @@ public class PubOrgServiceImpl extends ServiceImpl<PubOrgMapper, PubOrg> implem
...
@@ -329,12 +329,22 @@ public class PubOrgServiceImpl extends ServiceImpl<PubOrgMapper, PubOrg> implem
list
.
forEach
(
p
->{
list
.
forEach
(
p
->{
OrgDto
org
=
new
OrgDto
();
OrgDto
org
=
new
OrgDto
();
BeanPlusUtil
.
copyProperties
(
p
,
org
);
BeanPlusUtil
.
copyProperties
(
p
,
org
);
// 判断是否有子节点
boolean
hasChildren
=
hasChildren
(
req
.
getDelFlag
(),
p
.
getOrgId
());
org
.
setIsLeaf
(!
hasChildren
);
orgs
.
add
(
org
);
orgs
.
add
(
org
);
});
});
return
orgs
;
return
orgs
;
}
}
// 判断是否有子节点的方法
private
boolean
hasChildren
(
Integer
Del
,
Long
parentId
)
{
LambdaQueryWrapper
<
PubOrg
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
PubOrg:
:
getOrgParentId
,
parentId
);
wrapper
.
eq
(
ObjectUtil
.
isNotNull
(
Del
),
PubOrg:
:
getDelFlag
,
Del
);
Long
count
=
this
.
count
(
wrapper
);
return
count
>
0
;
}
public
List
<
OrgDto
>
getOrgList
(
QueryOrgReq
req
)
{
public
List
<
OrgDto
>
getOrgList
(
QueryOrgReq
req
)
{
LambdaQueryWrapper
<
PubOrg
>
wp
=
this
.
createWrapper
(
req
);
LambdaQueryWrapper
<
PubOrg
>
wp
=
this
.
createWrapper
(
req
);
List
<
PubOrg
>
list
=
this
.
list
(
wp
);
List
<
PubOrg
>
list
=
this
.
list
(
wp
);
...
@@ -356,6 +366,7 @@ public class PubOrgServiceImpl extends ServiceImpl<PubOrgMapper, PubOrg> implem
...
@@ -356,6 +366,7 @@ public class PubOrgServiceImpl extends ServiceImpl<PubOrgMapper, PubOrg> implem
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getIsDepartment
()),
PubOrg:
:
getIsDepartment
,
req
.
getIsDepartment
());
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getIsDepartment
()),
PubOrg:
:
getIsDepartment
,
req
.
getIsDepartment
());
//根据业务编码查询
//根据业务编码查询
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getLevel
()),
PubOrg:
:
getLevelFlag
,
req
.
getLevel
());
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getLevel
()),
PubOrg:
:
getLevelFlag
,
req
.
getLevel
());
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getDelFlag
()),
PubOrg:
:
getDelFlag
,
req
.
getDelFlag
());
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getParentId
()),
PubOrg:
:
getOrgParentId
,
req
.
getParentId
()
);
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getParentId
()),
PubOrg:
:
getOrgParentId
,
req
.
getParentId
()
);
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgCode
()),
PubOrg:
:
getOrgCode
,
req
.
getOrgCode
());
wrapper
.
eq
(
ObjectUtil
.
isNotEmpty
(
req
.
getOrgCode
()),
PubOrg:
:
getOrgCode
,
req
.
getOrgCode
());
...
...
jyzb-biz/src/main/resources/mapper/EquipmentSizeMapper.xml
View file @
0b73f4a8
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
t1.code AS code,
t1.code AS code,
t3.name AS type3Name,
t3.name AS type3Name,
t4.name AS type2name,
t4.name AS type2name,
t5.name AS type1Name
t5.name AS type1Name,
CONCAT_WS(' / ', t5.name, t4.name, t3.name) AS combinedTypes
FROM
FROM
`base_equipment_size` t1
`base_equipment_size` t1
LEFT JOIN `base_equipment_type` t2 ON t1.type_id = t2.id
LEFT JOIN `base_equipment_type` t2 ON t1.type_id = t2.id
...
...
jyzb-boot/src/main/resources/application-local.yml.orig
0 → 100644
View file @
0b73f4a8
scanner:
open: false
# 配置第三方请求
junmp:
swagger:
base-package: com.junmp
id:
worker-id: 1
data-center-id: 1
epoch: 1656036996843
max: 9999
log:
type: db
ds: true #是否多数据源
knife4j:
enable: true
setting:
enableDebug: false
# basic:
# enable: true
# username: ning
# password: ning
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
<<<<<<< HEAD
url: jdbc:mysql://192.168.3.128:3306/db_jyzb?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
=======
url: jdbc:mysql://192.168.3.128/db_jyzb?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT&nullCatalogMeansCurrent=true
>>>>>>> ce2cec735d8197f0f6b77fb7df738d825354bd3c
username: junmp
password: 123456
redis:
#host: 192.168.3.188
host: 192.168.3.188
port: 6379
database: 1
password:
flowable:
dmn:
enabled: false
cmmn:
enabled: false
idm:
enabled: false
async-history-executor-activate: false
async-executor-activate: false
check-process-definitions: false
content:
enabled: false
app:
enabled: false
eventregistry:
enabled: false
#mybatis plus 设置
mybatis-plus:
configuration:
cache-enabled: true
lazy-loading-enabled: true
multiple-result-sets-enabled: true
map-underscore-to-camel-case: true #开启驼峰命名
global-config:
banner: false
enable-sql-runner: true
db-config:
id-type: assign_id
table-underline: true
# mapper-locations: classpath*:com/junmp/junmpProcess/mapper/**/xml/*Mapper.xml
mapper-locations: classpath*:/mapper/**/*Mapper.xml
flowable:
dmn:
enabled: false
cmmn:
enabled: false
idm:
enabled: false
async-history-executor-activate: false
async-executor-activate: false
check-process-definitions: false
content:
enabled: false
app:
enabled: false
eventregistry:
enabled: false
com:
mqtt:
url: tcp://broker.emqx.io:1883 #这里要写 tcp:// 不能是 mqtt,不然不是合法的 schema,源码中有
clientId: mqtt_test_spring
topics: iot/#,home/#
username: admin
password: public
timeout: 10
keepalive: 20
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论