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
b2eb6283
Commit
b2eb6283
authored
Jul 12, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):历史设备录入直接返回equList下的所有equCategory
parent
1b68d21b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
IdxBizJqEquipmentRegisterController.java
...g/biz/controller/IdxBizJqEquipmentRegisterController.java
+3
-2
IIdxBizJgRegisterInfoService.java
...t/module/jg/biz/service/IIdxBizJgRegisterInfoService.java
+1
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+6
-1
IdxBizJgRegisterInfoMapper.java
...oot/module/ymt/api/mapper/IdxBizJgRegisterInfoMapper.java
+7
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/IdxBizJqEquipmentRegisterController.java
View file @
b2eb6283
...
...
@@ -120,15 +120,16 @@ public class IdxBizJqEquipmentRegisterController extends BaseController {
@GetMapping
(
value
=
"/category/list"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询不同单位类型可新增的设备种类列表"
,
notes
=
"查询不同单位类型可新增的设备种类列表"
)
public
ResponseModel
<
List
<
DictionarieValueModel
>>
equCategoryListByCompanyType
()
{
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
equCategoryListByCompanyType
(
getSelectedOrgInfo
(),
null
,
null
));
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
equCategoryListByCompanyType
(
getSelectedOrgInfo
(),
null
,
null
,
null
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/equ-category/listByPersonAndEquList"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"按照人员身份、设备种类查询设备类别"
,
notes
=
"按照人员身份、设备种类查询设备类别"
)
public
ResponseModel
<
List
<
DictionarieValueModel
>>
equCategoryList
(
@RequestParam
(
value
=
"equList"
)
String
equList
,
@RequestParam
(
value
=
"dataSource"
,
required
=
false
)
String
dataSource
,
@RequestParam
(
value
=
"businessScenarios"
,
required
=
false
)
String
businessScenarios
)
{
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
equCategoryListByCompanyType
(
getSelectedOrgInfo
(),
equList
,
businessScenarios
));
return
ResponseHelper
.
buildResponse
(
idxBizJgRegisterInfoService
.
equCategoryListByCompanyType
(
getSelectedOrgInfo
(),
equList
,
businessScenarios
,
dataSource
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/IIdxBizJgRegisterInfoService.java
View file @
b2eb6283
...
...
@@ -29,7 +29,7 @@ public interface IIdxBizJgRegisterInfoService {
Map
<
String
,
Object
>
getDetailFieldCamelCaseByRecord
(
String
record
);
List
<
DictionarieValueModel
>
equCategoryListByCompanyType
(
ReginParams
selectedOrgInfo
,
String
equList
,
String
businessScenarios
);
List
<
DictionarieValueModel
>
equCategoryListByCompanyType
(
ReginParams
selectedOrgInfo
,
String
equList
,
String
businessScenarios
,
String
dataSource
);
Page
<
JSONObject
>
queryForUnitEquipmentPage
(
JSONObject
jsonObject
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
View file @
b2eb6283
...
...
@@ -516,7 +516,12 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
@Override
public
List
<
DictionarieValueModel
>
equCategoryListByCompanyType
(
ReginParams
selectedOrgInfo
,
String
equList
,
String
businessScenarios
)
{
public
List
<
DictionarieValueModel
>
equCategoryListByCompanyType
(
ReginParams
selectedOrgInfo
,
String
equList
,
String
businessScenarios
,
String
dataSource
)
{
// 历史设备录入 直接取所有的设备种类(equList)下的所有设备类别
if
(
"his"
.
equals
(
dataSource
)){
return
this
.
baseMapper
.
queryAllEquCategoriesUnderTheEquList
(
equList
);
}
String
companyType
=
selectedOrgInfo
.
getCompany
().
getCompanyType
();
String
dictCodePrefix
=
getDictCodePrefix
(
companyType
,
equList
);
if
(
StringUtils
.
isEmpty
(
dictCodePrefix
))
{
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/mapper/IdxBizJgRegisterInfoMapper.java
View file @
b2eb6283
...
...
@@ -2,8 +2,10 @@ package com.yeejoin.amos.boot.module.ymt.api.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.IdxBizJgRegisterInfo
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
/**
* 注册登记信息表 Mapper 接口
...
...
@@ -18,4 +20,9 @@ public interface IdxBizJgRegisterInfoMapper extends BaseMapper<IdxBizJgRegisterI
@Select
(
"update idx_biz_jg_register_info set \"USE_ORG_CODE\" = #{useOrgCode} where \"RECORD\" = #{equipCode}"
)
Boolean
updateUseOrgCodeByEquip
(
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"useOrgCode"
)
String
useOrgCode
);
@Select
(
"select code as dictDataKey,name as dictDataValue from tz_equipment_category where parent_id = ( SELECT sub.id from tz_equipment_category as sub where sub.code = #{equipCode})"
)
List
<
DictionarieValueModel
>
queryAllEquCategoriesUnderTheEquList
(
@Param
(
"equipCode"
)
String
equipCode
);
}
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