Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
signal
traffic-signal-platform
Commits
18cd7f66
Commit
18cd7f66
authored
Nov 25, 2022
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统管理-设备管理-信号机管理-删除
parent
cf43a81f
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
61 additions
and
24 deletions
+61
-24
CrossInfoController.java
...in/java/net/wanji/utc/controller/CrossInfoController.java
+8
-9
ManufacturerApiController.java
...a/net/wanji/utc/controller/ManufacturerApiController.java
+2
-3
ManufacturerController.java
...java/net/wanji/utc/controller/ManufacturerController.java
+2
-2
CrossInfoMapper.java
...e/src/main/java/net/wanji/utc/mapper/CrossInfoMapper.java
+2
-0
CrossInfoService.java
...a/net/wanji/utc/service/systemadmin/CrossInfoService.java
+3
-0
ManufacturerApiInfoService.java
...i/utc/service/systemadmin/ManufacturerApiInfoService.java
+2
-2
ManufacturerService.java
...et/wanji/utc/service/systemadmin/ManufacturerService.java
+2
-2
CrossInfoServiceImpl.java
...ji/utc/service/systemadmin/impl/CrossInfoServiceImpl.java
+7
-0
ManufacturerApiInfoServiceImpl.java
...vice/systemadmin/impl/ManufacturerApiInfoServiceImpl.java
+2
-2
ManufacturerServiceImpl.java
...utc/service/systemadmin/impl/ManufacturerServiceImpl.java
+2
-2
DeleteByIntegerIdListInVO.java
...t/wanji/utc/vo/systemadmin/DeleteByIntegerIdListInVO.java
+2
-2
DeleteByStringIdListInVO.java
...et/wanji/utc/vo/systemadmin/DeleteByStringIdListInVO.java
+19
-0
CrossInfoMapper.xml
...utc-service/src/main/resources/mapper/CrossInfoMapper.xml
+8
-0
No files found.
signal-utc-service/src/main/java/net/wanji/utc/controller/CrossInfoController.java
View file @
18cd7f66
...
...
@@ -6,7 +6,6 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
net.wanji.utc.entity.JsonViewObject
;
import
net.wanji.utc.po.CrossInfoPO
;
import
net.wanji.utc.service.systemadmin.CrossInfoService
;
import
net.wanji.utc.vo.systemadmin.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -54,12 +53,12 @@ public class CrossInfoController {
return
jsonViewObject
.
success
();
}
// @ApiOperation(value = "接口删除", notes = "接口
删除", consumes = MediaType.APPLICATION_JSON)
//
@PostMapping(value = "/delete", consumes = MediaType.APPLICATION_JSON)
// public JsonViewObject delete(@RequestBody Delete
ListInVO inVO) {
// manufacturerApi
InfoService.delete(inVO);
//
JsonViewObject jsonViewObject = JsonViewObject.newInstance();
//
//
return jsonViewObject.success();
//
}
@ApiOperation
(
value
=
"信号机删除"
,
notes
=
"信号机
删除"
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/delete"
,
consumes
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
delete
(
@RequestBody
DeleteByStringId
ListInVO
inVO
)
{
cross
InfoService
.
delete
(
inVO
);
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
return
jsonViewObject
.
success
();
}
}
signal-utc-service/src/main/java/net/wanji/utc/controller/ManufacturerApiController.java
View file @
18cd7f66
...
...
@@ -8,11 +8,10 @@ import io.swagger.annotations.ApiResponses;
import
net.wanji.utc.entity.JsonViewObject
;
import
net.wanji.utc.po.ManufacturerApiInfoPO
;
import
net.wanji.utc.service.systemadmin.ManufacturerApiInfoService
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.Delete
ByIntegerId
ListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoListInVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -60,7 +59,7 @@ public class ManufacturerApiController {
@ApiOperation
(
value
=
"接口删除"
,
notes
=
"接口删除"
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/delete"
,
consumes
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
delete
(
@RequestBody
DeleteListInVO
inVO
)
{
public
JsonViewObject
delete
(
@RequestBody
Delete
ByIntegerId
ListInVO
inVO
)
{
manufacturerApiInfoService
.
delete
(
inVO
);
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
...
...
signal-utc-service/src/main/java/net/wanji/utc/controller/ManufacturerController.java
View file @
18cd7f66
...
...
@@ -8,7 +8,7 @@ import io.swagger.annotations.ApiResponses;
import
net.wanji.utc.entity.JsonViewObject
;
import
net.wanji.utc.po.ManufacturerInfoPO
;
import
net.wanji.utc.service.systemadmin.ManufacturerService
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.Delete
ByIntegerId
ListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerListInVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -58,7 +58,7 @@ public class ManufacturerController {
@ApiOperation
(
value
=
"厂商删除"
,
notes
=
"厂商删除"
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/delete"
,
consumes
=
MediaType
.
APPLICATION_JSON
)
public
JsonViewObject
delete
(
@RequestBody
DeleteListInVO
inVO
)
{
public
JsonViewObject
delete
(
@RequestBody
Delete
ByIntegerId
ListInVO
inVO
)
{
manufacturerService
.
delete
(
inVO
);
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
...
...
signal-utc-service/src/main/java/net/wanji/utc/mapper/CrossInfoMapper.java
View file @
18cd7f66
...
...
@@ -30,4 +30,6 @@ public interface CrossInfoMapper {
void
insertOne
(
CrossInfoPO
crossInfoPO
);
void
updateOne
(
CrossInfoPO
crossInfoPO
);
void
deleteBatch
(
@Param
(
"ids"
)
List
<
String
>
ids
);
}
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/CrossInfoService.java
View file @
18cd7f66
...
...
@@ -4,6 +4,7 @@ import com.github.pagehelper.PageInfo;
import
net.wanji.utc.vo.systemadmin.CrossInfoInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListOutVO
;
import
net.wanji.utc.vo.systemadmin.DeleteByStringIdListInVO
;
/**
* @author Kent HAN
...
...
@@ -13,4 +14,6 @@ public interface CrossInfoService {
PageInfo
<
CrossInfoListOutVO
>
list
(
CrossInfoListInVO
crossInfoListInVO
);
void
insertOrUpdate
(
CrossInfoInsertOrUpdateInVO
inVO
);
void
delete
(
DeleteByStringIdListInVO
inVO
);
}
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/ManufacturerApiInfoService.java
View file @
18cd7f66
...
...
@@ -2,7 +2,7 @@ package net.wanji.utc.service.systemadmin;
import
com.github.pagehelper.PageInfo
;
import
net.wanji.utc.po.ManufacturerApiInfoPO
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.Delete
ByIntegerId
ListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoListInVO
;
...
...
@@ -15,5 +15,5 @@ public interface ManufacturerApiInfoService {
void
insertOrUpdate
(
ManufacturerApiInfoInsertOrUpdateInVO
inVO
);
void
delete
(
DeleteListInVO
inVO
);
void
delete
(
Delete
ByIntegerId
ListInVO
inVO
);
}
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/ManufacturerService.java
View file @
18cd7f66
...
...
@@ -2,7 +2,7 @@ package net.wanji.utc.service.systemadmin;
import
com.github.pagehelper.PageInfo
;
import
net.wanji.utc.po.ManufacturerInfoPO
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.Delete
ByIntegerId
ListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerListInVO
;
...
...
@@ -15,5 +15,5 @@ public interface ManufacturerService {
void
insertOrUpdate
(
ManufacturerInsertOrUpdateInVO
inVO
);
void
delete
(
DeleteListInVO
inVO
);
void
delete
(
Delete
ByIntegerId
ListInVO
inVO
);
}
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/impl/CrossInfoServiceImpl.java
View file @
18cd7f66
...
...
@@ -15,6 +15,7 @@ import net.wanji.utc.util.PageUtils;
import
net.wanji.utc.vo.systemadmin.CrossInfoInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListOutVO
;
import
net.wanji.utc.vo.systemadmin.DeleteByStringIdListInVO
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -105,4 +106,10 @@ public class CrossInfoServiceImpl implements CrossInfoService {
crossInfoMapper
.
updateOne
(
crossInfoPO
);
}
}
@Override
public
void
delete
(
DeleteByStringIdListInVO
inVO
)
{
List
<
String
>
ids
=
inVO
.
getIds
();
crossInfoMapper
.
deleteBatch
(
ids
);
}
}
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/impl/ManufacturerApiInfoServiceImpl.java
View file @
18cd7f66
...
...
@@ -7,7 +7,7 @@ import net.wanji.utc.mapper.ManufacturerApiInfoMapper;
import
net.wanji.utc.mapper.ManufacturerInfoMapper
;
import
net.wanji.utc.po.ManufacturerApiInfoPO
;
import
net.wanji.utc.service.systemadmin.ManufacturerApiInfoService
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.Delete
ByIntegerId
ListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoListInVO
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -76,7 +76,7 @@ public class ManufacturerApiInfoServiceImpl implements ManufacturerApiInfoServic
}
@Override
public
void
delete
(
DeleteListInVO
inVO
)
{
public
void
delete
(
Delete
ByIntegerId
ListInVO
inVO
)
{
List
<
Integer
>
ids
=
inVO
.
getIds
();
manufacturerApiInfoMapper
.
deleteBatch
(
ids
);
}
...
...
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/impl/ManufacturerServiceImpl.java
View file @
18cd7f66
...
...
@@ -5,7 +5,7 @@ import com.github.pagehelper.PageInfo;
import
net.wanji.utc.mapper.ManufacturerInfoMapper
;
import
net.wanji.utc.po.ManufacturerInfoPO
;
import
net.wanji.utc.service.systemadmin.ManufacturerService
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.Delete
ByIntegerId
ListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerListInVO
;
import
org.springframework.beans.BeanUtils
;
...
...
@@ -51,7 +51,7 @@ public class ManufacturerServiceImpl implements ManufacturerService {
}
@Override
public
void
delete
(
DeleteListInVO
inVO
)
{
public
void
delete
(
Delete
ByIntegerId
ListInVO
inVO
)
{
List
<
Integer
>
ids
=
inVO
.
getIds
();
manufacturerInfoMapper
.
deleteBatch
(
ids
);
}
...
...
signal-utc-service/src/main/java/net/wanji/utc/vo/systemadmin/DeleteListInVO.java
→
signal-utc-service/src/main/java/net/wanji/utc/vo/systemadmin/Delete
ByIntegerId
ListInVO.java
View file @
18cd7f66
...
...
@@ -11,8 +11,8 @@ import java.util.List;
* @date 2022/11/24 10:10
*/
@Data
@ApiModel
(
value
=
"DeleteListInVO"
,
description
=
"厂商或接口删除输入参数"
)
public
class
DeleteListInVO
{
@ApiModel
(
value
=
"Delete
ByIntegerId
ListInVO"
,
description
=
"厂商或接口删除输入参数"
)
public
class
Delete
ByIntegerId
ListInVO
{
/** 厂商或接口ID列表 */
@ApiModelProperty
(
value
=
"厂商或接口ID列表"
,
notes
=
""
)
private
List
<
Integer
>
ids
;
...
...
signal-utc-service/src/main/java/net/wanji/utc/vo/systemadmin/DeleteByStringIdListInVO.java
0 → 100644
View file @
18cd7f66
package
net
.
wanji
.
utc
.
vo
.
systemadmin
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
/**
* @author Kent HAN
* @date 2022/11/24 10:10
*/
@Data
@ApiModel
(
value
=
"DeleteByStringIdListInVO"
,
description
=
"信号机删除输入参数"
)
public
class
DeleteByStringIdListInVO
{
/** 信号机ID列表 */
@ApiModelProperty
(
value
=
"信号机ID列表"
,
notes
=
""
)
private
List
<
String
>
ids
;
}
signal-utc-service/src/main/resources/mapper/CrossInfoMapper.xml
View file @
18cd7f66
...
...
@@ -64,6 +64,14 @@
where id = #{id}
</update>
<delete
id=
"deleteBatch"
>
delete from t_cross_info
where id in
<foreach
collection=
"ids"
item=
"id"
separator=
","
open=
"("
close=
")"
>
#{id}
</foreach>
</delete>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
>
select
id,name,code,manufacturer_id,ip,port,location,version,model,install_time,gmt_create,gmt_modified
...
...
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