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
6f54e94d
Commit
6f54e94d
authored
Nov 25, 2022
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系统管理-设备管理-信号机管理
parent
9ed13c40
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
107 additions
and
24 deletions
+107
-24
ApiInfoTask.java
.../src/main/java/net/wanji/utc/common/task/ApiInfoTask.java
+2
-2
CrossInfoController.java
...in/java/net/wanji/utc/controller/CrossInfoController.java
+5
-10
ManufacturerInfoMapper.java
...ain/java/net/wanji/utc/mapper/ManufacturerInfoMapper.java
+1
-1
SignalStatusServiceImpl.java
...utc/service/runninginfo/impl/SignalStatusServiceImpl.java
+1
-1
HkStaticInfoServiceImpl.java
.../utc/service/staticinfo/impl/HkStaticInfoServiceImpl.java
+1
-1
StaticInfoServiceImpl.java
...ji/utc/service/staticinfo/impl/StaticInfoServiceImpl.java
+1
-1
CrossInfoService.java
...a/net/wanji/utc/service/systemadmin/CrossInfoService.java
+2
-2
CrossInfoServiceImpl.java
...ji/utc/service/systemadmin/impl/CrossInfoServiceImpl.java
+18
-3
PageUtils.java
...c-service/src/main/java/net/wanji/utc/util/PageUtils.java
+20
-0
CrossInfoListInVO.java
.../java/net/wanji/utc/vo/systemadmin/CrossInfoListInVO.java
+2
-0
CrossInfoListOutVO.java
...java/net/wanji/utc/vo/systemadmin/CrossInfoListOutVO.java
+51
-0
CrossInfoMapper.xml
...utc-service/src/main/resources/mapper/CrossInfoMapper.xml
+1
-1
ManufacturerInfoMapper.xml
...vice/src/main/resources/mapper/ManufacturerInfoMapper.xml
+2
-2
No files found.
signal-utc-service/src/main/java/net/wanji/utc/common/task/ApiInfoTask.java
View file @
6f54e94d
...
@@ -34,8 +34,8 @@ public class ApiInfoTask {
...
@@ -34,8 +34,8 @@ public class ApiInfoTask {
for
(
ManufacturerApiInfoPO
infoPO
:
manufacturerApiInfoPOList
)
{
for
(
ManufacturerApiInfoPO
infoPO
:
manufacturerApiInfoPOList
)
{
Integer
manufacturerId
=
infoPO
.
getManufacturerId
();
Integer
manufacturerId
=
infoPO
.
getManufacturerId
();
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectById
(
manufacturerId
);
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectById
(
manufacturerId
);
String
abbr
=
manufacturerInfoPO
.
getCode
();
String
code
=
manufacturerInfoPO
.
getCode
();
String
s
=
abbr
+
Constants
.
SEPARATOR_UNDER_LINE
+
infoPO
.
getCode
();
String
s
=
code
+
Constants
.
SEPARATOR_UNDER_LINE
+
infoPO
.
getCode
();
Constants
.
putManufacturerUrlMap
(
s
,
infoPO
);
Constants
.
putManufacturerUrlMap
(
s
,
infoPO
);
}
}
log
.
info
(
"刷新"
+
manufacturerApiInfoPOList
.
size
()
+
"条厂商URL至JVM"
);
log
.
info
(
"刷新"
+
manufacturerApiInfoPOList
.
size
()
+
"条厂商URL至JVM"
);
...
...
signal-utc-service/src/main/java/net/wanji/utc/controller/CrossInfoController.java
View file @
6f54e94d
...
@@ -7,13 +7,8 @@ import io.swagger.annotations.ApiResponse;
...
@@ -7,13 +7,8 @@ import io.swagger.annotations.ApiResponse;
import
io.swagger.annotations.ApiResponses
;
import
io.swagger.annotations.ApiResponses
;
import
net.wanji.utc.entity.JsonViewObject
;
import
net.wanji.utc.entity.JsonViewObject
;
import
net.wanji.utc.po.CrossInfoPO
;
import
net.wanji.utc.po.CrossInfoPO
;
import
net.wanji.utc.po.ManufacturerApiInfoPO
;
import
net.wanji.utc.service.systemadmin.CrossInfoService
;
import
net.wanji.utc.service.systemadmin.CrossInfoService
;
import
net.wanji.utc.service.systemadmin.ManufacturerApiInfoService
;
import
net.wanji.utc.vo.systemadmin.*
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.DeleteListInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoInsertOrUpdateInVO
;
import
net.wanji.utc.vo.systemadmin.ManufacturerApiInfoListInVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -36,18 +31,18 @@ public class CrossInfoController {
...
@@ -36,18 +31,18 @@ public class CrossInfoController {
@Autowired
@Autowired
CrossInfoService
crossInfoService
;
CrossInfoService
crossInfoService
;
@ApiOperation
(
value
=
"信号机列表"
,
notes
=
"信号机列表"
,
response
=
CrossInfo
P
O
.
class
,
@ApiOperation
(
value
=
"信号机列表"
,
notes
=
"信号机列表"
,
response
=
CrossInfo
ListOutV
O
.
class
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@PostMapping
(
value
=
"/list"
,
@PostMapping
(
value
=
"/list"
,
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
produces
=
MediaType
.
APPLICATION_JSON
,
consumes
=
MediaType
.
APPLICATION_JSON
)
@ApiResponses
({
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CrossInfo
P
O
.
class
),
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
CrossInfo
ListOutV
O
.
class
),
})
})
public
JsonViewObject
list
(
@RequestBody
CrossInfoListInVO
crossInfoListInVO
)
{
public
JsonViewObject
list
(
@RequestBody
CrossInfoListInVO
crossInfoListInVO
)
{
PageInfo
<
CrossInfo
PO
>
crossInfoP
OPageInfo
=
crossInfoService
.
list
(
crossInfoListInVO
);
PageInfo
<
CrossInfo
ListOutVO
>
crossInfoListOutV
OPageInfo
=
crossInfoService
.
list
(
crossInfoListInVO
);
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
JsonViewObject
jsonViewObject
=
JsonViewObject
.
newInstance
();
return
jsonViewObject
.
success
(
crossInfo
P
OPageInfo
);
return
jsonViewObject
.
success
(
crossInfo
ListOutV
OPageInfo
);
}
}
// @ApiOperation(value = "接口添加或修改", notes = "接口添加或修改", consumes = MediaType.APPLICATION_JSON)
// @ApiOperation(value = "接口添加或修改", notes = "接口添加或修改", consumes = MediaType.APPLICATION_JSON)
...
...
signal-utc-service/src/main/java/net/wanji/utc/mapper/ManufacturerInfoMapper.java
View file @
6f54e94d
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
*/
*/
public
interface
ManufacturerInfoMapper
{
public
interface
ManufacturerInfoMapper
{
ManufacturerInfoPO
selectBy
Abbr
(
@Param
(
"abbr"
)
String
abbr
);
ManufacturerInfoPO
selectBy
Code
(
@Param
(
"code"
)
String
code
);
ManufacturerInfoPO
selectById
(
@Param
(
"manufacturerId"
)
Integer
manufacturerId
);
ManufacturerInfoPO
selectById
(
@Param
(
"manufacturerId"
)
Integer
manufacturerId
);
...
...
signal-utc-service/src/main/java/net/wanji/utc/service/runninginfo/impl/SignalStatusServiceImpl.java
View file @
6f54e94d
...
@@ -104,7 +104,7 @@ public class SignalStatusServiceImpl implements SignalStatusService {
...
@@ -104,7 +104,7 @@ public class SignalStatusServiceImpl implements SignalStatusService {
private
List
<
BaseCrossInfo
>
getBaseCrossInfoList
(
BasicEnum
.
ManufacturerEnum
manufacturerEnum
)
{
private
List
<
BaseCrossInfo
>
getBaseCrossInfoList
(
BasicEnum
.
ManufacturerEnum
manufacturerEnum
)
{
// 查询路口信息
// 查询路口信息
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectBy
Abbr
(
manufacturerEnum
.
getCode
());
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectBy
Code
(
manufacturerEnum
.
getCode
());
Integer
manufacturerId
=
manufacturerInfoPO
.
getId
();
Integer
manufacturerId
=
manufacturerInfoPO
.
getId
();
List
<
CrossInfoPO
>
crossInfoPOList
=
crossInfoMapper
.
selectByManufacturerId
(
manufacturerId
);
List
<
CrossInfoPO
>
crossInfoPOList
=
crossInfoMapper
.
selectByManufacturerId
(
manufacturerId
);
if
(
ListUtil
.
isEmpty
(
crossInfoPOList
))
{
if
(
ListUtil
.
isEmpty
(
crossInfoPOList
))
{
...
...
signal-utc-service/src/main/java/net/wanji/utc/service/staticinfo/impl/HkStaticInfoServiceImpl.java
View file @
6f54e94d
...
@@ -74,7 +74,7 @@ public class HkStaticInfoServiceImpl implements HkStaticInfoService {
...
@@ -74,7 +74,7 @@ public class HkStaticInfoServiceImpl implements HkStaticInfoService {
crossInfoPO
.
setId
(
IdUtil
.
simpleUUID
());
crossInfoPO
.
setId
(
IdUtil
.
simpleUUID
());
crossInfoPO
.
setName
(
crossName
);
crossInfoPO
.
setName
(
crossName
);
crossInfoPO
.
setCode
(
crossCode
);
crossInfoPO
.
setCode
(
crossCode
);
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectBy
Abbr
(
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectBy
Code
(
BasicEnum
.
ManufacturerEnum
.
HK
.
getCode
());
BasicEnum
.
ManufacturerEnum
.
HK
.
getCode
());
if
(
manufacturerInfoPO
!=
null
)
{
if
(
manufacturerInfoPO
!=
null
)
{
crossInfoPO
.
setManufacturerId
(
manufacturerInfoPO
.
getId
());
crossInfoPO
.
setManufacturerId
(
manufacturerInfoPO
.
getId
());
...
...
signal-utc-service/src/main/java/net/wanji/utc/service/staticinfo/impl/StaticInfoServiceImpl.java
View file @
6f54e94d
...
@@ -69,7 +69,7 @@ public class StaticInfoServiceImpl implements StaticInfoService {
...
@@ -69,7 +69,7 @@ public class StaticInfoServiceImpl implements StaticInfoService {
crossInfoPO
.
setId
(
id
);
crossInfoPO
.
setId
(
id
);
crossInfoPO
.
setName
(
vo
.
getCrossName
());
crossInfoPO
.
setName
(
vo
.
getCrossName
());
crossInfoPO
.
setCode
(
id
);
crossInfoPO
.
setCode
(
id
);
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectBy
Abbr
(
vo
.
getManufacturerCode
());
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectBy
Code
(
vo
.
getManufacturerCode
());
if
(
manufacturerInfoPO
!=
null
)
{
if
(
manufacturerInfoPO
!=
null
)
{
crossInfoPO
.
setManufacturerId
(
manufacturerInfoPO
.
getId
());
crossInfoPO
.
setManufacturerId
(
manufacturerInfoPO
.
getId
());
}
}
...
...
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/CrossInfoService.java
View file @
6f54e94d
package
net
.
wanji
.
utc
.
service
.
systemadmin
;
package
net
.
wanji
.
utc
.
service
.
systemadmin
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
net.wanji.utc.po.CrossInfoPO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListOutVO
;
/**
/**
* @author Kent HAN
* @author Kent HAN
* @date 2022/11/25 8:54
* @date 2022/11/25 8:54
*/
*/
public
interface
CrossInfoService
{
public
interface
CrossInfoService
{
PageInfo
<
CrossInfo
P
O
>
list
(
CrossInfoListInVO
crossInfoListInVO
);
PageInfo
<
CrossInfo
ListOutV
O
>
list
(
CrossInfoListInVO
crossInfoListInVO
);
}
}
signal-utc-service/src/main/java/net/wanji/utc/service/systemadmin/impl/CrossInfoServiceImpl.java
View file @
6f54e94d
...
@@ -5,12 +5,16 @@ import com.github.pagehelper.PageInfo;
...
@@ -5,12 +5,16 @@ import com.github.pagehelper.PageInfo;
import
net.wanji.utc.mapper.CrossInfoMapper
;
import
net.wanji.utc.mapper.CrossInfoMapper
;
import
net.wanji.utc.mapper.ManufacturerInfoMapper
;
import
net.wanji.utc.mapper.ManufacturerInfoMapper
;
import
net.wanji.utc.po.CrossInfoPO
;
import
net.wanji.utc.po.CrossInfoPO
;
import
net.wanji.utc.po.Manufacturer
Api
InfoPO
;
import
net.wanji.utc.po.ManufacturerInfoPO
;
import
net.wanji.utc.service.systemadmin.CrossInfoService
;
import
net.wanji.utc.service.systemadmin.CrossInfoService
;
import
net.wanji.utc.util.PageUtils
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListInVO
;
import
net.wanji.utc.vo.systemadmin.CrossInfoListOutVO
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -25,7 +29,7 @@ public class CrossInfoServiceImpl implements CrossInfoService {
...
@@ -25,7 +29,7 @@ public class CrossInfoServiceImpl implements CrossInfoService {
CrossInfoMapper
crossInfoMapper
;
CrossInfoMapper
crossInfoMapper
;
@Override
@Override
public
PageInfo
<
CrossInfo
P
O
>
list
(
CrossInfoListInVO
crossInfoListInVO
)
{
public
PageInfo
<
CrossInfo
ListOutV
O
>
list
(
CrossInfoListInVO
crossInfoListInVO
)
{
Integer
pageNum
=
crossInfoListInVO
.
getPageNum
();
Integer
pageNum
=
crossInfoListInVO
.
getPageNum
();
Integer
pageSize
=
crossInfoListInVO
.
getPageSize
();
Integer
pageSize
=
crossInfoListInVO
.
getPageSize
();
...
@@ -40,7 +44,18 @@ public class CrossInfoServiceImpl implements CrossInfoService {
...
@@ -40,7 +44,18 @@ public class CrossInfoServiceImpl implements CrossInfoService {
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
CrossInfoPO
>
crossInfoPOList
=
crossInfoMapper
.
selectByOptionals
(
crossName
,
manufacturerId
);
List
<
CrossInfoPO
>
crossInfoPOList
=
crossInfoMapper
.
selectByOptionals
(
crossName
,
manufacturerId
);
PageInfo
<
CrossInfoPO
>
crossInfoPOPageInfo
=
new
PageInfo
<>(
crossInfoPOList
);
PageInfo
<
CrossInfoPO
>
crossInfoPOPageInfo
=
new
PageInfo
<>(
crossInfoPOList
);
// 转换为VO类型的PageInfo对象
PageInfo
<
CrossInfoListOutVO
>
crossInfoListOutVOPageInfo
=
PageUtils
.
PageInfo2PageInfoVo
(
crossInfoPOPageInfo
);
for
(
CrossInfoPO
crossInfoPO
:
crossInfoPOList
)
{
CrossInfoListOutVO
crossInfoListOutVO
=
new
CrossInfoListOutVO
();
BeanUtils
.
copyProperties
(
crossInfoPO
,
crossInfoListOutVO
);
Integer
manufacturerIdInPage
=
crossInfoPO
.
getManufacturerId
();
ManufacturerInfoPO
manufacturerInfoPO
=
manufacturerInfoMapper
.
selectById
(
manufacturerIdInPage
);
String
nickName
=
manufacturerInfoPO
.
getNickName
();
crossInfoListOutVO
.
setManufacturerNick
(
nickName
);
crossInfoListOutVOPageInfo
.
getList
().
add
(
crossInfoListOutVO
);
}
return
crossInfo
P
OPageInfo
;
return
crossInfo
ListOutV
OPageInfo
;
}
}
}
}
signal-utc-service/src/main/java/net/wanji/utc/util/PageUtils.java
0 → 100644
View file @
6f54e94d
package
net
.
wanji
.
utc
.
util
;
import
com.github.pagehelper.Page
;
import
com.github.pagehelper.PageInfo
;
public
class
PageUtils
{
/**
* 将PageInfo对象泛型中的Po对象转化为Vo对象
* @param pageInfoPo PageInfo<Po>对象</>
* @param <P> Po类型
* @param <V> Vo类型
* @return
*/
public
static
<
P
,
V
>
PageInfo
<
V
>
PageInfo2PageInfoVo
(
PageInfo
<
P
>
pageInfoPo
)
{
// 创建Page对象,实际上是一个ArrayList类型的集合
Page
<
V
>
page
=
new
Page
<>(
pageInfoPo
.
getPageNum
(),
pageInfoPo
.
getPageSize
());
page
.
setTotal
(
pageInfoPo
.
getTotal
());
return
new
PageInfo
<>(
page
);
}
}
\ No newline at end of file
signal-utc-service/src/main/java/net/wanji/utc/vo/systemadmin/CrossInfoListInVO.java
View file @
6f54e94d
package
net
.
wanji
.
utc
.
vo
.
systemadmin
;
package
net
.
wanji
.
utc
.
vo
.
systemadmin
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -8,6 +9,7 @@ import lombok.Data;
...
@@ -8,6 +9,7 @@ import lombok.Data;
* @date 2022/11/25 8:55
* @date 2022/11/25 8:55
*/
*/
@Data
@Data
@ApiModel
(
value
=
"CrossInfoListInVO"
,
description
=
"信号机列表输入参数"
)
public
class
CrossInfoListInVO
{
public
class
CrossInfoListInVO
{
@ApiModelProperty
(
required
=
true
,
value
=
"页号"
)
@ApiModelProperty
(
required
=
true
,
value
=
"页号"
)
Integer
pageNum
;
Integer
pageNum
;
...
...
signal-utc-service/src/main/java/net/wanji/utc/vo/systemadmin/CrossInfoListOutVO.java
0 → 100644
View file @
6f54e94d
package
net
.
wanji
.
utc
.
vo
.
systemadmin
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.Date
;
/**
* @author Kent HAN
* @date 2022/11/25 10:03
*/
@Data
@ApiModel
(
value
=
"CrossInfoListOutVO"
,
description
=
"信号机列表返回参数"
)
public
class
CrossInfoListOutVO
{
@ApiModelProperty
(
value
=
"路口ID"
,
notes
=
""
)
private
String
id
;
/** 路口名称 */
@ApiModelProperty
(
value
=
"路口名称"
,
notes
=
""
)
private
String
name
;
/** 信号机编号 */
@ApiModelProperty
(
value
=
"信号机编号"
,
notes
=
""
)
private
String
code
;
/** 信号机厂商 */
@ApiModelProperty
(
value
=
"信号机厂商"
,
notes
=
""
)
private
String
manufacturerNick
;
/** 信号机IP */
@ApiModelProperty
(
value
=
"信号机IP"
,
notes
=
""
)
private
String
ip
;
/** 信号机端口 */
@ApiModelProperty
(
value
=
"信号机端口"
,
notes
=
""
)
private
Integer
port
;
/** 经纬度 */
@ApiModelProperty
(
value
=
"经纬度"
,
notes
=
""
)
private
String
location
;
/** 版本号 */
@ApiModelProperty
(
value
=
"版本号"
,
notes
=
""
)
private
String
version
;
/** 型号 */
@ApiModelProperty
(
value
=
"型号"
,
notes
=
""
)
private
String
model
;
/** 安装时间 */
@ApiModelProperty
(
value
=
"安装时间"
,
notes
=
""
)
private
Date
installTime
;
/** 创建时间 */
@ApiModelProperty
(
value
=
"创建时间"
,
notes
=
""
)
private
Date
gmtCreate
;
/** 修改时间 */
@ApiModelProperty
(
value
=
"修改时间"
,
notes
=
""
)
private
Date
gmtModified
;
}
signal-utc-service/src/main/resources/mapper/CrossInfoMapper.xml
View file @
6f54e94d
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
select id,name,code,manufacturer_id,ip,port,location,version,model,install_time,gmt_create,gmt_modified
select id,name,code,manufacturer_id,ip,port,location,version,model,install_time,gmt_create,gmt_modified
from t_cross_info
from t_cross_info
<where>
<where>
<if
test=
"crossName != null and
n
ame != ''"
>
<if
test=
"crossName != null and
crossN
ame != ''"
>
AND name LIKE CONCAT('%',#{crossName},'%')
AND name LIKE CONCAT('%',#{crossName},'%')
</if>
</if>
<if
test=
"manufacturerId != null and manufacturerId != 0"
>
<if
test=
"manufacturerId != null and manufacturerId != 0"
>
...
...
signal-utc-service/src/main/resources/mapper/ManufacturerInfoMapper.xml
View file @
6f54e94d
...
@@ -47,11 +47,11 @@
...
@@ -47,11 +47,11 @@
</foreach>
</foreach>
</delete>
</delete>
<select
id=
"selectBy
Abbr
"
resultMap=
"BaseResultMap"
>
<select
id=
"selectBy
Code
"
resultMap=
"BaseResultMap"
>
select
select
id,code,name,nick_name,address,maintenance_unit,gmt_create,gmt_modified
id,code,name,nick_name,address,maintenance_unit,gmt_create,gmt_modified
from t_manufacturer_info
from t_manufacturer_info
where code = #{
abbr
}
where code = #{
code
}
</select>
</select>
<select
id=
"selectById"
resultMap=
"BaseResultMap"
>
<select
id=
"selectById"
resultMap=
"BaseResultMap"
>
...
...
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