Browse Source

城管系统接口

zhj 2 years atrás
parent
commit
b5acbb7282

+ 7 - 0
src/main/java/com/welampiot/common/InterfaceResultEnum.java

@@ -182,6 +182,13 @@ public enum InterfaceResultEnum {
     FILE_DELETE_FAIL("0371","文件删除失败","File deletion failure","Удаление файла не удалось"),
     FILE_NO_EXIST_ERROR("0372","文件不存在","File does not exist","Документов не существует"),
     NETWORK_DELETE_FAIL("0373","存在灯控使用改网关,无法删除","There is a lamp control to use the gateway, can not be deleted","Управление светом использует переключатели, которые невозможно удалить"),
+    LACK_REMARK_PROBLEM_ERROR("0374","请填写问题描述","Please fill in the problem description","Пожалуйста, заполните описание вопроса"),
+    LACK_PROBLEM_SOURCE_ERROR("0375","请选择问题来源","Please select the source of the question","Пожалуйста, выберите источник вопроса"),
+    LACK_PROBLEM_LEVEL_ERROR("0376","请选择问题等级","Please select the question level","Пожалуйста, выберите уровень вопросов"),
+    LACK_BIG_CASE_ERROR("0377","请选择案件大类","Please select case category","Пожалуйста, выберите более важные дела"),
+    LACK_SMALL_CASE_ERROR("0378","请选择案件小类","Please select the case subcategory","Пожалуйста, выберите мелкие классы"),
+    LACK_STREET_ERROR("0379","请选择街道","Please select a street","Выберите улицу."),
+    LACK_LOCATION_INFO_ERROR("0380","请填写位置信息","Please fill in the location information","Пожалуйста, заполните анкету"),
     ;
     private String code;
     private String msgCn;

+ 149 - 0
src/main/java/com/welampiot/controller/CityAdminCaseController.java

@@ -0,0 +1,149 @@
+package com.welampiot.controller;
+
+import com.welampiot.common.BaseResult;
+import com.welampiot.common.InterfaceResultEnum;
+import com.welampiot.dto.CityAdminAreaDTO;
+import com.welampiot.dto.CityAdminCaseInfoDTO;
+import com.welampiot.dto.CityAdminCaseItemDTO;
+import com.welampiot.service.CityAdminAreaService;
+import com.welampiot.service.CityAdminCaseInfoService;
+import com.welampiot.service.CityAdminCaseItemService;
+import com.welampiot.utils.ToolUtils;
+import com.welampiot.vo.CityAdminAreaVO;
+import com.welampiot.vo.CityAdminCaseInfoVO;
+import com.welampiot.vo.CityAdminCaseItemVO;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminCaseController
+ * Package: com.welampiot.controller
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 16:15
+ * @Version: v1.0
+ */
+@RestController
+@CrossOrigin
+@RequestMapping("/cityAdminCase")
+public class CityAdminCaseController {
+    @Autowired
+    private ToolUtils toolUtils;
+    @Autowired
+    private CityAdminCaseInfoService cityAdminCaseInfoService;
+    @Autowired
+    private CityAdminCaseItemService cityAdminCaseItemService;
+    @Autowired
+    private CityAdminAreaService cityAdminAreaService;
+
+    /**
+     * 城管系统添加编辑案件
+     * @param vo 案件信息
+     * @return 添加编辑案件
+     */
+    @RequestMapping(value = "/saveCase", method = RequestMethod.POST)
+    public BaseResult<?> saveCase(CityAdminCaseInfoVO vo) {
+        if (vo.getVersion() == null) vo.setVersion(0);
+        Integer version = vo.getVersion();
+        if (vo.getRemark() == null || vo.getRemark().isEmpty())
+            return toolUtils.response(InterfaceResultEnum.LACK_REMARK_PROBLEM_ERROR,version);
+        if (vo.getProblemSource() == null)
+            return toolUtils.response(InterfaceResultEnum.LACK_PROBLEM_SOURCE_ERROR,version);
+        if (vo.getProblemLevel() == null)
+            return toolUtils.response(InterfaceResultEnum.LACK_PROBLEM_LEVEL_ERROR,version);
+        if (vo.getCaseBigId() == null || vo.getCaseBigId() == 0)
+            return toolUtils.response(InterfaceResultEnum.LACK_BIG_CASE_ERROR,version);
+        if (vo.getCaseSmallId() == null || vo.getCaseSmallId() == 0)
+            return toolUtils.response(InterfaceResultEnum.LACK_SMALL_CASE_ERROR,version);
+        if (vo.getAreaId() == null || vo.getAreaId() == 0)
+            return toolUtils.response(InterfaceResultEnum.LACK_AREA_ERROR,version);
+        if (vo.getStreetId() == null || vo.getStreetId() == 0)
+            return toolUtils.response(InterfaceResultEnum.LACK_STREET_ERROR,version);
+        if (vo.getLocation() == null || vo.getLocation().trim().isEmpty())
+            return toolUtils.response(InterfaceResultEnum.LACK_LOCATION_INFO_ERROR,version);
+
+        CityAdminCaseInfoDTO cityAdminCaseInfoDTO = new CityAdminCaseInfoDTO();
+        BeanUtils.copyProperties(vo,cityAdminCaseInfoDTO);
+        CityAdminCaseInfoVO cityAdminCaseInfoVO = new CityAdminCaseInfoVO();
+        if (vo.getId() == 0 || vo.getId() == null) { // 添加
+            cityAdminCaseInfoService.addCityAdminCaseInfoData(cityAdminCaseInfoDTO);
+            Integer id = cityAdminCaseInfoDTO.getId();
+            cityAdminCaseInfoVO.setId(id);
+        } else { // 编辑
+            cityAdminCaseInfoService.updateCityAdminCaseInfoData(cityAdminCaseInfoDTO);
+            cityAdminCaseInfoVO.setId(vo.getId());
+        }
+        return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,cityAdminCaseInfoVO);
+    }
+
+    /**
+     * 城管系统案件大类下拉
+     * @param vo version
+     * @return 案件大类下拉
+     */
+    @RequestMapping(value = "/caseBigNav", method = RequestMethod.POST)
+    public BaseResult<?> caseBigNav(CityAdminCaseItemVO vo) {
+        if (vo.getVersion() == null) vo.setVersion(0);
+        Integer version = vo.getVersion();
+        List<CityAdminCaseItemDTO> bigCaseNavList = cityAdminCaseItemService.getBigCaseNavList();
+        CityAdminCaseItemVO cityAdminCaseItemVO = new CityAdminCaseItemVO();
+        cityAdminCaseItemVO.setList(bigCaseNavList);
+        return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,cityAdminCaseItemVO);
+    }
+
+    /**
+     * 城管系统案件小类下拉
+     * @param vo 案件大类id
+     * @return 案件小类下拉
+     */
+    @RequestMapping(value = "/caseSmallNav", method = RequestMethod.POST)
+    public BaseResult<?> caseSmallNav(CityAdminCaseItemVO vo) {
+        if (vo.getVersion() == null) vo.setVersion(0);
+        Integer version = vo.getVersion();
+        if (vo.getBigId() == null || vo.getBigId() == 0)
+            return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR, version);
+        List<CityAdminCaseItemDTO> list = cityAdminCaseItemService.getSmallCaseNavListByBigId(vo.getBigId());
+        CityAdminCaseItemVO cityAdminCaseItemVO = new CityAdminCaseItemVO();
+        cityAdminCaseItemVO.setList(list);
+        return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,cityAdminCaseItemVO);
+    }
+
+    /**
+     * 城管系统区域下拉
+     * @param vo version
+     * @return 区域下拉
+     */
+    @RequestMapping(value = "/areaNav", method = RequestMethod.POST)
+    public BaseResult<?> areaNav(CityAdminAreaVO vo) {
+        if (vo.getVersion() == null) vo.setVersion(0);
+        Integer version = vo.getVersion();
+        List<CityAdminAreaDTO> bigCaseNavList = cityAdminAreaService.getCityAdminAreaNavList();
+        CityAdminAreaVO cityAdminAreaVO = new CityAdminAreaVO();
+        cityAdminAreaVO.setList(bigCaseNavList);
+        return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,cityAdminAreaVO);
+    }
+
+    /**
+     * 城管系统街道下拉
+     * @param vo 区域id
+     * @return 街道下拉
+     */
+    @RequestMapping(value = "/streetNav", method = RequestMethod.POST)
+    public BaseResult<?> streetNav(CityAdminAreaVO vo) {
+        if (vo.getVersion() == null) vo.setVersion(0);
+        Integer version = vo.getVersion();
+        if (vo.getAreaId() == null || vo.getAreaId() == 0)
+            return toolUtils.response(InterfaceResultEnum.LACK_PARAM_ERROR, vo.getVersion());
+        List<CityAdminAreaDTO> list = cityAdminAreaService.getCityAdminStreetNavList(vo.getAreaId());
+        CityAdminAreaVO cityAdminAreaVO = new CityAdminAreaVO();
+        cityAdminAreaVO.setList(list);
+        return toolUtils.response(InterfaceResultEnum.OPERATION_SUCCESS,version,cityAdminAreaVO);
+    }
+}

