mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-06-21 18:19:36 +08:00
新增地区数据结构和门牌数据结构
This commit is contained in:
parent
cfbdd34435
commit
e34bb05190
@ -0,0 +1,76 @@
|
||||
package com.ics.admin.controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.ics.common.core.domain.R;
|
||||
import com.ics.common.core.controller.BaseController;
|
||||
import com.ics.admin.domain.RepairAddress;
|
||||
import com.ics.admin.service.IRepairAddressService;
|
||||
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* 报修地址 提供者
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("repairAddress")
|
||||
public class RepairAddressController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IRepairAddressService repairAddressService;
|
||||
|
||||
/**
|
||||
* 查询报修地址
|
||||
*/
|
||||
@GetMapping("get/{id}")
|
||||
public RepairAddress get(@PathVariable("id") Long id) {
|
||||
return repairAddressService.selectRepairAddressById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询报修地址列表
|
||||
*/
|
||||
@RequiresPermissions("repair:address:list")
|
||||
@GetMapping("list")
|
||||
public R list(RepairAddress repairAddress) {
|
||||
startPage();
|
||||
return result(repairAddressService.selectRepairAddressList(repairAddress));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增保存报修地址
|
||||
*/
|
||||
@RequiresPermissions("repair:address:add")
|
||||
@PostMapping("save")
|
||||
public R addSave(@RequestBody RepairAddress repairAddress) {
|
||||
return toAjax(repairAddressService.insertRepairAddress(repairAddress));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存报修地址
|
||||
*/
|
||||
@RequiresPermissions("repair:address:edit")
|
||||
@PostMapping("update")
|
||||
public R editSave(@RequestBody RepairAddress repairAddress) {
|
||||
return toAjax(repairAddressService.updateRepairAddress(repairAddress));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报修地址
|
||||
*/
|
||||
@RequiresPermissions("repair:address:remove")
|
||||
@PostMapping("remove")
|
||||
public R remove(String ids) {
|
||||
return toAjax(repairAddressService.deleteRepairAddressByIds(ids));
|
||||
}
|
||||
|
||||
}
|
@ -83,19 +83,6 @@ public class RepairController extends BaseController {
|
||||
repairVO.setServe(repairRecord.getServe());
|
||||
repairVO.setEffect(repairRecord.getEffect());
|
||||
}
|
||||
|
||||
|
||||
// repairVO.setStatus(repair.getStatus().getValue());
|
||||
// repairVO.setStatusName(repair.getStatus().getName());
|
||||
//
|
||||
// ParkVO parkVO = new ParkVO();
|
||||
// BeanUtils.copyBeanProp(parkVO, repair.getPark());
|
||||
// repairVO.setParkVO(parkVO);
|
||||
//
|
||||
// UserVO userVO = new UserVO();
|
||||
// BeanUtils.copyBeanProp(userVO, repair.getUser());
|
||||
// repairVO.setUserVO(userVO);
|
||||
|
||||
RepairLog repairLog = new RepairLog();
|
||||
repairLog.setRepairId(id);
|
||||
List<RepairLog> repairLogs = repairLogService.selectRepairLogList(repairLog);
|
||||
@ -115,7 +102,7 @@ public class RepairController extends BaseController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* 新增
|
||||
*/
|
||||
@RequiresPermissions("admin:repair:edit")
|
||||
@PostMapping("/review")
|
||||
@ -125,7 +112,7 @@ public class RepairController extends BaseController {
|
||||
// return R.error("报修为空或状态不是待分配");
|
||||
// }
|
||||
// repair.setStatus(Repair.Status.PENDING_PROCESS);
|
||||
repair.setStatus(Repair.Status.PENDING_ASSIGN);
|
||||
repair.setStatus(Repair.Status.PENDING_PROCESS);
|
||||
return toAjax(repairService.insertRepair(repair));
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,76 @@
|
||||
package com.ics.admin.controller;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.ics.common.core.domain.R;
|
||||
import com.ics.common.core.controller.BaseController;
|
||||
import com.ics.admin.domain.RepairRoom;
|
||||
import com.ics.admin.service.IRepairRoomService;
|
||||
import org.wf.jwtp.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* 报修房间 提供者
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("repairRoom")
|
||||
public class RepairRoomController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IRepairRoomService repairRoomService;
|
||||
|
||||
/**
|
||||
* 查询报修房间
|
||||
*/
|
||||
@GetMapping("get/{id}")
|
||||
public RepairRoom get(@PathVariable("id") Long id) {
|
||||
return repairRoomService.selectRepairRoomById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询报修房间列表
|
||||
*/
|
||||
@RequiresPermissions("repair:room:list")
|
||||
@GetMapping("list")
|
||||
public R list(RepairRoom repairRoom) {
|
||||
startPage();
|
||||
return result(repairRoomService.selectRepairRoomList(repairRoom));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增保存报修房间
|
||||
*/
|
||||
@RequiresPermissions("repair:room:add")
|
||||
@PostMapping("save")
|
||||
public R addSave(@RequestBody RepairRoom repairRoom) {
|
||||
return toAjax(repairRoomService.insertRepairRoom(repairRoom));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存报修房间
|
||||
*/
|
||||
@RequiresPermissions("repair:room:edit")
|
||||
@PostMapping("update")
|
||||
public R editSave(@RequestBody RepairRoom repairRoom) {
|
||||
return toAjax(repairRoomService.updateRepairRoom(repairRoom));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报修房间
|
||||
*/
|
||||
@RequiresPermissions("repair:room:remove")
|
||||
@PostMapping("remove")
|
||||
public R remove(String ids) {
|
||||
return toAjax(repairRoomService.deleteRepairRoomByIds(ids));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.ics.admin.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ics.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 报修地址对象 ics_repair_address
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@Data
|
||||
@TableName("ics_repair_address")
|
||||
public class RepairAddress extends BaseEntity<RepairAddress> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String name;
|
||||
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 园区ID */
|
||||
private Long parkId;
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.ics.admin.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.ics.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 报修房间对象 ics_repair_room
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@Data
|
||||
@TableName("ics_repair_room")
|
||||
public class RepairRoom extends BaseEntity<RepairRoom> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String name;
|
||||
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 园区ID */
|
||||
private Long parkId;
|
||||
|
||||
/** 地址id */
|
||||
private Long addressId;
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.ics.admin.mapper;
|
||||
|
||||
import com.ics.admin.domain.RepairAddress;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报修地址Mapper接口
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@Mapper
|
||||
public interface RepairAddressMapper extends BaseMapper<RepairAddress> {
|
||||
/**
|
||||
* 查询报修地址
|
||||
*
|
||||
* @param id 报修地址ID
|
||||
* @return 报修地址
|
||||
*/
|
||||
RepairAddress selectRepairAddressById(Long id);
|
||||
|
||||
/**
|
||||
* 查询报修地址列表
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 报修地址集合
|
||||
*/
|
||||
List<RepairAddress> selectRepairAddressList(RepairAddress repairAddress);
|
||||
|
||||
/**
|
||||
* 新增报修地址
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 结果
|
||||
*/
|
||||
int insertRepairAddress(RepairAddress repairAddress);
|
||||
|
||||
/**
|
||||
* 修改报修地址
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 结果
|
||||
*/
|
||||
int updateRepairAddress(RepairAddress repairAddress);
|
||||
|
||||
/**
|
||||
* 删除报修地址
|
||||
*
|
||||
* @param id 报修地址ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairAddressById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除报修地址
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairAddressByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.ics.admin.mapper;
|
||||
|
||||
import com.ics.admin.domain.RepairRoom;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报修房间Mapper接口
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@Mapper
|
||||
public interface RepairRoomMapper extends BaseMapper<RepairRoom> {
|
||||
/**
|
||||
* 查询报修房间
|
||||
*
|
||||
* @param id 报修房间ID
|
||||
* @return 报修房间
|
||||
*/
|
||||
RepairRoom selectRepairRoomById(Long id);
|
||||
|
||||
/**
|
||||
* 查询报修房间列表
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 报修房间集合
|
||||
*/
|
||||
List<RepairRoom> selectRepairRoomList(RepairRoom repairRoom);
|
||||
|
||||
/**
|
||||
* 新增报修房间
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 结果
|
||||
*/
|
||||
int insertRepairRoom(RepairRoom repairRoom);
|
||||
|
||||
/**
|
||||
* 修改报修房间
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 结果
|
||||
*/
|
||||
int updateRepairRoom(RepairRoom repairRoom);
|
||||
|
||||
/**
|
||||
* 删除报修房间
|
||||
*
|
||||
* @param id 报修房间ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairRoomById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除报修房间
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairRoomByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ics.admin.service;
|
||||
|
||||
import com.ics.admin.domain.RepairAddress;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报修地址Service接口
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
public interface IRepairAddressService extends IService<RepairAddress> {
|
||||
/**
|
||||
* 查询报修地址
|
||||
*
|
||||
* @param id 报修地址ID
|
||||
* @return 报修地址
|
||||
*/
|
||||
RepairAddress selectRepairAddressById(Long id);
|
||||
|
||||
/**
|
||||
* 查询报修地址列表
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 报修地址集合
|
||||
*/
|
||||
List<RepairAddress> selectRepairAddressList(RepairAddress repairAddress);
|
||||
|
||||
/**
|
||||
* 新增报修地址
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 结果
|
||||
*/
|
||||
int insertRepairAddress(RepairAddress repairAddress);
|
||||
|
||||
/**
|
||||
* 修改报修地址
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 结果
|
||||
*/
|
||||
int updateRepairAddress(RepairAddress repairAddress);
|
||||
|
||||
/**
|
||||
* 批量删除报修地址
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairAddressByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除报修地址信息
|
||||
*
|
||||
* @param id 报修地址ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairAddressById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.ics.admin.service;
|
||||
|
||||
import com.ics.admin.domain.RepairRoom;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 报修房间Service接口
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
public interface IRepairRoomService extends IService<RepairRoom> {
|
||||
/**
|
||||
* 查询报修房间
|
||||
*
|
||||
* @param id 报修房间ID
|
||||
* @return 报修房间
|
||||
*/
|
||||
RepairRoom selectRepairRoomById(Long id);
|
||||
|
||||
/**
|
||||
* 查询报修房间列表
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 报修房间集合
|
||||
*/
|
||||
List<RepairRoom> selectRepairRoomList(RepairRoom repairRoom);
|
||||
|
||||
/**
|
||||
* 新增报修房间
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 结果
|
||||
*/
|
||||
int insertRepairRoom(RepairRoom repairRoom);
|
||||
|
||||
/**
|
||||
* 修改报修房间
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 结果
|
||||
*/
|
||||
int updateRepairRoom(RepairRoom repairRoom);
|
||||
|
||||
/**
|
||||
* 批量删除报修房间
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairRoomByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除报修房间信息
|
||||
*
|
||||
* @param id 报修房间ID
|
||||
* @return 结果
|
||||
*/
|
||||
int deleteRepairRoomById(Long id);
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.ics.admin.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ics.admin.mapper.RepairAddressMapper;
|
||||
import com.ics.admin.domain.RepairAddress;
|
||||
import com.ics.admin.service.IRepairAddressService;
|
||||
|
||||
/**
|
||||
* 报修地址Service业务层处理
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@Service
|
||||
public class RepairAddressServiceImpl extends ServiceImpl<RepairAddressMapper, RepairAddress> implements IRepairAddressService {
|
||||
@Autowired
|
||||
private RepairAddressMapper repairAddressMapper;
|
||||
|
||||
/**
|
||||
* 查询报修地址
|
||||
*
|
||||
* @param id 报修地址ID
|
||||
* @return 报修地址
|
||||
*/
|
||||
@Override
|
||||
public RepairAddress selectRepairAddressById(Long id) {
|
||||
return repairAddressMapper.selectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询报修地址列表
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 报修地址
|
||||
*/
|
||||
@Override
|
||||
public List<RepairAddress> selectRepairAddressList(RepairAddress repairAddress) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
return repairAddressMapper.selectList(queryWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增报修地址
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairAddress(RepairAddress repairAddress) {
|
||||
return repairAddressMapper.insert(repairAddress);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改报修地址
|
||||
*
|
||||
* @param repairAddress 报修地址
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairAddress(RepairAddress repairAddress) {
|
||||
return repairAddressMapper.updateById(repairAddress);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报修地址对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairAddressByIds(String ids) {
|
||||
String[] idsArray = StrUtil.split(ids,",");
|
||||
return repairAddressMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报修地址信息
|
||||
*
|
||||
* @param id 报修地址ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairAddressById(Long id) {
|
||||
return repairAddressMapper.deleteRepairAddressById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.ics.admin.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ics.admin.mapper.RepairRoomMapper;
|
||||
import com.ics.admin.domain.RepairRoom;
|
||||
import com.ics.admin.service.IRepairRoomService;
|
||||
|
||||
/**
|
||||
* 报修房间Service业务层处理
|
||||
*
|
||||
* @author ics
|
||||
* @date 2024-08-06
|
||||
*/
|
||||
@Service
|
||||
public class RepairRoomServiceImpl extends ServiceImpl<RepairRoomMapper, RepairRoom> implements IRepairRoomService {
|
||||
@Autowired
|
||||
private RepairRoomMapper repairRoomMapper;
|
||||
|
||||
/**
|
||||
* 查询报修房间
|
||||
*
|
||||
* @param id 报修房间ID
|
||||
* @return 报修房间
|
||||
*/
|
||||
@Override
|
||||
public RepairRoom selectRepairRoomById(Long id) {
|
||||
return repairRoomMapper.selectById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询报修房间列表
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 报修房间
|
||||
*/
|
||||
@Override
|
||||
public List<RepairRoom> selectRepairRoomList(RepairRoom repairRoom) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
queryWrapper.eq(repairRoom.getAddressId() != null,"address_id",repairRoom.getAddressId());
|
||||
|
||||
return repairRoomMapper.selectList(queryWrapper);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增报修房间
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertRepairRoom(RepairRoom repairRoom) {
|
||||
return repairRoomMapper.insert(repairRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改报修房间
|
||||
*
|
||||
* @param repairRoom 报修房间
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateRepairRoom(RepairRoom repairRoom) {
|
||||
return repairRoomMapper.updateById(repairRoom);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报修房间对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairRoomByIds(String ids) {
|
||||
String[] idsArray = StrUtil.split(ids,",");
|
||||
return repairRoomMapper.deleteBatchIds(CollUtil.toList(idsArray));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除报修房间信息
|
||||
*
|
||||
* @param id 报修房间ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteRepairRoomById(Long id) {
|
||||
return repairRoomMapper.deleteRepairRoomById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
<?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.ics.admin.mapper.meeting.RepairAddressMapper">
|
||||
|
||||
<resultMap type="com.ics.admin.domain.RepairAddress" id="RepairAddressResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="deleteFlag" column="delete_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="parkId" column="park_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRepairAddressVo">
|
||||
SELECT id, name, remark, delete_flag, create_by, create_time, update_by, update_time, tenant_id, park_id FROM ics_repair_address
|
||||
</sql>
|
||||
|
||||
<select id="selectRepairAddressList" parameterType="RepairAddress" resultMap="RepairAddressResult">
|
||||
<include refid="selectRepairAddressVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> AND name LIKE CONCAT('%', #{name}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectRepairAddressById" parameterType="Long" resultMap="RepairAddressResult">
|
||||
<include refid="selectRepairAddressVo"/>
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertRepairAddress" parameterType="RepairAddress" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO ics_repair_address
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="deleteFlag != null and deleteFlag != ''">delete_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null ">update_time,</if>
|
||||
<if test="tenantId != null ">tenant_id,</if>
|
||||
<if test="parkId != null ">park_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="deleteFlag != null and deleteFlag != ''">#{deleteFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null ">#{updateTime},</if>
|
||||
<if test="tenantId != null ">#{tenantId},</if>
|
||||
<if test="parkId != null ">#{parkId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateRepairAddress" parameterType="RepairAddress">
|
||||
UPDATE ics_repair_address
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="deleteFlag != null and deleteFlag != ''">delete_flag = #{deleteFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||
<if test="tenantId != null ">tenant_id = #{tenantId},</if>
|
||||
<if test="parkId != null ">park_id = #{parkId},</if>
|
||||
</trim>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteRepairAddressById" parameterType="Long">
|
||||
DELETE FROM ics_repair_address WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRepairAddressByIds" parameterType="String">
|
||||
DELETE FROM ics_repair_address 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.ics.admin.mapper.meeting.RepairRoomMapper">
|
||||
|
||||
<resultMap type="com.ics.admin.domain.RepairRoom" id="RepairRoomResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="deleteFlag" column="delete_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="tenantId" column="tenant_id" />
|
||||
<result property="parkId" column="park_id" />
|
||||
<result property="addressId" column="address_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectRepairRoomVo">
|
||||
SELECT id, name, remark, delete_flag, create_by, create_time, update_by, update_time, tenant_id, park_id, address_id FROM ics_repair_room
|
||||
</sql>
|
||||
|
||||
<select id="selectRepairRoomList" parameterType="RepairRoom" resultMap="RepairRoomResult">
|
||||
<include refid="selectRepairRoomVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> AND name LIKE CONCAT('%', #{name}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectRepairRoomById" parameterType="Long" resultMap="RepairRoomResult">
|
||||
<include refid="selectRepairRoomVo"/>
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertRepairRoom" parameterType="RepairRoom" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO ics_repair_room
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="remark != null and remark != ''">remark,</if>
|
||||
<if test="deleteFlag != null and deleteFlag != ''">delete_flag,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="createTime != null ">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null ">update_time,</if>
|
||||
<if test="tenantId != null ">tenant_id,</if>
|
||||
<if test="parkId != null ">park_id,</if>
|
||||
<if test="addressId != null ">address_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="remark != null and remark != ''">#{remark},</if>
|
||||
<if test="deleteFlag != null and deleteFlag != ''">#{deleteFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="createTime != null ">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null ">#{updateTime},</if>
|
||||
<if test="tenantId != null ">#{tenantId},</if>
|
||||
<if test="parkId != null ">#{parkId},</if>
|
||||
<if test="addressId != null ">#{addressId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateRepairRoom" parameterType="RepairRoom">
|
||||
UPDATE ics_repair_room
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||
<if test="deleteFlag != null and deleteFlag != ''">delete_flag = #{deleteFlag},</if>
|
||||
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||
<if test="createTime != null ">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
||||
<if test="tenantId != null ">tenant_id = #{tenantId},</if>
|
||||
<if test="parkId != null ">park_id = #{parkId},</if>
|
||||
<if test="addressId != null ">address_id = #{addressId},</if>
|
||||
</trim>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteRepairRoomById" parameterType="Long">
|
||||
DELETE FROM ics_repair_room WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteRepairRoomByIds" parameterType="String">
|
||||
DELETE FROM ics_repair_room where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -83,6 +83,7 @@ public class FileController {
|
||||
/**
|
||||
* 通用上传请求
|
||||
*/
|
||||
@Ignore
|
||||
@RequiresPermissions("system:account:center")
|
||||
@PostMapping("upload_files")
|
||||
public R uploadFiles(List<MultipartFile> files) {
|
||||
|
@ -61,6 +61,12 @@ public class RepairAPIController extends BaseController {
|
||||
@Autowired
|
||||
private IRepairWorkerTypeService workerTypeService;
|
||||
|
||||
@Autowired
|
||||
private IRepairAddressService repairAddressService;
|
||||
|
||||
@Autowired
|
||||
private IRepairRoomService repairRoomService;
|
||||
|
||||
/**
|
||||
* 查询工单管理
|
||||
*/
|
||||
@ -163,6 +169,18 @@ public class RepairAPIController extends BaseController {
|
||||
return result(repairDeviceService.selectRepairDeviceList(repairDevice));
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@GetMapping("selectAddressList")
|
||||
public R selectAddressList(RepairAddress repairAddress) {
|
||||
return result(repairAddressService.selectRepairAddressList(repairAddress));
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@GetMapping("selectRoomList")
|
||||
public R selectRoomList(RepairRoom repairRoom) {
|
||||
return result(repairRoomService.selectRepairRoomList(repairRoom));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user