Commit 790b6023 authored by tangwei's avatar tangwei

修改bug

parent f34a5d86
...@@ -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));
} }
......
...@@ -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));
......
...@@ -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>
......
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