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
31485013
Commit
31485013
authored
Aug 22, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加公司过滤
parent
aa0d0e53
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
EquipmentManageController.java
...oin/equipmanage/controller/EquipmentManageController.java
+21
-2
EquipmentManageService.java
...m/yeejoin/equipmanage/service/EquipmentManageService.java
+1
-1
EquipmentManageServiceImpl.java
.../equipmanage/service/impl/EquipmentManageServiceImpl.java
+2
-1
EquipmentManageMapper.xml
...equip/src/main/resources/mapper/EquipmentManageMapper.xml
+3
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentManageController.java
View file @
31485013
...
...
@@ -5,6 +5,8 @@ import java.util.Map;
import
javax.servlet.http.HttpServletResponse
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.equipmanage.fegin.JcsFeign
;
import
com.yeejoin.equipmanage.mapper.EquipmentManageMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
...
...
@@ -28,6 +30,7 @@ import com.yeejoin.equipmanage.service.EquipmentManageService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
/**
* @author zjw
...
...
@@ -43,6 +46,8 @@ public class EquipmentManageController extends AbstractBaseController{
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
@Autowired
private
JcsFeign
jcsFeign
;
@GetMapping
(
value
=
"/listAndCount"
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
@@ -56,9 +61,23 @@ public class EquipmentManageController extends AbstractBaseController{
@RequestParam
(
value
=
"maintenance"
,
required
=
false
)
String
formGroupId
,
@RequestParam
(
value
=
"controBoxBuildId"
,
required
=
false
)
String
controBoxBuildId
,
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
pageSize
@RequestParam
(
value
=
"size"
)
int
pageSize
,
@RequestParam
(
value
=
"companyId"
)
String
companyId
)
{
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
);
if
(
companyId
!=
null
)
{
String
token
=
getToken
();
String
appKey
=
getAppKey
();
String
product
=
getProduct
();
ResponseModel
<
JSONObject
>
obj
=
jcsFeign
.
getUnitById
(
appKey
,
product
,
token
,
companyId
);
JSONObject
result
=
obj
.
getResult
();
if
(
result
.
containsKey
(
"sequenceNbr"
))
{
companyId
=
result
.
get
(
"sequenceNbr"
).
toString
();
}
}
return
equipmentManageService
.
queryEquipmenInfoAndCount
(
equipmentName
,
equipmentCode
,
construction
,
maintenance
,
bizOrgCode
,
formGroupId
,
current
,
pageSize
,
controBoxBuildId
,
companyId
);
}
@GetMapping
(
value
=
"/getUtils"
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/EquipmentManageService.java
View file @
31485013
...
...
@@ -27,7 +27,7 @@ public interface EquipmentManageService extends IService<EquipmentManageEntity>
* @param pageSize
* @return
*/
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
,
String
controBoxBuildId
);
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
spage
,
int
pageSize
,
String
controBoxBuildId
,
String
companyId
);
/**
* 获取下拉菜单数据
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentManageServiceImpl.java
View file @
31485013
...
...
@@ -56,7 +56,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
@Override
public
Map
<
String
,
Object
>
queryEquipmenInfoAndCount
(
String
equimentName
,
String
equimentCode
,
String
construction
,
String
maintenance
,
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
)
{
String
bizOrgCode
,
String
formGroupId
,
int
current
,
int
pageSize
,
String
controBoxBuildId
,
String
companyCode
)
{
HttpServletRequest
request
=
null
;
Map
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
"equimentName"
,
equimentName
);
...
...
@@ -66,6 +66,7 @@ public class EquipmentManageServiceImpl extends ServiceImpl<EquipmentManageMappe
map
.
put
(
"spage"
,
current
);
map
.
put
(
"pageSize"
,
pageSize
);
map
.
put
(
"bizOrgCode"
,
bizOrgCode
);
map
.
put
(
"companyCode"
,
companyCode
);
map
.
put
(
"formGroupId"
,
formGroupId
);
map
.
put
(
"controBoxBuildId"
,
controBoxBuildId
);
List
<
EquipmentManageVo
>
dataList
=
equipmentManageMapper
.
queryEquipmenInfo
(
map
);
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentManageMapper.xml
View file @
31485013
...
...
@@ -46,6 +46,9 @@
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND biz_org_code like CONCAT(#{bizOrgCode},'%')
</if>
<if
test=
"companyCode != null and companyCode != ''"
>
AND biz_org_code ={companyCode}
</if>
<if
test=
"formGroupId != null and formGroupId != '' and formGroupId != '-1'"
>
AND form_group_id = #{formGroupId}
</if>
...
...
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