+ 21 - 0
src/main/java/com/welampiot/dao/CityAdminAreaDao.java

@@ -0,0 +1,21 @@
+package com.welampiot.dao;
+
+import com.welampiot.dto.CityAdminAreaDTO;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminAreaDao
+ * Package: com.welampiot.dao
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 18:52
+ * @Version: v1.0
+ */
+public interface CityAdminAreaDao {
+    List<CityAdminAreaDTO> getCityAdminAreaNavList();
+
+    List<CityAdminAreaDTO> getCityAdminStreetNavList(@Param("pid") Integer pid);
+}

+ 18 - 0
src/main/java/com/welampiot/dao/CityAdminCaseInfoDao.java

@@ -0,0 +1,18 @@
+package com.welampiot.dao;
+
+import com.welampiot.dto.CityAdminCaseInfoDTO;
+
+/**
+ * ClassName: CityAdminCaseInfoDao
+ * Package: com.welampiot.dao
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 16:12
+ * @Version: v1.0
+ */
+public interface CityAdminCaseInfoDao {
+    void addCityAdminCaseInfoData(CityAdminCaseInfoDTO dto);
+
+    void updateCityAdminCaseInfoData(CityAdminCaseInfoDTO dto);
+}

+ 21 - 0
src/main/java/com/welampiot/dao/CityAdminCaseItemDao.java

@@ -0,0 +1,21 @@
+package com.welampiot.dao;
+
+import com.welampiot.dto.CityAdminCaseItemDTO;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminCaseItemDao
+ * Package: com.welampiot.dao
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 17:54
+ * @Version: v1.0
+ */
+public interface CityAdminCaseItemDao {
+    List<CityAdminCaseItemDTO> getBigCaseNavList();
+
+    List<CityAdminCaseItemDTO> getSmallCaseNavListByBigId(@Param("pid") Integer pid);
+}

+ 27 - 0
src/main/java/com/welampiot/dto/CityAdminAreaDTO.java

@@ -0,0 +1,27 @@
+package com.welampiot.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * ClassName: CityAdminAreaDTO
+ * Package: com.welampiot.dto
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 18:43
+ * @Version: v1.0
+ */
+@Data
+public class CityAdminAreaDTO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private Integer id;
+
+    private Integer pid; // 上级id
+
+    private Integer level; // 区域等级(0 区域,1 街道)
+
+    private String name; // 区域名称
+}

+ 82 - 0
src/main/java/com/welampiot/dto/CityAdminCaseInfoDTO.java

@@ -0,0 +1,82 @@
+package com.welampiot.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * ClassName: CityAdminCaseInfoDTO
+ * Package: com.welampiot.dto
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 15:15
+ * @Version: v1.0
+ */
+@Data
+public class CityAdminCaseInfoDTO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private Integer id;
+
+    /** 任务号 **/
+    private String number;
+
+    private String phone; // 接入电话
+
+    private Integer isBack; // 是否回访(0 否,1 是)
+
+    private String backPhone; // 回访电话
+
+    private String remark; // 问题描述
+
+    private String location; // 位置信息
+
+    private String longitude; // 经度
+
+    private String latitude; // 纬度
+
+    /** 问题来源(0 采集上报,1 公众举报,2 视频上报,3 微信上报,4 领导举办) **/
+    private Integer problemSource;
+
+    /** 问题等级(0 日常,1 一般,2 严重,3 重大) **/
+    private Integer problemLevel;
+
+    private Integer caseBigId; // 案件大类id
+
+    private Integer caseSmallId; // 案件小类id
+
+    private Integer areaId;
+
+    private Integer streetId;
+
+    private String community; // 社区
+
+    private String grid; // 网格
+
+    private Integer supervisorId; // 监督员id
+
+    private String createTime; // 创建时间
+
+    private String name; // 举报人姓名
+
+    /** 案件状态(0 新建,1 立案,2 转批城管,3 处置结束转批坐席,4 待复核转批网络巡查员,5 已复核转批坐席,6 坐席结案)**/
+    private Integer status;
+
+    /** 0 正常,1 取消 **/
+    private Integer voiId;
+
+    private Integer cityAdminId; // 转批的城管账号id
+
+    private Integer seatsId1; // 处置完转坐席id
+
+    private Integer seatsId2; // 复核完转坐席id
+
+    private Integer inspectorId; // 转批巡查员id
+
+    private String image; // 案件图片地址
+
+    private Integer sax; // 举报人性别(0 女,1 男)
+
+    private String startDate; // 案件发生时间
+}

+ 30 - 0
src/main/java/com/welampiot/dto/CityAdminCaseItemDTO.java

@@ -0,0 +1,30 @@
+package com.welampiot.dto;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * ClassName: CityAdminCaseItemDTO
+ * Package: com.welampiot.dto
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 17:48
+ * @Version: v1.0
+ */
+@Data
+public class CityAdminCaseItemDTO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private Integer id;
+
+    /** 案件类型(0 大类,1 小类) **/
+    private Integer level;
+
+    /** 案件描述信息 **/
+    private String name;
+
+    /** 上级案件id **/
+    private Integer pid;
+}

+ 20 - 0
src/main/java/com/welampiot/service/CityAdminAreaService.java

@@ -0,0 +1,20 @@
+package com.welampiot.service;
+
+import com.welampiot.dto.CityAdminAreaDTO;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminAreaService
+ * Package: com.welampiot.service
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 18:53
+ * @Version: v1.0
+ */
+public interface CityAdminAreaService {
+    List<CityAdminAreaDTO> getCityAdminAreaNavList();
+
+    List<CityAdminAreaDTO> getCityAdminStreetNavList(Integer pid);
+}

+ 18 - 0
src/main/java/com/welampiot/service/CityAdminCaseInfoService.java

@@ -0,0 +1,18 @@
+package com.welampiot.service;
+
+import com.welampiot.dto.CityAdminCaseInfoDTO;
+
+/**
+ * ClassName: CityAdminCaseInfoService
+ * Package: com.welampiot.service
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 16:12
+ * @Version: v1.0
+ */
+public interface CityAdminCaseInfoService {
+    void addCityAdminCaseInfoData(CityAdminCaseInfoDTO dto);
+
+    void updateCityAdminCaseInfoData(CityAdminCaseInfoDTO dto);
+}

+ 20 - 0
src/main/java/com/welampiot/service/CityAdminCaseItemService.java

@@ -0,0 +1,20 @@
+package com.welampiot.service;
+
+import com.welampiot.dto.CityAdminCaseItemDTO;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminCaseItemService
+ * Package: com.welampiot.service
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 17:55
+ * @Version: v1.0
+ */
+public interface CityAdminCaseItemService {
+    List<CityAdminCaseItemDTO> getBigCaseNavList();
+
+    List<CityAdminCaseItemDTO> getSmallCaseNavListByBigId(Integer pid);
+}

+ 34 - 0
src/main/java/com/welampiot/service/impl/CityAdminAreaServiceImpl.java

@@ -0,0 +1,34 @@
+package com.welampiot.service.impl;
+
+import com.welampiot.dao.CityAdminAreaDao;
+import com.welampiot.dto.CityAdminAreaDTO;
+import com.welampiot.service.CityAdminAreaService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminAreaServiceImpl
+ * Package: com.welampiot.service.impl
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 18:53
+ * @Version: v1.0
+ */
+@Service
+public class CityAdminAreaServiceImpl implements CityAdminAreaService {
+    @Autowired
+    private CityAdminAreaDao cityAdminAreaDao;
+
+    @Override
+    public List<CityAdminAreaDTO> getCityAdminAreaNavList() {
+        return cityAdminAreaDao.getCityAdminAreaNavList();
+    }
+
+    @Override
+    public List<CityAdminAreaDTO> getCityAdminStreetNavList(Integer pid) {
+        return cityAdminAreaDao.getCityAdminStreetNavList(pid);
+    }
+}

+ 32 - 0
src/main/java/com/welampiot/service/impl/CityAdminCaseInfoServiceImpl.java

@@ -0,0 +1,32 @@
+package com.welampiot.service.impl;
+
+import com.welampiot.dao.CityAdminCaseInfoDao;
+import com.welampiot.dto.CityAdminCaseInfoDTO;
+import com.welampiot.service.CityAdminCaseInfoService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * ClassName: CityAdminCaseInfoServiceImpl
+ * Package: com.welampiot.service.impl
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 16:13
+ * @Version: v1.0
+ */
+@Service
+public class CityAdminCaseInfoServiceImpl implements CityAdminCaseInfoService {
+    @Autowired
+    private CityAdminCaseInfoDao cityAdminCaseInfoDao;
+
+    @Override
+    public void addCityAdminCaseInfoData(CityAdminCaseInfoDTO dto) {
+        cityAdminCaseInfoDao.addCityAdminCaseInfoData(dto);
+    }
+
+    @Override
+    public void updateCityAdminCaseInfoData(CityAdminCaseInfoDTO dto) {
+        cityAdminCaseInfoDao.updateCityAdminCaseInfoData(dto);
+    }
+}

+ 34 - 0
src/main/java/com/welampiot/service/impl/CityAdminCaseItemServiceImpl.java

@@ -0,0 +1,34 @@
+package com.welampiot.service.impl;
+
+import com.welampiot.dao.CityAdminCaseItemDao;
+import com.welampiot.dto.CityAdminCaseItemDTO;
+import com.welampiot.service.CityAdminCaseItemService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ * ClassName: CityAdminCaseItemServiceImpl
+ * Package: com.welampiot.service.impl
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 17:56
+ * @Version: v1.0
+ */
+@Service
+public class CityAdminCaseItemServiceImpl implements CityAdminCaseItemService {
+    @Autowired
+    private CityAdminCaseItemDao cityAdminCaseItemDao;
+
+    @Override
+    public List<CityAdminCaseItemDTO> getBigCaseNavList() {
+        return cityAdminCaseItemDao.getBigCaseNavList();
+    }
+
+    @Override
+    public List<CityAdminCaseItemDTO> getSmallCaseNavListByBigId(Integer pid) {
+        return cityAdminCaseItemDao.getSmallCaseNavListByBigId(pid);
+    }
+}

+ 27 - 0
src/main/java/com/welampiot/vo/CityAdminAreaVO.java

@@ -0,0 +1,27 @@
+package com.welampiot.vo;
+
+import com.welampiot.dto.CityAdminAreaDTO;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * ClassName: CityAdminAreaVO
+ * Package: com.welampiot.vo
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 18:56
+ * @Version: v1.0
+ */
+@Data
+public class CityAdminAreaVO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private Integer version;
+
+    private Integer areaId;
+
+    private List<CityAdminAreaDTO> list;
+}

+ 84 - 0
src/main/java/com/welampiot/vo/CityAdminCaseInfoVO.java

@@ -0,0 +1,84 @@
+package com.welampiot.vo;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * ClassName: CityAdminCaseInfoVO
+ * Package: com.welampiot.vo
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 16:20
+ * @Version: v1.0
+ */
+@Data
+public class CityAdminCaseInfoVO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private Integer id;
+
+    /** 任务号 **/
+    private String number;
+
+    private String phone; // 接入电话
+
+    private Integer isBack; // 是否回访(0 否,1 是)
+
+    private String backPhone; // 回访电话
+
+    private String remark; // 问题描述
+
+    private String location; // 位置信息
+
+    private String longitude; // 经度
+
+    private String latitude; // 纬度
+
+    /** 问题来源(0 采集上报,1 公众举报,2 视频上报,3 微信上报,4 领导举办) **/
+    private Integer problemSource;
+
+    /** 问题等级(0 日常,1 一般,2 严重,3 重大) **/
+    private Integer problemLevel;
+
+    private Integer caseBigId; // 案件大类id
+
+    private Integer caseSmallId; // 案件小类id
+
+    private Integer areaId;
+
+    private Integer streetId;
+
+    private String community; // 社区
+
+    private String grid; // 网格
+
+    private Integer supervisorId; // 监督员id
+
+    private String createTime; // 创建时间
+
+    private String name; // 举报人姓名
+
+    /** 案件状态(0 新建,1 立案,2 转批城管,3 处置结束转批坐席,4 待复核转批网络巡查员,5 已复核转批坐席,6 坐席结案)**/
+    private Integer status;
+
+    /** 0 正常,1 取消 **/
+    private Integer voiId;
+
+    private Integer cityAdminId; // 转批的城管账号id
+
+    private Integer seatsId1; // 处置完转坐席id
+
+    private Integer seatsId2; // 复核完转坐席id
+
+    private Integer inspectorId; // 转批巡查员id
+
+    private String image; // 案件图片地址
+
+    private Integer sax; // 举报人性别(0 女,1 男)
+
+    private String startDate; // 案件发生时间
+
+    private Integer version;
+}

+ 27 - 0
src/main/java/com/welampiot/vo/CityAdminCaseItemVO.java

@@ -0,0 +1,27 @@
+package com.welampiot.vo;
+
+import com.welampiot.dto.CityAdminCaseItemDTO;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * ClassName: CityAdminCaseItemVO
+ * Package: com.welampiot.vo
+ * Description:
+ *
+ * @Author: zhj_Start
+ * @Create: 2023/9/14 - 17:58
+ * @Version: v1.0
+ */
+@Data
+public class CityAdminCaseItemVO implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    private Integer version;
+
+    private Integer bigId;
+
+    private List<CityAdminCaseItemDTO> list;
+}

+ 17 - 0
src/main/resources/mapper/CityAdminAreaMapper.xml

@@ -0,0 +1,17 @@
+<?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.welampiot.dao.CityAdminAreaDao">
+    
+    <select id="getCityAdminAreaNavList" resultType="CityAdminAreaDTO">
+        select c.id,c.name
+        from city_admin_area c
+        where c.level = 0
+    </select>
+
+    <select id="getCityAdminStreetNavList" resultType="CityAdminAreaDTO">
+        select c.id,c.name
+        from city_admin_area c
+        where c.pid = #{pid}
+    </select>
+
+</mapper>

+ 150 - 0
src/main/resources/mapper/CityAdminCaseInfoMapper.xml

@@ -0,0 +1,150 @@
+<?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.welampiot.dao.CityAdminCaseInfoDao">
+
+    <insert id="addCityAdminCaseInfoData" parameterType="CityAdminCaseInfoDTO" keyProperty="id" useGeneratedKeys="true">
+        insert into city_admin_case_info(location,
+        <if test="longitude != null and longitude != ''">
+            longitude,
+        </if>
+        <if test="latitude != null and latitude != ''">
+            latitude,
+        </if>
+        <if test="community != null and community != ''">
+            community,
+        </if>
+        <if test="grid != null and grid != ''">
+            grid,
+        </if>
+        <if test="supervisorId != null and supervisorId != 0">
+            supervisor_id,
+        </if>
+        <if test="phone != null and phone != ''">
+            phone,
+        </if>
+        <if test="name != null and name != ''">
+            `name`,
+        </if>
+        <if test="sax != null">
+            sax,
+        </if>
+        <if test="isBank != null">
+            is_back,
+        </if>
+        <if test="backPhone != null and backPhone != ''">
+            back_phone,
+        </if>
+        <if test="image != null and image != ''">
+            image,
+        </if>
+        <if test="startDate != null and startDate != ''">
+            startdate,
+        </if>
+        remark,
+        problem_source,
+        problem_level,
+        case_big_id,
+        case_samll_id,
+        area_id,
+        street_id,
+        createTime)
+        values (#{location},
+        <if test="longitude != null and longitude != ''">
+            #{longitude},
+        </if>
+        <if test="latitude != null and latitude != ''">
+            #{latitude},
+        </if>
+        <if test="community != null and community != ''">
+            #{community},
+        </if>
+        <if test="grid != null and grid != ''">
+            #{grid},
+        </if>
+        <if test="supervisorId != null and supervisorId != 0">
+            #{supervisorId},
+        </if>
+        <if test="phone != null and phone != ''">
+            #{phone},
+        </if>
+        <if test="name != null and name != ''">
+            #{name},
+        </if>
+        <if test="sax != null">
+            #{sax},
+        </if>
+        <if test="isBank != null">
+            #{isBank},
+        </if>
+        <if test="backPhone != null and backPhone != ''">
+            #{backPhone},
+        </if>
+        <if test="image != null and image != ''">
+            #{image},
+        </if>
+        <if test="startDate != null and startDate != ''">
+            #{startDate},
+        </if>
+        #{remark},
+        #{problemSoure},
+        #{problemLevel},
+        #{caseBigId},
+        #{caseSmallId},
+        #{areaId},
+        #{streetId},
+        #{createTime})
+    </insert>
+
+    <update id="updateCityAdminCaseInfoData" parameterType="CityAdminCaseInfoDTO">
+        update
+            city_admin_case_info c
+        set
+            c.street_id = #{streetId},
+            <if test="longitude != null and longitude != ''">
+                c.longitude = #{longitude},
+            </if>
+            <if test="latitude != null and latitude != ''">
+                c.latitude = #{latitude},
+            </if>
+            <if test="community != null and community != ''">
+                c.community = #{community},
+            </if>
+            <if test="grid != null and grid != ''">
+                c.grid = #{grid},
+            </if>
+            <if test="supervisorId != null and supervisorId != ''">
+                c.supervisor_id = #{supervisorId},
+            </if>
+            <if test="phone != null and phone != ''">
+                c.phone = #{phone},
+            </if>
+            <if test="name != null and name != ''">
+                c.name = #{name},
+            </if>
+            <if test="sax != null">
+                c.sax = #{sax},
+            </if>
+            <if test="isBack != null">
+                c.is_back = #{isBack},
+            </if>
+            <if test="backPhone != null and backPhone != ''">
+                c.back_phone = #{backPhone},
+            </if>
+            <if test="image != null and image != ''">
+                c.image = #{image},
+            </if>
+            <if test="startDate != null startDate != ''">
+                c.startdate = #{startDate},
+            </if>
+            c.location,
+            c.remark,
+            c.problem_source,
+            c.problem_level,
+            c.case_big_id,
+            c.case_samll_id,
+            c.area_id
+        where
+            c.id = #{id};
+    </update>
+
+</mapper>

+ 17 - 0
src/main/resources/mapper/CityAdminCaseItemMapper.xml

@@ -0,0 +1,17 @@
+<?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.welampiot.dao.CityAdminCaseItemDao">
+
+    <select id="getBigCaseNavList" resultType="CityAdminCaseItemDTO">
+        select c.id,c.name
+        from city_admin_case_item c
+        where c.level = 0
+    </select>
+
+    <select id="getSmallCaseNavListByBigId" resultType="CityAdminCaseItemDTO">
+        select c.id,c.name
+        from city_admin_case_item c
+        where c.pid = #{pid}
+    </select>
+
+</mapper>