Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
790b6023
Commit
790b6023
authored
Jun 02, 2020
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
f34a5d86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
FireSourceController.java
...in/amos/fas/business/controller/FireSourceController.java
+5
-0
FireStationController.java
...n/amos/fas/business/controller/FireStationController.java
+1
-1
dbTemplate_common.xml
...sStart/src/main/resources/db/mapper/dbTemplate_common.xml
+2
-2
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/FireSourceController.java
View file @
790b6023
...
@@ -44,6 +44,11 @@ public class FireSourceController extends BaseController {
...
@@ -44,6 +44,11 @@ public class FireSourceController extends BaseController {
fireEquipment
.
setCreateBy
(
getUserId
());
fireEquipment
.
setCreateBy
(
getUserId
());
fireEquipment
.
setCreateDate
(
new
Date
());
fireEquipment
.
setCreateDate
(
new
Date
());
fireEquipment
.
setOrgCode
(
compCode
);
fireEquipment
.
setOrgCode
(
compCode
);
//设备状态默认为正常
fireEquipment
.
setEquipStatus
(
0
);
return
CommonResponseUtil
.
success
(
iFireEquipService
.
save
(
fireEquipment
));
return
CommonResponseUtil
.
success
(
iFireEquipService
.
save
(
fireEquipment
));
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/FireStationController.java
View file @
790b6023
...
@@ -141,7 +141,7 @@ public class FireStationController extends BaseController {
...
@@ -141,7 +141,7 @@ public class FireStationController extends BaseController {
throw
new
Exception
(
"数据校验失败."
);
throw
new
Exception
(
"数据校验失败."
);
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
compCode
=
getOrgCode
(
reginParams
);
String
compCode
=
getOrgCode
(
reginParams
);
fireStation
.
setCreateBy
(
"0"
);
fireStation
.
setCreateBy
(
getUserId
()
);
fireStation
.
setCreateDate
(
new
Date
());
fireStation
.
setCreateDate
(
new
Date
());
fireStation
.
setOrgCode
(
compCode
);
fireStation
.
setOrgCode
(
compCode
);
return
CommonResponseUtil
.
success
(
iFireStationService
.
saveAndUpd
(
fireStation
,
file
));
return
CommonResponseUtil
.
success
(
iFireStationService
.
saveAndUpd
(
fireStation
,
file
));
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_common.xml
View file @
790b6023
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
count(p.id)
count(p.id)
FROM
FROM
p_point p
p_point p
where
1=1
where
p.is_delete='0'
<if
test=
"orgCode!=null"
>
and p.org_code = #{orgCode}
</if>
<if
test=
"orgCode!=null"
>
and p.org_code = #{orgCode}
</if>
<if
test=
"departmentId!=null"
>
and p.charge_dept_id = #{departmentId}
</if>
<if
test=
"departmentId!=null"
>
and p.charge_dept_id = #{departmentId}
</if>
<if
test=
"pointNo!=null"
>
and p.point_no like concat(concat("%",#{pointNo}),"%")
</if>
<if
test=
"pointNo!=null"
>
and p.point_no like concat(concat("%",#{pointNo}),"%")
</if>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
p.point_no pointNo
p.point_no pointNo
FROM
FROM
p_point p
p_point p
where
1=1
where
p.is_delete='0'
<if
test=
"orgCode!=null"
>
and p.org_code = #{orgCode}
</if>
<if
test=
"orgCode!=null"
>
and p.org_code = #{orgCode}
</if>
<if
test=
"departmentId!=null"
>
and p.charge_dept_id = #{departmentId}
</if>
<if
test=
"departmentId!=null"
>
and p.charge_dept_id = #{departmentId}
</if>
<if
test=
"pointNo!=null"
>
and p.point_no like concat(concat("%",#{pointNo}),"%")
</if>
<if
test=
"pointNo!=null"
>
and p.point_no like concat(concat("%",#{pointNo}),"%")
</if>
...
...
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