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
0e6ca6ea
Commit
0e6ca6ea
authored
Jun 25, 2023
by
tianbo
Browse files
Options
Browse Files
Download
Plain Diff
【一码通】优化96333码重复问题
parents
e8b66cc2
d5b15548
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
206 additions
and
28 deletions
+206
-28
CategoryOtherInfoMapper.java
...s/boot/module/tzs/api/mapper/CategoryOtherInfoMapper.java
+3
-1
EquipmentCategoryMapper.java
...s/boot/module/tzs/api/mapper/EquipmentCategoryMapper.java
+1
-1
SuperviseInfoMapper.java
.../amos/boot/module/tzs/api/mapper/SuperviseInfoMapper.java
+5
-0
IEquipmentCategoryService.java
...oot/module/tzs/api/service/IEquipmentCategoryService.java
+2
-0
CategoryOtherInfoMapper.xml
...api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
+11
-1
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+5
-2
SupervisionInfoMapper.xml
...s-api/src/main/resources/mapper/SupervisionInfoMapper.xml
+98
-0
EquipmentCategoryController.java
...odule/tzs/biz/controller/EquipmentCategoryController.java
+13
-0
EquipmentCategoryServiceImpl.java
...le/tzs/biz/service/impl/EquipmentCategoryServiceImpl.java
+64
-20
application-dev3.properties
...le-tzs-biz/src/main/resources/application-dev3.properties
+4
-3
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/CategoryOtherInfoMapper.java
View file @
0e6ca6ea
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.ESEquipmentCategoryDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.dto.EquInfoDto
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.CategoryOtherInfo
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.CategoryOtherInfo
;
import
lombok.NonNull
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -29,4 +29,6 @@ public interface CategoryOtherInfoMapper extends BaseMapper<CategoryOtherInfo> {
...
@@ -29,4 +29,6 @@ public interface CategoryOtherInfoMapper extends BaseMapper<CategoryOtherInfo> {
int
updateOtherInfo
(
String
supervisorCode
,
String
editStatus
);
int
updateOtherInfo
(
String
supervisorCode
,
String
editStatus
);
Map
<
String
,
Object
>
selectDataById
(
String
id
);
Map
<
String
,
Object
>
selectDataById
(
String
id
);
CategoryOtherInfo
queryInitCode
(
@Param
(
"initCode"
)
@NonNull
String
initCode
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/EquipmentCategoryMapper.java
View file @
0e6ca6ea
...
@@ -36,7 +36,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
...
@@ -36,7 +36,7 @@ public interface EquipmentCategoryMapper extends BaseMapper<EquipmentCategory> {
Map
<
String
,
Object
>
getCategoryAndDefineByRecord
(
@Param
(
"record"
)
String
record
);
Map
<
String
,
Object
>
getCategoryAndDefineByRecord
(
@Param
(
"record"
)
String
record
);
List
<
Map
<
String
,
Object
>>
getAllUnit
(
String
unitCode
);
List
<
Map
<
String
,
Object
>>
getAllUnit
(
@Param
(
"unitCodes"
)
List
<
String
>
unitCodes
);
List
<
Map
<
String
,
Object
>>
getCategoryData
(
String
level
,
String
orgCode
,
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getCategoryData
(
String
level
,
String
orgCode
,
String
companyCode
);
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/mapper/SuperviseInfoMapper.java
View file @
0e6ca6ea
...
@@ -15,4 +15,9 @@ import java.util.List;
...
@@ -15,4 +15,9 @@ import java.util.List;
public
interface
SuperviseInfoMapper
extends
BaseMapper
<
SuperviseInfo
>
{
public
interface
SuperviseInfoMapper
extends
BaseMapper
<
SuperviseInfo
>
{
void
updateRecordBatch
(
@Param
(
"recordList"
)
List
<
String
>
recordList
);
void
updateRecordBatch
(
@Param
(
"recordList"
)
List
<
String
>
recordList
);
List
<
String
>
selectUnitCodeList
(
@Param
(
"records"
)
List
<
String
>
records
);
List
<
String
>
selectSuperviseCodeList
(
@Param
(
"records"
)
List
<
String
>
records
);
void
deleteDataAll
(
@Param
(
"records"
)
List
<
String
>
records
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/IEquipmentCategoryService.java
View file @
0e6ca6ea
...
@@ -41,4 +41,6 @@ public interface IEquipmentCategoryService {
...
@@ -41,4 +41,6 @@ public interface IEquipmentCategoryService {
List
<
EquipmentCategoryData
>
createEquipmentCategoryData
();
List
<
EquipmentCategoryData
>
createEquipmentCategoryData
();
EquipmentCategoryData
updateEquipmentCategoryData
(
String
id
);
EquipmentCategoryData
updateEquipmentCategoryData
(
String
id
);
List
<
String
>
deleteBatch
(
Map
<
String
,
Object
>
map
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/CategoryOtherInfoMapper.xml
View file @
0e6ca6ea
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
and status = #{status}
and status = #{status}
</if>
</if>
ORDER BY
ORDER BY
RIGHT ( CODE96333, 2 )
DESC
CODE96333
DESC
LIMIT 1
LIMIT 1
</select>
</select>
...
@@ -71,6 +71,16 @@
...
@@ -71,6 +71,16 @@
from idx_biz_view_jg_all
from idx_biz_view_jg_all
WHERE SEQUENCE_NBR = #{id}
WHERE SEQUENCE_NBR = #{id}
</select>
</select>
<select
id=
"queryInitCode"
resultType=
"com.yeejoin.amos.boot.module.tzs.api.entity.CategoryOtherInfo"
>
SELECT CODE96333 code
FROM biz_jg_supervisory_code
<where>
<if
test=
"initCode != null and initCode != ''"
>
CODE96333 = #{initCode}
</if>
</where>
LIMIT 1
</select>
<update
id=
"updateCode"
>
<update
id=
"updateCode"
>
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
0e6ca6ea
...
@@ -159,8 +159,11 @@
...
@@ -159,8 +159,11 @@
USE_UNIT_CREDIT_CODE is NOT NULL
USE_UNIT_CREDIT_CODE is NOT NULL
AND USE_UNIT_CREDIT_CODE
<![CDATA[ <> ]]>
''
AND USE_UNIT_CREDIT_CODE
<![CDATA[ <> ]]>
''
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
AND (lengthb(USE_UNIT_CREDIT_CODE)= 15 or lengthb(USE_UNIT_CREDIT_CODE)= 18)
<if
test=
"unitCode !=null and unitCode != ''"
>
<if
test=
"unitCodes !=null and unitCodes.size>0"
>
and USE_UNIT_CREDIT_CODE = #{unitCode}
and USE_UNIT_CREDIT_CODE in
<foreach
collection=
"unitCodes"
separator=
","
item=
"unitCode"
open=
"("
close=
")"
>
#{unitCode}
</foreach>
</if>
</if>
GROUP BY use_code
GROUP BY use_code
ORDER BY use_code
ORDER BY use_code
...
...
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/resources/mapper/SupervisionInfoMapper.xml
View file @
0e6ca6ea
...
@@ -8,4 +8,101 @@
...
@@ -8,4 +8,101 @@
#{record}
#{record}
</foreach>
</foreach>
</update>
</update>
<select
id=
"selectUnitCodeList"
resultType=
"java.lang.String"
>
SELECT
DISTINCT ( USE_UNIT_CREDIT_CODE ) unitCode
FROM
idx_biz_jg_use_info ui
WHERE ui."RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
")"
>
#{record}
</foreach>
</select>
<select
id=
"selectSuperviseCodeList"
resultType=
"java.lang.String"
>
SELECT
SUPERVISORY_CODE code
FROM
idx_biz_jg_other_info oi
WHERE oi."RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
")"
>
#{record}
</foreach>
</select>
<delete
id=
"deleteDataAll"
>
delete from idx_biz_jg_use_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_design_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_factory_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_construction_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_register_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_maintenance_record_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_other_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_inspection_detection_info where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_elevator where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_vehicle where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_ropeway where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_rides where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_boiler where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_vessel where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_pipeline where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_tech_params_lifting where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_main_parts where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
delete from idx_biz_jg_protection_devices where "RECORD" in
<foreach
collection=
"records"
separator=
","
item=
"record"
open=
"("
close=
");"
>
#{record}
</foreach>
</delete>
</mapper>
</mapper>
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/EquipmentCategoryController.java
View file @
0e6ca6ea
...
@@ -251,6 +251,19 @@ public class EquipmentCategoryController extends BaseController {
...
@@ -251,6 +251,19 @@ public class EquipmentCategoryController extends BaseController {
}
}
/**
/**
* 批量一码通删除数据
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/deleteBatch"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量删除一码通数据"
,
notes
=
"批量删除一码通数据"
)
public
ResponseModel
<
Object
>
deleteBatch
(
@RequestBody
Map
<
String
,
Object
>
map
)
{
return
ResponseHelper
.
buildResponse
(
equipmentCategoryService
.
deleteBatch
(
map
));
}
/**
* 获取管辖分局树
* 获取管辖分局树
*
*
* @return
* @return
...
...
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 @
0e6ca6ea
...
@@ -56,6 +56,7 @@ import org.springframework.beans.factory.annotation.Value;
...
@@ -56,6 +56,7 @@ import org.springframework.beans.factory.annotation.Value;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.jdbc.core.JdbcTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.Assert
;
import
org.springframework.util.Assert
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
...
@@ -514,7 +515,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -514,7 +515,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
}
}
}
}
}
}
else
{
}
else
{
// 监管系统申请监管码
String
supervisor
=
createSupervisorCode
(
city
,
county
,
equipCategory
);
String
supervisor
=
createSupervisorCode
(
city
,
county
,
equipCategory
);
supervisorCode
.
append
(
supervisor
);
supervisorCode
.
append
(
supervisor
);
if
(
equipCategory
.
startsWith
(
"3"
)
&&
!
XIAN
.
equals
(
city
))
{
if
(
equipCategory
.
startsWith
(
"3"
)
&&
!
XIAN
.
equals
(
city
))
{
...
@@ -583,23 +584,26 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -583,23 +584,26 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
Map
<
String
,
Object
>
elevatorMap
=
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQHDT
.
getCode
(),
county
);
Map
<
String
,
Object
>
elevatorMap
=
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQHDT
.
getCode
(),
county
);
String
elevator
=
ObjectUtils
.
isEmpty
(
elevatorMap
)
?
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQHDT
.
getCode
(),
city
).
get
(
"code"
).
toString
()
:
elevatorMap
.
get
(
"code"
).
toString
();
String
elevator
=
ObjectUtils
.
isEmpty
(
elevatorMap
)
?
equipmentCategoryMapper
.
getAdministrativeDivision
(
EquipmentCategoryEnum
.
XZQHDT
.
getCode
(),
city
).
get
(
"code"
).
toString
()
:
elevatorMap
.
get
(
"code"
).
toString
();
elevatorCode
.
append
(
elevator
);
elevatorCode
.
append
(
elevator
);
//获取行政区划区县、市是否存在历史96333电梯码
String
initCode
=
elevatorCode
+
EquipmentCategoryEnum
.
getValue
.
get
(
elevatorCode
.
toString
());
CategoryOtherInfo
elevatorOtherInfo
=
categoryOtherInfoMapper
.
selectElevatorCode
(
elevatorCode
.
toString
(),
null
);
CategoryOtherInfo
initSupervisoryCode
=
categoryOtherInfoMapper
.
queryInitCode
(
initCode
);
// 查询是否已经生成过初始值
//生成对应96333电梯码
if
(
ValidationUtil
.
isEmpty
(
initSupervisoryCode
))
{
if
(!
ObjectUtils
.
isEmpty
(
elevatorOtherInfo
)
&&
elevatorOtherInfo
.
getCode
()
!=
null
)
{
//获取补零位长度
String
elevatorCode1
=
elevatorOtherInfo
.
getCode
().
substring
(
2
);
long
num
=
Long
.
valueOf
(
elevatorCode1
)
+
1
;
int
numLength
=
String
.
valueOf
(
num
).
length
();
int
a
=
5
-
numLength
;
StringBuilder
zero
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
a
;
i
++)
{
zero
.
append
(
EquipmentCategoryEnum
.
BLW
.
getCode
());
}
zero
.
append
(
num
);
elevatorCode
.
append
(
zero
);
}
else
{
elevatorCode
.
append
(
EquipmentCategoryEnum
.
getValue
.
get
(
elevator
));
elevatorCode
.
append
(
EquipmentCategoryEnum
.
getValue
.
get
(
elevator
));
}
else
{
//获取行政区划区县、市是否存在历史96333电梯码
CategoryOtherInfo
elevatorOtherInfo
=
categoryOtherInfoMapper
.
selectElevatorCode
(
elevatorCode
.
toString
(),
null
);
if
(!
ObjectUtils
.
isEmpty
(
elevatorOtherInfo
)
&&
elevatorOtherInfo
.
getCode
()
!=
null
)
{
//获取补零位长度
String
elevatorCode1
=
elevatorOtherInfo
.
getCode
().
substring
(
2
);
long
num
=
Long
.
parseLong
(
elevatorCode1
)
+
1
;
int
numLength
=
String
.
valueOf
(
num
).
length
();
int
a
=
5
-
numLength
;
StringBuilder
zero
=
new
StringBuilder
();
for
(
int
i
=
0
;
i
<
a
;
i
++)
{
zero
.
append
(
EquipmentCategoryEnum
.
BLW
.
getCode
());
}
zero
.
append
(
num
);
elevatorCode
.
append
(
zero
);
}
}
}
return
elevatorCode
.
toString
();
return
elevatorCode
.
toString
();
}
}
...
@@ -821,9 +825,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -821,9 +825,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
return
getCategoryData
(
null
);
return
getCategoryData
(
null
);
}
}
private
List
<
EquipmentCategoryData
>
getCategoryData
(
String
unitCode
)
{
private
List
<
EquipmentCategoryData
>
getCategoryData
(
List
<
String
>
unitCodes
)
{
List
<
EquipmentCategoryData
>
list
=
new
ArrayList
<>();
List
<
EquipmentCategoryData
>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
allUnitList
=
equipmentCategoryMapper
.
getAllUnit
(
unitCode
);
List
<
Map
<
String
,
Object
>>
allUnitList
=
equipmentCategoryMapper
.
getAllUnit
(
unitCode
s
);
for
(
Map
<
String
,
Object
>
map
:
allUnitList
)
{
for
(
Map
<
String
,
Object
>
map
:
allUnitList
)
{
EquipmentCategoryData
equipmentCategoryData
=
new
EquipmentCategoryData
();
EquipmentCategoryData
equipmentCategoryData
=
new
EquipmentCategoryData
();
equipmentCategoryData
.
setOrgBranchCode
(
map
.
get
(
"supervise_org_code"
).
toString
());
equipmentCategoryData
.
setOrgBranchCode
(
map
.
get
(
"supervise_org_code"
).
toString
());
...
@@ -878,10 +882,50 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -878,10 +882,50 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if
(
ObjectUtils
.
isEmpty
(
unitCode
)){
if
(
ObjectUtils
.
isEmpty
(
unitCode
)){
return
new
EquipmentCategoryData
();
return
new
EquipmentCategoryData
();
}
}
List
<
EquipmentCategoryData
>
equipmentCategoryData
=
getCategoryData
(
unitCode
);
List
<
String
>
unitCodeList
=
new
ArrayList
<>();
unitCodeList
.
add
(
unitCode
);
List
<
EquipmentCategoryData
>
equipmentCategoryData
=
getCategoryData
(
unitCodeList
);
return
equipmentCategoryData
.
get
(
0
);
return
equipmentCategoryData
.
get
(
0
);
}
}
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
List
<
String
>
deleteBatch
(
Map
<
String
,
Object
>
map
)
{
Object
recordList
=
map
.
get
(
"recordList"
);
List
<
String
>
records
=
new
ArrayList
<>();
List
<
ESEquipmentCategoryDto
>
list
=
new
ArrayList
<>();
if
(
recordList
.
toString
().
contains
(
","
)){
for
(
String
record
:
(
List
<
String
>)
recordList
)
{
records
.
add
(
record
);
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
new
ESEquipmentCategoryDto
();
esEquipmentCategoryDto
.
setSEQUENCE_NBR
(
record
);
list
.
add
(
esEquipmentCategoryDto
);
}
}
else
{
records
.
add
(
recordList
.
toString
());
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
new
ESEquipmentCategoryDto
();
esEquipmentCategoryDto
.
setSEQUENCE_NBR
(
recordList
.
toString
());
list
.
add
(
esEquipmentCategoryDto
);
}
//删除监管码表数据
List
<
String
>
superviseCodeList
=
superviseInfoMapper
.
selectSuperviseCodeList
(
records
);
List
<
String
>
unitCodeList
=
superviseInfoMapper
.
selectUnitCodeList
(
records
);
if
(!
ObjectUtils
.
isEmpty
(
superviseCodeList
)){
supervisoryCodeInfoMapper
.
delete
(
new
QueryWrapper
<
SupervisoryCodeInfo
>().
in
(
"supervisory_code"
,
superviseCodeList
));
}
//删除涉及的19张表的数据
superviseInfoMapper
.
deleteDataAll
(
records
);
// 根据统一信用代码更新总览表
if
(!
ObjectUtils
.
isEmpty
(
unitCodeList
)){
getCategoryData
(
unitCodeList
);
}
//删除es中的数据
esEquipmentCategory
.
deleteAll
(
list
);
return
records
;
}
//分页查询所有数据
//分页查询所有数据
public
Page
<
Map
<
String
,
Object
>>
getAll
(
Map
<
String
,
Object
>
map
)
{
public
Page
<
Map
<
String
,
Object
>>
getAll
(
Map
<
String
,
Object
>
map
)
{
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/resources/application-dev3.properties
View file @
0e6ca6ea
#DB properties:
#DB properties:
spring.datasource.driver-class-name
=
cn.com.vastbase.Driver
spring.datasource.driver-class-name
=
cn.com.vastbase.Driver
spring.datasource.url
=
jdbc:vastbase://36.46.137.116:5432/per_tzs_amos_tzs_biz?currentSchema=amos_tzs_biz
spring.datasource.url
=
jdbc:vastbase://36.46.137.116:5432/per_tzs_amos_tzs_biz?currentSchema=amos_tzs_biz&allowMultiQueries=true
#spring.datasource.url=jdbc:vastbase://36.46.151.113:5432/tzs_amos_tzs_biz_init?currentSchema=amos_tzs_biz
spring.datasource.username
=
admin
spring.datasource.username
=
admin
spring.datasource.password
=
Yeejoin@2023
spring.datasource.password
=
Yeejoin@2023
...
@@ -40,14 +41,14 @@ eureka.instance.ip-address = 172.16.3.34
...
@@ -40,14 +41,14 @@ eureka.instance.ip-address = 172.16.3.34
## ES properties:
## ES properties:
biz.elasticsearch.port
=
9200
biz.elasticsearch.port
=
9200
biz.elasticsearch.address
=
36.46.151.113
biz.elasticsearch.address
=
172.16.10.210
spring.data.elasticsearch.cluster-name
=
docker-cluster
spring.data.elasticsearch.cluster-name
=
docker-cluster
spring.data.elasticsearch.cluster-nodes
=
${biz.elasticsearch.address}:9300
spring.data.elasticsearch.cluster-nodes
=
${biz.elasticsearch.address}:9300
spring.elasticsearch.rest.uris
=
http://${biz.elasticsearch.address}:9200
spring.elasticsearch.rest.uris
=
http://${biz.elasticsearch.address}:9200
elasticsearch.username
=
elastic
elasticsearch.username
=
elastic
elasticsearch.password
=
123456
elasticsearch.password
=
a
123456
## unit(h)
## unit(h)
...
...
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