Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
57d0017b
Commit
57d0017b
authored
Jun 25, 2021
by
gaodongdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
873d1af5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
OrgUsrMapper.xml
...module-jcs-api/src/main/resources/mapper/OrgUsrMapper.xml
+13
-7
OrgPersonController.java
...s/boot/module/jcs/biz/controller/OrgPersonController.java
+1
-0
OrgUsrServiceImpl.java
...s/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
+4
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
57d0017b
...
@@ -17,20 +17,26 @@
...
@@ -17,20 +17,26 @@
<select
id=
"selectPersonList"
resultType=
"Map"
>
<select
id=
"selectPersonList"
resultType=
"Map"
>
SELECT
select * from (
SELECT
DISTINCT
DISTINCT
u.
sequence_nbr sequenceNbr,
u.sequence_nbr sequenceNbr,
u.biz_org_name bizOrgName,
u.biz_org_name bizOrgName,
u.biz_org_code bizOrgCode,
u.biz_org_code bizOrgCode,
<if
test=
"fields != null"
>
<if
test=
"fields != null"
>
<foreach
collection=
"fields"
item=
"item"
separator=
","
>
MAX(case
v
.field_code when #{item} then v.field_value end) ${item}
</foreach>
<foreach
collection=
"fields"
item=
"item"
separator=
","
>
MAX(case
f
.field_code when #{item} then v.field_value end) ${item}
</foreach>
</if>
</if>
FROM
FROM
cb_org_usr u
,
cb_org_usr u
LEFT JOIN
jc_alert_form_value v
jc_alert_form_value v
on u.sequence_nbr = v.alert_called_id
LEFT JOIN jc_alert_form f ON f.sequence_nbr = v.alert_form_id
LEFT JOIN jc_alert_form f ON f.sequence_nbr = v.alert_form_id
where u.sequence_nbr = v.alert_called_id
where u.parent_id = #{parentId}
and v.alert_type_code = #{alertTypeCode}
AND u.biz_org_type = #{bizOrgType}
GROUP BY
u.sequence_nbr ,
u.biz_org_name ,
u.biz_org_code
)a where a.sequenceNbr is not null
LIMIT #{pageNum}, #{pageSize}
LIMIT #{pageNum}, #{pageSize}
</select>
</select>
</mapper>
</mapper>
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/OrgPersonController.java
View file @
57d0017b
...
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.PathVariable;
...
@@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.PathVariable;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/OrgUsrServiceImpl.java
View file @
57d0017b
...
@@ -290,8 +290,10 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
...
@@ -290,8 +290,10 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto,OrgUsr,OrgUsrMappe
map
.
put
(
"pageNum"
,
(
pageBean
.
getCurrent
()
-
1
)
*
pageBean
.
getSize
());
map
.
put
(
"pageNum"
,
(
pageBean
.
getCurrent
()
-
1
)
*
pageBean
.
getSize
());
map
.
put
(
"pageSize"
,
pageBean
.
getSize
());
map
.
put
(
"pageSize"
,
pageBean
.
getSize
());
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
"246"
));
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
"246"
));
map
.
put
(
"alertTypeCode"
,
"246"
);
map
.
put
(
"bizOrgType"
,
"PERSON"
);
pageBean
.
setRecords
(
this
.
baseMapper
.
selectPersonList
(
map
));
List
<
Map
<
String
,
Object
>>
list
=
this
.
baseMapper
.
selectPersonList
(
map
);
pageBean
.
setRecords
(
list
);
return
pageBean
;
return
pageBean
;
}
}
...
...
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