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
31967a74
Commit
31967a74
authored
Nov 09, 2023
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jcs): 驻站消防员接口bizOrgCode取值错误
parent
d03c7438
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
51 deletions
+51
-51
SignMapper.xml
...t-module-jcs-api/src/main/resources/mapper/SignMapper.xml
+50
-50
SignController.java
...n/amos/boot/module/jcs/biz/controller/SignController.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/resources/mapper/SignMapper.xml
View file @
31967a74
...
...
@@ -77,56 +77,56 @@
</select>
<select
id=
"queryPeopleInfo"
resultType=
"Map"
>
SELECT
s1.date,
IFNULL( s2.signNum, 0 ) AS signNum
FROM
(
SELECT
@s := @s + 1 AS `index`,
DATE_FORMAT( DATE_ADD(( DATE( DATE_ADD( now(), INTERVAL - 5 DAY ))), INTERVAL @s DAY ), '%Y-%m-%d' ) AS date
FROM
mysql.help_topic,
( SELECT @s := - 2 ) temp
WHERE
@s
<
5
) s1
LEFT JOIN (
SELECT
count(s0.userId) AS signNum,
s0.*
FROM
(
SELECT
s.*
FROM
(
SELECT DISTINCT
sign.user_id userId,
date,
biz_org_Name bizOrgName,
biz_org_code bizOrgCode,
person_of_day personOfDay
FROM
cb_sign sign
<where>
<if
test=
"dto.dateLESS!=null and dto.dateLESS!=''"
>
and #{dto.dateLESS} >= sign.sign_time
</if>
<if
test=
"dto.bizOrgCode!=null and dto.bizOrgCode!=''"
>
and sign.biz_org_code like CONCAT(#{dto.bizOrgCode},'%')
</if>
</where>
ORDER BY
sign.sign_time DESC
) s
) s0
GROUP BY s0.date
) s2 ON s2.date = s1.date
GROUP BY
s1.date
ORDER BY
s1.date
SELECT
s1.date,
IFNULL( s2.signNum, 0 ) AS signNum
FROM
(
SELECT
@s := @s + 1 AS `index`,
DATE_FORMAT( DATE_ADD(( DATE( DATE_ADD( now(), INTERVAL - 5 DAY ))), INTERVAL @s DAY ), '%Y-%m-%d' ) AS date
FROM
mysql.help_topic,
( SELECT @s := - 2 ) temp
WHERE
@s
<
5
) s1
LEFT JOIN (
SELECT
count(s0.userId) AS signNum,
s0.*
FROM
(
SELECT
s.*
FROM
(
SELECT DISTINCT
sign.user_id userId,
date,
biz_org_Name bizOrgName,
biz_org_code bizOrgCode,
person_of_day personOfDay
FROM
cb_sign sign
<where>
<if
test=
"dto.dateLESS!=null and dto.dateLESS!=''"
>
and #{dto.dateLESS} >= sign.sign_time
</if>
<if
test=
"dto.bizOrgCode!=null and dto.bizOrgCode!=''"
>
and sign.biz_org_code like CONCAT(#{dto.bizOrgCode},'%')
</if>
</where>
ORDER BY
sign.sign_time DESC
) s
) s0
GROUP BY s0.date
) s2 ON s2.date = s1.date
GROUP BY
s1.date
ORDER BY
s1.date
</select>
<select
id=
"queryPersonNum"
resultType=
"java.lang.Integer"
>
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/SignController.java
View file @
31967a74
...
...
@@ -196,7 +196,7 @@ public class SignController extends BaseController {
ReginParams
reginParam
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
bizOrgCode
=
null
;
if
(
null
!=
reginParam
)
{
bizOrgCode
=
reginParam
.
getPersonIdentity
().
getBizOrgCode
();
bizOrgCode
=
reginParam
.
getPersonIdentity
().
get
Company
BizOrgCode
();
}
dto
.
setBizOrgCode
(
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
res
=
signServiceImpl
.
queryPeopleInfo
(
dto
);
...
...
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