Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
7b966d50
Commit
7b966d50
authored
Oct 20, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
b13bef43
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
5 deletions
+24
-5
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+7
-4
DutyPersonServiceImpl.java
...module/common/biz/service/impl/DutyPersonServiceImpl.java
+2
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+3
-1
wl-3.6.0.xml
...ot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
+12
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
7b966d50
...
@@ -71,12 +71,15 @@
...
@@ -71,12 +71,15 @@
<if
test=
"map.bizOrgCode != null and map.bizOrgCode != '-1'"
>
<if
test=
"map.bizOrgCode != null and map.bizOrgCode != '-1'"
>
AND u.biz_org_code like concat(#{map.bizOrgCode}, '%')
AND u.biz_org_code like concat(#{map.bizOrgCode}, '%')
</if>
</if>
<if
test=
"map.amosOrg
Id != null and map.amosOrgId != '-1
'"
>
<if
test=
"map.amosOrg
Code != null and map.amosOrgCode != '
'"
>
AND u.amos_org_
id like concat(#{map.amosOrgId
}, '%')
AND u.amos_org_
code like concat('%', #{map.amosOrgCode
}, '%')
</if>
</if>
<if
test=
"map.company != null and map.company != '-1'"
>
<if
test=
"map.company != null and map.company != '-1'"
>
AND u.parent_id = #{map.company}
AND u.parent_id = #{map.company}
</if>
</if>
<if
test=
"map.positionType != null and map.positionType != ''"
>
AND FIND_IN_SET(#{map.positionType},g.positionType)
</if>
GROUP BY
GROUP BY
u.sequence_nbr ,
u.sequence_nbr ,
u.biz_org_name ,
u.biz_org_name ,
...
@@ -145,14 +148,14 @@
...
@@ -145,14 +148,14 @@
<if
test=
"map.bizOrgCode != null and map.bizOrgCode != '-1'"
>
<if
test=
"map.bizOrgCode != null and map.bizOrgCode != '-1'"
>
AND u.biz_org_code like concat(#{map.bizOrgCode}, '%')
AND u.biz_org_code like concat(#{map.bizOrgCode}, '%')
</if>
</if>
<if
test=
"map.amosOrgCode != null and map.amosOrgCode != '
-1
'"
>
<if
test=
"map.amosOrgCode != null and map.amosOrgCode != ''"
>
AND u.amos_org_code like concat('%',#{map.amosOrgCode}, '%')
AND u.amos_org_code like concat('%',#{map.amosOrgCode}, '%')
</if>
</if>
<if
test=
"map.company != null and map.company != '-1'"
>
<if
test=
"map.company != null and map.company != '-1'"
>
AND u.parent_id = #{map.company}
AND u.parent_id = #{map.company}
</if>
</if>
<if
test=
"map.positionType != null and map.positionType != ''"
>
<if
test=
"map.positionType != null and map.positionType != ''"
>
AND AND FIND_IN_SET(#{
positionType},g.positionType)
AND FIND_IN_SET(#{map.
positionType},g.positionType)
</if>
</if>
GROUP BY
GROUP BY
u.sequence_nbr ,
u.sequence_nbr ,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyPersonServiceImpl.java
View file @
7b966d50
...
@@ -10,6 +10,7 @@ import java.util.Map;
...
@@ -10,6 +10,7 @@ import java.util.Map;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyPersonShiftDto
;
import
com.yeejoin.amos.boot.module.common.api.mapper.DutyPersonShiftMapper
;
import
com.yeejoin.amos.boot.module.common.api.mapper.DutyPersonShiftMapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -17,6 +18,7 @@ import org.springframework.stereotype.Service;
...
@@ -17,6 +18,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
7b966d50
...
@@ -596,6 +596,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -596,6 +596,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
String
positionType
=
""
;
String
positionType
=
""
;
if
(
req
.
containsKey
(
"positionType"
))
{
if
(
req
.
containsKey
(
"positionType"
))
{
positionType
=
req
.
get
(
"positionType"
).
toString
();
positionType
=
req
.
get
(
"positionType"
).
toString
();
map
.
put
(
"positionType"
,
positionType
);
}
}
req
.
remove
(
"pageSize"
);
req
.
remove
(
"pageSize"
);
...
@@ -604,6 +605,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -604,6 +605,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
req
.
remove
(
"amosOrgId"
);
req
.
remove
(
"amosOrgId"
);
req
.
remove
(
"company"
);
req
.
remove
(
"company"
);
req
.
remove
(
"positionType"
);
req
.
remove
(
"positionType"
);
req
.
remove
(
"bizOrgName"
);
map
.
put
(
"fieldsValue"
,
req
);
map
.
put
(
"fieldsValue"
,
req
);
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
OrgPersonEnum
.
人员
.
getCode
()));
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
OrgPersonEnum
.
人员
.
getCode
()));
pageBean
.
setTotal
(
this
.
baseMapper
.
selectPersonListCount
(
map
));
pageBean
.
setTotal
(
this
.
baseMapper
.
selectPersonListCount
(
map
));
...
@@ -651,7 +653,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -651,7 +653,7 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
if
(!
positionType
.
equals
(
""
))
{
if
(!
positionType
.
equals
(
""
))
{
String
positionTypeFine
=
positionType
;
String
positionTypeFine
=
positionType
;
list
=
list
.
stream
().
filter
(
e
->
String
.
valueOf
(
e
.
get
(
"positionType"
)).
equal
s
(
positionTypeFine
)).
collect
(
Collectors
.
toList
());
list
=
list
.
stream
().
filter
(
e
->
!
ObjectUtils
.
isEmpty
(
e
.
get
(
"positionType"
))
&&
String
.
valueOf
(
e
.
get
(
"positionType"
)).
contain
s
(
positionTypeFine
)).
collect
(
Collectors
.
toList
());
}
}
/* Bug2652 根据名字和工号模糊查询失效 已添加模糊匹配 2021-09-01 陈召 结束 */
/* Bug2652 根据名字和工号模糊查询失效 已添加模糊匹配 2021-09-01 陈召 结束 */
pageBean
.
setRecords
(
list
);
pageBean
.
setRecords
(
list
);
...
...
amos-boot-system-equip/src/main/resources/changelog/wl-3.6.0.xml
View file @
7b966d50
...
@@ -262,4 +262,15 @@
...
@@ -262,4 +262,15 @@
MODIFY COLUMN `level_device_name` varchar(1500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '水池液位显示装置名称';
MODIFY COLUMN `level_device_name` varchar(1500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '水池液位显示装置名称';
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"keyong"
id=
"202210131721-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<tableExists
tableName=
"wl_form_group"
/>
</preConditions>
<comment>
添加特殊设备字段
</comment>
<sql>
REPLACE INTO `wl_form_group`(`id`, `group_name`, `group_code`, `group_type`, `allow_operation`, `creator_id`, `create_date`) VALUES (132828674825, 'CAFS泡沫罐', '92031900', 'equip', 'edit,delete', 2581805, '2022-10-09 03:36:43');
REPLACE INTO `wl_form_group`(`id`, `group_name`, `group_code`, `group_type`, `allow_operation`, `creator_id`, `create_date`) VALUES (132828674826, '管网压力探测器', '92011000', 'equip', 'edit,delete', 2581805, '2022-10-09 03:36:44');
REPLACE INTO `wl_form_group`(`id`, `group_name`, `group_code`, `group_type`, `allow_operation`, `creator_id`, `create_date`) VALUES (132828674827, '消防水池装置', '92010700', 'equip', 'edit,delete', 2581805, '2022-10-09 03:36:44');
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment