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
a06b44b0
Commit
a06b44b0
authored
May 06, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12290 【web-场站管理】场站删除未校验该场站是否关联人员,直接删除
parent
1c35497f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
98 additions
and
92 deletions
+98
-92
StationBasicMapper.java
...amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
+2
-1
StationBasicMapper.xml
...xiop-api/src/main/resources/mapper/StationBasicMapper.xml
+11
-9
StationBasicController.java
...t/module/jxiop/biz/controller/StationBasicController.java
+78
-76
StationBasicServiceImpl.java
...odule/jxiop/biz/service/impl/StationBasicServiceImpl.java
+7
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/StationBasicMapper.java
View file @
a06b44b0
...
...
@@ -30,7 +30,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
@Param
(
"stationType"
)
String
stationType
,
@Param
(
"orgCode"
)
String
orgCode
);
//删除
int
deleteList
(
String
[]
ids
);
int
deleteList
(
String
ids
);
//导出
List
<
ExStationBasicDto
>
getExStationBasicDto
(
@Param
(
"stationMasterName"
)
String
stationMasterName
,
@Param
(
"stationName"
)
String
stationName
,
...
...
@@ -40,6 +40,7 @@ public interface StationBasicMapper extends BaseMapper<StationBasic> {
//获取场站列表信息
List
<
StationInfoDto
>
getStationList
(
@Param
(
"areaCode"
)
String
areaCode
);
int
deleteStationCoordinateByStationid
(
@Param
(
"sequence_nbr"
)
Long
sequence_nbr
);
int
getStationPersonByStationID
(
@Param
(
"sequence_nbr"
)
String
sequence_nbr
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/StationBasicMapper.xml
View file @
a06b44b0
...
...
@@ -57,14 +57,8 @@
</select>
<delete
id=
"deleteList"
parameterType=
"int"
>
delete from station_basic where sequence_nbr in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
;
delete from station_coordinate where station_id in
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
delete from station_basic where sequence_nbr = #{id};
delete from station_coordinate where station_id = #{id}
</delete>
<delete
id =
"deleteStationCoordinateByStationid"
>
delete from station_coordinate where station_id = #{sequence_nbr}
...
...
@@ -129,6 +123,14 @@
AND station_basic.area_code like concat('%',#{areaCode},'%')
</if>
</select>
<select
id=
"getStationPersonByStationID"
resultType=
"int"
>
SELECT
COUNT( 1 )
FROM
person_account
LEFT JOIN station_basic ON person_account.project_id = station_basic.platform_station_id
WHERE
station_basic.sequence_nbr = #{sequence_nbr}
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/StationBasicController.java
View file @
a06b44b0
This diff is collapsed.
Click to expand it.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/StationBasicServiceImpl.java
View file @
a06b44b0
...
...
@@ -28,6 +28,8 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -238,9 +240,7 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
}
public
int
deleteList
(
String
[]
ids
){
public
int
deleteList
(
String
ids
){
QueryWrapper
<
StationBasic
>
wrapper
=
new
QueryWrapper
();
wrapper
.
in
(
"sequence_nbr"
,
ids
);
List
<
StationBasic
>
list
=
this
.
list
(
wrapper
);
...
...
@@ -250,9 +250,8 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
}
//删除平台
this
.
deleteCompany
(
String
.
join
(
","
,
idscom
));
return
stationBasicMapper
.
deleteList
(
ids
);
}
return
stationBasicMapper
.
deleteList
(
ids
);
}
public
StationBasic
getById
(
Long
sequenceNbr
){
...
...
@@ -276,5 +275,6 @@ public class StationBasicServiceImpl extends BaseService<StationBasicDto,Station
public
List
<
StationInfoDto
>
getStationList
(
String
areaCode
){
return
stationBasicMapper
.
getStationList
(
areaCode
);
}
public
int
getStationPersonByStationID
(
String
id
)
{
return
stationBasicMapper
.
getStationPersonByStationID
(
id
);};
}
\ No newline at end of file
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