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
fb4a376a
Commit
fb4a376a
authored
May 30, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.转办bug修改
parent
dbd45d81
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
5 deletions
+57
-5
JyjcBaseMapper.java
...join/amos/boot/module/jyjc/api/mapper/JyjcBaseMapper.java
+3
-0
JyjcBaseMapper.xml
...ule-jyjc-api/src/main/resources/mapper/JyjcBaseMapper.xml
+31
-0
CommonController.java
...mos/boot/module/jyjc/biz/controller/CommonController.java
+9
-0
InspectionExpireRemindJob.java
...s/boot/module/jyjc/biz/job/InspectionExpireRemindJob.java
+0
-5
CommonServiceImpl.java
.../boot/module/jyjc/biz/service/impl/CommonServiceImpl.java
+14
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/java/com/yeejoin/amos/boot/module/jyjc/api/mapper/JyjcBaseMapper.java
View file @
fb4a376a
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jyjc.api.mapper;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.jyjc.api.mapper;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseUnitLicenceDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.MapKey
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
...
@@ -37,4 +38,6 @@ public interface JyjcBaseMapper {
...
@@ -37,4 +38,6 @@ public interface JyjcBaseMapper {
* @return List<TzsUserInfoDto>
* @return List<TzsUserInfoDto>
*/
*/
List
<
TzsUserInfoDto
>
selectUserByCompanyCodes
(
@Param
(
"companyCodes"
)
List
<
String
>
companyCodes
);
List
<
TzsUserInfoDto
>
selectUserByCompanyCodes
(
@Param
(
"companyCodes"
)
List
<
String
>
companyCodes
);
CompanyModel
selectOneCompanyByCode
(
String
companyCode
);
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-api/src/main/resources/mapper/JyjcBaseMapper.xml
View file @
fb4a376a
...
@@ -68,6 +68,37 @@
...
@@ -68,6 +68,37 @@
</foreach>
</foreach>
GROUP BY c.company_code
GROUP BY c.company_code
</select>
</select>
<select
id=
"selectUserByCompanyCodeAndRole"
resultType=
"com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto"
>
select
a.user_id as amos_user_id,
b.real_name as name
from
(SELECT
DISTINCT u.user_id
FROM
"privilege_user_org_role" u,
"privilege_company" c
WHERE
u.company_seq = c.sequence_nbr
and c.company_code =#{companyCode}
and u.role_seq in
<foreach
collection=
"roleSeqs"
item=
"roleSeq"
open=
"("
close=
")"
separator=
","
>
#{roleSeq}
</foreach>
) as a,
privilege_agency_user b
where
a.user_id = b.user_id
</select>
<select
id=
"selectOneCompanyByCode"
resultType=
"com.yeejoin.amos.feign.privilege.model.CompanyModel"
>
SELECT
c.*
FROM
"privilege_company" c
WHERE
c.company_code =#{companyCode}
</select>
</mapper>
</mapper>
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/CommonController.java
View file @
fb4a376a
...
@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.module.jyjc.biz.service.impl.CommonServiceImpl;
...
@@ -9,6 +9,7 @@ import com.yeejoin.amos.boot.module.jyjc.biz.service.impl.CommonServiceImpl;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -180,4 +181,12 @@ public class CommonController extends BaseController {
...
@@ -180,4 +181,12 @@ public class CommonController extends BaseController {
regularlyRemindJob
.
sendReminderMessage
();
regularlyRemindJob
.
sendReminderMessage
();
return
ResponseHelper
.
buildResponse
(
"succese"
);
return
ResponseHelper
.
buildResponse
(
"succese"
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"amos/{unitCode}/users"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询指定公司、指定人员类型的人员列表"
,
notes
=
"查询指定公司、指定人员类型的人员列表"
)
public
ResponseModel
<
List
<
AgencyUserModel
>>
getAmosUseListByCompanyCode
(
@ApiParam
(
value
=
"公司编码"
)
@PathVariable
String
unitCode
)
{
return
ResponseHelper
.
buildResponse
(
commonserviceImpl
.
getAmosUseListByCompanyCode
(
unitCode
));
}
}
}
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/job/InspectionExpireRemindJob.java
View file @
fb4a376a
...
@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.jyjc.api.model.NeedTipEquipInfo;
...
@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.jyjc.api.model.NeedTipEquipInfo;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzsUserInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.UseInfoModel
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.UseInfoModel
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquimentEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzsUserInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.UseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.UseInfoMapper
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
com.yeejoin.amos.component.robot.AmosRequestContext
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
...
@@ -50,18 +49,14 @@ public class InspectionExpireRemindJob {
...
@@ -50,18 +49,14 @@ public class InspectionExpireRemindJob {
private
UseInfoMapper
useInfoMapper
;
private
UseInfoMapper
useInfoMapper
;
private
TzsUserInfoMapper
tzsUserInfoMapper
;
private
AmosRequestContext
amosRequestContext
;
private
AmosRequestContext
amosRequestContext
;
private
JyjcBaseMapper
jyjcBaseMapper
;
private
JyjcBaseMapper
jyjcBaseMapper
;
public
InspectionExpireRemindJob
(
UseInfoMapper
useInfoMapper
,
public
InspectionExpireRemindJob
(
UseInfoMapper
useInfoMapper
,
TzsUserInfoMapper
tzsUserInfoMapper
,
AmosRequestContext
amosRequestContext
,
AmosRequestContext
amosRequestContext
,
JyjcBaseMapper
jyjcBaseMapper
)
{
JyjcBaseMapper
jyjcBaseMapper
)
{
this
.
useInfoMapper
=
useInfoMapper
;
this
.
useInfoMapper
=
useInfoMapper
;
this
.
tzsUserInfoMapper
=
tzsUserInfoMapper
;
this
.
amosRequestContext
=
amosRequestContext
;
this
.
amosRequestContext
=
amosRequestContext
;
this
.
jyjcBaseMapper
=
jyjcBaseMapper
;
this
.
jyjcBaseMapper
=
jyjcBaseMapper
;
}
}
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/CommonServiceImpl.java
View file @
fb4a376a
...
@@ -9,12 +9,17 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
...
@@ -9,12 +9,17 @@ import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.OpenBizTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.enums.OpenBizTypeEnum
;
import
com.yeejoin.amos.boot.module.jyjc.api.mapper.JyjcBaseMapper
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.InstanceRuntimeData
;
import
com.yeejoin.amos.boot.module.jyjc.api.model.InstanceRuntimeData
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.dto.TzBaseEnterpriseInfoDto
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzBaseEnterpriseInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzsUserInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.TzsUserInfoMapper
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
org.redisson.api.RBucket
;
import
org.redisson.api.RBucket
;
import
org.redisson.api.RedissonClient
;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -54,6 +59,9 @@ public class CommonServiceImpl {
...
@@ -54,6 +59,9 @@ public class CommonServiceImpl {
@Autowired
@Autowired
RedissonClient
redissonClient
;
RedissonClient
redissonClient
;
@Autowired
JyjcBaseMapper
jyjcBaseMapper
;
/**
/**
* @return ReginParams
* @return ReginParams
...
@@ -185,4 +193,10 @@ public class CommonServiceImpl {
...
@@ -185,4 +193,10 @@ public class CommonServiceImpl {
throw
new
BadRequest
(
"无权限执行该任务"
);
throw
new
BadRequest
(
"无权限执行该任务"
);
}
}
}
}
public
List
<
AgencyUserModel
>
getAmosUseListByCompanyCode
(
String
unitCode
)
{
CompanyModel
companyModel
=
jyjcBaseMapper
.
selectOneCompanyByCode
(
unitCode
);
FeignClientResult
<
List
<
AgencyUserModel
>>
result
=
Privilege
.
agencyUserClient
.
queryByCompanyId
(
companyModel
.
getSequenceNbr
(),
null
,
null
,
false
);
return
result
.
getResult
();
}
}
}
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