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
e77935f4
Commit
e77935f4
authored
Jun 01, 2022
by
lisong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
5e3dcd6e
867306bc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
5 deletions
+18
-5
CarController.java
...ava/com/yeejoin/equipmanage/controller/CarController.java
+1
-1
CarMapper.java
...c/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
+2
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-1
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+2
-3
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+0
-0
CarMapper.xml
...boot-system-equip/src/main/resources/mapper/CarMapper.xml
+12
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/CarController.java
View file @
e77935f4
...
@@ -315,7 +315,7 @@ public class CarController extends AbstractBaseController {
...
@@ -315,7 +315,7 @@ public class CarController extends AbstractBaseController {
if
(
car
.
getIotCode
()!=
null
){
if
(
car
.
getIotCode
()!=
null
){
Car
ar
=
carMapper
.
getCarsByIotCode
(
car
.
getIotCode
());
Car
ar
=
carMapper
.
getCarsByIotCode
ExcludeCarId
(
car
.
getIotCode
(),
car
.
getId
());
if
(
ar
!=
null
){
if
(
ar
!=
null
){
throw
new
BadRequest
(
"物联编码重复"
);
throw
new
BadRequest
(
"物联编码重复"
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
View file @
e77935f4
...
@@ -38,6 +38,8 @@ public interface CarMapper extends BaseMapper<Car> {
...
@@ -38,6 +38,8 @@ public interface CarMapper extends BaseMapper<Car> {
Car
getCarsByIotCode
(
@Param
(
"iotCode"
)
String
iotCode
);
Car
getCarsByIotCode
(
@Param
(
"iotCode"
)
String
iotCode
);
Car
getCarsByIotCodeExcludeCarId
(
@Param
(
"iotCode"
)
String
iotCode
,
@Param
(
"carId"
)
Long
carId
);
List
<
CarIndexVo
>
getCarsInfoByOrgCode
(
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CarIndexVo
>
getCarsInfoByOrgCode
(
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CarIndexVo
>
getCarsIotInfoByIotCode
(
@Param
(
"iotCode"
)
String
iotCode
);
List
<
CarIndexVo
>
getCarsIotInfoByIotCode
(
@Param
(
"iotCode"
)
String
iotCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
e77935f4
...
@@ -181,7 +181,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -181,7 +181,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
*
*
* @param indexs
* @param indexs
*/
*/
void
updateEquipmentSpecIndexRealtimeData
(
List
<
EquipmentSpecificIndex
>
indexs
);
void
updateEquipmentSpecIndexRealtimeData
(
EquipmentSpecificIndex
index
);
List
<
EquipmentSpecificVo
>
getEquipAndCarIotcodeByIotcode
(
String
iotCode
);
List
<
EquipmentSpecificVo
>
getEquipAndCarIotcodeByIotcode
(
String
iotCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
e77935f4
...
@@ -1631,10 +1631,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1631,10 +1631,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
@Override
public
void
updateEquipmentSpecIndexRealtimeData
(
List
<
EquipmentSpecificIndex
>
indexs
)
{
public
void
updateEquipmentSpecIndexRealtimeData
(
EquipmentSpecificIndex
index
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
if
(!
ObjectUtils
.
isEmpty
(
indexs
))
{
if
(!
ObjectUtils
.
isEmpty
(
index
))
{
EquipmentSpecificIndex
index
=
indexs
.
get
(
0
);
EquipmentSpecific
es
=
equipmentSpecificMapper
.
selectById
(
index
.
getEquipmentSpecificId
());
EquipmentSpecific
es
=
equipmentSpecificMapper
.
selectById
(
index
.
getEquipmentSpecificId
());
es
.
setRealtimeIotEsIndexId
(
index
.
getId
());
es
.
setRealtimeIotEsIndexId
(
index
.
getId
());
es
.
setRealtimeIotIndexKey
(
index
.
getNameKey
());
es
.
setRealtimeIotIndexKey
(
index
.
getNameKey
());
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
e77935f4
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/CarMapper.xml
View file @
e77935f4
...
@@ -248,6 +248,18 @@
...
@@ -248,6 +248,18 @@
wc.iot_code = #{iotCode}
wc.iot_code = #{iotCode}
</select>
</select>
<select
id=
"getCarsByIotCodeExcludeCarId"
resultType=
"com.yeejoin.equipmanage.common.entity.Car"
>
SELECT
wc.car_num
FROM
wl_car wc
WHERE
wc.iot_code IS NOT NULL
AND
wc.iot_code = #{iotCode}
AND wc.id != #{carId}
</select>
<select
id=
"getCarsInfoByOrgCode"
resultMap=
"carIotInfoMap"
>
<select
id=
"getCarsInfoByOrgCode"
resultMap=
"carIotInfoMap"
>
SELECT
SELECT
...
...
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