Commit 2ecb096f authored by litengwei's avatar litengwei

机场巡检记录改造

parent 03061535
...@@ -1131,8 +1131,6 @@ public class PointServiceImpl implements IPointService { ...@@ -1131,8 +1131,6 @@ public class PointServiceImpl implements IPointService {
if (departmentBos != null && departmentBos.size() > 0) { if (departmentBos != null && departmentBos.size() > 0) {
for (int i = 0; i < departmentBos.size(); i++) { for (int i = 0; i < departmentBos.size(); i++) {
point.put("departmentName", departmentBos.get(i).get("departmentName")); point.put("departmentName", departmentBos.get(i).get("departmentName"));
} }
} }
......
...@@ -321,29 +321,32 @@ ...@@ -321,29 +321,32 @@
limit #{offset},#{pageSize}; limit #{offset},#{pageSize};
</select> </select>
<select id="getPointById" resultType="Map"> <select id="getPointById" resultType="Map">
SELECT SELECT
p.id, p.id,
p.route_name routeName, p.route_name routeName,
p.point_no pointNo, p.point_no pointNo,
p.NAME pointName, p.name pointName,
(CASE p.is_fixed p.address,
WHEN 1 THEN p.level,
'固定点' p.status,
ELSE (CASE p.is_fixed
'移动点' WHEN 1 THEN
END) fixed, '固定点'
p.charge_person_name userName, ELSE
p.charge_dept_id depid, '移动点'
IFNULL(p.risk_source_id, '') as buildingId, END) fixed,
p.remark, p.charge_person_name userName,
p.offline p.charge_dept_id depid,
IFNULL(p.risk_source_id, '') as buildingId,
p.remark,
p.offline
FROM FROM
p_point p p_point p
<!-- LEFT JOIN s_user u ON u.id = p.charge_person_id <!-- LEFT JOIN s_user u ON u.id = p.charge_person_id
LEFT JOIN s_department d on u.department_id = d.id --> LEFT JOIN s_department d on u.department_id = d.id -->
where p.id = #{pointId} where p.id = #{pointId}
</select> </select>
<select id="getPointInputItem" resultType="Map"> <select id="getPointInputItem" resultType="Map">
SELECT SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment