parent
9a02ced835
commit
f6c1731098
@ -0,0 +1,96 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.vo.ClassificationConfigVO; |
||||
import com.cjy.emergencycommand.domain.vo.WaringClassificationConfigVO; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.PutMapping; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
import com.cjy.emergencycommand.domain.ClassificationConfig; |
||||
import com.cjy.emergencycommand.service.ClassificationConfigService; |
||||
|
||||
/** |
||||
* 类型配置Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencycommand/classification") |
||||
public class ClassificationConfigController extends BaseController { |
||||
@Autowired |
||||
private ClassificationConfigService classificationConfigService; |
||||
|
||||
/** |
||||
* 查询类型配置列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classification:list')") |
||||
@GetMapping("/list") |
||||
public AjaxResult list(ClassificationConfig classificationConfig) { |
||||
classificationConfig.setOrganCode(getUserOrganCode()); |
||||
List<ClassificationConfigVO> list = classificationConfigService.selectClassificationConfigList(classificationConfig); |
||||
return AjaxResult.success(list); |
||||
} |
||||
|
||||
/** |
||||
* 查询警情类型配置树 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classification:list')") |
||||
@GetMapping("/waringList") |
||||
public AjaxResult waringList(ClassificationConfig classificationConfig) { |
||||
classificationConfig.setOrganCode(getUserOrganCode()); |
||||
List<WaringClassificationConfigVO> list = classificationConfigService.selectWaringClassificationConfigList(classificationConfig); |
||||
return AjaxResult.success(list); |
||||
} |
||||
|
||||
/** |
||||
* 获取类型配置详细信息 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classification:query')") |
||||
@GetMapping(value = "/{id}") |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
return success(classificationConfigService.selectClassificationConfigById(id)); |
||||
} |
||||
|
||||
/** |
||||
* 新增类型配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classification:add')") |
||||
@Log(title = "类型配置", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody ClassificationConfig classificationConfig) { |
||||
return toAjax(classificationConfigService.insertClassificationConfig(classificationConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 修改类型配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classification:edit')") |
||||
@Log(title = "类型配置", businessType = BusinessType.UPDATE) |
||||
@PutMapping |
||||
public AjaxResult edit(@RequestBody ClassificationConfig classificationConfig) { |
||||
return toAjax(classificationConfigService.updateClassificationConfig(classificationConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 删除类型配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classification:remove')") |
||||
@Log(title = "类型配置", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
return toAjax(classificationConfigService.deleteClassificationConfigByIds(ids)); |
||||
} |
||||
} |
@ -0,0 +1,98 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import java.util.List; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.PutMapping; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
import com.cjy.emergencycommand.domain.ClassificationDataConfig; |
||||
import com.cjy.emergencycommand.service.ClassificationDataConfigService; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
import com.ruoyi.common.core.page.TableDataInfo; |
||||
|
||||
/** |
||||
* 类型数据配置Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencycommand/classificationData") |
||||
public class ClassificationDataConfigController extends BaseController { |
||||
@Autowired |
||||
private ClassificationDataConfigService classificationDataConfigService; |
||||
|
||||
/** |
||||
* 查询类型数据配置列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classificationData:list')") |
||||
@GetMapping("/list") |
||||
public TableDataInfo list(ClassificationDataConfig classificationDataConfig) { |
||||
startPage(); |
||||
List<ClassificationDataConfig> list = classificationDataConfigService.selectClassificationDataConfigList(classificationDataConfig); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 导出类型数据配置列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classificationData:export')") |
||||
@Log(title = "类型数据配置", businessType = BusinessType.EXPORT) |
||||
@PostMapping("/export") |
||||
public void export(HttpServletResponse response, ClassificationDataConfig classificationDataConfig) { |
||||
List<ClassificationDataConfig> list = classificationDataConfigService.selectClassificationDataConfigList(classificationDataConfig); |
||||
ExcelUtil<ClassificationDataConfig> util = new ExcelUtil<ClassificationDataConfig>(ClassificationDataConfig.class); |
||||
util.exportExcel(response, list, "类型数据配置数据"); |
||||
} |
||||
|
||||
/** |
||||
* 获取类型数据配置详细信息 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classificationData:query')") |
||||
@GetMapping(value = "/{id}") |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
return success(classificationDataConfigService.selectClassificationDataConfigById(id)); |
||||
} |
||||
|
||||
/** |
||||
* 新增类型数据配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classificationData:add')") |
||||
@Log(title = "类型数据配置", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody ClassificationDataConfig classificationDataConfig) { |
||||
return toAjax(classificationDataConfigService.insertClassificationDataConfig(classificationDataConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 修改类型数据配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classificationData:edit')") |
||||
@Log(title = "类型数据配置", businessType = BusinessType.UPDATE) |
||||
@PutMapping |
||||
public AjaxResult edit(@RequestBody ClassificationDataConfig classificationDataConfig) { |
||||
return toAjax(classificationDataConfigService.updateClassificationDataConfig(classificationDataConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 删除类型数据配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:classificationData:remove')") |
||||
@Log(title = "类型数据配置", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
return toAjax(classificationDataConfigService.deleteClassificationDataConfigByIds(ids)); |
||||
} |
||||
} |
@ -0,0 +1,46 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import com.cjy.emergencycommand.domain.PreplanInfo; |
||||
import com.cjy.emergencycommand.domain.vo.PreplanInfoVO; |
||||
import com.cjy.emergencycommand.service.PreplanInfoService; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.core.domain.entity.SysDictData; |
||||
import com.ruoyi.common.core.domain.entity.SysDictType; |
||||
import com.ruoyi.common.core.page.TableDataInfo; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
import com.ruoyi.system.service.ISysDictTypeService; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.Comparator; |
||||
import java.util.List; |
||||
import java.util.stream.Collectors; |
||||
|
||||
/** |
||||
* 公用Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencycommand/comment") |
||||
public class CommentController extends BaseController { |
||||
@Autowired |
||||
private ISysDictTypeService sysDictTypeService; |
||||
|
||||
/** |
||||
* 查询应急预案管理列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:prePlan:list')") |
||||
@GetMapping("dictData/{id}") |
||||
public AjaxResult list(@PathVariable("id") Long id) { |
||||
SysDictType sysDictType = sysDictTypeService.selectDictTypeById(id); |
||||
List<SysDictData> sysDictDataList = sysDictTypeService.selectDictDataByType(sysDictType.getDictType()); |
||||
sysDictDataList = sysDictDataList.stream().sorted(Comparator.comparing(SysDictData::getDictValue)).collect(Collectors.toList()); |
||||
return AjaxResult.success(sysDictDataList); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,72 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingConfig; |
||||
import com.cjy.emergencycommand.service.GroupingConfigService; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.PutMapping; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
|
||||
/** |
||||
* 应急管理排班分组配置Controller |
||||
* |
||||
* @author ruoyi |
||||
* @date 2023-02-27 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencyCommand/grouping") |
||||
public class GroupingConfigController extends BaseController { |
||||
@Autowired |
||||
private GroupingConfigService ecEmergencyCommandGroupingConfigService; |
||||
|
||||
/** |
||||
* 查询应急管理排班分组配置列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:grouping:list')") |
||||
@GetMapping("/list") |
||||
public AjaxResult list(GroupingConfig emergencyCommandGroupingConfig) { |
||||
emergencyCommandGroupingConfig.setOrganCode(getUserOrganCode()); |
||||
return AjaxResult.success(ecEmergencyCommandGroupingConfigService.selectEcEmergencyCommandGroupingConfigList(emergencyCommandGroupingConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 新增应急管理排班分组配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:grouping:add')") |
||||
@Log(title = "应急管理排班分组配置", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody GroupingConfig emergencyCommandGroupingConfig) { |
||||
emergencyCommandGroupingConfig.setOrganCode(getUserOrganCode()); |
||||
return toAjax(ecEmergencyCommandGroupingConfigService.insertEcEmergencyCommandGroupingConfig(emergencyCommandGroupingConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 修改应急管理排班分组配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:grouping:edit')") |
||||
@Log(title = "应急管理排班分组配置", businessType = BusinessType.UPDATE) |
||||
@PutMapping |
||||
public AjaxResult edit(@RequestBody GroupingConfig emergencyCommandGroupingConfig) { |
||||
return toAjax(ecEmergencyCommandGroupingConfigService.updateEcEmergencyCommandGroupingConfig(emergencyCommandGroupingConfig)); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急管理排班分组配置 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:grouping:remove')") |
||||
@Log(title = "应急管理排班分组配置", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
return toAjax(ecEmergencyCommandGroupingConfigService.deleteEcEmergencyCommandGroupingConfigByIds(ids)); |
||||
} |
||||
} |
@ -0,0 +1,89 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import java.util.List; |
||||
|
||||
|
||||
import com.cjy.emergencycommand.domain.dto.GroupUserDTO; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingUserInfoVO; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
|
||||
import com.ruoyi.common.core.page.TableDataInfo; |
||||
|
||||
/** |
||||
* 应急管理值守人员Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-27 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencyCommand/groupingUsers") |
||||
public class GroupingUserInfoController extends BaseController { |
||||
@Autowired |
||||
private com.cjy.emergencycommand.service.GroupingUserInfoService GroupingUserInfoService; |
||||
|
||||
/** |
||||
* 查询应急管理值守人员列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsers:list')") |
||||
@GetMapping("/list") |
||||
public TableDataInfo list(GroupUserDTO groupUserDTO) { |
||||
startPage(); |
||||
List<GroupingUserInfoVO> list = GroupingUserInfoService.selectGroupingUserInfoListByUserInfo(groupUserDTO); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 获取应急管理值守人员详细信息 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsers:query')") |
||||
@GetMapping(value = "/{id}") |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
return success(GroupingUserInfoService.selectGroupingUserInfoById(id)); |
||||
} |
||||
|
||||
/** |
||||
* 批量新增应急管理值守人员 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsers:add')") |
||||
@Log(title = "应急管理值守人员", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody GroupUserDTO groupUserDTO) { |
||||
return toAjax(GroupingUserInfoService.insertGroupingUserList(groupUserDTO)); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急管理值守人员 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsers:remove')") |
||||
@Log(title = "应急管理值守人员", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult delete(@PathVariable Long[] ids) { |
||||
//非物理删除
|
||||
return toAjax(GroupingUserInfoService.deleteGroupingUserByIds(ids)); |
||||
} |
||||
/** |
||||
* 查询未分配人员列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsers:add')") |
||||
@GetMapping("/getUndistributedGroupingUsers") |
||||
public AjaxResult getUndistributedGroupingUsers(GroupUserDTO groupUserDTO) { |
||||
List<GroupingUserInfoVO> list = GroupingUserInfoService.getUndistributedGroupingUsers(groupUserDTO); |
||||
return AjaxResult.success(list); |
||||
} |
||||
|
||||
/** |
||||
* 查询当前分组已分配人员列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsers:add')") |
||||
@GetMapping("/getDistributedGroupingUsers") |
||||
public AjaxResult getDistributedGroupingUsers(GroupUserDTO groupUserDTO) { |
||||
List<GroupingUserInfoVO> list = GroupingUserInfoService.getDistributedGroupingUsers(groupUserDTO); |
||||
return AjaxResult.success(list); |
||||
} |
||||
} |
@ -0,0 +1,100 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserPathInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupingUserPathInfoDTO; |
||||
import com.cjy.emergencycommand.service.GroupingUserPathInfoService; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.PutMapping; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
import com.ruoyi.common.core.page.TableDataInfo; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 值守人员轨迹Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencyCommand/groupingUsersPath") |
||||
public class GroupingUserPathInfoController extends BaseController { |
||||
@Autowired |
||||
private GroupingUserPathInfoService groupingUserPathInfoService; |
||||
|
||||
/** |
||||
* 查询值守人员轨迹列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsersPath:list')") |
||||
@GetMapping("/list") |
||||
public TableDataInfo list(GroupingUserPathInfoDTO groupingUserPathInfoDTO) { |
||||
startPage(); |
||||
List<GroupingUserPathInfo> list = groupingUserPathInfoService.selectGroupingUserPathInfoList(groupingUserPathInfoDTO); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 导出值守人员轨迹列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsersPath:export')") |
||||
@Log(title = "值守人员轨迹", businessType = BusinessType.EXPORT) |
||||
@PostMapping("/export") |
||||
public void export(HttpServletResponse response, GroupingUserPathInfo groupingUserPathInfo) { |
||||
List<GroupingUserPathInfo> list = groupingUserPathInfoService.selectGroupingUserPathInfoList(groupingUserPathInfo); |
||||
ExcelUtil<GroupingUserPathInfo> util = new ExcelUtil<GroupingUserPathInfo>(GroupingUserPathInfo.class); |
||||
util.exportExcel(response, list, "值守人员轨迹数据"); |
||||
} |
||||
|
||||
/** |
||||
* 获取值守人员轨迹详细信息 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsersPath:query')") |
||||
@GetMapping(value = "/{id}") |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
return success(groupingUserPathInfoService.selectGroupingUserPathInfoById(id)); |
||||
} |
||||
|
||||
/** |
||||
* 新增值守人员轨迹 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsersPath:add')") |
||||
@Log(title = "值守人员轨迹", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody GroupingUserPathInfo groupingUserPathInfo) { |
||||
return toAjax(groupingUserPathInfoService.insertGroupingUserPathInfo(groupingUserPathInfo)); |
||||
} |
||||
|
||||
/** |
||||
* 修改值守人员轨迹 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsersPath:edit')") |
||||
@Log(title = "值守人员轨迹", businessType = BusinessType.UPDATE) |
||||
@PutMapping |
||||
public AjaxResult edit(@RequestBody GroupingUserPathInfo groupingUserPathInfo) { |
||||
return toAjax(groupingUserPathInfoService.updateGroupingUserPathInfo(groupingUserPathInfo)); |
||||
} |
||||
|
||||
/** |
||||
* 删除值守人员轨迹 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencyCommand:groupingUsersPath:remove')") |
||||
@Log(title = "值守人员轨迹", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
return toAjax(groupingUserPathInfoService.deleteGroupingUserPathInfoByIds(ids)); |
||||
} |
||||
} |
@ -0,0 +1,98 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import java.util.List; |
||||
import javax.servlet.http.HttpServletResponse; |
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.PutMapping; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
import com.cjy.emergencycommand.domain.PreplanFileInfo; |
||||
import com.cjy.emergencycommand.service.PreplanFileInfoService; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
import com.ruoyi.common.core.page.TableDataInfo; |
||||
|
||||
/** |
||||
* 应急预案附件地址Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencycommand/preplanFile") |
||||
public class PreplanFileInfoController extends BaseController { |
||||
@Autowired |
||||
private PreplanFileInfoService preplanFileInfoService; |
||||
|
||||
/** |
||||
* 查询应急预案附件地址列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:preplanFile:list')") |
||||
@GetMapping("/list") |
||||
public TableDataInfo list(PreplanFileInfo preplanFileInfo) { |
||||
startPage(); |
||||
List<PreplanFileInfo> list = preplanFileInfoService.selectPreplanFileInfoList(preplanFileInfo); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 导出应急预案附件地址列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:preplanFile:export')") |
||||
@Log(title = "应急预案附件地址", businessType = BusinessType.EXPORT) |
||||
@PostMapping("/export") |
||||
public void export(HttpServletResponse response, PreplanFileInfo preplanFileInfo) { |
||||
List<PreplanFileInfo> list = preplanFileInfoService.selectPreplanFileInfoList(preplanFileInfo); |
||||
ExcelUtil<PreplanFileInfo> util = new ExcelUtil<PreplanFileInfo>(PreplanFileInfo.class); |
||||
util.exportExcel(response, list, "应急预案附件地址数据"); |
||||
} |
||||
|
||||
/** |
||||
* 获取应急预案附件地址详细信息 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:preplanFile:query')") |
||||
@GetMapping(value = "/{id}") |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
return success(preplanFileInfoService.selectPreplanFileInfoById(id)); |
||||
} |
||||
|
||||
/** |
||||
* 新增应急预案附件地址 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:preplanFile:add')") |
||||
@Log(title = "应急预案附件地址", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody PreplanFileInfo preplanFileInfo) { |
||||
return toAjax(preplanFileInfoService.insertPreplanFileInfo(preplanFileInfo)); |
||||
} |
||||
|
||||
/** |
||||
* 修改应急预案附件地址 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:preplanFile:edit')") |
||||
@Log(title = "应急预案附件地址", businessType = BusinessType.UPDATE) |
||||
@PutMapping |
||||
public AjaxResult edit(@RequestBody PreplanFileInfo preplanFileInfo) { |
||||
return toAjax(preplanFileInfoService.updatePreplanFileInfo(preplanFileInfo)); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急预案附件地址 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:preplanFile:remove')") |
||||
@Log(title = "应急预案附件地址", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
return toAjax(preplanFileInfoService.deletePreplanFileInfoByIds(ids)); |
||||
} |
||||
} |
@ -0,0 +1,88 @@ |
||||
package com.cjy.emergencycommand.controller; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.dto.PreplanInfoDTO; |
||||
import com.cjy.emergencycommand.domain.vo.PreplanInfoVO; |
||||
import com.ruoyi.common.core.page.TableDataInfo; |
||||
import org.springframework.security.access.prepost.PreAuthorize; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PostMapping; |
||||
import org.springframework.web.bind.annotation.PutMapping; |
||||
import org.springframework.web.bind.annotation.DeleteMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
import org.springframework.web.bind.annotation.RequestBody; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import com.ruoyi.common.annotation.Log; |
||||
import com.ruoyi.common.core.controller.BaseController; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.enums.BusinessType; |
||||
import com.cjy.emergencycommand.domain.PreplanInfo; |
||||
import com.cjy.emergencycommand.service.PreplanInfoService; |
||||
|
||||
/** |
||||
* 应急预案管理Controller |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/emergencycommand/prePlan") |
||||
public class PreplanInfoController extends BaseController { |
||||
@Autowired |
||||
private PreplanInfoService preplanInfoService; |
||||
|
||||
/** |
||||
* 查询应急预案管理列表 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:prePlan:list')") |
||||
@GetMapping("/list") |
||||
public TableDataInfo list(PreplanInfo preplanInfo) { |
||||
preplanInfo.setOrganCode(getUserOrganCode()); |
||||
List<PreplanInfoVO> list = preplanInfoService.selectPreplanInfoListByName(preplanInfo); |
||||
return getDataTable(list); |
||||
} |
||||
|
||||
/** |
||||
* 获取应急预案详细信息 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:prePlan:query')") |
||||
@GetMapping(value = "/{id}") |
||||
public AjaxResult getInfo(@PathVariable("id") Long id) { |
||||
return success(preplanInfoService.selectPreplanInfoById(id)); |
||||
} |
||||
|
||||
/** |
||||
* 新增应急预案管理 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:prePlan:add')") |
||||
@Log(title = "应急预案管理", businessType = BusinessType.INSERT) |
||||
@PostMapping |
||||
public AjaxResult add(@RequestBody PreplanInfoDTO preplanInfoDTO) { |
||||
preplanInfoDTO.setOrganCode(getUserOrganCode()); |
||||
return toAjax(preplanInfoService.insertPreplanInfo(preplanInfoDTO)); |
||||
} |
||||
|
||||
/** |
||||
* 修改应急预案管理 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:prePlan:edit')") |
||||
@Log(title = "应急预案管理", businessType = BusinessType.UPDATE) |
||||
@PutMapping |
||||
public AjaxResult edit(@RequestBody PreplanInfoDTO preplanInfoDTO) { |
||||
preplanInfoDTO.setOrganCode(getUserOrganCode()); |
||||
return toAjax(preplanInfoService.updatePreplanInfo(preplanInfoDTO)); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急预案管理 |
||||
*/ |
||||
@PreAuthorize("@ss.hasPermi('emergencycommand:prePlan:remove')") |
||||
@Log(title = "应急预案管理", businessType = BusinessType.DELETE) |
||||
@DeleteMapping("/{ids}") |
||||
public AjaxResult remove(@PathVariable Long[] ids) { |
||||
return toAjax(preplanInfoService.deletePreplanInfoByIds(ids)); |
||||
} |
||||
} |
@ -0,0 +1,146 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 类型配置对象 ec_classification_config |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class ClassificationConfig extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** |
||||
* 类型 1 警情分类 2 应急事件分类 |
||||
*/ |
||||
@Excel(name = "类型 1 警情分类 2 应急事件分类") |
||||
private String type; |
||||
|
||||
/** |
||||
* 分类编码 |
||||
*/ |
||||
@Excel(name = "分类编码") |
||||
private String classificationCode; |
||||
|
||||
/** |
||||
* 分类名称 |
||||
*/ |
||||
@Excel(name = "分类名称") |
||||
private String classificationName; |
||||
|
||||
/** |
||||
* 排序id |
||||
*/ |
||||
@Excel(name = "排序id") |
||||
private Long sortId; |
||||
|
||||
/** |
||||
* 所属机构 |
||||
*/ |
||||
@Excel(name = "所属机构") |
||||
private Long organCode; |
||||
|
||||
/** |
||||
* 删除状态 0 未删除 1 已删除 |
||||
*/ |
||||
private String delFlag; |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setCreatedTime(Date createdTime) { |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() { |
||||
return createdTime; |
||||
} |
||||
|
||||
public void setType(String type) { |
||||
this.type = type; |
||||
} |
||||
|
||||
public String getType() { |
||||
return type; |
||||
} |
||||
|
||||
public void setClassificationCode(String classificationCode) { |
||||
this.classificationCode = classificationCode; |
||||
} |
||||
|
||||
public String getClassificationCode() { |
||||
return classificationCode; |
||||
} |
||||
|
||||
public void setClassificationName(String classificationName) { |
||||
this.classificationName = classificationName; |
||||
} |
||||
|
||||
public String getClassificationName() { |
||||
return classificationName; |
||||
} |
||||
|
||||
public void setSortId(Long sortId) { |
||||
this.sortId = sortId; |
||||
} |
||||
|
||||
public Long getSortId() { |
||||
return sortId; |
||||
} |
||||
|
||||
public void setOrganCode(Long organCode) { |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public Long getOrganCode() { |
||||
return organCode; |
||||
} |
||||
|
||||
public void setDelFlag(String delFlag) { |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public String getDelFlag() { |
||||
return delFlag; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("type", getType()) |
||||
.append("classificationCode", getClassificationCode()) |
||||
.append("classificationName", getClassificationName()) |
||||
.append("sortId", getSortId()) |
||||
.append("remark", getRemark()) |
||||
.append("organCode", getOrganCode()) |
||||
.append("delFlag", getDelFlag()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,146 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 类型数据配置对象 ec_classification_data_config |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class ClassificationDataConfig extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** |
||||
* 分类编码 |
||||
*/ |
||||
@Excel(name = "分类编码") |
||||
private String classificationCode; |
||||
|
||||
/** |
||||
* 数据明细编码 |
||||
*/ |
||||
@Excel(name = "数据明细编码") |
||||
private String dataCode; |
||||
|
||||
/** |
||||
* 数据明细名称 |
||||
*/ |
||||
@Excel(name = "数据明细名称") |
||||
private String dataName; |
||||
|
||||
/** |
||||
* 排序id |
||||
*/ |
||||
@Excel(name = "排序id") |
||||
private Long sortId; |
||||
|
||||
/** |
||||
* 所属机构 |
||||
*/ |
||||
@Excel(name = "所属机构") |
||||
private Long organCode; |
||||
|
||||
/** |
||||
* 删除状态 0 未删除 1 已删除 |
||||
*/ |
||||
private String delFlag; |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setCreatedTime(Date createdTime) { |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() { |
||||
return createdTime; |
||||
} |
||||
|
||||
public void setClassificationCode(String classificationCode) { |
||||
this.classificationCode = classificationCode; |
||||
} |
||||
|
||||
public String getClassificationCode() { |
||||
return classificationCode; |
||||
} |
||||
|
||||
public void setDataCode(String dataCode) { |
||||
this.dataCode = dataCode; |
||||
} |
||||
|
||||
public String getDataCode() { |
||||
return dataCode; |
||||
} |
||||
|
||||
public void setDataName(String dataName) { |
||||
this.dataName = dataName; |
||||
} |
||||
|
||||
public String getDataName() { |
||||
return dataName; |
||||
} |
||||
|
||||
public void setSortId(Long sortId) { |
||||
this.sortId = sortId; |
||||
} |
||||
|
||||
public Long getSortId() { |
||||
return sortId; |
||||
} |
||||
|
||||
public void setOrganCode(Long organCode) { |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public Long getOrganCode() { |
||||
return organCode; |
||||
} |
||||
|
||||
public void setDelFlag(String delFlag) { |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public String getDelFlag() { |
||||
return delFlag; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("classificationCode", getClassificationCode()) |
||||
.append("dataCode", getDataCode()) |
||||
.append("dataName", getDataName()) |
||||
.append("sortId", getSortId()) |
||||
.append("remark", getRemark()) |
||||
.append("organCode", getOrganCode()) |
||||
.append("delFlag", getDelFlag()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,116 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 应急管理排班分组配置对象 ec_emergency_command_grouping_config |
||||
* |
||||
* @author ruoyi |
||||
* @date 2023-02-27 |
||||
*/ |
||||
public class GroupingConfig extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** |
||||
* 排序id |
||||
*/ |
||||
@Excel(name = "排序id") |
||||
private Long sortId; |
||||
|
||||
/** |
||||
* 分组名称 |
||||
*/ |
||||
@Excel(name = "分组名称") |
||||
private String name; |
||||
|
||||
/** |
||||
* 所属机构 |
||||
*/ |
||||
@Excel(name = "所属机构") |
||||
private Long organCode; |
||||
|
||||
/** |
||||
* 删除状态 0 未删除 1 已删除 |
||||
*/ |
||||
@Excel(name = "删除状态 0 未删除 1 已删除") |
||||
private String isDelete; |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setCreatedTime(Date createdTime) { |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() { |
||||
return createdTime; |
||||
} |
||||
|
||||
public void setSortId(Long sortId) { |
||||
this.sortId = sortId; |
||||
} |
||||
|
||||
public Long getSortId() { |
||||
return sortId; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setOrganCode(Long organCode) { |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public Long getOrganCode() { |
||||
return organCode; |
||||
} |
||||
|
||||
public void setIsDelete(String isDelete) { |
||||
this.isDelete = isDelete; |
||||
} |
||||
|
||||
public String getIsDelete() { |
||||
return isDelete; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("sortId", getSortId()) |
||||
.append("name", getName()) |
||||
.append("organCode", getOrganCode()) |
||||
.append("isDelete", getIsDelete()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,110 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 应急管理值守人员对象 ec_grouping_user_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class GroupingUserInfo extends BaseEntity |
||||
{ |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** 主键ID */ |
||||
private Long id; |
||||
|
||||
/** 创建时间 */ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** 分组id */ |
||||
@Excel(name = "分组id") |
||||
private Long groupingId; |
||||
|
||||
/** 值守人员id */ |
||||
@Excel(name = "值守人员id") |
||||
private Long userId; |
||||
|
||||
/** 删除状态 0 未删除 1 已删除 */ |
||||
private String delFlag; |
||||
|
||||
/** 所属机构 */ |
||||
@Excel(name = "所属机构") |
||||
private Long organCode; |
||||
|
||||
public void setId(Long id) |
||||
{ |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() |
||||
{ |
||||
return id; |
||||
} |
||||
public void setCreatedTime(Date createdTime) |
||||
{ |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() |
||||
{ |
||||
return createdTime; |
||||
} |
||||
public void setGroupingId(Long groupingId) |
||||
{ |
||||
this.groupingId = groupingId; |
||||
} |
||||
|
||||
public Long getGroupingId() |
||||
{ |
||||
return groupingId; |
||||
} |
||||
public void setUserId(Long userId) |
||||
{ |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public Long getUserId() |
||||
{ |
||||
return userId; |
||||
} |
||||
public void setDelFlag(String delFlag) |
||||
{ |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public String getDelFlag() |
||||
{ |
||||
return delFlag; |
||||
} |
||||
public void setOrganCode(Long organCode) |
||||
{ |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public Long getOrganCode() |
||||
{ |
||||
return organCode; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("groupingId", getGroupingId()) |
||||
.append("userId", getUserId()) |
||||
.append("delFlag", getDelFlag()) |
||||
.append("organCode", getOrganCode()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,145 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 值守人员轨迹对象 ec_grouping_user_path_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class GroupingUserPathInfo extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** |
||||
* 分组id |
||||
*/ |
||||
@Excel(name = "分组id") |
||||
private Long groupingId; |
||||
|
||||
/** |
||||
* 值守人员id |
||||
*/ |
||||
@Excel(name = "值守人员id") |
||||
private Long userId; |
||||
|
||||
/** |
||||
* 经度 |
||||
*/ |
||||
@Excel(name = "经度") |
||||
private String longitude; |
||||
|
||||
/** |
||||
* 纬度 |
||||
*/ |
||||
@Excel(name = "纬度") |
||||
private String latitude; |
||||
|
||||
/** |
||||
* 所属机构 |
||||
*/ |
||||
@Excel(name = "所属机构") |
||||
private Long organCode; |
||||
|
||||
/** |
||||
* 删除状态 0 未删除 1 已删除 |
||||
*/ |
||||
private String delFlag; |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setCreatedTime(Date createdTime) { |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() { |
||||
return createdTime; |
||||
} |
||||
|
||||
public void setGroupingId(Long groupingId) { |
||||
this.groupingId = groupingId; |
||||
} |
||||
|
||||
public Long getGroupingId() { |
||||
return groupingId; |
||||
} |
||||
|
||||
public void setUserId(Long userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public Long getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setLongitude(String longitude) { |
||||
this.longitude = longitude; |
||||
} |
||||
|
||||
public String getLongitude() { |
||||
return longitude; |
||||
} |
||||
|
||||
public void setLatitude(String latitude) { |
||||
this.latitude = latitude; |
||||
} |
||||
|
||||
public String getLatitude() { |
||||
return latitude; |
||||
} |
||||
|
||||
public void setOrganCode(Long organCode) { |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public Long getOrganCode() { |
||||
return organCode; |
||||
} |
||||
|
||||
public void setDelFlag(String delFlag) { |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public String getDelFlag() { |
||||
return delFlag; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("groupingId", getGroupingId()) |
||||
.append("userId", getUserId()) |
||||
.append("longitude", getLongitude()) |
||||
.append("latitude", getLatitude()) |
||||
.append("organCode", getOrganCode()) |
||||
.append("delFlag", getDelFlag()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,125 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 应急预案附件地址对象 ec_preplan_file_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class PreplanFileInfo extends BaseEntity |
||||
{ |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** 主键ID */ |
||||
private Long id; |
||||
|
||||
/** 创建时间 */ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** 应急预案编码 */ |
||||
@Excel(name = "应急预案编码") |
||||
private String preplanCode; |
||||
|
||||
/** 附件类型 */ |
||||
@Excel(name = "附件类型") |
||||
private String fileType; |
||||
|
||||
/** 附件名称 */ |
||||
@Excel(name = "附件名称") |
||||
private String storeName; |
||||
|
||||
/** 附件url */ |
||||
@Excel(name = "附件url") |
||||
private String storePath; |
||||
|
||||
/** 删除状态 0 未删除 1 已删除 */ |
||||
private String delFlag; |
||||
|
||||
public void setId(Long id) |
||||
{ |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() |
||||
{ |
||||
return id; |
||||
} |
||||
public void setCreatedTime(Date createdTime) |
||||
{ |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() |
||||
{ |
||||
return createdTime; |
||||
} |
||||
public void setPreplanCode(String preplanCode) |
||||
{ |
||||
this.preplanCode = preplanCode; |
||||
} |
||||
|
||||
public String getPreplanCode() |
||||
{ |
||||
return preplanCode; |
||||
} |
||||
public void setFileType(String fileType) |
||||
{ |
||||
this.fileType = fileType; |
||||
} |
||||
|
||||
public String getFileType() |
||||
{ |
||||
return fileType; |
||||
} |
||||
public void setStoreName(String storeName) |
||||
{ |
||||
this.storeName = storeName; |
||||
} |
||||
|
||||
public String getStoreName() |
||||
{ |
||||
return storeName; |
||||
} |
||||
public void setStorePath(String storePath) |
||||
{ |
||||
this.storePath = storePath; |
||||
} |
||||
|
||||
public String getStorePath() |
||||
{ |
||||
return storePath; |
||||
} |
||||
public void setDelFlag(String delFlag) |
||||
{ |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public String getDelFlag() |
||||
{ |
||||
return delFlag; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("preplanCode", getPreplanCode()) |
||||
.append("fileType", getFileType()) |
||||
.append("storeName", getStoreName()) |
||||
.append("storePath", getStorePath()) |
||||
.append("remark", getRemark()) |
||||
.append("delFlag", getDelFlag()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,181 @@ |
||||
package com.cjy.emergencycommand.domain; |
||||
|
||||
import java.util.Date; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 应急预案管理对象 ec_preplan_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class PreplanInfo extends BaseEntity |
||||
{ |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** 主键ID */ |
||||
private Long id; |
||||
|
||||
/** 创建时间 */ |
||||
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd") |
||||
private Date createdTime; |
||||
|
||||
/** 应急预案名称 */ |
||||
@Excel(name = "应急预案名称") |
||||
private String name; |
||||
|
||||
/** 应急预案编码 */ |
||||
@Excel(name = "应急预案编码") |
||||
private String code; |
||||
|
||||
/** 排序id */ |
||||
@Excel(name = "排序id") |
||||
private Long sortId; |
||||
|
||||
/** 事件类型编码 */ |
||||
@Excel(name = "事件类型编码") |
||||
private String classificationCode; |
||||
|
||||
/** 等级id */ |
||||
@Excel(name = "等级id") |
||||
private Long eventGradeId; |
||||
|
||||
/** 预案说明 */ |
||||
@Excel(name = "预案说明") |
||||
private String description; |
||||
|
||||
/** 状态:0 禁用 1 启用 */ |
||||
@Excel(name = "状态:0 禁用 1 启用") |
||||
private String status; |
||||
|
||||
/** 所属机构 */ |
||||
@Excel(name = "所属机构") |
||||
private Long organCode; |
||||
|
||||
/** 删除状态 0 新增 1 修改 2 删除 */ |
||||
private String delFlag; |
||||
|
||||
public void setId(Long id) |
||||
{ |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() |
||||
{ |
||||
return id; |
||||
} |
||||
public void setCreatedTime(Date createdTime) |
||||
{ |
||||
this.createdTime = createdTime; |
||||
} |
||||
|
||||
public Date getCreatedTime() |
||||
{ |
||||
return createdTime; |
||||
} |
||||
public void setName(String name) |
||||
{ |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getName() |
||||
{ |
||||
return name; |
||||
} |
||||
public void setCode(String code) |
||||
{ |
||||
this.code = code; |
||||
} |
||||
|
||||
public String getCode() |
||||
{ |
||||
return code; |
||||
} |
||||
public void setSortId(Long sortId) |
||||
{ |
||||
this.sortId = sortId; |
||||
} |
||||
|
||||
public Long getSortId() |
||||
{ |
||||
return sortId; |
||||
} |
||||
public void setClassificationCode(String classificationCode) |
||||
{ |
||||
this.classificationCode = classificationCode; |
||||
} |
||||
|
||||
public String getClassificationCode() |
||||
{ |
||||
return classificationCode; |
||||
} |
||||
public void setEventGradeId(Long eventGradeId) |
||||
{ |
||||
this.eventGradeId = eventGradeId; |
||||
} |
||||
|
||||
public Long getEventGradeId() |
||||
{ |
||||
return eventGradeId; |
||||
} |
||||
public void setDescription(String description) |
||||
{ |
||||
this.description = description; |
||||
} |
||||
|
||||
public String getDescription() |
||||
{ |
||||
return description; |
||||
} |
||||
public void setStatus(String status) |
||||
{ |
||||
this.status = status; |
||||
} |
||||
|
||||
public String getStatus() |
||||
{ |
||||
return status; |
||||
} |
||||
public void setOrganCode(Long organCode) |
||||
{ |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public Long getOrganCode() |
||||
{ |
||||
return organCode; |
||||
} |
||||
public void setDelFlag(String delFlag) |
||||
{ |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public String getDelFlag() |
||||
{ |
||||
return delFlag; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("createdTime", getCreatedTime()) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("name", getName()) |
||||
.append("code", getCode()) |
||||
.append("sortId", getSortId()) |
||||
.append("classificationCode", getClassificationCode()) |
||||
.append("eventGradeId", getEventGradeId()) |
||||
.append("description", getDescription()) |
||||
.append("status", getStatus()) |
||||
.append("remark", getRemark()) |
||||
.append("organCode", getOrganCode()) |
||||
.append("delFlag", getDelFlag()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,93 @@ |
||||
package com.cjy.emergencycommand.domain.dto; |
||||
|
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author hehang |
||||
*/ |
||||
public class GroupUserDTO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
private Long userId; |
||||
|
||||
private Long deptId; |
||||
|
||||
private String userName; |
||||
|
||||
private String userPhone; |
||||
|
||||
private Long groupingId; |
||||
|
||||
private String delFlag; |
||||
|
||||
List<Long> userList; |
||||
|
||||
public String getDelFlag() { |
||||
return delFlag; |
||||
} |
||||
|
||||
public void setDelFlag(String delFlag) { |
||||
this.delFlag = delFlag; |
||||
} |
||||
|
||||
public List<Long> getUserList() { |
||||
return userList; |
||||
} |
||||
|
||||
public void setUserList(List<Long> userList) { |
||||
this.userList = userList; |
||||
} |
||||
|
||||
public Long getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setUserId(Long userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public Long getDeptId() { |
||||
return deptId; |
||||
} |
||||
|
||||
public void setDeptId(Long deptId) { |
||||
this.deptId = deptId; |
||||
} |
||||
|
||||
public String getUserName() { |
||||
return userName; |
||||
} |
||||
|
||||
public void setUserName(String userName) { |
||||
this.userName = userName; |
||||
} |
||||
|
||||
public String getUserPhone() { |
||||
return userPhone; |
||||
} |
||||
|
||||
public void setUserPhone(String userPhone) { |
||||
this.userPhone = userPhone; |
||||
} |
||||
|
||||
public Long getGroupingId() { |
||||
return groupingId; |
||||
} |
||||
|
||||
public void setGroupingId(Long groupingId) { |
||||
this.groupingId = groupingId; |
||||
} |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "GroupUserDTO{" + |
||||
"userId=" + userId + |
||||
", deptId=" + deptId + |
||||
", userName='" + userName + '\'' + |
||||
", userPhone='" + userPhone + '\'' + |
||||
", groupId=" + groupingId + |
||||
'}'; |
||||
} |
||||
} |
@ -0,0 +1,119 @@ |
||||
package com.cjy.emergencycommand.domain.dto; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 值守人员轨迹对象 ec_grouping_user_path_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class GroupingUserPathInfoDTO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
private Date startTime; |
||||
private Date endTime; |
||||
|
||||
/** |
||||
* 分组id |
||||
*/ |
||||
private Long groupingId; |
||||
|
||||
/** |
||||
* 值守人员id |
||||
*/ |
||||
private Long userId; |
||||
|
||||
/** |
||||
* 经度 |
||||
*/ |
||||
@Excel(name = "经度") |
||||
private String longitude; |
||||
|
||||
/** |
||||
* 纬度 |
||||
*/ |
||||
@Excel(name = "纬度") |
||||
private String latitude; |
||||
|
||||
/** |
||||
* 所属机构 |
||||
*/ |
||||
@Excel(name = "所属机构") |
||||
private String organCode; |
||||
|
||||
public Date getStartTime() { |
||||
return startTime; |
||||
} |
||||
|
||||
public void setStartTime(Date startTime) { |
||||
this.startTime = startTime; |
||||
} |
||||
|
||||
public Date getEndTime() { |
||||
return endTime; |
||||
} |
||||
|
||||
public void setEndTime(Date endTime) { |
||||
this.endTime = endTime; |
||||
} |
||||
|
||||
public void setGroupingId(Long groupingId) { |
||||
this.groupingId = groupingId; |
||||
} |
||||
|
||||
public Long getGroupingId() { |
||||
return groupingId; |
||||
} |
||||
|
||||
public void setUserId(Long userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public Long getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setLongitude(String longitude) { |
||||
this.longitude = longitude; |
||||
} |
||||
|
||||
public String getLongitude() { |
||||
return longitude; |
||||
} |
||||
|
||||
public void setLatitude(String latitude) { |
||||
this.latitude = latitude; |
||||
} |
||||
|
||||
public String getLatitude() { |
||||
return latitude; |
||||
} |
||||
|
||||
public void setOrganCode(String organCode) { |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public String getOrganCode() { |
||||
return organCode; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("groupingId", getGroupingId()) |
||||
.append("userId", getUserId()) |
||||
.append("longitude", getLongitude()) |
||||
.append("latitude", getLatitude()) |
||||
.append("organCode", getOrganCode()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,39 @@ |
||||
package com.cjy.emergencycommand.domain.dto; |
||||
|
||||
import com.alibaba.fastjson2.reader.ObjectReaderImplValue; |
||||
import com.cjy.emergencycommand.domain.PreplanFileInfo; |
||||
import com.cjy.emergencycommand.domain.PreplanInfo; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 应急预案管理对象 ec_preplan_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class PreplanInfoDTO extends PreplanInfo { |
||||
|
||||
private List<PreplanFileInfo> fileList; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "PreplanInfoDTO{" + |
||||
"fileList=" + fileList + |
||||
'}'; |
||||
} |
||||
|
||||
public List<PreplanFileInfo> getFileList() { |
||||
return fileList; |
||||
} |
||||
|
||||
public void setFileList(List<PreplanFileInfo> fileList) { |
||||
this.fileList = fileList; |
||||
} |
||||
} |
@ -0,0 +1,50 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 类型配置对象 ec_classification_config |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class ClassificationConfigVO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 分类编码 |
||||
*/ |
||||
@Excel(name = "分类编码") |
||||
private String classificationCode; |
||||
|
||||
/** |
||||
* 分类名称 |
||||
*/ |
||||
@Excel(name = "分类名称") |
||||
private String classificationName; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "ClassificationConfigVO{" + |
||||
"classificationCode='" + classificationCode + '\'' + |
||||
", classificationName='" + classificationName + '\'' + |
||||
'}'; |
||||
} |
||||
|
||||
public String getClassificationCode() { |
||||
return classificationCode; |
||||
} |
||||
|
||||
public void setClassificationCode(String classificationCode) { |
||||
this.classificationCode = classificationCode; |
||||
} |
||||
|
||||
public String getClassificationName() { |
||||
return classificationName; |
||||
} |
||||
|
||||
public void setClassificationName(String classificationName) { |
||||
this.classificationName = classificationName; |
||||
} |
||||
} |
@ -0,0 +1,56 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 应急管理排班分组配置对象 ec_emergency_command_grouping_config |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-27 |
||||
*/ |
||||
public class GroupingConfigVO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 分组名称 |
||||
*/ |
||||
@Excel(name = "分组名称") |
||||
private String name; |
||||
|
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("id", getId()) |
||||
.append("name", getName()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,103 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
||||
import java.security.PrivateKey; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 应急管理值守人员对象 ec_grouping_user_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-27 |
||||
*/ |
||||
public class GroupingUserInfoVO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
private Long id; |
||||
|
||||
private String groupingName; |
||||
|
||||
private Long organizationName; |
||||
|
||||
private String deptName; |
||||
|
||||
private Long userId; |
||||
|
||||
private String userName; |
||||
|
||||
private String userPhone; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "GroupingUserInfoVO{" + |
||||
"id=" + id + |
||||
", groupingName='" + groupingName + '\'' + |
||||
", organizationName=" + organizationName + |
||||
", deptName='" + deptName + '\'' + |
||||
", userId=" + userId + |
||||
", userName='" + userName + '\'' + |
||||
", userPhone='" + userPhone + '\'' + |
||||
'}'; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public String getGroupingName() { |
||||
return groupingName; |
||||
} |
||||
|
||||
public void setGroupingName(String groupingName) { |
||||
this.groupingName = groupingName; |
||||
} |
||||
|
||||
public Long getOrganizationName() { |
||||
return organizationName; |
||||
} |
||||
|
||||
public void setOrganizationName(Long organizationName) { |
||||
this.organizationName = organizationName; |
||||
} |
||||
|
||||
public String getDeptName() { |
||||
return deptName; |
||||
} |
||||
|
||||
public void setDeptName(String deptName) { |
||||
this.deptName = deptName; |
||||
} |
||||
|
||||
public Long getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setUserId(Long userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public String getUserName() { |
||||
return userName; |
||||
} |
||||
|
||||
public void setUserName(String userName) { |
||||
this.userName = userName; |
||||
} |
||||
|
||||
public String getUserPhone() { |
||||
return userPhone; |
||||
} |
||||
|
||||
public void setUserPhone(String userPhone) { |
||||
this.userPhone = userPhone; |
||||
} |
||||
} |
@ -0,0 +1,107 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 值守人员轨迹对象 ec_grouping_user_path_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class GroupingUserPathInfoVO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
private Long id; |
||||
|
||||
private Date createTime; |
||||
|
||||
/** |
||||
* 值守人员id |
||||
*/ |
||||
private Long userId; |
||||
|
||||
/** |
||||
* 经度 |
||||
*/ |
||||
@Excel(name = "经度") |
||||
private String longitude; |
||||
|
||||
/** |
||||
* 纬度 |
||||
*/ |
||||
@Excel(name = "纬度") |
||||
private String latitude; |
||||
|
||||
/** |
||||
* 所属机构 |
||||
*/ |
||||
@Excel(name = "所属机构") |
||||
private String organCode; |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
@Override |
||||
public Date getCreateTime() { |
||||
return createTime; |
||||
} |
||||
|
||||
@Override |
||||
public void setCreateTime(Date createTime) { |
||||
this.createTime = createTime; |
||||
} |
||||
|
||||
public void setUserId(Long userId) { |
||||
this.userId = userId; |
||||
} |
||||
|
||||
public Long getUserId() { |
||||
return userId; |
||||
} |
||||
|
||||
public void setLongitude(String longitude) { |
||||
this.longitude = longitude; |
||||
} |
||||
|
||||
public String getLongitude() { |
||||
return longitude; |
||||
} |
||||
|
||||
public void setLatitude(String latitude) { |
||||
this.latitude = latitude; |
||||
} |
||||
|
||||
public String getLatitude() { |
||||
return latitude; |
||||
} |
||||
|
||||
public void setOrganCode(String organCode) { |
||||
this.organCode = organCode; |
||||
} |
||||
|
||||
public String getOrganCode() { |
||||
return organCode; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public String toString() { |
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
||||
.append("updateTime", getUpdateTime()) |
||||
.append("userId", getUserId()) |
||||
.append("longitude", getLongitude()) |
||||
.append("latitude", getLatitude()) |
||||
.append("organCode", getOrganCode()) |
||||
.toString(); |
||||
} |
||||
} |
@ -0,0 +1,125 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
import org.apache.commons.lang3.builder.ToStringBuilder; |
||||
import org.apache.commons.lang3.builder.ToStringStyle; |
||||
|
||||
/** |
||||
* 应急预案管理对象 ec_preplan_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class PreplanInfoVO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
private Long id; |
||||
|
||||
/** |
||||
* 应急预案名称 |
||||
*/ |
||||
@Excel(name = "应急预案名称") |
||||
private String name; |
||||
|
||||
/** |
||||
* 应急预案编码 |
||||
*/ |
||||
@Excel(name = "应急预案编码") |
||||
private String code; |
||||
|
||||
/** |
||||
* 排序id |
||||
*/ |
||||
@Excel(name = "排序id") |
||||
private Long sortId; |
||||
|
||||
/** |
||||
* 事件类型编码 |
||||
*/ |
||||
@Excel(name = "事件类型编码") |
||||
private String classificationName; |
||||
|
||||
/** |
||||
* 预案说明 |
||||
*/ |
||||
@Excel(name = "预案说明") |
||||
private String description; |
||||
|
||||
/** 状态:0 禁用 1 启用 */ |
||||
@Excel(name = "状态:0 禁用 1 启用") |
||||
private String status; |
||||
|
||||
public String getClassificationName() { |
||||
return classificationName; |
||||
} |
||||
|
||||
public void setClassificationName(String classificationName) { |
||||
this.classificationName = classificationName; |
||||
} |
||||
|
||||
public String getStatus() { |
||||
return status; |
||||
} |
||||
|
||||
public void setStatus(String status) { |
||||
this.status = status; |
||||
} |
||||
|
||||
public void setId(Long id) { |
||||
this.id = id; |
||||
} |
||||
|
||||
public Long getId() { |
||||
return id; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setCode(String code) { |
||||
this.code = code; |
||||
} |
||||
|
||||
public String getCode() { |
||||
return code; |
||||
} |
||||
|
||||
public void setSortId(Long sortId) { |
||||
this.sortId = sortId; |
||||
} |
||||
|
||||
public Long getSortId() { |
||||
return sortId; |
||||
} |
||||
|
||||
public void setDescription(String description) { |
||||
this.description = description; |
||||
} |
||||
|
||||
public String getDescription() { |
||||
return description; |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "PreplanInfoVO{" + |
||||
"id=" + id + |
||||
", name='" + name + '\'' + |
||||
", code='" + code + '\'' + |
||||
", sortId=" + sortId + |
||||
", classificationName='" + classificationName + '\'' + |
||||
", description='" + description + '\'' + |
||||
", status='" + status + '\'' + |
||||
'}'; |
||||
} |
||||
} |
@ -0,0 +1,58 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
/** |
||||
* 应急预案管理对象 ec_preplan_info |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class SysDictDataVO extends BaseEntity { |
||||
|
||||
/** 字典类型 */ |
||||
@Excel(name = "字典类型") |
||||
private String dictType; |
||||
|
||||
/** 字典标签 */ |
||||
@Excel(name = "字典标签") |
||||
private String dictLabel; |
||||
|
||||
/** 字典键值 */ |
||||
@Excel(name = "字典键值") |
||||
private String dictValue; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "SysDictDataVO{" + |
||||
"dictType='" + dictType + '\'' + |
||||
", dictLabel='" + dictLabel + '\'' + |
||||
", dictValue='" + dictValue + '\'' + |
||||
'}'; |
||||
} |
||||
|
||||
public String getDictType() { |
||||
return dictType; |
||||
} |
||||
|
||||
public void setDictType(String dictType) { |
||||
this.dictType = dictType; |
||||
} |
||||
|
||||
public String getDictLabel() { |
||||
return dictLabel; |
||||
} |
||||
|
||||
public void setDictLabel(String dictLabel) { |
||||
this.dictLabel = dictLabel; |
||||
} |
||||
|
||||
public String getDictValue() { |
||||
return dictValue; |
||||
} |
||||
|
||||
public void setDictValue(String dictValue) { |
||||
this.dictValue = dictValue; |
||||
} |
||||
} |
@ -0,0 +1,63 @@ |
||||
package com.cjy.emergencycommand.domain.vo; |
||||
|
||||
import com.ruoyi.common.annotation.Excel; |
||||
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 类型配置对象 ec_classification_config |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public class WaringClassificationConfigVO extends BaseEntity { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 分类编码 |
||||
*/ |
||||
@Excel(name = "分类编码") |
||||
private String classificationCode; |
||||
|
||||
/** |
||||
* 分类名称 |
||||
*/ |
||||
@Excel(name = "分类名称") |
||||
private String classificationName; |
||||
|
||||
private List<?> list; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "WaringClassificationConfigVO{" + |
||||
"classificationCode='" + classificationCode + '\'' + |
||||
", classificationName='" + classificationName + '\'' + |
||||
", list=" + list + |
||||
'}'; |
||||
} |
||||
|
||||
public List<?> getList() { |
||||
return list; |
||||
} |
||||
|
||||
public void setList(List<?> list) { |
||||
this.list = list; |
||||
} |
||||
|
||||
public String getClassificationCode() { |
||||
return classificationCode; |
||||
} |
||||
|
||||
public void setClassificationCode(String classificationCode) { |
||||
this.classificationCode = classificationCode; |
||||
} |
||||
|
||||
public String getClassificationName() { |
||||
return classificationName; |
||||
} |
||||
|
||||
public void setClassificationName(String classificationName) { |
||||
this.classificationName = classificationName; |
||||
} |
||||
} |
@ -0,0 +1,64 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import java.util.List; |
||||
import com.cjy.emergencycommand.domain.ClassificationConfig; |
||||
import com.cjy.emergencycommand.domain.vo.ClassificationConfigVO; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
/** |
||||
* 类型配置Mapper接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Component |
||||
public interface ClassificationConfigMapper |
||||
{ |
||||
/** |
||||
* 查询类型配置 |
||||
* |
||||
* @param id 类型配置主键 |
||||
* @return 类型配置 |
||||
*/ |
||||
public ClassificationConfig selectClassificationConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询类型配置列表 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 类型配置集合 |
||||
*/ |
||||
public List<ClassificationConfigVO> selectClassificationConfigList(ClassificationConfig classificationConfig); |
||||
|
||||
/** |
||||
* 新增类型配置 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertClassificationConfig(ClassificationConfig classificationConfig); |
||||
|
||||
/** |
||||
* 修改类型配置 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateClassificationConfig(ClassificationConfig classificationConfig); |
||||
|
||||
/** |
||||
* 删除类型配置 |
||||
* |
||||
* @param id 类型配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationConfigById(Long id); |
||||
|
||||
/** |
||||
* 批量删除类型配置 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationConfigByIds(Long[] ids); |
||||
} |
@ -0,0 +1,61 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import java.util.List; |
||||
import com.cjy.emergencycommand.domain.ClassificationDataConfig; |
||||
|
||||
/** |
||||
* 类型数据配置Mapper接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface ClassificationDataConfigMapper |
||||
{ |
||||
/** |
||||
* 查询类型数据配置 |
||||
* |
||||
* @param id 类型数据配置主键 |
||||
* @return 类型数据配置 |
||||
*/ |
||||
public ClassificationDataConfig selectClassificationDataConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询类型数据配置列表 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 类型数据配置集合 |
||||
*/ |
||||
public List<ClassificationDataConfig> selectClassificationDataConfigList(ClassificationDataConfig classificationDataConfig); |
||||
|
||||
/** |
||||
* 新增类型数据配置 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertClassificationDataConfig(ClassificationDataConfig classificationDataConfig); |
||||
|
||||
/** |
||||
* 修改类型数据配置 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateClassificationDataConfig(ClassificationDataConfig classificationDataConfig); |
||||
|
||||
/** |
||||
* 删除类型数据配置 |
||||
* |
||||
* @param id 类型数据配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationDataConfigById(Long id); |
||||
|
||||
/** |
||||
* 批量删除类型数据配置 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationDataConfigByIds(Long[] ids); |
||||
} |
@ -0,0 +1,63 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingConfig; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 应急管理排班分组配置Mapper接口 |
||||
* |
||||
* @author ruoyi |
||||
* @date 2023-02-27 |
||||
*/ |
||||
@Component |
||||
public interface GroupingConfigMapper { |
||||
/** |
||||
* 查询应急管理排班分组配置 |
||||
* |
||||
* @param id 应急管理排班分组配置主键 |
||||
* @return 应急管理排班分组配置 |
||||
*/ |
||||
public GroupingConfig selectEcEmergencyCommandGroupingConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询应急管理排班分组配置列表 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 应急管理排班分组配置集合 |
||||
*/ |
||||
public List<GroupingConfig> selectEcEmergencyCommandGroupingConfigList(GroupingConfig ecEmergencyCommandGroupingConfig); |
||||
|
||||
/** |
||||
* 新增应急管理排班分组配置 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertEcEmergencyCommandGroupingConfig(GroupingConfig ecEmergencyCommandGroupingConfig); |
||||
|
||||
/** |
||||
* 修改应急管理排班分组配置 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateEcEmergencyCommandGroupingConfig(GroupingConfig ecEmergencyCommandGroupingConfig); |
||||
|
||||
/** |
||||
* 删除应急管理排班分组配置 |
||||
* |
||||
* @param id 应急管理排班分组配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteEcEmergencyCommandGroupingConfigById(Long id); |
||||
|
||||
/** |
||||
* 批量删除应急管理排班分组配置 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteEcEmergencyCommandGroupingConfigByIds(Long[] ids); |
||||
} |
@ -0,0 +1,108 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupUserDTO; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingUserInfoVO; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 应急管理值守人员Mapper接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-27 |
||||
*/ |
||||
@Component |
||||
public interface GroupingUserInfoMapper { |
||||
/** |
||||
* 查询应急管理值守人员 |
||||
* |
||||
* @param id 应急管理值守人员主键 |
||||
* @return 应急管理值守人员 |
||||
*/ |
||||
public GroupingUserInfo selectGroupingUserInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急管理值守人员列表 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfo> selectGroupingUserInfoList(GroupingUserInfo groupingUserInfo); |
||||
|
||||
/** |
||||
* 新增应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertGroupingUserInfo(GroupingUserInfo groupingUserInfo); |
||||
|
||||
/** |
||||
* 修改应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateGroupingUserInfo(GroupingUserInfo groupingUserInfo); |
||||
|
||||
/** |
||||
* 删除应急管理值守人员 |
||||
* |
||||
* @param id 应急管理值守人员主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserInfoById(Long id); |
||||
|
||||
/** |
||||
* 批量删除应急管理值守人员 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserInfoByIds(Long[] ids); |
||||
|
||||
|
||||
/** |
||||
* 根据姓名、手机号查询应急管理值守人员列表 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfoVO> selectGroupingUserInfoListByUserInfo(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 根据部门 姓名查询应急管理值守人员列表 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfoVO> getUndistributedGroupingUsers(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 根据部门 姓名查询应急管理值守人员列表 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfoVO> getDistributedGroupingUsers(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 批量新增应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfos 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertGroupingUserList(@Param("list") List<GroupingUserInfo> groupingUserInfos); |
||||
|
||||
/** |
||||
* 批量删除应急管理值守人员 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateGroupingUserByIds(@Param("array") Long[] ids); |
||||
|
||||
} |
@ -0,0 +1,73 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserPathInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupingUserPathInfoDTO; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 值守人员轨迹Mapper接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Component |
||||
public interface GroupingUserPathInfoMapper { |
||||
/** |
||||
* 查询值守人员轨迹 |
||||
* |
||||
* @param id 值守人员轨迹主键 |
||||
* @return 值守人员轨迹 |
||||
*/ |
||||
public GroupingUserPathInfo selectGroupingUserPathInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询值守人员轨迹列表 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 值守人员轨迹集合 |
||||
*/ |
||||
public List<GroupingUserPathInfo> selectGroupingUserPathInfoList(GroupingUserPathInfo groupingUserPathInfo); |
||||
|
||||
/** |
||||
* 新增值守人员轨迹 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertGroupingUserPathInfo(GroupingUserPathInfo groupingUserPathInfo); |
||||
|
||||
/** |
||||
* 修改值守人员轨迹 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateGroupingUserPathInfo(GroupingUserPathInfo groupingUserPathInfo); |
||||
|
||||
/** |
||||
* 删除值守人员轨迹 |
||||
* |
||||
* @param id 值守人员轨迹主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserPathInfoById(Long id); |
||||
|
||||
/** |
||||
* 批量删除值守人员轨迹 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserPathInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 查询值守人员轨迹列表 |
||||
* |
||||
* @param groupingUserPathInfoDTO 值守人员轨迹 |
||||
* @return 值守人员轨迹集合 |
||||
*/ |
||||
public List<GroupingUserPathInfo> selectGroupingUserPathList(GroupingUserPathInfoDTO groupingUserPathInfoDTO); |
||||
|
||||
} |
@ -0,0 +1,70 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import java.util.List; |
||||
import com.cjy.emergencycommand.domain.PreplanFileInfo; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
/** |
||||
* 应急预案附件地址Mapper接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface PreplanFileInfoMapper |
||||
{ |
||||
/** |
||||
* 查询应急预案附件地址 |
||||
* |
||||
* @param id 应急预案附件地址主键 |
||||
* @return 应急预案附件地址 |
||||
*/ |
||||
public PreplanFileInfo selectPreplanFileInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急预案附件地址列表 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 应急预案附件地址集合 |
||||
*/ |
||||
public List<PreplanFileInfo> selectPreplanFileInfoList(PreplanFileInfo preplanFileInfo); |
||||
|
||||
/** |
||||
* 新增应急预案附件地址 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertPreplanFileInfo(PreplanFileInfo preplanFileInfo); |
||||
|
||||
/** |
||||
* 修改应急预案附件地址 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 结果 |
||||
*/ |
||||
public int updatePreplanFileInfo(PreplanFileInfo preplanFileInfo); |
||||
|
||||
/** |
||||
* 删除应急预案附件地址 |
||||
* |
||||
* @param id 应急预案附件地址主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanFileInfoById(Long id); |
||||
|
||||
/** |
||||
* 批量删除应急预案附件地址 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanFileInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 批量删除应急预案附件地址 |
||||
* |
||||
* @param prePlanCode 应急预案code |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanFileInfoByPrePlanCode(@Param("prePlanCode") String prePlanCode); |
||||
} |
@ -0,0 +1,72 @@ |
||||
package com.cjy.emergencycommand.mapper; |
||||
|
||||
import java.util.List; |
||||
import com.cjy.emergencycommand.domain.PreplanInfo; |
||||
import com.cjy.emergencycommand.domain.vo.PreplanInfoVO; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
/** |
||||
* 应急预案管理Mapper接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Component |
||||
public interface PreplanInfoMapper |
||||
{ |
||||
/** |
||||
* 查询应急预案管理 |
||||
* |
||||
* @param id 应急预案管理主键 |
||||
* @return 应急预案管理 |
||||
*/ |
||||
public PreplanInfo selectPreplanInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急预案管理列表 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 应急预案管理集合 |
||||
*/ |
||||
public List<PreplanInfo> selectPreplanInfoList(PreplanInfo preplanInfo); |
||||
|
||||
/** |
||||
* 新增应急预案管理 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertPreplanInfo(PreplanInfo preplanInfo); |
||||
|
||||
/** |
||||
* 修改应急预案管理 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 结果 |
||||
*/ |
||||
public int updatePreplanInfo(PreplanInfo preplanInfo); |
||||
|
||||
/** |
||||
* 删除应急预案管理 |
||||
* |
||||
* @param id 应急预案管理主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanInfoById(Long id); |
||||
|
||||
/** |
||||
* 批量删除应急预案管理 |
||||
* |
||||
* @param ids 需要删除的数据主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 根据名称查询应急预案管理列表 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 应急预案管理集合 |
||||
*/ |
||||
public List<PreplanInfoVO> selectPreplanInfoListByName(PreplanInfo preplanInfo); |
||||
} |
@ -0,0 +1,71 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.ClassificationConfig; |
||||
import com.cjy.emergencycommand.domain.vo.ClassificationConfigVO; |
||||
import com.cjy.emergencycommand.domain.vo.WaringClassificationConfigVO; |
||||
|
||||
/** |
||||
* 类型配置Service接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface ClassificationConfigService { |
||||
/** |
||||
* 查询类型配置 |
||||
* |
||||
* @param id 类型配置主键 |
||||
* @return 类型配置 |
||||
*/ |
||||
public ClassificationConfig selectClassificationConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询类型配置列表 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 类型配置集合 |
||||
*/ |
||||
public List<ClassificationConfigVO> selectClassificationConfigList(ClassificationConfig classificationConfig); |
||||
|
||||
/** |
||||
* 新增类型配置 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertClassificationConfig(ClassificationConfig classificationConfig); |
||||
|
||||
/** |
||||
* 修改类型配置 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateClassificationConfig(ClassificationConfig classificationConfig); |
||||
|
||||
/** |
||||
* 批量删除类型配置 |
||||
* |
||||
* @param ids 需要删除的类型配置主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationConfigByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 删除类型配置信息 |
||||
* |
||||
* @param id 类型配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询类型配置列表 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 类型配置集合 |
||||
*/ |
||||
public List<WaringClassificationConfigVO> selectWaringClassificationConfigList(ClassificationConfig classificationConfig); |
||||
} |
@ -0,0 +1,61 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.ClassificationDataConfig; |
||||
|
||||
/** |
||||
* 类型数据配置Service接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface ClassificationDataConfigService { |
||||
/** |
||||
* 查询类型数据配置 |
||||
* |
||||
* @param id 类型数据配置主键 |
||||
* @return 类型数据配置 |
||||
*/ |
||||
public ClassificationDataConfig selectClassificationDataConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询类型数据配置列表 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 类型数据配置集合 |
||||
*/ |
||||
public List<ClassificationDataConfig> selectClassificationDataConfigList(ClassificationDataConfig classificationDataConfig); |
||||
|
||||
/** |
||||
* 新增类型数据配置 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertClassificationDataConfig(ClassificationDataConfig classificationDataConfig); |
||||
|
||||
/** |
||||
* 修改类型数据配置 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateClassificationDataConfig(ClassificationDataConfig classificationDataConfig); |
||||
|
||||
/** |
||||
* 批量删除类型数据配置 |
||||
* |
||||
* @param ids 需要删除的类型数据配置主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationDataConfigByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 删除类型数据配置信息 |
||||
* |
||||
* @param id 类型数据配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteClassificationDataConfigById(Long id); |
||||
} |
@ -0,0 +1,54 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingConfig; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingConfigVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 应急管理排班分组配置Service接口 |
||||
* |
||||
* @author ruoyi |
||||
* @date 2023-02-27 |
||||
*/ |
||||
public interface GroupingConfigService { |
||||
/** |
||||
* 查询应急管理排班分组配置 |
||||
* |
||||
* @param id 应急管理排班分组配置主键 |
||||
* @return 应急管理排班分组配置 |
||||
*/ |
||||
public GroupingConfig selectEcEmergencyCommandGroupingConfigById(Long id); |
||||
|
||||
/** |
||||
* 查询应急管理排班分组配置列表 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 应急管理排班分组配置集合 |
||||
*/ |
||||
public List<GroupingConfigVO> selectEcEmergencyCommandGroupingConfigList(GroupingConfig ecEmergencyCommandGroupingConfig); |
||||
|
||||
/** |
||||
* 新增应急管理排班分组配置 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertEcEmergencyCommandGroupingConfig(GroupingConfig ecEmergencyCommandGroupingConfig); |
||||
|
||||
/** |
||||
* 修改应急管理排班分组配置 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateEcEmergencyCommandGroupingConfig(GroupingConfig ecEmergencyCommandGroupingConfig); |
||||
|
||||
/** |
||||
* 批量删除应急管理排班分组配置 |
||||
* |
||||
* @param ids 需要删除的应急管理排班分组配置主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteEcEmergencyCommandGroupingConfigByIds(Long[] ids); |
||||
} |
@ -0,0 +1,103 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupUserDTO; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingUserInfoVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 应急管理值守人员Service接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-27 |
||||
*/ |
||||
public interface GroupingUserInfoService { |
||||
/** |
||||
* 查询应急管理值守人员 |
||||
* |
||||
* @param id 应急管理值守人员主键 |
||||
* @return 应急管理值守人员 |
||||
*/ |
||||
public GroupingUserInfo selectGroupingUserInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急管理值守人员列表 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfo> selectGroupingUserInfoList(GroupingUserInfo groupingUserInfo); |
||||
|
||||
/** |
||||
* 新增应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertGroupingUserInfo(GroupingUserInfo groupingUserInfo); |
||||
|
||||
/** |
||||
* 修改应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateGroupingUserInfo(GroupingUserInfo groupingUserInfo); |
||||
|
||||
/** |
||||
* 批量删除应急管理值守人员 |
||||
* |
||||
* @param ids 需要删除的应急管理值守人员主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 删除应急管理值守人员信息 |
||||
* |
||||
* @param id 应急管理值守人员主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserInfoById(Long id); |
||||
|
||||
/** |
||||
* 根据姓名 手机号查询应急管理值守人员列表 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfoVO> selectGroupingUserInfoListByUserInfo(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 根据姓名 手机号查询应急管理值守人员列表 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfoVO> getUndistributedGroupingUsers(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 根据姓名 手机号查询应急管理值守人员列表 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 应急管理值守人员集合 |
||||
*/ |
||||
public List<GroupingUserInfoVO> getDistributedGroupingUsers(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 批量新增应急管理值守人员 |
||||
* |
||||
* @param groupUserDTO 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertGroupingUserList(GroupUserDTO groupUserDTO); |
||||
|
||||
/** |
||||
* 批量删除应急管理值守人员 |
||||
* |
||||
* @param ids 需要删除的应急管理值守人员主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserByIds(Long[] ids); |
||||
} |
@ -0,0 +1,71 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserPathInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupingUserPathInfoDTO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 值守人员轨迹Service接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface GroupingUserPathInfoService |
||||
{ |
||||
/** |
||||
* 查询值守人员轨迹 |
||||
* |
||||
* @param id 值守人员轨迹主键 |
||||
* @return 值守人员轨迹 |
||||
*/ |
||||
public GroupingUserPathInfo selectGroupingUserPathInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询值守人员轨迹列表 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 值守人员轨迹集合 |
||||
*/ |
||||
public List<GroupingUserPathInfo> selectGroupingUserPathInfoList(GroupingUserPathInfo groupingUserPathInfo); |
||||
|
||||
/** |
||||
* 新增值守人员轨迹 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertGroupingUserPathInfo(GroupingUserPathInfo groupingUserPathInfo); |
||||
|
||||
/** |
||||
* 修改值守人员轨迹 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 结果 |
||||
*/ |
||||
public int updateGroupingUserPathInfo(GroupingUserPathInfo groupingUserPathInfo); |
||||
|
||||
/** |
||||
* 批量删除值守人员轨迹 |
||||
* |
||||
* @param ids 需要删除的值守人员轨迹主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserPathInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 删除值守人员轨迹信息 |
||||
* |
||||
* @param id 值守人员轨迹主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deleteGroupingUserPathInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询值守人员轨迹列表 |
||||
* |
||||
* @param groupingUserPathInfoDTO 值守人员轨迹 |
||||
* @return 值守人员轨迹集合 |
||||
*/ |
||||
public List<GroupingUserPathInfo> selectGroupingUserPathInfoList(GroupingUserPathInfoDTO groupingUserPathInfoDTO); |
||||
} |
@ -0,0 +1,69 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import java.util.List; |
||||
import com.cjy.emergencycommand.domain.PreplanFileInfo; |
||||
|
||||
/** |
||||
* 应急预案附件地址Service接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface PreplanFileInfoService |
||||
{ |
||||
/** |
||||
* 查询应急预案附件地址 |
||||
* |
||||
* @param id 应急预案附件地址主键 |
||||
* @return 应急预案附件地址 |
||||
*/ |
||||
public PreplanFileInfo selectPreplanFileInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急预案附件地址列表 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 应急预案附件地址集合 |
||||
*/ |
||||
public List<PreplanFileInfo> selectPreplanFileInfoList(PreplanFileInfo preplanFileInfo); |
||||
|
||||
/** |
||||
* 新增应急预案附件地址 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertPreplanFileInfo(PreplanFileInfo preplanFileInfo); |
||||
|
||||
/** |
||||
* 修改应急预案附件地址 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 结果 |
||||
*/ |
||||
public int updatePreplanFileInfo(PreplanFileInfo preplanFileInfo); |
||||
|
||||
/** |
||||
* 批量删除应急预案附件地址 |
||||
* |
||||
* @param ids 需要删除的应急预案附件地址主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanFileInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 删除应急预案附件地址信息 |
||||
* |
||||
* @param id 应急预案附件地址主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanFileInfoById(Long id); |
||||
|
||||
/** |
||||
* 根据应急预案code删除应急预案附件地址信息 |
||||
* |
||||
* @param prePlanCode 应急预案code |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanFileInfoByPrePlanCode(String prePlanCode); |
||||
} |
@ -0,0 +1,71 @@ |
||||
package com.cjy.emergencycommand.service; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.PreplanInfo; |
||||
import com.cjy.emergencycommand.domain.dto.PreplanInfoDTO; |
||||
import com.cjy.emergencycommand.domain.vo.PreplanInfoVO; |
||||
|
||||
/** |
||||
* 应急预案管理Service接口 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
public interface PreplanInfoService { |
||||
/** |
||||
* 查询应急预案管理 |
||||
* |
||||
* @param id 应急预案管理主键 |
||||
* @return 应急预案管理 |
||||
*/ |
||||
public PreplanInfo selectPreplanInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急预案管理列表 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 应急预案管理集合 |
||||
*/ |
||||
public List<PreplanInfo> selectPreplanInfoList(PreplanInfo preplanInfo); |
||||
|
||||
/** |
||||
* 新增应急预案管理 |
||||
* |
||||
* @param preplanInfoDTO 应急预案管理 |
||||
* @return 结果 |
||||
*/ |
||||
public int insertPreplanInfo(PreplanInfoDTO preplanInfoDTO); |
||||
|
||||
/** |
||||
* 修改应急预案管理 |
||||
* |
||||
* @param preplanInfoDTO 应急预案管理 |
||||
* @return 结果 |
||||
*/ |
||||
public int updatePreplanInfo(PreplanInfoDTO preplanInfoDTO); |
||||
|
||||
/** |
||||
* 批量删除应急预案管理 |
||||
* |
||||
* @param ids 需要删除的应急预案管理主键集合 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanInfoByIds(Long[] ids); |
||||
|
||||
/** |
||||
* 删除应急预案管理信息 |
||||
* |
||||
* @param id 应急预案管理主键 |
||||
* @return 结果 |
||||
*/ |
||||
public int deletePreplanInfoById(Long id); |
||||
|
||||
/** |
||||
* 查询应急预案管理列表 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 应急预案管理集合 |
||||
*/ |
||||
public List<PreplanInfoVO> selectPreplanInfoListByName(PreplanInfo preplanInfo); |
||||
} |
@ -0,0 +1,126 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
import java.util.stream.Collectors; |
||||
|
||||
import com.cjy.emergencycommand.domain.ClassificationDataConfig; |
||||
import com.cjy.emergencycommand.domain.vo.ClassificationConfigVO; |
||||
import com.cjy.emergencycommand.domain.vo.WaringClassificationConfigVO; |
||||
import com.cjy.emergencycommand.service.ClassificationDataConfigService; |
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.BeanUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import com.cjy.emergencycommand.mapper.ClassificationConfigMapper; |
||||
import com.cjy.emergencycommand.domain.ClassificationConfig; |
||||
import com.cjy.emergencycommand.service.ClassificationConfigService; |
||||
|
||||
/** |
||||
* 类型配置Service业务层处理 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Service |
||||
public class ClassificationConfigServiceImpl implements ClassificationConfigService { |
||||
@Autowired |
||||
private ClassificationConfigMapper classificationConfigMapper; |
||||
|
||||
@Autowired |
||||
private ClassificationDataConfigService classificationDataConfigService; |
||||
|
||||
/** |
||||
* 查询类型配置 |
||||
* |
||||
* @param id 类型配置主键 |
||||
* @return 类型配置 |
||||
*/ |
||||
@Override |
||||
public ClassificationConfig selectClassificationConfigById(Long id) { |
||||
return classificationConfigMapper.selectClassificationConfigById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询类型配置列表 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 类型配置 |
||||
*/ |
||||
@Override |
||||
public List<ClassificationConfigVO> selectClassificationConfigList(ClassificationConfig classificationConfig) { |
||||
classificationConfig.setDelFlag("2"); |
||||
return classificationConfigMapper.selectClassificationConfigList(classificationConfig); |
||||
} |
||||
|
||||
/** |
||||
* 新增类型配置 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertClassificationConfig(ClassificationConfig classificationConfig) { |
||||
return classificationConfigMapper.insertClassificationConfig(classificationConfig); |
||||
} |
||||
|
||||
/** |
||||
* 修改类型配置 |
||||
* |
||||
* @param classificationConfig 类型配置 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updateClassificationConfig(ClassificationConfig classificationConfig) { |
||||
classificationConfig.setUpdateTime(DateUtils.getNowDate()); |
||||
return classificationConfigMapper.updateClassificationConfig(classificationConfig); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除类型配置 |
||||
* |
||||
* @param ids 需要删除的类型配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteClassificationConfigByIds(Long[] ids) { |
||||
return classificationConfigMapper.deleteClassificationConfigByIds(ids); |
||||
} |
||||
|
||||
/** |
||||
* 删除类型配置信息 |
||||
* |
||||
* @param id 类型配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteClassificationConfigById(Long id) { |
||||
return classificationConfigMapper.deleteClassificationConfigById(id); |
||||
} |
||||
|
||||
@Override |
||||
public List<WaringClassificationConfigVO> selectWaringClassificationConfigList(ClassificationConfig classificationConfig) { |
||||
List<WaringClassificationConfigVO> voList = new ArrayList<>(); |
||||
classificationConfig.setDelFlag("2"); |
||||
List<ClassificationConfigVO> configVOList = classificationConfigMapper.selectClassificationConfigList(classificationConfig); |
||||
ClassificationDataConfig classificationDataConfig = new ClassificationDataConfig(); |
||||
classificationDataConfig.setOrganCode(classificationConfig.getOrganCode()); |
||||
List<ClassificationDataConfig> classificationDataConfigs = classificationDataConfigService.selectClassificationDataConfigList(classificationDataConfig); |
||||
configVOList.stream().forEach(e->{ |
||||
WaringClassificationConfigVO configVO = new WaringClassificationConfigVO(); |
||||
configVO.setClassificationCode(e.getClassificationCode()); |
||||
configVO.setClassificationName(e.getClassificationName()); |
||||
List<ClassificationDataConfig> classificationDataConfigList =classificationDataConfigs.stream().filter(r->r.getClassificationCode().equals(e.getClassificationCode())).collect(Collectors.toList()); |
||||
List<ClassificationConfigVO> list = new ArrayList<>(); |
||||
classificationDataConfigList.stream().forEach(t->{ |
||||
ClassificationConfigVO vo = new ClassificationConfigVO(); |
||||
vo.setClassificationCode(t.getDataCode()); |
||||
vo.setClassificationName(t.getDataName()); |
||||
list.add(vo); |
||||
}); |
||||
configVO.setList(list); |
||||
voList.add(configVO); |
||||
}); |
||||
return voList; |
||||
} |
||||
} |
@ -0,0 +1,95 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.List; |
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import com.cjy.emergencycommand.mapper.ClassificationDataConfigMapper; |
||||
import com.cjy.emergencycommand.domain.ClassificationDataConfig; |
||||
import com.cjy.emergencycommand.service.ClassificationDataConfigService; |
||||
|
||||
/** |
||||
* 类型数据配置Service业务层处理 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Service |
||||
public class ClassificationDataConfigServiceImpl implements ClassificationDataConfigService |
||||
{ |
||||
@Autowired |
||||
private ClassificationDataConfigMapper classificationDataConfigMapper; |
||||
|
||||
/** |
||||
* 查询类型数据配置 |
||||
* |
||||
* @param id 类型数据配置主键 |
||||
* @return 类型数据配置 |
||||
*/ |
||||
@Override |
||||
public ClassificationDataConfig selectClassificationDataConfigById(Long id) |
||||
{ |
||||
return classificationDataConfigMapper.selectClassificationDataConfigById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询类型数据配置列表 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 类型数据配置 |
||||
*/ |
||||
@Override |
||||
public List<ClassificationDataConfig> selectClassificationDataConfigList(ClassificationDataConfig classificationDataConfig) |
||||
{ |
||||
return classificationDataConfigMapper.selectClassificationDataConfigList(classificationDataConfig); |
||||
} |
||||
|
||||
/** |
||||
* 新增类型数据配置 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertClassificationDataConfig(ClassificationDataConfig classificationDataConfig) |
||||
{ |
||||
return classificationDataConfigMapper.insertClassificationDataConfig(classificationDataConfig); |
||||
} |
||||
|
||||
/** |
||||
* 修改类型数据配置 |
||||
* |
||||
* @param classificationDataConfig 类型数据配置 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updateClassificationDataConfig(ClassificationDataConfig classificationDataConfig) |
||||
{ |
||||
classificationDataConfig.setUpdateTime(DateUtils.getNowDate()); |
||||
return classificationDataConfigMapper.updateClassificationDataConfig(classificationDataConfig); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除类型数据配置 |
||||
* |
||||
* @param ids 需要删除的类型数据配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteClassificationDataConfigByIds(Long[] ids) |
||||
{ |
||||
return classificationDataConfigMapper.deleteClassificationDataConfigByIds(ids); |
||||
} |
||||
|
||||
/** |
||||
* 删除类型数据配置信息 |
||||
* |
||||
* @param id 类型数据配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteClassificationDataConfigById(Long id) |
||||
{ |
||||
return classificationDataConfigMapper.deleteClassificationDataConfigById(id); |
||||
} |
||||
} |
@ -0,0 +1,105 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingConfig; |
||||
import com.cjy.emergencycommand.domain.GroupingUserInfo; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingConfigVO; |
||||
import com.cjy.emergencycommand.mapper.GroupingConfigMapper; |
||||
import com.cjy.emergencycommand.service.GroupingConfigService; |
||||
import com.cjy.emergencycommand.service.GroupingUserInfoService; |
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.BeanUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import org.springframework.util.CollectionUtils; |
||||
|
||||
|
||||
/** |
||||
* 应急管理排班分组配置Service业务层处理 |
||||
* |
||||
* @author ruoyi |
||||
* @date 2023-02-27 |
||||
*/ |
||||
@Service |
||||
public class GroupingConfigServiceImpl implements GroupingConfigService { |
||||
@Autowired |
||||
private GroupingConfigMapper emergencyCommandGroupingConfigMapper; |
||||
|
||||
@Autowired |
||||
private GroupingUserInfoService groupingUserInfoService; |
||||
|
||||
/** |
||||
* 查询应急管理排班分组配置 |
||||
* |
||||
* @param id 应急管理排班分组配置主键 |
||||
* @return 应急管理排班分组配置 |
||||
*/ |
||||
@Override |
||||
public GroupingConfig selectEcEmergencyCommandGroupingConfigById(Long id) { |
||||
return emergencyCommandGroupingConfigMapper.selectEcEmergencyCommandGroupingConfigById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询应急管理排班分组配置列表 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 应急管理排班分组配置 |
||||
*/ |
||||
@Override |
||||
public List<GroupingConfigVO> selectEcEmergencyCommandGroupingConfigList(GroupingConfig ecEmergencyCommandGroupingConfig) { |
||||
List<GroupingConfig> list = emergencyCommandGroupingConfigMapper.selectEcEmergencyCommandGroupingConfigList(ecEmergencyCommandGroupingConfig); |
||||
List<GroupingConfigVO> returnList = new ArrayList<>(); |
||||
list.stream().forEach(e -> { |
||||
GroupingConfigVO vo = new GroupingConfigVO(); |
||||
BeanUtils.copyProperties(e, vo); |
||||
returnList.add(vo); |
||||
}); |
||||
return returnList; |
||||
} |
||||
|
||||
/** |
||||
* 新增应急管理排班分组配置 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertEcEmergencyCommandGroupingConfig(GroupingConfig ecEmergencyCommandGroupingConfig) { |
||||
return emergencyCommandGroupingConfigMapper.insertEcEmergencyCommandGroupingConfig(ecEmergencyCommandGroupingConfig); |
||||
} |
||||
|
||||
/** |
||||
* 修改应急管理排班分组配置 |
||||
* |
||||
* @param ecEmergencyCommandGroupingConfig 应急管理排班分组配置 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updateEcEmergencyCommandGroupingConfig(GroupingConfig ecEmergencyCommandGroupingConfig) { |
||||
ecEmergencyCommandGroupingConfig.setUpdateTime(DateUtils.getNowDate()); |
||||
return emergencyCommandGroupingConfigMapper.updateEcEmergencyCommandGroupingConfig(ecEmergencyCommandGroupingConfig); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除应急管理排班分组配置 |
||||
* |
||||
* @param ids 需要删除的应急管理排班分组配置主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteEcEmergencyCommandGroupingConfigByIds(Long[] ids) { |
||||
//判断当前分组是否还有人员 如果还有人员则不允许删除
|
||||
GroupingUserInfo groupingUserInfo = new GroupingUserInfo(); |
||||
if (ids.length > 1) { |
||||
return -1; |
||||
} |
||||
groupingUserInfo.setGroupingId(ids[0]); |
||||
List<GroupingUserInfo> groupingUserInfos = groupingUserInfoService.selectGroupingUserInfoList(groupingUserInfo); |
||||
if (!CollectionUtils.isEmpty(groupingUserInfos)) { |
||||
return -1; |
||||
} |
||||
return emergencyCommandGroupingConfigMapper.deleteEcEmergencyCommandGroupingConfigByIds(ids); |
||||
} |
||||
} |
@ -0,0 +1,137 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.Date; |
||||
import java.util.List; |
||||
import java.util.stream.Collectors; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupUserDTO; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingUserInfoVO; |
||||
import com.cjy.emergencycommand.mapper.GroupingUserInfoMapper; |
||||
import com.cjy.emergencycommand.service.GroupingUserInfoService; |
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import org.springframework.util.CollectionUtils; |
||||
|
||||
/** |
||||
* 应急管理值守人员Service业务层处理 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-27 |
||||
*/ |
||||
@Service |
||||
public class GroupingUserInfoServiceImpl implements GroupingUserInfoService { |
||||
@Autowired |
||||
private GroupingUserInfoMapper groupingUserInfoMapper; |
||||
|
||||
/** |
||||
* 查询应急管理值守人员 |
||||
* |
||||
* @param id 应急管理值守人员主键 |
||||
* @return 应急管理值守人员 |
||||
*/ |
||||
@Override |
||||
public GroupingUserInfo selectGroupingUserInfoById(Long id) { |
||||
return groupingUserInfoMapper.selectGroupingUserInfoById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询应急管理值守人员列表 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 应急管理值守人员 |
||||
*/ |
||||
@Override |
||||
public List<GroupingUserInfo> selectGroupingUserInfoList(GroupingUserInfo groupingUserInfo) { |
||||
return groupingUserInfoMapper.selectGroupingUserInfoList(groupingUserInfo); |
||||
} |
||||
|
||||
/** |
||||
* 新增应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertGroupingUserInfo(GroupingUserInfo groupingUserInfo) { |
||||
return groupingUserInfoMapper.insertGroupingUserInfo(groupingUserInfo); |
||||
} |
||||
|
||||
/** |
||||
* 修改应急管理值守人员 |
||||
* |
||||
* @param groupingUserInfo 应急管理值守人员 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updateGroupingUserInfo(GroupingUserInfo groupingUserInfo) { |
||||
groupingUserInfo.setUpdateTime(DateUtils.getNowDate()); |
||||
return groupingUserInfoMapper.updateGroupingUserInfo(groupingUserInfo); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除应急管理值守人员 |
||||
* |
||||
* @param ids 需要删除的应急管理值守人员主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteGroupingUserInfoByIds(Long[] ids) { |
||||
return groupingUserInfoMapper.deleteGroupingUserInfoByIds(ids); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急管理值守人员信息 |
||||
* |
||||
* @param id 应急管理值守人员主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteGroupingUserInfoById(Long id) { |
||||
return groupingUserInfoMapper.deleteGroupingUserInfoById(id); |
||||
} |
||||
|
||||
@Override |
||||
public List<GroupingUserInfoVO> selectGroupingUserInfoListByUserInfo(GroupUserDTO groupUserDTO) { |
||||
groupUserDTO.setDelFlag("2"); |
||||
return groupingUserInfoMapper.selectGroupingUserInfoListByUserInfo(groupUserDTO); |
||||
} |
||||
|
||||
@Override |
||||
public List<GroupingUserInfoVO> getUndistributedGroupingUsers(GroupUserDTO groupUserDTO) { |
||||
List<GroupingUserInfoVO> userInfoVOs = groupingUserInfoMapper.getUndistributedGroupingUsers(groupUserDTO); |
||||
GroupingUserInfo groupingUserInfo = new GroupingUserInfo(); |
||||
groupingUserInfo.setDelFlag("2"); |
||||
List<GroupingUserInfo> groupingUserInfos = groupingUserInfoMapper.selectGroupingUserInfoList(groupingUserInfo); |
||||
List<Long> userIds = groupingUserInfos.stream().map(GroupingUserInfo::getUserId).collect(Collectors.toList()); |
||||
userInfoVOs = userInfoVOs.stream().filter(e -> !userIds.contains(e.getUserId())).collect(Collectors.toList()); |
||||
return userInfoVOs; |
||||
} |
||||
|
||||
@Override |
||||
public List<GroupingUserInfoVO> getDistributedGroupingUsers(GroupUserDTO groupUserDTO) { |
||||
return groupingUserInfoMapper.getDistributedGroupingUsers(groupUserDTO); |
||||
} |
||||
|
||||
@Override |
||||
public int insertGroupingUserList(GroupUserDTO groupUserDTO) { |
||||
List<Long> userList = groupUserDTO.getUserList(); |
||||
List<GroupingUserInfo> groupingUserInfos = new ArrayList<>(); |
||||
userList.stream().forEach(e -> { |
||||
GroupingUserInfo groupingUserInfo = new GroupingUserInfo(); |
||||
groupingUserInfo.setGroupingId(groupUserDTO.getGroupingId()); |
||||
groupingUserInfo.setUserId(e); |
||||
groupingUserInfo.setCreatedTime(new Date()); |
||||
groupingUserInfo.setUpdateTime(new Date()); |
||||
groupingUserInfos.add(groupingUserInfo); |
||||
}); |
||||
return groupingUserInfoMapper.insertGroupingUserList(groupingUserInfos); |
||||
} |
||||
|
||||
@Override |
||||
public int deleteGroupingUserByIds(Long[] ids) { |
||||
return groupingUserInfoMapper.updateGroupingUserByIds(ids); |
||||
} |
||||
} |
@ -0,0 +1,98 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
import com.cjy.emergencycommand.domain.GroupingUserPathInfo; |
||||
import com.cjy.emergencycommand.domain.dto.GroupingUserPathInfoDTO; |
||||
import com.cjy.emergencycommand.domain.vo.GroupingUserPathInfoVO; |
||||
import com.cjy.emergencycommand.mapper.GroupingUserPathInfoMapper; |
||||
import com.cjy.emergencycommand.service.GroupingUserPathInfoService; |
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.BeanUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* 值守人员轨迹Service业务层处理 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Service |
||||
public class GroupingUserPathInfoServiceImpl implements GroupingUserPathInfoService { |
||||
@Autowired |
||||
private GroupingUserPathInfoMapper groupingUserPathInfoMapper; |
||||
|
||||
/** |
||||
* 查询值守人员轨迹 |
||||
* |
||||
* @param id 值守人员轨迹主键 |
||||
* @return 值守人员轨迹 |
||||
*/ |
||||
@Override |
||||
public GroupingUserPathInfo selectGroupingUserPathInfoById(Long id) { |
||||
return groupingUserPathInfoMapper.selectGroupingUserPathInfoById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询值守人员轨迹列表 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 值守人员轨迹 |
||||
*/ |
||||
@Override |
||||
public List<GroupingUserPathInfo> selectGroupingUserPathInfoList(GroupingUserPathInfo groupingUserPathInfo) { |
||||
return groupingUserPathInfoMapper.selectGroupingUserPathInfoList(groupingUserPathInfo); |
||||
} |
||||
|
||||
/** |
||||
* 新增值守人员轨迹 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertGroupingUserPathInfo(GroupingUserPathInfo groupingUserPathInfo) { |
||||
return groupingUserPathInfoMapper.insertGroupingUserPathInfo(groupingUserPathInfo); |
||||
} |
||||
|
||||
/** |
||||
* 修改值守人员轨迹 |
||||
* |
||||
* @param groupingUserPathInfo 值守人员轨迹 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updateGroupingUserPathInfo(GroupingUserPathInfo groupingUserPathInfo) { |
||||
groupingUserPathInfo.setUpdateTime(DateUtils.getNowDate()); |
||||
return groupingUserPathInfoMapper.updateGroupingUserPathInfo(groupingUserPathInfo); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除值守人员轨迹 |
||||
* |
||||
* @param ids 需要删除的值守人员轨迹主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteGroupingUserPathInfoByIds(Long[] ids) { |
||||
return groupingUserPathInfoMapper.deleteGroupingUserPathInfoByIds(ids); |
||||
} |
||||
|
||||
/** |
||||
* 删除值守人员轨迹信息 |
||||
* |
||||
* @param id 值守人员轨迹主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deleteGroupingUserPathInfoById(Long id) { |
||||
return groupingUserPathInfoMapper.deleteGroupingUserPathInfoById(id); |
||||
} |
||||
|
||||
@Override |
||||
public List<GroupingUserPathInfo> selectGroupingUserPathInfoList(GroupingUserPathInfoDTO groupingUserPathInfoDTO) { |
||||
return groupingUserPathInfoMapper.selectGroupingUserPathList(groupingUserPathInfoDTO); |
||||
} |
||||
} |
@ -0,0 +1,100 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.List; |
||||
|
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import com.cjy.emergencycommand.mapper.PreplanFileInfoMapper; |
||||
import com.cjy.emergencycommand.domain.PreplanFileInfo; |
||||
import com.cjy.emergencycommand.service.PreplanFileInfoService; |
||||
|
||||
/** |
||||
* 应急预案附件地址Service业务层处理 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Service |
||||
public class PreplanFileInfoServiceImpl implements PreplanFileInfoService { |
||||
@Autowired |
||||
private PreplanFileInfoMapper preplanFileInfoMapper; |
||||
|
||||
/** |
||||
* 查询应急预案附件地址 |
||||
* |
||||
* @param id 应急预案附件地址主键 |
||||
* @return 应急预案附件地址 |
||||
*/ |
||||
@Override |
||||
public PreplanFileInfo selectPreplanFileInfoById(Long id) { |
||||
return preplanFileInfoMapper.selectPreplanFileInfoById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询应急预案附件地址列表 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 应急预案附件地址 |
||||
*/ |
||||
@Override |
||||
public List<PreplanFileInfo> selectPreplanFileInfoList(PreplanFileInfo preplanFileInfo) { |
||||
return preplanFileInfoMapper.selectPreplanFileInfoList(preplanFileInfo); |
||||
} |
||||
|
||||
/** |
||||
* 新增应急预案附件地址 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertPreplanFileInfo(PreplanFileInfo preplanFileInfo) { |
||||
return preplanFileInfoMapper.insertPreplanFileInfo(preplanFileInfo); |
||||
} |
||||
|
||||
/** |
||||
* 修改应急预案附件地址 |
||||
* |
||||
* @param preplanFileInfo 应急预案附件地址 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updatePreplanFileInfo(PreplanFileInfo preplanFileInfo) { |
||||
preplanFileInfo.setUpdateTime(DateUtils.getNowDate()); |
||||
return preplanFileInfoMapper.updatePreplanFileInfo(preplanFileInfo); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除应急预案附件地址 |
||||
* |
||||
* @param ids 需要删除的应急预案附件地址主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deletePreplanFileInfoByIds(Long[] ids) { |
||||
return preplanFileInfoMapper.deletePreplanFileInfoByIds(ids); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急预案附件地址信息 |
||||
* |
||||
* @param id 应急预案附件地址主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deletePreplanFileInfoById(Long id) { |
||||
return preplanFileInfoMapper.deletePreplanFileInfoById(id); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急预案附件地址信息 |
||||
* |
||||
* @param prePlanCode 应急预案附件地址主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deletePreplanFileInfoByPrePlanCode(String prePlanCode) { |
||||
return preplanFileInfoMapper.deletePreplanFileInfoByPrePlanCode(prePlanCode); |
||||
} |
||||
} |
@ -0,0 +1,134 @@ |
||||
package com.cjy.emergencycommand.service.impl; |
||||
|
||||
import java.util.List; |
||||
import java.util.UUID; |
||||
|
||||
import com.cjy.emergencycommand.domain.PreplanFileInfo; |
||||
import com.cjy.emergencycommand.domain.dto.PreplanInfoDTO; |
||||
import com.cjy.emergencycommand.domain.vo.PreplanInfoVO; |
||||
import com.cjy.emergencycommand.service.PreplanFileInfoService; |
||||
import com.ruoyi.common.utils.DateUtils; |
||||
import org.springframework.beans.BeanUtils; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
||||
import com.cjy.emergencycommand.mapper.PreplanInfoMapper; |
||||
import com.cjy.emergencycommand.domain.PreplanInfo; |
||||
import com.cjy.emergencycommand.service.PreplanInfoService; |
||||
import org.springframework.util.CollectionUtils; |
||||
|
||||
/** |
||||
* 应急预案管理Service业务层处理 |
||||
* |
||||
* @author hehang |
||||
* @date 2023-02-28 |
||||
*/ |
||||
@Service |
||||
public class PreplanInfoServiceImpl implements PreplanInfoService { |
||||
@Autowired |
||||
private PreplanInfoMapper preplanInfoMapper; |
||||
|
||||
@Autowired |
||||
private PreplanFileInfoService preplanFileInfoService; |
||||
|
||||
/** |
||||
* 查询应急预案管理 |
||||
* |
||||
* @param id 应急预案管理主键 |
||||
* @return 应急预案管理 |
||||
*/ |
||||
@Override |
||||
public PreplanInfo selectPreplanInfoById(Long id) { |
||||
return preplanInfoMapper.selectPreplanInfoById(id); |
||||
} |
||||
|
||||
/** |
||||
* 查询应急预案管理列表 |
||||
* |
||||
* @param preplanInfo 应急预案管理 |
||||
* @return 应急预案管理 |
||||
*/ |
||||
@Override |
||||
public List<PreplanInfo> selectPreplanInfoList(PreplanInfo preplanInfo) { |
||||
return preplanInfoMapper.selectPreplanInfoList(preplanInfo); |
||||
} |
||||
|
||||
/** |
||||
* 新增应急预案管理 |
||||
* |
||||
* @param preplanInfoDTO 应急预案管理 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int insertPreplanInfo(PreplanInfoDTO preplanInfoDTO) { |
||||
//新增预案基本信息
|
||||
String code = UUID.randomUUID().toString().replace("-",""); |
||||
preplanInfoDTO.setCode(code); |
||||
int preplanInfoInsNum = preplanInfoMapper.insertPreplanInfo(preplanInfoDTO); |
||||
if(!CollectionUtils.isEmpty(preplanInfoDTO.getFileList())){ |
||||
//插入新的预案地址
|
||||
List<PreplanFileInfo> fileList = preplanInfoDTO.getFileList(); |
||||
fileList.stream().forEach(e->{ |
||||
PreplanFileInfo preplanFileInfo = new PreplanFileInfo(); |
||||
preplanFileInfo.setPreplanCode(code); |
||||
BeanUtils.copyProperties(e,preplanFileInfo); |
||||
preplanFileInfo.setDelFlag("1"); |
||||
preplanFileInfoService.insertPreplanFileInfo(preplanFileInfo); |
||||
}); |
||||
} |
||||
return preplanInfoInsNum; |
||||
} |
||||
|
||||
/** |
||||
* 修改应急预案管理 |
||||
* |
||||
* @param preplanInfoDTO 应急预案管理 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int updatePreplanInfo(PreplanInfoDTO preplanInfoDTO) { |
||||
preplanInfoDTO.setUpdateTime(DateUtils.getNowDate()); |
||||
int preplanInfoUpdateNum = preplanInfoMapper.updatePreplanInfo(preplanInfoDTO); |
||||
if(preplanInfoUpdateNum>0){ |
||||
if(!CollectionUtils.isEmpty(preplanInfoDTO.getFileList())){ |
||||
List<PreplanFileInfo> fileList = preplanInfoDTO.getFileList(); |
||||
preplanFileInfoService.deletePreplanFileInfoByPrePlanCode(preplanInfoDTO.getCode()); |
||||
fileList.stream().forEach(e->{ |
||||
PreplanFileInfo preplanFileInfo = new PreplanFileInfo(); |
||||
preplanFileInfo.setPreplanCode(preplanInfoDTO.getCode()); |
||||
BeanUtils.copyProperties(e,preplanFileInfo); |
||||
preplanFileInfo.setDelFlag("1"); |
||||
preplanFileInfoService.insertPreplanFileInfo(preplanFileInfo); |
||||
}); |
||||
} |
||||
} |
||||
return preplanInfoUpdateNum; |
||||
} |
||||
|
||||
/** |
||||
* 批量删除应急预案管理 |
||||
* |
||||
* @param ids 需要删除的应急预案管理主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deletePreplanInfoByIds(Long[] ids) { |
||||
return preplanInfoMapper.deletePreplanInfoByIds(ids); |
||||
} |
||||
|
||||
/** |
||||
* 删除应急预案管理信息 |
||||
* |
||||
* @param id 应急预案管理主键 |
||||
* @return 结果 |
||||
*/ |
||||
@Override |
||||
public int deletePreplanInfoById(Long id) { |
||||
return preplanInfoMapper.deletePreplanInfoById(id); |
||||
} |
||||
|
||||
@Override |
||||
public List<PreplanInfoVO> selectPreplanInfoListByName(PreplanInfo preplanInfo) { |
||||
preplanInfo.setDelFlag("2"); |
||||
return preplanInfoMapper.selectPreplanInfoListByName(preplanInfo); |
||||
} |
||||
} |
@ -0,0 +1,91 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.ClassificationConfigMapper"> |
||||
|
||||
<resultMap type="ClassificationConfig" id="ClassificationConfigResult"> |
||||
<result property="id" column="id" /> |
||||
<result property="createdTime" column="created_time" /> |
||||
<result property="updateTime" column="update_time" /> |
||||
<result property="type" column="type" /> |
||||
<result property="classificationCode" column="classification_code" /> |
||||
<result property="classificationName" column="classification_name" /> |
||||
<result property="sortId" column="sort_id" /> |
||||
<result property="remark" column="remark" /> |
||||
<result property="organCode" column="organ_code" /> |
||||
<result property="delFlag" column="del_flag" /> |
||||
</resultMap> |
||||
|
||||
<sql id="selectClassificationConfigVo"> |
||||
select id, created_time, update_time, type, classification_code, classification_name, sort_id, remark, organ_code, del_flag from ec_classification_config |
||||
</sql> |
||||
|
||||
<select id="selectClassificationConfigList" parameterType="ClassificationConfig" resultType="ClassificationConfigVO"> |
||||
select classification_code, classification_name from ec_classification_config |
||||
<where> |
||||
<if test="type != null and type != ''"> and type = #{type}</if> |
||||
<if test="organCode != null"> and organ_code = #{organCode}</if> |
||||
<if test="delFlag != null and delFlag != ''"> and del_flag != #{delFlag}</if> |
||||
</where> |
||||
order by sort_id asc |
||||
</select> |
||||
|
||||
<select id="selectClassificationConfigById" parameterType="Long" resultMap="ClassificationConfigResult"> |
||||
<include refid="selectClassificationConfigVo"/> |
||||
where id = #{id} |
||||
</select> |
||||
|
||||
<insert id="insertClassificationConfig" parameterType="ClassificationConfig" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_classification_config |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="type != null">type,</if> |
||||
<if test="classificationCode != null">classification_code,</if> |
||||
<if test="classificationName != null">classification_name,</if> |
||||
<if test="sortId != null">sort_id,</if> |
||||
<if test="remark != null">remark,</if> |
||||
<if test="organCode != null">organ_code,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="type != null">#{type},</if> |
||||
<if test="classificationCode != null">#{classificationCode},</if> |
||||
<if test="classificationName != null">#{classificationName},</if> |
||||
<if test="sortId != null">#{sortId},</if> |
||||
<if test="remark != null">#{remark},</if> |
||||
<if test="organCode != null">#{organCode},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updateClassificationConfig" parameterType="ClassificationConfig"> |
||||
update ec_classification_config |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="type != null">type = #{type},</if> |
||||
<if test="classificationCode != null">classification_code = #{classificationCode},</if> |
||||
<if test="classificationName != null">classification_name = #{classificationName},</if> |
||||
<if test="sortId != null">sort_id = #{sortId},</if> |
||||
<if test="remark != null">remark = #{remark},</if> |
||||
<if test="organCode != null">organ_code = #{organCode},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deleteClassificationConfigById" parameterType="Long"> |
||||
delete from ec_classification_config where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deleteClassificationConfigByIds" parameterType="String"> |
||||
delete from ec_classification_config where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
</mapper> |
@ -0,0 +1,93 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.ClassificationDataConfigMapper"> |
||||
|
||||
<resultMap type="ClassificationDataConfig" id="ClassificationDataConfigResult"> |
||||
<result property="id" column="id" /> |
||||
<result property="createdTime" column="created_time" /> |
||||
<result property="updateTime" column="update_time" /> |
||||
<result property="classificationCode" column="classification_code" /> |
||||
<result property="dataCode" column="data_code" /> |
||||
<result property="dataName" column="data_name" /> |
||||
<result property="sortId" column="sort_id" /> |
||||
<result property="remark" column="remark" /> |
||||
<result property="organCode" column="organ_code" /> |
||||
<result property="delFlag" column="del_flag" /> |
||||
</resultMap> |
||||
|
||||
<sql id="selectClassificationDataConfigVo"> |
||||
select id, created_time, update_time, classification_code, data_code, data_name, sort_id, remark, organ_code, del_flag from ec_classification_data_config |
||||
</sql> |
||||
|
||||
<select id="selectClassificationDataConfigList" parameterType="ClassificationDataConfig" resultMap="ClassificationDataConfigResult"> |
||||
<include refid="selectClassificationDataConfigVo"/> |
||||
<where> |
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if> |
||||
<if test="classificationCode != null and classificationCode != ''"> and classification_code = #{classificationCode}</if> |
||||
<if test="dataCode != null and dataCode != ''"> and data_code = #{dataCode}</if> |
||||
<if test="dataName != null and dataName != ''"> and data_name like concat('%', #{dataName}, '%')</if> |
||||
<if test="sortId != null "> and sort_id = #{sortId}</if> |
||||
<if test="organCode != null and organCode != ''"> and organ_code = #{organCode}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="selectClassificationDataConfigById" parameterType="Long" resultMap="ClassificationDataConfigResult"> |
||||
<include refid="selectClassificationDataConfigVo"/> |
||||
where id = #{id} |
||||
</select> |
||||
|
||||
<insert id="insertClassificationDataConfig" parameterType="ClassificationDataConfig" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_classification_data_config |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="classificationCode != null">classification_code,</if> |
||||
<if test="dataCode != null">data_code,</if> |
||||
<if test="dataName != null">data_name,</if> |
||||
<if test="sortId != null">sort_id,</if> |
||||
<if test="remark != null">remark,</if> |
||||
<if test="organCode != null">organ_code,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="classificationCode != null">#{classificationCode},</if> |
||||
<if test="dataCode != null">#{dataCode},</if> |
||||
<if test="dataName != null">#{dataName},</if> |
||||
<if test="sortId != null">#{sortId},</if> |
||||
<if test="remark != null">#{remark},</if> |
||||
<if test="organCode != null">#{organCode},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updateClassificationDataConfig" parameterType="ClassificationDataConfig"> |
||||
update ec_classification_data_config |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="classificationCode != null">classification_code = #{classificationCode},</if> |
||||
<if test="dataCode != null">data_code = #{dataCode},</if> |
||||
<if test="dataName != null">data_name = #{dataName},</if> |
||||
<if test="sortId != null">sort_id = #{sortId},</if> |
||||
<if test="remark != null">remark = #{remark},</if> |
||||
<if test="organCode != null">organ_code = #{organCode},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deleteClassificationDataConfigById" parameterType="Long"> |
||||
delete from ec_classification_data_config where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deleteClassificationDataConfigByIds" parameterType="String"> |
||||
delete from ec_classification_data_config where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
</mapper> |
@ -0,0 +1,81 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.GroupingConfigMapper"> |
||||
|
||||
<resultMap type="GroupingConfig" id="EcEmergencyCommandGroupingConfigResult"> |
||||
<result property="id" column="id" /> |
||||
<result property="createdTime" column="created_time" /> |
||||
<result property="updateTime" column="update_time" /> |
||||
<result property="sortId" column="sort_id" /> |
||||
<result property="name" column="name" /> |
||||
<result property="organCode" column="organ_code" /> |
||||
<result property="isDelete" column="is_delete" /> |
||||
</resultMap> |
||||
|
||||
<sql id="selectEcEmergencyCommandGroupingConfigVo"> |
||||
select id, created_time, update_time, sort_id, name, organ_code, is_delete from ec_emergency_command_grouping_config |
||||
</sql> |
||||
|
||||
<select id="selectEcEmergencyCommandGroupingConfigList" parameterType="GroupingConfig" resultMap="EcEmergencyCommandGroupingConfigResult"> |
||||
<include refid="selectEcEmergencyCommandGroupingConfigVo"/> |
||||
<where> |
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if> |
||||
<if test="sortId != null "> and sort_id = #{sortId}</if> |
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
||||
<if test="organCode != null and organCode != ''"> and organ_code = #{organCode}</if> |
||||
<if test="isDelete != null and isDelete != ''"> and is_delete = #{isDelete}</if> |
||||
</where> |
||||
ORDER BY created_time desc |
||||
</select> |
||||
|
||||
<select id="selectEcEmergencyCommandGroupingConfigById" parameterType="Long" resultMap="EcEmergencyCommandGroupingConfigResult"> |
||||
<include refid="selectEcEmergencyCommandGroupingConfigVo"/> |
||||
where id = #{id} |
||||
</select> |
||||
|
||||
<insert id="insertEcEmergencyCommandGroupingConfig" parameterType="GroupingConfig" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_emergency_command_grouping_config |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="sortId != null">sort_id,</if> |
||||
<if test="name != null">name,</if> |
||||
<if test="organCode != null">organ_code,</if> |
||||
<if test="isDelete != null">is_delete,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="sortId != null">#{sortId},</if> |
||||
<if test="name != null">#{name},</if> |
||||
<if test="organCode != null">#{organCode},</if> |
||||
<if test="isDelete != null">#{isDelete},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updateEcEmergencyCommandGroupingConfig" parameterType="GroupingConfig"> |
||||
update ec_emergency_command_grouping_config |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="sortId != null">sort_id = #{sortId},</if> |
||||
<if test="name != null">name = #{name},</if> |
||||
<if test="organCode != null">organ_code = #{organCode},</if> |
||||
<if test="isDelete != null">is_delete = #{isDelete},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deleteEcEmergencyCommandGroupingConfigById" parameterType="Long"> |
||||
delete from ec_emergency_command_grouping_config where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deleteEcEmergencyCommandGroupingConfigByIds" parameterType="String"> |
||||
update ec_emergency_command_grouping_config set del_flag = 2 where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
</mapper> |
@ -0,0 +1,145 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.GroupingUserInfoMapper"> |
||||
|
||||
<resultMap type="GroupingUserInfo" id="GroupingUserInfoResult"> |
||||
<result property="id" column="id" /> |
||||
<result property="createdTime" column="created_time" /> |
||||
<result property="updateTime" column="update_time" /> |
||||
<result property="groupingId" column="grouping_id" /> |
||||
<result property="userId" column="user_id" /> |
||||
<result property="delFlag" column="del_flag" /> |
||||
<result property="organCode" column="organ_code" /> |
||||
</resultMap> |
||||
|
||||
<sql id="selectGroupingUserInfoVo"> |
||||
select id, created_time, update_time, grouping_id, user_id, del_flag, organ_code from ec_grouping_user_info |
||||
</sql> |
||||
|
||||
<select id="selectGroupingUserInfoList" parameterType="GroupingUserInfo" resultMap="GroupingUserInfoResult"> |
||||
<include refid="selectGroupingUserInfoVo"/> |
||||
<where> |
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if> |
||||
<if test="groupingId != null "> and grouping_id = #{groupingId}</if> |
||||
<if test="userId != null "> and user_id = #{userId}</if> |
||||
<if test="organCode != null and organCode != ''"> and organ_code = #{organCode}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="selectGroupingUserInfoById" parameterType="Long" resultMap="GroupingUserInfoResult"> |
||||
<include refid="selectGroupingUserInfoVo"/> |
||||
where id = #{id} and del_flag !=2 |
||||
</select> |
||||
|
||||
<insert id="insertGroupingUserInfo" parameterType="GroupingUserInfo" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_grouping_user_info |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="groupingId != null">grouping_id,</if> |
||||
<if test="userId != null">user_id,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
<if test="organCode != null">organ_code,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="groupingId != null">#{groupingId},</if> |
||||
<if test="userId != null">#{userId},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
<if test="organCode != null">#{organCode},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updateGroupingUserInfo" parameterType="GroupingUserInfo"> |
||||
update ec_grouping_user_info |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="groupingId != null">grouping_id = #{groupingId},</if> |
||||
<if test="userId != null">user_id = #{userId},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
<if test="organCode != null">organ_code = #{organCode},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deleteGroupingUserInfoById" parameterType="Long"> |
||||
delete from ec_grouping_user_info where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deleteGroupingUserInfoByIds" parameterType="String"> |
||||
delete from ec_grouping_user_info where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
|
||||
|
||||
<select id="selectGroupingUserInfoListByUserInfo" parameterType="GroupUserDTO" resultType="GroupingUserInfoVO"> |
||||
select t1.id,as id t1.user_id as userId,t4.`name`as groupingName,t5.organ_name as organizationName, t3.dept_name |
||||
as deptName, |
||||
t2.nick_name as userName,t2.phonenumber as userPhone |
||||
from ec_grouping_user_info t1 |
||||
LEFT JOIN sys_user t2 on t1.user_id = t2.user_id AND t2.del_flag!=2 |
||||
LEFT JOIN sys_dept t3 ON t2.dept_id = t3.dept_id |
||||
LEFT JOIN ec_grouping_config t4 ON t1.grouping_id = t4.id and t2.organ_code = t4.organ_code AND t4.del_flag!=2 |
||||
LEFT JOIN ti_enterprise_info t5 ON t1.organ_code = t5.organ_code |
||||
<where> |
||||
<if test="groupingId != null ">and t1.grouping_id = #{groupingId}</if> |
||||
<if test="userName != null ">and t2.nick_name = #{userId}</if> |
||||
<if test="userPhone != null ">and t2.phonenumber = #{userId}</if> |
||||
<if test="organCode != null ">and t2.organ_code = #{organCode}</if> |
||||
<if test="delFlag != null ">and t1.del_flag = #{delFlag}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="getUndistributedGroupingUsers" parameterType="GroupUserDTO" resultType="GroupingUserInfoVO"> |
||||
select t1.id,as id t1.user_id as userId,t5.organ_name as organizationName, t3.dept_name as deptName, |
||||
t2.nick_name as userName |
||||
from sys_user t2 |
||||
LEFT JOIN ec_grouping_user_info t1 on t1.user_id = t2.user_id AND t2.del_flag!=2 |
||||
LEFT JOIN sys_dept t3 ON t2.dept_id = t3.dept_id |
||||
LEFT JOIN ec_grouping_config t4 ON t1.grouping_id = t4.id and t2.organ_code = t4.organ_code AND t4.del_flag!=2 |
||||
LEFT JOIN ti_enterprise_info t5 ON t1.organ_code = t5.organ_code |
||||
<where> |
||||
<if test="groupingId != null ">and t1.grouping_id = #{groupingId}</if> |
||||
<if test="userName != null ">and t2.nick_name like concat('%',#{userName},'%')</if> |
||||
<if test="deptId != null ">and t3.id =#{deptId}</if> |
||||
<if test="organCode != null ">and t2.organ_code = #{organCode}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="getDistributedGroupingUsers" parameterType="GroupUserDTO" resultType="GroupingUserInfoVO"> |
||||
select t1.id,as id t1.user_id as userId,t5.organ_name as organizationName, t3.dept_name as deptName, |
||||
t2.nick_name as userName |
||||
from ec_grouping_user_info t1 |
||||
LEFT JOIN sys_user t2 on t1.user_id = t2.user_id AND t2.del_flag!=2 |
||||
LEFT JOIN sys_dept t3 ON t2.dept_id = t3.dept_id |
||||
LEFT JOIN ec_grouping_config t4 ON t1.grouping_id = t4.id and t2.organ_code = t4.organ_code AND t4.del_flag!=2 |
||||
LEFT JOIN ti_enterprise_info t5 ON t1.organ_code = t5.organ_code |
||||
<where> |
||||
<if test="groupingId != null ">and t1.grouping_id = #{groupingId}</if> |
||||
<if test="userName != null ">and t2.nick_name like concat('%',#{userName},'%')</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<insert id="insertGroupingUserList" parameterType="GroupingUserInfo" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_grouping_user_info |
||||
created_time, update_time, grouping_id,user_id |
||||
<foreach item="item" collection="list" open="(" separator="," close=")"> |
||||
(#{item.createdTime}, #{item.updateTime}, #{item.groupingId}, #{item.userId}) |
||||
</foreach>> |
||||
</insert> |
||||
|
||||
<delete id="updateGroupingUserByIds" parameterType="String"> |
||||
update ec_grouping_user_info set del_flag = 2 |
||||
where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
|
||||
</mapper> |
@ -0,0 +1,103 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.GroupingUserPathInfoMapper"> |
||||
|
||||
<resultMap type="GroupingUserPathInfo" id="GroupingUserPathInfoResult"> |
||||
<result property="id" column="id" /> |
||||
<result property="createdTime" column="created_time" /> |
||||
<result property="updateTime" column="update_time" /> |
||||
<result property="groupingId" column="grouping_id" /> |
||||
<result property="userId" column="user_id" /> |
||||
<result property="longitude" column="longitude" /> |
||||
<result property="latitude" column="latitude" /> |
||||
<result property="organCode" column="organ_code" /> |
||||
<result property="delFlag" column="del_flag" /> |
||||
</resultMap> |
||||
|
||||
<sql id="selectGroupingUserPathInfoVo"> |
||||
select id, created_time, update_time, grouping_id, user_id, longitude, latitude, organ_code, del_flag from ec_grouping_user_path_info |
||||
</sql> |
||||
|
||||
<select id="selectGroupingUserPathInfoList" parameterType="GroupingUserPathInfo" resultMap="GroupingUserPathInfoResult"> |
||||
<include refid="selectGroupingUserPathInfoVo"/> |
||||
<where> |
||||
<if test="createdTime != null "> and created_time = #{createdTime}</if> |
||||
<if test="groupingId != null "> and grouping_id = #{groupingId}</if> |
||||
<if test="userId != null "> and user_id = #{userId}</if> |
||||
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if> |
||||
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if> |
||||
<if test="organCode != null and organCode != ''"> and organ_code = #{organCode}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="selectGroupingUserPathInfoById" parameterType="Long" resultMap="GroupingUserPathInfoResult"> |
||||
<include refid="selectGroupingUserPathInfoVo"/> |
||||
where id = #{id} |
||||
</select> |
||||
|
||||
<insert id="insertGroupingUserPathInfo" parameterType="GroupingUserPathInfo" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_grouping_user_path_info |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="groupingId != null">grouping_id,</if> |
||||
<if test="userId != null">user_id,</if> |
||||
<if test="longitude != null">longitude,</if> |
||||
<if test="latitude != null">latitude,</if> |
||||
<if test="organCode != null">organ_code,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="groupingId != null">#{groupingId},</if> |
||||
<if test="userId != null">#{userId},</if> |
||||
<if test="longitude != null">#{longitude},</if> |
||||
<if test="latitude != null">#{latitude},</if> |
||||
<if test="organCode != null">#{organCode},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updateGroupingUserPathInfo" parameterType="GroupingUserPathInfo"> |
||||
update ec_grouping_user_path_info |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="groupingId != null">grouping_id = #{groupingId},</if> |
||||
<if test="userId != null">user_id = #{userId},</if> |
||||
<if test="longitude != null">longitude = #{longitude},</if> |
||||
<if test="latitude != null">latitude = #{latitude},</if> |
||||
<if test="organCode != null">organ_code = #{organCode},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deleteGroupingUserPathInfoById" parameterType="Long"> |
||||
delete from ec_grouping_user_path_info where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deleteGroupingUserPathInfoByIds" parameterType="String"> |
||||
delete from ec_grouping_user_path_info where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
|
||||
<select id="selectGroupingUserPathList" parameterType="GroupingUserPathInfo" resultMap="GroupingUserPathInfoResult"> |
||||
<include refid="selectGroupingUserPathInfoVo"/> |
||||
<where> |
||||
<if test="createdTime != null "> and created_time >= #{createdTime}</if> |
||||
<if test="endTime != null "> and created_time <= #{createdTime}</if> |
||||
<if test="groupingId != null "> and grouping_id = #{groupingId}</if> |
||||
<if test="userId != null "> and user_id = #{userId}</if> |
||||
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if> |
||||
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if> |
||||
<if test="organCode != null and organCode != ''"> and organ_code = #{organCode}</if> |
||||
</where> |
||||
order by created_time desc |
||||
</select> |
||||
</mapper> |
@ -0,0 +1,105 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.PreplanFileInfoMapper"> |
||||
|
||||
<resultMap type="PreplanFileInfo" id="PreplanFileInfoResult"> |
||||
<result property="id" column="id"/> |
||||
<result property="createdTime" column="created_time"/> |
||||
<result property="updateTime" column="update_time"/> |
||||
<result property="preplanCode" column="preplan_code"/> |
||||
<result property="fileType" column="file_type"/> |
||||
<result property="storeName" column="store_name"/> |
||||
<result property="storePath" column="store_path"/> |
||||
<result property="remark" column="remark"/> |
||||
<result property="delFlag" column="del_flag"/> |
||||
</resultMap> |
||||
|
||||
<sql id="selectPreplanFileInfoVo"> |
||||
select id, |
||||
created_time, |
||||
update_time, |
||||
preplan_code, |
||||
file_type, |
||||
store_name, |
||||
store_path, |
||||
remark, |
||||
del_flag |
||||
from ec_preplan_file_info |
||||
</sql> |
||||
|
||||
<select id="selectPreplanFileInfoList" parameterType="PreplanFileInfo" resultMap="PreplanFileInfoResult"> |
||||
<include refid="selectPreplanFileInfoVo"/> |
||||
<where> |
||||
<if test="createdTime != null ">and created_time = #{createdTime}</if> |
||||
<if test="preplanCode != null and preplanCode != ''">and preplan_code = #{preplanCode}</if> |
||||
<if test="fileType != null and fileType != ''">and file_type = #{fileType}</if> |
||||
<if test="storeName != null and storeName != ''">and store_name like concat('%', #{storeName}, '%')</if> |
||||
<if test="storePath != null and storePath != ''">and store_path = #{storePath}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="selectPreplanFileInfoById" parameterType="Long" resultMap="PreplanFileInfoResult"> |
||||
<include refid="selectPreplanFileInfoVo"/> |
||||
where id = #{id} |
||||
</select> |
||||
|
||||
<insert id="insertPreplanFileInfo" parameterType="PreplanFileInfo" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_preplan_file_info |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="preplanCode != null">preplan_code,</if> |
||||
<if test="fileType != null">file_type,</if> |
||||
<if test="storeName != null">store_name,</if> |
||||
<if test="storePath != null">store_path,</if> |
||||
<if test="remark != null">remark,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="preplanCode != null">#{preplanCode},</if> |
||||
<if test="fileType != null">#{fileType},</if> |
||||
<if test="storeName != null">#{storeName},</if> |
||||
<if test="storePath != null">#{storePath},</if> |
||||
<if test="remark != null">#{remark},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updatePreplanFileInfo" parameterType="PreplanFileInfo"> |
||||
update ec_preplan_file_info |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="preplanCode != null">preplan_code = #{preplanCode},</if> |
||||
<if test="fileType != null">file_type = #{fileType},</if> |
||||
<if test="storeName != null">store_name = #{storeName},</if> |
||||
<if test="storePath != null">store_path = #{storePath},</if> |
||||
<if test="remark != null">remark = #{remark},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deletePreplanFileInfoById" parameterType="Long"> |
||||
delete |
||||
from ec_preplan_file_info |
||||
where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deletePreplanFileInfoByIds" parameterType="String"> |
||||
delete from ec_preplan_file_info where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
|
||||
<delete id="deletePreplanFileInfoByPrePlanCode" parameterType="String"> |
||||
delete |
||||
from ec_preplan_file_info |
||||
where preplan_code = #{prePlanCode} |
||||
</delete> |
||||
</mapper> |
@ -0,0 +1,136 @@ |
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper |
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.cjy.emergencycommand.mapper.PreplanInfoMapper"> |
||||
|
||||
<resultMap type="PreplanInfo" id="PreplanInfoResult"> |
||||
<result property="id" column="id"/> |
||||
<result property="createdTime" column="created_time"/> |
||||
<result property="updateTime" column="update_time"/> |
||||
<result property="name" column="name"/> |
||||
<result property="code" column="code"/> |
||||
<result property="sortId" column="sort_id"/> |
||||
<result property="classificationCode" column="classification_code"/> |
||||
<result property="eventGradeId" column="event_grade_id"/> |
||||
<result property="description" column="description"/> |
||||
<result property="status" column="status"/> |
||||
<result property="remark" column="remark"/> |
||||
<result property="organCode" column="organ_code"/> |
||||
<result property="delFlag" column="del_flag"/> |
||||
</resultMap> |
||||
|
||||
<sql id="selectPreplanInfoVo"> |
||||
select id, |
||||
created_time, |
||||
update_time, |
||||
name, |
||||
code, |
||||
sort_id, |
||||
classification_code, |
||||
event_grade_id, |
||||
description, |
||||
status, |
||||
remark, |
||||
organ_code, |
||||
del_flag |
||||
from ec_preplan_info |
||||
</sql> |
||||
|
||||
<select id="selectPreplanInfoList" parameterType="PreplanInfo" resultMap="PreplanInfoResult"> |
||||
<include refid="selectPreplanInfoVo"/> |
||||
<where> |
||||
<if test="createdTime != null ">and created_time = #{createdTime}</if> |
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
||||
<if test="code != null and code != ''">and code = #{code}</if> |
||||
<if test="sortId != null ">and sort_id = #{sortId}</if> |
||||
<if test="classificationDataCode != null and classificationDataCode != ''">and classification_code = |
||||
#{classificationDataCode} |
||||
</if> |
||||
<if test="eventGradeId != null and eventGradeId != ''">and event_grade_id = #{eventGradeId}</if> |
||||
<if test="description != null and description != ''">and description = #{description}</if> |
||||
<if test="status != null and status != ''">and status = #{status}</if> |
||||
<if test="organCode != null and organCode != ''">and organ_code = #{organCode}</if> |
||||
</where> |
||||
</select> |
||||
|
||||
<select id="selectPreplanInfoById" parameterType="Long" resultMap="PreplanInfoResult"> |
||||
<include refid="selectPreplanInfoVo"/> |
||||
where id = #{id} and del_flag !=2 |
||||
</select> |
||||
|
||||
<insert id="insertPreplanInfo" parameterType="PreplanInfo" useGeneratedKeys="true" keyProperty="id"> |
||||
insert into ec_preplan_info |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time,</if> |
||||
<if test="updateTime != null">update_time,</if> |
||||
<if test="name != null">name,</if> |
||||
<if test="code != null">code,</if> |
||||
<if test="sortId != null">sort_id,</if> |
||||
<if test="classificationDataCode != null">classification_code,</if> |
||||
<if test="eventGradeId != null">event_grade_id,</if> |
||||
<if test="description != null">description,</if> |
||||
<if test="status != null">status,</if> |
||||
<if test="remark != null">remark,</if> |
||||
<if test="organCode != null">organ_code,</if> |
||||
<if test="delFlag != null">del_flag,</if> |
||||
</trim> |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
<if test="createdTime != null">#{createdTime},</if> |
||||
<if test="updateTime != null">#{updateTime},</if> |
||||
<if test="name != null">#{name},</if> |
||||
<if test="code != null">#{code},</if> |
||||
<if test="sortId != null">#{sortId},</if> |
||||
<if test="classificationDataCode != null">#{classificationDataCode},</if> |
||||
<if test="eventGradeId != null">#{eventGradeId},</if> |
||||
<if test="description != null">#{description},</if> |
||||
<if test="status != null">#{status},</if> |
||||
<if test="remark != null">#{remark},</if> |
||||
<if test="organCode != null">#{organCode},</if> |
||||
<if test="delFlag != null">#{delFlag},</if> |
||||
</trim> |
||||
</insert> |
||||
|
||||
<update id="updatePreplanInfo" parameterType="PreplanInfo"> |
||||
update ec_preplan_info |
||||
<trim prefix="SET" suffixOverrides=","> |
||||
<if test="createdTime != null">created_time = #{createdTime},</if> |
||||
<if test="updateTime != null">update_time = #{updateTime},</if> |
||||
<if test="name != null">name = #{name},</if> |
||||
<if test="code != null">code = #{code},</if> |
||||
<if test="sortId != null">sort_id = #{sortId},</if> |
||||
<if test="classificationDataCode != null">classification_code = #{classificationDataCode},</if> |
||||
<if test="eventGradeId != null">event_grade_id = #{eventGradeId},</if> |
||||
<if test="description != null">description = #{description},</if> |
||||
<if test="status != null">status = #{status},</if> |
||||
<if test="remark != null">remark = #{remark},</if> |
||||
<if test="organCode != null">organ_code = #{organCode},</if> |
||||
<if test="delFlag != null">del_flag = #{delFlag},</if> |
||||
</trim> |
||||
where id = #{id} |
||||
</update> |
||||
|
||||
<delete id="deletePreplanInfoById" parameterType="Long"> |
||||
delete |
||||
from ec_preplan_info |
||||
where id = #{id} |
||||
</delete> |
||||
|
||||
<delete id="deletePreplanInfoByIds" parameterType="String"> |
||||
delete from ec_preplan_info where id in |
||||
<foreach item="id" collection="array" open="(" separator="," close=")"> |
||||
#{id} |
||||
</foreach> |
||||
</delete> |
||||
|
||||
<select id="selectPreplanInfoListByName" parameterType="PreplanInfo" resultType="PreplanInfoVO"> |
||||
select t1.name , t1.code, t1.sort_id, t2.classification_name as classificationName,t1.description,t1.status |
||||
from ec_preplan_info t1 |
||||
LEFT JOIN ec_classification_config t2 ON t1.classification_code = t2.code and t2.delFlag != 2 |
||||
<where> |
||||
<if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
||||
<if test="delFlag != null and delFlag != ''">and delFlag != #{del_flag}</if> |
||||
</where> |
||||
order by t1.sort_id asc |
||||
</select> |
||||
</mapper> |
@ -1,10 +1,10 @@ |
||||
# 代码生成 |
||||
gen: |
||||
# 作者 |
||||
author: ruoyi |
||||
author: hehang |
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool |
||||
packageName: com.ruoyi.system |
||||
packageName: com.cjy.emergencycommand |
||||
# 自动去除表前缀,默认是false |
||||
autoRemovePre: true |
||||
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔) |
||||
tablePrefix: sys_,ti_,ec_ |
||||
tablePrefix: sys_,ti_,ec_ |
||||
|
Loading…
Reference in new issue