消防管理区域、点位维护批量修改后,下级的数据部门也会变
parent
0cee09d25a
commit
eeca78908a
|
@ -112,4 +112,6 @@ public interface FireDeviceMapper {
|
||||||
void deleteAll(PageData pd);
|
void deleteAll(PageData pd);
|
||||||
|
|
||||||
List<PageData> exportDataList(PageData pd);
|
List<PageData> exportDataList(PageData pd);
|
||||||
|
|
||||||
|
void batchUpdPointDepAuserByRegId(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,4 +84,6 @@ public interface FirePointMapper {
|
||||||
void batchEditFirePointUser(PageData pd);
|
void batchEditFirePointUser(PageData pd);
|
||||||
|
|
||||||
List<PageData> findByIds(@Param("pointIds") List<String> pointIds);
|
List<PageData> findByIds(@Param("pointIds") List<String> pointIds);
|
||||||
|
|
||||||
|
void batchUpdPointDepAuserByRegId(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,4 +58,6 @@ public interface FireDeviceService {
|
||||||
void removeFireDeviceByIds(PageData pd);
|
void removeFireDeviceByIds(PageData pd);
|
||||||
|
|
||||||
List<PageData> exportDataList(PageData pd) throws Exception;
|
List<PageData> exportDataList(PageData pd) throws Exception;
|
||||||
|
|
||||||
|
void batchUpdPointDepAuserByRegId(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,4 +49,6 @@ public interface FirePointService {
|
||||||
void batchEditFirePointUser(PageData pd);
|
void batchEditFirePointUser(PageData pd);
|
||||||
|
|
||||||
List<PageData> findByIds(List<String> pointIds);
|
List<PageData> findByIds(List<String> pointIds);
|
||||||
|
|
||||||
|
void batchUpdPointDepAuserByRegId(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,5 +268,10 @@ public class FireDeviceServiceImpl implements FireDeviceService {
|
||||||
return fireDeviceMapper.exportDataList(pd);
|
return fireDeviceMapper.exportDataList(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void batchUpdPointDepAuserByRegId(PageData pd) {
|
||||||
|
fireDeviceMapper.batchUpdPointDepAuserByRegId(pd);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,4 +166,9 @@ public class FirePointServiceImpl implements FirePointService {
|
||||||
public List<PageData> findByIds(List<String> pointIds) {
|
public List<PageData> findByIds(List<String> pointIds) {
|
||||||
return firePointMapper.findByIds(pointIds);
|
return firePointMapper.findByIds(pointIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void batchUpdPointDepAuserByRegId(PageData pd) {
|
||||||
|
firePointMapper.batchUpdPointDepAuserByRegId(pd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,8 @@ import java.util.Map;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import com.zcloud.service.firemanager.FireDeviceService;
|
||||||
|
import com.zcloud.service.firemanager.FirePointService;
|
||||||
import com.zcloud.service.system.UsersService;
|
import com.zcloud.service.system.UsersService;
|
||||||
import com.zcloud.util.*;
|
import com.zcloud.util.*;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
@ -25,6 +27,10 @@ public class FireRegionServiceImpl implements FireRegionService {
|
||||||
@Resource
|
@Resource
|
||||||
private FireRegionMapper fireRegionMapper;
|
private FireRegionMapper fireRegionMapper;
|
||||||
@Resource
|
@Resource
|
||||||
|
private FirePointService firePointService;
|
||||||
|
@Resource
|
||||||
|
private FireDeviceService fireDeviceService;
|
||||||
|
@Resource
|
||||||
private InitPageDataUtil initPageDataUtil;
|
private InitPageDataUtil initPageDataUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -189,6 +195,11 @@ public class FireRegionServiceImpl implements FireRegionService {
|
||||||
pd.put("ArrayDATA_IDS", ArrayDATA_IDS);
|
pd.put("ArrayDATA_IDS", ArrayDATA_IDS);
|
||||||
initPageDataUtil.initEdit(pd);
|
initPageDataUtil.initEdit(pd);
|
||||||
fireRegionMapper.editDeptByIds(pd);
|
fireRegionMapper.editDeptByIds(pd);
|
||||||
|
// 点位
|
||||||
|
firePointService.batchUpdPointDepAuserByRegId(pd);
|
||||||
|
// 器材
|
||||||
|
fireDeviceService.batchUpdPointDepAuserByRegId(pd);
|
||||||
|
map.put("msg", "这些消防区域下所有消防点位的负责人已置空");
|
||||||
map.put("result", "success");
|
map.put("result", "success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,6 +80,20 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="batchUpdPointDepAuserByRegId">
|
||||||
|
update bus_fire_device
|
||||||
|
set DEPARTMENT_ID = #{DEPARTMENT_ID},
|
||||||
|
OPERATOR = #{OPERATOR},
|
||||||
|
OPERATTIME = #{OPERATTIME}
|
||||||
|
where FIRE_REGION_ID in
|
||||||
|
<foreach collection="ArrayDATA_IDS" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
|
||||||
|
and CORPINFO_ID = #{CORPINFO_ID}
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
|
||||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||||
SELECT
|
SELECT
|
||||||
fp.USER_ID,
|
fp.USER_ID,
|
||||||
|
|
|
@ -113,6 +113,24 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="batchUpdPointDepAuserByRegId">
|
||||||
|
update bus_fire_point
|
||||||
|
SET DEPARTMENT_ID = #{DEPARTMENT_ID},
|
||||||
|
<if test="QUALIFIED_PHOTOS_ID != null and QUALIFIED_PHOTOS_ID != ''">
|
||||||
|
QUALIFIED_PHOTOS_ID = #{QUALIFIED_PHOTOS_ID},
|
||||||
|
</if>
|
||||||
|
USER_ID = null,
|
||||||
|
OPERATOR = #{OPERATOR},
|
||||||
|
OPERATTIME = #{OPERATTIME}
|
||||||
|
WHERE FIRE_REGION_ID in
|
||||||
|
<foreach collection="ArrayDATA_IDS" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
<if test="CORPINFO_ID != null and CORPINFO_ID != ''">
|
||||||
|
and CORPINFO_ID = #{CORPINFO_ID}
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
|
||||||
<select id="datalistPage" parameterType="page" resultType="pd">
|
<select id="datalistPage" parameterType="page" resultType="pd">
|
||||||
SELECT
|
SELECT
|
||||||
p.FIRE_POINT_ID,
|
p.FIRE_POINT_ID,
|
||||||
|
|
Loading…
Reference in New Issue