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
61acf519
Commit
61acf519
authored
Jun 01, 2022
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into develop_dl_plan6
parents
7c32611a
867306bc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
1 deletion
+26
-1
CarController.java
...ava/com/yeejoin/equipmanage/controller/CarController.java
+1
-1
CarMapper.java
...c/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
+2
-0
CarMapper.xml
...boot-system-equip/src/main/resources/mapper/CarMapper.xml
+12
-0
jcs-1.0.0.0.xml
...ystem-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
+11
-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 @
61acf519
...
@@ -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 @
61acf519
...
@@ -37,6 +37,8 @@ public interface CarMapper extends BaseMapper<Car> {
...
@@ -37,6 +37,8 @@ public interface CarMapper extends BaseMapper<Car> {
List
<
String
>
getIotCodeList
(
@Param
(
"id"
)
String
id
);
List
<
String
>
getIotCodeList
(
@Param
(
"id"
)
String
id
);
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
);
...
...
amos-boot-system-equip/src/main/resources/mapper/CarMapper.xml
View file @
61acf519
...
@@ -247,6 +247,18 @@
...
@@ -247,6 +247,18 @@
AND
AND
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"
>
...
...
amos-boot-system-jcs/src/main/resources/db/changelog/jcs-1.0.0.0.xml
View file @
61acf519
...
@@ -3144,5 +3144,16 @@
...
@@ -3144,5 +3144,16 @@
</sql>
</sql>
</changeSet>
</changeSet>
<changeSet
author=
"ls"
id=
"2022-06-01-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"jc_power_transfer_company_resources"
columnName=
"arrival_time"
/>
</not>
</preConditions>
<comment>
jc_power_transfer_company_resources add column arrival_time 车辆到场时间
</comment>
<sql>
ALTER TABLE jc_power_transfer_company_resources ADD arrival_time varchar(255) NULL COMMENT '车辆到场时间';
</sql>
</changeSet>
</databaseChangeLog>
</databaseChangeLog>
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