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
19d9cbcc
Commit
19d9cbcc
authored
Sep 01, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API
parent
0b199000
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
7 deletions
+23
-7
PersonBasicMapper.xml
...jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
+2
-1
PersonQrCodeController.java
...t/module/jxiop/biz/controller/PersonQrCodeController.java
+3
-3
SjglZsjZsbtzMapper.xml
.../src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
+18
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/PersonBasicMapper.xml
View file @
19d9cbcc
...
@@ -281,7 +281,8 @@
...
@@ -281,7 +281,8 @@
IFNULL(a.post_name, '') as postName,
IFNULL(a.post_name, '') as postName,
IFNULL(b.project_name, '') as stationName,
IFNULL(b.project_name, '') as stationName,
'' as unitName,
'' as unitName,
IFNULL(a.qrcode_color, 'green') as qrCodeColor
IFNULL(a.qrcode_color, 'green') as qrCodeColor,
IFNULL(a.rec_date, '') AS date
FROM
FROM
person_basic a
person_basic a
LEFT JOIN person_account b ON a.sequence_nbr = b.person_id
LEFT JOIN person_account b ON a.sequence_nbr = b.person_id
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/PersonQrCodeController.java
View file @
19d9cbcc
...
@@ -317,15 +317,15 @@ public class PersonQrCodeController extends BaseController {
...
@@ -317,15 +317,15 @@ public class PersonQrCodeController extends BaseController {
@GetMapping
(
value
=
"/getDetailInfoByObjectId"
)
@GetMapping
(
value
=
"/getDetailInfoByObjectId"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 三级弹窗左侧信息API"
,
notes
=
"评估大屏 - 三级弹窗左侧信息API"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"评估大屏 - 三级弹窗左侧信息API"
,
notes
=
"评估大屏 - 三级弹窗左侧信息API"
)
public
ResponseModel
<
Map
<
String
,
Object
>>
getDetailInfoByObjectId
(
@RequestParam
(
value
=
"objectId"
)
String
objectId
,
public
ResponseModel
<
Map
<
String
,
Object
>>
getDetailInfoByObjectId
(
@RequestParam
(
value
=
"objectId"
)
String
objectId
,
@RequestParam
(
value
=
"column"
)
String
column
)
{
@RequestParam
(
value
=
"column"
)
String
column
,
@RequestParam
(
value
=
"jobId"
)
String
jobId
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
if
(
"V1"
.
equals
(
column
))
{
if
(
"V1"
.
equals
(
column
))
{
resultMap
=
personBasicServiceImpl
.
getPersonDetailInfoByObjectId
(
objectId
);
resultMap
=
personBasicServiceImpl
.
getPersonDetailInfoByObjectId
(
objectId
);
}
else
if
(
"S1"
.
equals
(
column
))
{
}
else
if
(
"S1"
.
equals
(
column
))
{
resultMap
=
sjglZsjZsbtzMapper
.
getEquipDetailInfoByObjectId
(
objectId
);
resultMap
=
sjglZsjZsbtzMapper
.
getEquipDetailInfoByObjectId
(
objectId
);
}
else
if
(
"P1"
.
equals
(
column
))
{
}
else
if
(
"P1"
.
equals
(
column
))
{
// TODO: 2023/9/1 任务sql未处理
resultMap
=
sjglZsjZsbtzMapper
.
getJobDetailInfoByObjectId
(
jobId
);
resultMap
=
sjglZsjZsbtzMapper
.
getJobDetailInfoByObjectId
(
objectId
);
}
}
return
ResponseHelper
.
buildResponse
(
resultMap
);
return
ResponseHelper
.
buildResponse
(
resultMap
);
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/resources/mapper/cluster/SjglZsjZsbtzMapper.xml
View file @
19d9cbcc
...
@@ -153,10 +153,12 @@
...
@@ -153,10 +153,12 @@
ifnull(a.qrcode_color, '') AS qrCodeColor,
ifnull(a.qrcode_color, '') AS qrCodeColor,
ifnull(b.COMPANY_NAME, '') AS stationName,
ifnull(b.COMPANY_NAME, '') AS stationName,
ifnull(a.CREATE_TIME, '') as recDate,
ifnull(a.CREATE_TIME, '') as recDate,
GLDJBH AS objectId
a.DBID AS jobId,
c.SBBM as objectId
FROM
FROM
fdgl_job_main a
fdgl_job_main a
LEFT JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE
LEFT JOIN privilege_company b ON a.WERKS = b.COMPANY_CODE
left join sjgl_zsj_zsbtz c on a.EQUIP_DBID = c.DBID
<where>
<where>
<if
test=
"parentCode != null and parentCode != ''"
>
<if
test=
"parentCode != null and parentCode != ''"
>
AND b.ORG_CODE like concat(#{parentCode},'%')
AND b.ORG_CODE like concat(#{parentCode},'%')
...
@@ -204,7 +206,8 @@
...
@@ -204,7 +206,8 @@
IFNULL(GGXH, '') as typeCode,
IFNULL(GGXH, '') as typeCode,
IFNULL(SCCJ, '') as source,
IFNULL(SCCJ, '') as source,
'' as stationName,
'' as stationName,
IFNULL(QRCODE_COLOR, 'green') as qrCodeColor
IFNULL(QRCODE_COLOR, 'green') as qrCodeColor,
IFNULL(UPDATE_TIME, '') AS recDate
FROM
FROM
sjgl_zsj_zsbtz
sjgl_zsj_zsbtz
where SBBM = #{objectId}
where SBBM = #{objectId}
...
@@ -212,6 +215,18 @@
...
@@ -212,6 +215,18 @@
</select>
</select>
<select
id=
"getJobDetailInfoByObjectId"
resultType=
"java.util.Map"
>
<select
id=
"getJobDetailInfoByObjectId"
resultType=
"java.util.Map"
>
SELECT
IFNULL(`JOB_DESCRIPTION`, '') as `name`,
case
when QRCODE_COLOR = 'red' then '重大'
when QRCODE_COLOR = 'yellow' then '超时'
else '正常' end as `status`,
IFNULL(QRCODE_COLOR, 'green') as qrCodeColor,
ZFZR as person,
'' as phone,
IFNULL(CREATE_TIME, '') as `recDate`
FROM
fdgl_job_main
where DBID = #{objectId}
</select>
</select>
</mapper>
</mapper>
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