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
728d9703
Commit
728d9703
authored
Apr 12, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
16648 (优化)一码通管理,设备认领补录,监督管理信息页面字段调整
parent
3fb7c3a9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
13 deletions
+43
-13
EquipmentCategoryEnum.java
...amos/boot/module/tzs/api/enums/EquipmentCategoryEnum.java
+3
-0
IEquipmentCategoryService.java
...oot/module/tzs/api/service/IEquipmentCategoryService.java
+3
-0
CategoryOtherInfoMapper.xml
...api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
+1
-1
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+3
-6
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+18
-0
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+15
-6
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/enums/EquipmentCategoryEnum.java
View file @
728d9703
...
@@ -19,6 +19,9 @@ public enum EquipmentCategoryEnum {
...
@@ -19,6 +19,9 @@ public enum EquipmentCategoryEnum {
BLW
(
"补零位"
,
"0"
),
BLW
(
"补零位"
,
"0"
),
JGM
(
"监管码初始码"
,
"0000001"
),
JGM
(
"监管码初始码"
,
"0000001"
),
CSM
(
"96333初始码"
,
"00001"
),
CSM
(
"96333初始码"
,
"00001"
),
YJL
(
"已拒领"
,
"6037"
),
YRL
(
"已认领"
,
"6035"
),
DRL
(
"待认领"
,
"6036"
),
CSZT
(
"初始状态"
,
"0"
),
CSZT
(
"初始状态"
,
"0"
),
YSY
(
"已使用"
,
"1"
),
YSY
(
"已使用"
,
"1"
),
WSY
(
"未使用"
,
"2"
),
WSY
(
"未使用"
,
"2"
),
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IEquipmentCategoryService.java
View file @
728d9703
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.api.service;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.tzs.api.service;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.CategoryOtherInfo
;
import
java.util.LinkedHashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -27,4 +28,6 @@ public interface IEquipmentCategoryService {
...
@@ -27,4 +28,6 @@ public interface IEquipmentCategoryService {
List
<
LinkedHashMap
>
getRegion
(
String
level
,
String
parentId
);
List
<
LinkedHashMap
>
getRegion
(
String
level
,
String
parentId
);
Map
<
String
,
Object
>
getCategoryAndDefineByRecord
(
String
rowId
);
Map
<
String
,
Object
>
getCategoryAndDefineByRecord
(
String
rowId
);
List
<
CategoryOtherInfo
>
checkCode
(
Map
<
String
,
Object
>
obj
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
View file @
728d9703
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<if
test=
"supervisorCode != null and supervisorCode != ''"
>
<if
test=
"supervisorCode != null and supervisorCode != ''"
>
, "SUPERVISORY_CODE" = #{supervisorCode}
, "SUPERVISORY_CODE" = #{supervisorCode}
</if>
</if>
<if
test=
"code !=
null and code !=
''"
>
<if
test=
"code != ''"
>
, "CODE96333" = #{code}
, "CODE96333" = #{code}
</if>
</if>
WHERE
WHERE
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
728d9703
...
@@ -13,8 +13,7 @@
...
@@ -13,8 +13,7 @@
LEFT JOIN tz_equipment_category tec ON ibjri.EQU_CATEGORY = tec.code
LEFT JOIN tz_equipment_category tec ON ibjri.EQU_CATEGORY = tec.code
LEFT JOIN tz_equipment_category tec1 ON ibjri.EQU_LIST = tec1.code
LEFT JOIN tz_equipment_category tec1 ON ibjri.EQU_LIST = tec1.code
WHERE
WHERE
/*6036代表待认领*/
ibjoi.claim_status = '待认领' AND ibjri."EQU_LIST" = #{code}
ibjoi.claim_status = '6036' AND ibjri."EQU_LIST" = #{code}
<if
test=
"level == 'company'"
>
<if
test=
"level == 'company'"
>
AND ibjui."USE_UNIT_CREDIT_CODE"
AND ibjui."USE_UNIT_CREDIT_CODE"
LIKE CONCAT('%',#{companyCode},'%')
LIKE CONCAT('%',#{companyCode},'%')
...
@@ -34,8 +33,7 @@
...
@@ -34,8 +33,7 @@
LEFT JOIN tz_equipment_category tec ON ibjri.EQU_CATEGORY = tec.code
LEFT JOIN tz_equipment_category tec ON ibjri.EQU_CATEGORY = tec.code
LEFT JOIN tz_equipment_category tec1 ON ibjri.EQU_LIST = tec1.code
LEFT JOIN tz_equipment_category tec1 ON ibjri.EQU_LIST = tec1.code
WHERE
WHERE
/**6035代表待认领*/
ibjoi.claim_status = '已认领' AND ibjri."EQU_LIST" = #{code}
ibjoi.claim_status = '6035' AND ibjri."EQU_LIST" = #{code}
<if
test=
"level == 'company'"
>
<if
test=
"level == 'company'"
>
AND ibjui."USE_UNIT_CREDIT_CODE"
AND ibjui."USE_UNIT_CREDIT_CODE"
LIKE CONCAT('%',#{companyCode},'%')
LIKE CONCAT('%',#{companyCode},'%')
...
@@ -55,8 +53,7 @@
...
@@ -55,8 +53,7 @@
LEFT JOIN tz_equipment_category tec ON ibjri.EQU_CATEGORY = tec.code
LEFT JOIN tz_equipment_category tec ON ibjri.EQU_CATEGORY = tec.code
LEFT JOIN tz_equipment_category tec1 ON ibjri.EQU_LIST = tec1.code
LEFT JOIN tz_equipment_category tec1 ON ibjri.EQU_LIST = tec1.code
WHERE
WHERE
/**6037代表待认领*/
ibjoi.claim_status = '已拒领' AND ibjri."EQU_LIST" = #{code}
ibjoi.claim_status = '6037' AND ibjri."EQU_LIST" = #{code}
<if
test=
"level == 'company'"
>
<if
test=
"level == 'company'"
>
AND ibjui."USE_UNIT_CREDIT_CODE"
AND ibjui."USE_UNIT_CREDIT_CODE"
LIKE CONCAT('%',#{companyCode},'%')
LIKE CONCAT('%',#{companyCode},'%')
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
728d9703
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.biz.common.controller.BaseController;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
import
com.yeejoin.amos.boot.biz.common.utils.Menu
;
import
com.yeejoin.amos.boot.biz.common.utils.TreeParser
;
import
com.yeejoin.amos.boot.biz.common.utils.TreeParser
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.CategoryOtherInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.EquipmentCategory
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.mapper.EquipmentCategoryMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IEquipmentCategoryService
;
import
com.yeejoin.amos.boot.module.tzs.api.service.IEquipmentCategoryService
;
...
@@ -15,6 +16,7 @@ import com.yeejoin.amos.boot.module.tzs.biz.service.impl.EquipmentCategoryServic
...
@@ -15,6 +16,7 @@ import com.yeejoin.amos.boot.module.tzs.biz.service.impl.EquipmentCategoryServic
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
...
@@ -196,6 +198,22 @@ public class EquipmentCategoryController extends BaseController {
...
@@ -196,6 +198,22 @@ public class EquipmentCategoryController extends BaseController {
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
createSupervisorCode
(
map
,
null
));
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
createSupervisorCode
(
map
,
null
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/checkCode"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"post"
,
value
=
"校验96333码"
,
notes
=
"校验96333码"
)
public
ResponseModel
<
Object
>
checkCode
(
@RequestBody
Map
<
String
,
Object
>
obj
){
List
<
CategoryOtherInfo
>
categoryOtherInfos
=
equipmentCategoryService
.
checkCode
(
obj
);
if
(
categoryOtherInfos
.
size
()
==
0
){
return
ResponseHelper
.
buildResponse
(
categoryOtherInfos
);
}
else
{
ResponseModel
<
Object
>
response
=
new
ResponseModel
();
response
.
setResult
(
null
);
response
.
setMessage
(
"96333码重复,请确认数据是否输入正确,或联系管辖机构处理。"
);
response
.
setStatus
(
HttpStatus
.
BAD_REQUEST
.
value
());
return
response
;
}
}
/**
/**
* 获取管辖分局树
* 获取管辖分局树
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
728d9703
...
@@ -156,9 +156,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -156,9 +156,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
equipCategory
=
map
.
get
(
"equCategory"
).
toString
();
equipCategory
=
map
.
get
(
"equCategory"
).
toString
();
}
else
{
}
else
{
equInfoDto
=
categoryOtherInfoMapper
.
selectEquipInfo
(
record
);
equInfoDto
=
categoryOtherInfoMapper
.
selectEquipInfo
(
record
);
//判断这条数据认领状态是否为已认领(6035),且是否已经有电梯96333码和监管码
//判断这条数据认领状态是否为已认领,否则直接返回
//如果都满足则直接返回不做生成码操作
if
(!
ObjectUtils
.
isEmpty
(
equInfoDto
)
&&
EquipmentCategoryEnum
.
YRL
.
getName
().
equals
(
equInfoDto
.
getStatus
()))
{
if
(!
ObjectUtils
.
isEmpty
(
equInfoDto
)
&&
"6035"
.
equals
(
equInfoDto
.
getStatus
()))
{
city
=
equInfoDto
.
getCity
();
city
=
equInfoDto
.
getCity
();
county
=
equInfoDto
.
getCounty
();
county
=
equInfoDto
.
getCounty
();
equipCategory
=
equInfoDto
.
getEquipCategory
();
equipCategory
=
equInfoDto
.
getEquipCategory
();
...
@@ -300,6 +299,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -300,6 +299,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
return
equipmentCategoryMapper
.
getCategoryAndDefineByRecord
(
record
);
return
equipmentCategoryMapper
.
getCategoryAndDefineByRecord
(
record
);
}
}
@Override
public
List
<
CategoryOtherInfo
>
checkCode
(
Map
<
String
,
Object
>
obj
)
{
List
<
CategoryOtherInfo
>
codeList
=
categoryOtherInfoMapper
.
selectList
(
new
QueryWrapper
<
CategoryOtherInfo
>().
eq
(
"CODE96333"
,
obj
.
get
(
"code"
)));
return
codeList
;
}
/**
/**
* 获取行政区划以市或区的list集合
* 获取行政区划以市或区的list集合
*
*
...
@@ -334,9 +339,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -334,9 +339,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
StringBuilder
supervisorCode
=
new
StringBuilder
();
StringBuilder
supervisorCode
=
new
StringBuilder
();
StringBuilder
elevatorCode
=
new
StringBuilder
();
StringBuilder
elevatorCode
=
new
StringBuilder
();
CategoryOtherInfo
otherInfo
;
CategoryOtherInfo
otherInfo
;
String
prefix
=
getPrefix
(
EquipmentCategoryEnum
.
XZQHDT
.
getCode
(),
city
);
CategoryOtherInfo
categoryOtherInfo
=
new
CategoryOtherInfo
();
//查询未使用的电梯码
String
prefix
;
CategoryOtherInfo
categoryOtherInfo
=
categoryOtherInfoMapper
.
selectElevatorCode
(
prefix
,
EquipmentCategoryEnum
.
WSY
.
getCode
());
if
(
equipCategory
.
startsWith
(
"3"
)
&&
!
XIAN
.
equals
(
city
))
{
prefix
=
getPrefix
(
EquipmentCategoryEnum
.
XZQHDT
.
getCode
(),
city
);
//查询未使用的电梯码
categoryOtherInfo
=
categoryOtherInfoMapper
.
selectElevatorCode
(
prefix
,
EquipmentCategoryEnum
.
WSY
.
getCode
());
}
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
if
(!
ObjectUtils
.
isEmpty
(
record
))
{
//查询对应record对应数据
//查询对应record对应数据
otherInfo
=
categoryOtherInfoMapper
.
selectOne
(
new
QueryWrapper
<
CategoryOtherInfo
>().
eq
(
"RECORD"
,
record
));
otherInfo
=
categoryOtherInfoMapper
.
selectOne
(
new
QueryWrapper
<
CategoryOtherInfo
>().
eq
(
"RECORD"
,
record
));
...
...
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