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
78d24a5d
Commit
78d24a5d
authored
Sep 12, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
56573856
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
4 deletions
+40
-4
IElevatorService.java
...os/boot/module/elevator/api/service/IElevatorService.java
+3
-0
ElevatorController.java
...ot/module/elevator/biz/controller/ElevatorController.java
+7
-0
ElevatorServiceImpl.java
...module/elevator/biz/service/impl/ElevatorServiceImpl.java
+0
-0
ESEquipmentCategoryDto.java
.../amos/boot/module/ymt/api/dto/ESEquipmentCategoryDto.java
+11
-0
FileDownLoadException.java
...mos/boot/module/ymt/biz/config/FileDownLoadException.java
+14
-0
EquipmentCategoryController.java
...odule/ymt/biz/controller/EquipmentCategoryController.java
+5
-4
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-api/src/main/java/com/yeejoin/amos/boot/module/elevator/api/service/IElevatorService.java
View file @
78d24a5d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
elevator
.
api
.
service
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yeejoin.amos.boot.module.elevator.api.dto.ElevatorDto
;
...
...
@@ -37,6 +38,8 @@ public interface IElevatorService extends IService<Elevator> {
Page
<
Map
<
String
,
Object
>>
selectElevators
(
Page
<
Map
<
String
,
Object
>>
page
,
ElevatorDto
dto
);
Page
<
JSONObject
>
queryByKeys
(
JSONObject
map
);
List
<
ElevatorDtoNew
>
selectExportDataNew
(
ElevatorDto
dto
);
List
<
Map
<
String
,
Object
>>
selectElevatorEsList
(
int
pageNum
,
int
pageSize
);
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/controller/ElevatorController.java
View file @
78d24a5d
...
...
@@ -346,6 +346,13 @@ public class ElevatorController extends BaseController {
return
ResponseHelper
.
buildResponse
(
list
);
}
// @TycloudOperation(ApiLevel = UserType.AGENCY)
// @GetMapping(value = "/ocp/query_elevator_list")
// @ApiOperation(httpMethod = "GET", value = "电梯列表", notes = "电梯列表")
// public ResponseModel<Page<JSONObject>> viewJgAll( @RequestParam Map<String,Object> map) {
// JSONObject jsonObject = new JSONObject(map);
// return ResponseHelper.buildResponse(iElevatorService.queryByKeys(jsonObject));
// }
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/ocp/exportData"
)
...
...
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/ElevatorServiceImpl.java
View file @
78d24a5d
This diff is collapsed.
Click to expand it.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/java/com/yeejoin/amos/boot/module/ymt/api/dto/ESEquipmentCategoryDto.java
View file @
78d24a5d
...
...
@@ -70,4 +70,15 @@ public class ESEquipmentCategoryDto {
private
Long
REC_DATE
;
@Field
(
type
=
FieldType
.
Text
)
private
String
SAFETY_MANAGER
;
@Field
(
type
=
FieldType
.
Text
)
private
String
PHONE
;
@Field
(
type
=
FieldType
.
Text
)
private
String
MAINTAIN_UNIT
;
@Field
(
type
=
FieldType
.
Text
)
private
String
USE_INNER_CODE
;
}
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/config/FileDownLoadException.java
0 → 100644
View file @
78d24a5d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ymt
.
biz
.
config
;
import
org.typroject.tyboot.core.foundation.exception.BaseException
;
public
class
FileDownLoadException
extends
BaseException
{
public
FileDownLoadException
(
String
message
)
{
super
(
message
,
com
.
yeejoin
.
amos
.
component
.
robot
.
BadRequest
.
class
.
getSimpleName
(),
message
);
this
.
httpStatus
=
500
;
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/controller/EquipmentCategoryController.java
View file @
78d24a5d
...
...
@@ -19,6 +19,7 @@ import com.yeejoin.amos.boot.module.ymt.api.mapper.EquipmentCategoryMapper;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgOtherInfoMapper
;
import
com.yeejoin.amos.boot.module.ymt.api.service.IEquipmentCategoryService
;
import
com.yeejoin.amos.boot.module.ymt.api.vo.EquipExportVo
;
import
com.yeejoin.amos.boot.module.ymt.biz.config.FileDownLoadException
;
import
com.yeejoin.amos.boot.module.ymt.biz.service.impl.EquipmentCategoryServiceImpl
;
import
com.yeejoin.amos.boot.module.ymt.biz.utils.ImageUtils
;
import
com.yeejoin.amos.component.robot.BadRequest
;
...
...
@@ -477,10 +478,10 @@ public class EquipmentCategoryController extends BaseController {
lambda
.
in
(
IdxBizJgOtherInfo:
:
getCode96333
,
code96333
);
Integer
integer
=
idxBizJgOtherInfoMapper
.
selectCount
(
lambda
);
if
(!
ObjectUtils
.
isEmpty
(
strings
)
&&
strings
.
size
()
!=
integer
){
throw
new
BadRequest
(
"96333码存在重复数据,请联系管理员!"
);
throw
new
FileDownLoadException
(
"96333码存在重复数据,请联系管理员!"
);
}
if
(
ObjectUtils
.
isEmpty
(
strings
)
&&
!
String
.
valueOf
(
code96333
.
size
()).
equals
(
String
.
valueOf
(
integer
)))
{
throw
new
BadRequest
(
"96333码存在重复数据,请联系管理员!"
);
throw
new
FileDownLoadException
(
"96333码存在重复数据,请联系管理员!"
);
}
}
List
<
Object
>
supervisoryCode
=
equipExportData
.
stream
().
filter
(
item
->
!
ObjectUtils
.
isEmpty
(
item
.
get
(
"SUPERVISORY_CODE"
))).
map
(
item
->
item
.
get
(
"SUPERVISORY_CODE"
)).
collect
(
Collectors
.
toList
());
...
...
@@ -490,10 +491,10 @@ public class EquipmentCategoryController extends BaseController {
lambda
.
in
(
IdxBizJgOtherInfo:
:
getSupervisoryCode
,
supervisoryCode
);
Integer
integer
=
idxBizJgOtherInfoMapper
.
selectCount
(
lambda
);
if
(!
ObjectUtils
.
isEmpty
(
strings
)
&&
strings
.
size
()
!=
integer
){
throw
new
BadRequest
(
"监管码存在重复数据,请联系管理员!"
);
throw
new
FileDownLoadException
(
"监管码存在重复数据,请联系管理员!"
);
}
if
(
ObjectUtils
.
isEmpty
(
strings
)
&&
!
String
.
valueOf
(
supervisoryCode
.
size
()).
equals
(
String
.
valueOf
(
integer
)))
{
throw
new
BadRequest
(
"监管码存在重复数据,请联系管理员!"
);
throw
new
FileDownLoadException
(
"监管码存在重复数据,请联系管理员!"
);
}
}
if
(
ImageSizeEnums
.
DT
.
getCode
().
equals
(
type
))
{
...
...
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