Commit 790b6023 authored by tangwei's avatar tangwei

修改bug

parent f34a5d86
......@@ -44,6 +44,11 @@ public class FireSourceController extends BaseController {
fireEquipment.setCreateBy(getUserId());
fireEquipment.setCreateDate(new Date());
fireEquipment.setOrgCode(compCode);
//设备状态默认为正常
fireEquipment.setEquipStatus(0);
return CommonResponseUtil.success(iFireEquipService.save(fireEquipment));
}
......
......@@ -141,7 +141,7 @@ public class FireStationController extends BaseController {
throw new Exception("数据校验失败.");
ReginParams reginParams =getSelectedOrgInfo();
String compCode=getOrgCode(reginParams);
fireStation.setCreateBy("0");
fireStation.setCreateBy(getUserId());
fireStation.setCreateDate(new Date());
fireStation.setOrgCode(compCode);
return CommonResponseUtil.success(iFireStationService.saveAndUpd(fireStation, file));
......
......@@ -7,7 +7,7 @@
count(p.id)
FROM
p_point p
where 1=1
where p.is_delete='0'
<if test="orgCode!=null"> and p.org_code = #{orgCode} </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>
......@@ -26,7 +26,7 @@
p.point_no pointNo
FROM
p_point p
where 1=1
where p.is_delete='0'
<if test="orgCode!=null"> and p.org_code = #{orgCode} </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>
......
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