Commit a34b7e02 by xuwenhao

新增学校安全管理代码

parent 412c4f62
package yangtz.cs.liu.campus.controller.schoolSecurity;
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.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleInOut;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVehicleInOutService;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVehicleInOutVo;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 车辆出入登记Controller
*
* @author ruoyi
* @date 2023-09-11
*/
@RestController
@RequestMapping("/schoolVehicleInOut")
public class SchoolVehicleInOutController extends BaseController
{
@Autowired
private ISchoolVehicleInOutService schoolVehicleInOutService;
/**
* 查询车辆出入登记列表
*/
@GetMapping("/list")
public TableDataInfo list(SchoolVehicleInOutVo schoolVehicleInOutVo)
{
startPage();
List<SchoolVehicleInOutVo> list = schoolVehicleInOutService.selectSchoolVehicleInOutList(schoolVehicleInOutVo);
return getDataTable(list);
}
/**
* 导出车辆出入登记列表
*/
@Log(title = "车辆出入登记", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SchoolVehicleInOutVo schoolVehicleInOutVo)
{
List<SchoolVehicleInOutVo> list = schoolVehicleInOutService.selectSchoolVehicleInOutList(schoolVehicleInOutVo);
ExcelUtil<SchoolVehicleInOutVo> util = new ExcelUtil<SchoolVehicleInOutVo>(SchoolVehicleInOutVo.class);
util.exportExcel(response, list, "车辆出入登记数据");
}
/**
* 获取车辆出入登记详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(schoolVehicleInOutService.selectSchoolVehicleInOutById(id));
}
/**
* 新增车辆出入登记
*/
@Log(title = "车辆出入登记", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SchoolVehicleInOutVo schoolVehicleInOutVo)
{
return toAjax(schoolVehicleInOutService.insertSchoolVehicleInOut(schoolVehicleInOutVo));
}
/**
* 修改车辆出入登记
*/
@Log(title = "车辆出入登记", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SchoolVehicleInOutVo schoolVehicleInOutVo)
{
return toAjax(schoolVehicleInOutService.updateSchoolVehicleInOut(schoolVehicleInOutVo));
}
/**
* 删除车辆出入登记
*/
@Log(title = "车辆出入登记", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(schoolVehicleInOutService.deleteSchoolVehicleInOutByIds(ids));
}
}
package yangtz.cs.liu.campus.controller.schoolSecurity;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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 yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleRegistration;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVehicleRegistrationService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 车辆登记Controller
*
* @author ruoyi
* @date 2023-09-11
*/
@RestController
@RequestMapping("/schoolVehicleRegistration/schoolVehicleRegistration")
public class SchoolVehicleRegistrationController extends BaseController
{
@Autowired
private ISchoolVehicleRegistrationService schoolVehicleRegistrationService;
/**
* 查询车辆登记列表
*/
@GetMapping("/list")
public TableDataInfo list(SchoolVehicleRegistration schoolVehicleRegistration)
{
startPage();
List<SchoolVehicleRegistration> list = schoolVehicleRegistrationService.selectSchoolVehicleRegistrationList(schoolVehicleRegistration);
return getDataTable(list);
}
/**
* 导出车辆登记列表
*/
@Log(title = "车辆登记", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SchoolVehicleRegistration schoolVehicleRegistration)
{
List<SchoolVehicleRegistration> list = schoolVehicleRegistrationService.selectSchoolVehicleRegistrationList(schoolVehicleRegistration);
ExcelUtil<SchoolVehicleRegistration> util = new ExcelUtil<SchoolVehicleRegistration>(SchoolVehicleRegistration.class);
util.exportExcel(response, list, "车辆登记数据");
}
/**
* 获取车辆登记详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(schoolVehicleRegistrationService.selectSchoolVehicleRegistrationById(id));
}
/**
* 新增车辆登记
*/
@Log(title = "车辆登记", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SchoolVehicleRegistration schoolVehicleRegistration)
{
return toAjax(schoolVehicleRegistrationService.insertSchoolVehicleRegistration(schoolVehicleRegistration));
}
/**
* 修改车辆登记
*/
@Log(title = "车辆登记", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SchoolVehicleRegistration schoolVehicleRegistration)
{
return toAjax(schoolVehicleRegistrationService.updateSchoolVehicleRegistration(schoolVehicleRegistration));
}
/**
* 删除车辆登记
*/
@Log(title = "车辆登记", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(schoolVehicleRegistrationService.deleteSchoolVehicleRegistrationByIds(ids));
}
}
package yangtz.cs.liu.campus.controller.schoolSecurity;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
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 yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsult;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVideoConsultService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultVo;
/**
* 监控录像调用(内部)Controller
*
* @author ruoyi
* @date 2023-09-11
*/
@RestController
@RequestMapping("/schoolVideoConsult")
public class SchoolVideoConsultController extends BaseController
{
@Autowired
private ISchoolVideoConsultService schoolVideoConsultService;
/**
* 查询监控录像调用(内部)列表
*/
@GetMapping("/list")
public TableDataInfo list(SchoolVideoConsultVo schoolVideoConsultVo)
{
startPage();
List<SchoolVideoConsultVo> list = schoolVideoConsultService.selectSchoolVideoConsultList(schoolVideoConsultVo);
return getDataTable(list);
}
/**
* 导出监控录像调用(内部)列表
*/
@Log(title = "监控录像调用(内部)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SchoolVideoConsultVo schoolVideoConsultVo)
{
List<SchoolVideoConsultVo> list = schoolVideoConsultService.selectSchoolVideoConsultList(schoolVideoConsultVo);
ExcelUtil<SchoolVideoConsultVo> util = new ExcelUtil<SchoolVideoConsultVo>(SchoolVideoConsultVo.class);
util.exportExcel(response, list, "监控录像调用(内部)数据");
}
/**
* 获取监控录像调用(内部)详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(schoolVideoConsultService.selectSchoolVideoConsultById(id));
}
/**
* 新增监控录像调用(内部)
*/
@Log(title = "监控录像调用(内部)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SchoolVideoConsultVo schoolVideoConsultVo)
{
return toAjax(schoolVideoConsultService.insertSchoolVideoConsult(schoolVideoConsultVo));
}
/**
* 修改监控录像调用(内部)
*/
@Log(title = "监控录像调用(内部)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SchoolVideoConsultVo schoolVideoConsultVo)
{
return toAjax(schoolVideoConsultService.updateSchoolVideoConsult(schoolVideoConsultVo));
}
/**
* 删除监控录像调用(内部)
*/
@Log(title = "监控录像调用(内部)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(schoolVideoConsultService.deleteSchoolVideoConsultByIds(ids));
}
}
package yangtz.cs.liu.campus.controller.schoolSecurity;
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.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsultExternal;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVideoConsultExternalService;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultExternalVo;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 监控调阅(外部)Controller
*
* @author ruoyi
* @date 2023-09-11
*/
@RestController
@RequestMapping("/schoolVideoConsultExternal")
public class SchoolVideoConsultExternalController extends BaseController
{
@Autowired
private ISchoolVideoConsultExternalService schoolVideoConsultExternalService;
/**
* 查询监控调阅(外部)列表
*/
@GetMapping("/list")
public TableDataInfo list(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
startPage();
List<SchoolVideoConsultExternalVo> list = schoolVideoConsultExternalService.selectSchoolVideoConsultExternalList(schoolVideoConsultExternalVo);
return getDataTable(list);
}
/**
* 导出监控调阅(外部)列表
*/
@Log(title = "监控调阅(外部)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
List<SchoolVideoConsultExternalVo> list = schoolVideoConsultExternalService.selectSchoolVideoConsultExternalList(schoolVideoConsultExternalVo);
ExcelUtil<SchoolVideoConsultExternalVo> util = new ExcelUtil<SchoolVideoConsultExternalVo>(SchoolVideoConsultExternalVo.class);
util.exportExcel(response, list, "监控调阅(外部)数据");
}
/**
* 获取监控调阅(外部)详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(schoolVideoConsultExternalService.selectSchoolVideoConsultExternalById(id));
}
/**
* 新增监控调阅(外部)
*/
@Log(title = "监控调阅(外部)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
return toAjax(schoolVideoConsultExternalService.insertSchoolVideoConsultExternal(schoolVideoConsultExternalVo));
}
/**
* 修改监控调阅(外部)
*/
@Log(title = "监控调阅(外部)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
return toAjax(schoolVideoConsultExternalService.updateSchoolVideoConsultExternal(schoolVideoConsultExternalVo));
}
/**
* 删除监控调阅(外部)
*/
@Log(title = "监控调阅(外部)", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(schoolVideoConsultExternalService.deleteSchoolVideoConsultExternalByIds(ids));
}
}
package yangtz.cs.liu.campus.domain.schoolSecurity;
import com.core.domain.OurBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 车辆出入登记对象 school_vehicle_in_out
*
* @author ruoyi
* @date 2023-09-11
*/
@Data
public class SchoolVehicleInOut extends OurBaseEntity
{
/** 流程实例id */
private String instanceId;
/** 用户id */
private Long userId;
/** 用户名称 */
private String userName;
/** 联系电话 */
private Long phone;
/** 工作性质(1在编,2合同制,3代课,4其他) */
private String jobNature;
/** 预计在校工作开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
private Date workStartTime;
/** 预计在校工作结束时间 */
private String workEndTime;
/** 现申请登记车号 */
private String applyLicenseNumber;
/** 车辆品牌 */
private String brand;
/** 车型 */
private String carType;
/** 已登记车辆车号 */
private String oldLicenseNumber;
/** 已登记车辆是否保留(1是,0否) */
private String isRetain;
/** 申请人id */
private Long applyUserId;
/** 申请人 */
private String applyUser;
/** 申请时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
/** 申请人类型((0教工 1职工)) */
private String applyType;
/** 状态(0未提交,1级部/处室审核,2分管领导审核,3已结束) */
private String state;
/** 申请人级部/处室id */
private Long applyOrgid;
/** 申请人级部/处室 */
private String applyOrgname;
/** 审批人id1 */
private Long handUserId1;
/** 审批人1 */
private String handUserName1;
/** 审批人1意见 */
private String handUserOpinion1;
/** 审批人1签名是否显示(1是,0否) */
private String isSign1;
/** 审批人id2 */
private Long handUserId2;
/** 审批人2 */
private String handUserName2;
/** 审批人2意见 */
private String handUserOpinion2;
/** 审批人2签名是否显示(1是,0否) */
private String isSign2;
}
package yangtz.cs.liu.campus.domain.schoolSecurity;
import com.core.domain.OurBaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
/**
* 车辆登记对象 school_vehicle_registration
*
* @author ruoyi
* @date 2023-09-11
*/
@Data
public class SchoolVehicleRegistration extends OurBaseEntity
{
/** 用户id */
private Long userId;
/** 用户名称 */
private String userName;
/** 工作性质(1在编,2合同制,3代课,4其他) */
private String jobNature;
/** 常用车号 */
private String licenseNumber;
/** 品牌及车型 */
private String brand;
/** 联系电话 */
private Long phone;
/** 备注1 */
private String remark1;
/** 备注2 */
private String remark2;
/** 备注3 */
private String remark3;
/** 备注4 */
private String remark4;
/** 备注5 */
private String remark5;
}
package yangtz.cs.liu.campus.domain.schoolSecurity;
import com.core.domain.OurBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 监控录像调用(内部)对象 school_video_consult
*
* @author ruoyi
* @date 2023-09-11
*/
@Data
public class SchoolVideoConsult extends OurBaseEntity
{
/** 流程实例id */
private String instanceId;
/** 用户id */
private Long userId;
/** 用户名称 */
private String userName;
/** 联系电话 */
private Long phone;
/** 所在部门id */
private Long orgid;
/** 所在部门 */
private String orgname;
/** 录像调用开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoStartTime;
/** 录像调用结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoEndTime;
/** 调阅位置 */
private String location;
/** 申请事由 */
private String applyReason;
/** 状态(0未提交,1级部/处室审核,2信息技术中心负责人审核,3安全管理中心负责人审核,4分管领导审核,5结束) */
private String state;
/** 申请人id */
private Long applyUserId;
/** 申请人 */
private String applyUser;
/** 申请部门id */
private Long applyOrgid;
/** 申请部门 */
private String applyOrgname;
/** 申请时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
/** 申请人类型(0教工 1职工) */
private String applyType;
/** 审批人id1 */
private Long handUserId1;
/** 审批人1 */
private String handUserName1;
/** 审批人1意见 */
private String handUserOpinion1;
/** 审批人1签名是否显示(1是,0否) */
private String isSign1;
/** 审批人id2 */
private Long handUserId2;
/** 审批人2 */
private String handUserName2;
/** 审批人2意见 */
private String handUserOpinion2;
/** 审批人2签名是否显示(1是,0否) */
private String isSign2;
/** 审批人id3 */
private Long handUserId3;
/** 审批人3 */
private String handUserName3;
/** 审批人3意见 */
private String handUserOpinion3;
/** 审批人3签名是否显示(1是,0否) */
private String isSign3;
/** 审批人id4 */
private Long handUserId4;
/** 审批人4 */
private String handUserName4;
/** 审批人4意见 */
private String handUserOpinion4;
/** 审批人4签名是否显示(1是,0否) */
private String isSign4;
/** 调取结果1 */
private String fetchResult1;
/** 调取结果2 */
private String fetchResult2;
}
package yangtz.cs.liu.campus.domain.schoolSecurity;
import com.core.domain.OurBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 监控调阅(外部)对象 school_video_consult_external
*
* @author ruoyi
* @date 2023-09-11
*/
@Data
public class SchoolVideoConsultExternal extends OurBaseEntity
{
/** 流程实例id */
private String instanceId;
/** 用户id */
private Long userId;
/** 姓名 */
private String userName;
/** 联系电话 */
private Long phone;
/** 身份证号 */
private String idCard;
/** 录像调用开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoStartTime;
/** 录像调用结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoEndTime;
/** 调阅位置 */
private String location;
/** 申请事由 */
private String applyReason;
/** 状态(0未提交,1信息技术中心负责人审核,2安保负责人审核,3安全管理中心负责人审核,4分管领导审核,5结束) */
private String state;
/** 申请人id */
private Long applyUserId;
/** 申请人 */
private String applyUser;
/** 申请时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
/** 审批人id1 */
private Long handUserId1;
/** 审批人1 */
private String handUserName1;
/** 审批人1意见 */
private String handUserOpinion1;
/** 审批人1签名是否显示(1是,0否) */
private String isSign1;
/** 审批人id2 */
private Long handUserId2;
/** 审批人2 */
private String handUserName2;
/** 审批人2意见 */
private String handUserOpinion2;
/** 审批人2签名是否显示(1是,0否) */
private String isSign2;
/** 审批人id3 */
private Long handUserId3;
/** 审批人3 */
private String handUserName3;
/** 审批人3意见 */
private String handUserOpinion3;
/** 审批人3签名是否显示(1是,0否) */
private String isSign3;
/** 审批人id4 */
private Long handUserId4;
/** 审批人4 */
private String handUserName4;
/** 审批人4意见 */
private String handUserOpinion4;
/** 审批人4签名是否显示(1是,0否) */
private String isSign4;
/** 调取结果 */
private String fetchResult;
}
package yangtz.cs.liu.campus.mapper.schoolSecurity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleInOut;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVehicleInOutVo;
import java.util.List;
/**
* 车辆出入登记Mapper接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface SchoolVehicleInOutMapper extends BaseMapper<SchoolVehicleInOut>
{
/**
* 查询车辆出入登记
*
* @param id 车辆出入登记主键
* @return 车辆出入登记
*/
public SchoolVehicleInOutVo selectSchoolVehicleInOutById(Long id);
/**
* 查询车辆出入登记列表
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 车辆出入登记集合
*/
public List<SchoolVehicleInOutVo> selectSchoolVehicleInOutList(SchoolVehicleInOutVo schoolVehicleInOutVo);
/**
* 新增车辆出入登记
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 结果
*/
public int insertSchoolVehicleInOut(SchoolVehicleInOutVo schoolVehicleInOutVo);
/**
* 修改车辆出入登记
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 结果
*/
public int updateSchoolVehicleInOut(SchoolVehicleInOutVo schoolVehicleInOutVo);
/**
* 删除车辆出入登记
*
* @param id 车辆出入登记主键
* @return 结果
*/
public int deleteSchoolVehicleInOutById(Long id);
/**
* 批量删除车辆出入登记
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSchoolVehicleInOutByIds(Long[] ids);
}
package yangtz.cs.liu.campus.mapper.schoolSecurity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleRegistration;
import java.util.List;
/**
* 车辆登记Mapper接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface SchoolVehicleRegistrationMapper extends BaseMapper<SchoolVehicleRegistration>
{
/**
* 查询车辆登记
*
* @param id 车辆登记主键
* @return 车辆登记
*/
public SchoolVehicleRegistration selectSchoolVehicleRegistrationById(Long id);
/**
* 查询车辆登记列表
*
* @param schoolVehicleRegistration 车辆登记
* @return 车辆登记集合
*/
public List<SchoolVehicleRegistration> selectSchoolVehicleRegistrationList(SchoolVehicleRegistration schoolVehicleRegistration);
/**
* 新增车辆登记
*
* @param schoolVehicleRegistration 车辆登记
* @return 结果
*/
public int insertSchoolVehicleRegistration(SchoolVehicleRegistration schoolVehicleRegistration);
/**
* 修改车辆登记
*
* @param schoolVehicleRegistration 车辆登记
* @return 结果
*/
public int updateSchoolVehicleRegistration(SchoolVehicleRegistration schoolVehicleRegistration);
/**
* 删除车辆登记
*
* @param id 车辆登记主键
* @return 结果
*/
public int deleteSchoolVehicleRegistrationById(Long id);
/**
* 批量删除车辆登记
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSchoolVehicleRegistrationByIds(Long[] ids);
}
package yangtz.cs.liu.campus.mapper.schoolSecurity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import yangtz.cs.liu.campus.domain.accessory.SchoolAccessory;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsultExternal;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultExternalVo;
import java.util.List;
/**
* 监控调阅(外部)Mapper接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface SchoolVideoConsultExternalMapper extends BaseMapper<SchoolVideoConsultExternal>
{
/**
* 查询监控调阅(外部)
*
* @param id 监控调阅(外部)主键
* @return 监控调阅(外部)
*/
public SchoolVideoConsultExternalVo selectSchoolVideoConsultExternalById(Long id);
/**
* 查询监控调阅(外部)列表
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 监控调阅(外部)集合
*/
public List<SchoolVideoConsultExternalVo> selectSchoolVideoConsultExternalList(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo);
/**
* 新增监控调阅(外部)
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 结果
*/
public int insertSchoolVideoConsultExternal(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo);
/**
* 修改监控调阅(外部)
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 结果
*/
public int updateSchoolVideoConsultExternal(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo);
/**
* 删除监控调阅(外部)
*
* @param id 监控调阅(外部)主键
* @return 结果
*/
public int deleteSchoolVideoConsultExternalById(Long id);
/**
* 批量删除监控调阅(外部)
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSchoolVideoConsultExternalByIds(Long[] ids);
/**
* 批量删除附件信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSchoolAccessoryByBusinessIds(Long[] ids);
/**
* 批量新增附件信息
*
* @param schoolAccessoryList 附件信息列表
* @return 结果
*/
public int batchSchoolAccessory(List<SchoolAccessory> schoolAccessoryList);
/**
* 通过监控调阅(外部)主键删除附件信息信息
*
* @param id 监控调阅(外部)ID
* @return 结果
*/
public int deleteSchoolAccessoryByBusinessId(Long id);
}
package yangtz.cs.liu.campus.mapper.schoolSecurity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsult;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultVo;
import java.util.List;
/**
* 监控录像调用(内部)Mapper接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface SchoolVideoConsultMapper extends BaseMapper<SchoolVideoConsult>
{
/**
* 查询监控录像调用(内部)
*
* @param id 监控录像调用(内部)主键
* @return 监控录像调用(内部)
*/
public SchoolVideoConsultVo selectSchoolVideoConsultById(Long id);
/**
* 查询监控录像调用(内部)列表
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 监控录像调用(内部)集合
*/
public List<SchoolVideoConsultVo> selectSchoolVideoConsultList(SchoolVideoConsultVo schoolVideoConsultVo);
/**
* 新增监控录像调用(内部)
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 结果
*/
public int insertSchoolVideoConsult(SchoolVideoConsultVo schoolVideoConsultVo);
/**
* 修改监控录像调用(内部)
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 结果
*/
public int updateSchoolVideoConsult(SchoolVideoConsultVo schoolVideoConsultVo);
/**
* 删除监控录像调用(内部)
*
* @param id 监控录像调用(内部)主键
* @return 结果
*/
public int deleteSchoolVideoConsultById(Long id);
/**
* 批量删除监控录像调用(内部)
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSchoolVideoConsultByIds(Long[] ids);
}
package yangtz.cs.liu.campus.service.impl.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleInOut;
import yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVehicleInOutMapper;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVehicleInOutService;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVehicleInOutVo;
import java.util.List;
/**
* 车辆出入登记Service业务层处理
*
* @author ruoyi
* @date 2023-09-11
*/
@Service
public class SchoolVehicleInOutServiceImpl extends ServiceImpl<SchoolVehicleInOutMapper,SchoolVehicleInOut> implements ISchoolVehicleInOutService
{
@Autowired
private SchoolVehicleInOutMapper schoolVehicleInOutMapper;
/**
* 查询车辆出入登记
*
* @param id 车辆出入登记主键
* @return 车辆出入登记
*/
@Override
public SchoolVehicleInOutVo selectSchoolVehicleInOutById(Long id)
{
return schoolVehicleInOutMapper.selectSchoolVehicleInOutById(id);
}
/**
* 查询车辆出入登记列表
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 车辆出入登记
*/
@Override
public List<SchoolVehicleInOutVo> selectSchoolVehicleInOutList(SchoolVehicleInOutVo schoolVehicleInOutVo)
{
return schoolVehicleInOutMapper.selectSchoolVehicleInOutList(schoolVehicleInOutVo);
}
/**
* 新增车辆出入登记
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 结果
*/
@Override
public int insertSchoolVehicleInOut(SchoolVehicleInOutVo schoolVehicleInOutVo)
{
schoolVehicleInOutVo.setCreateTime(DateUtils.getNowDate());
return schoolVehicleInOutMapper.insertSchoolVehicleInOut(schoolVehicleInOutVo);
}
/**
* 修改车辆出入登记
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 结果
*/
@Override
public int updateSchoolVehicleInOut(SchoolVehicleInOutVo schoolVehicleInOutVo)
{
schoolVehicleInOutVo.setUpdateTime(DateUtils.getNowDate());
return schoolVehicleInOutMapper.updateSchoolVehicleInOut(schoolVehicleInOutVo);
}
/**
* 批量删除车辆出入登记
*
* @param ids 需要删除的车辆出入登记主键
* @return 结果
*/
@Override
public int deleteSchoolVehicleInOutByIds(Long[] ids)
{
return schoolVehicleInOutMapper.deleteSchoolVehicleInOutByIds(ids);
}
/**
* 删除车辆出入登记信息
*
* @param id 车辆出入登记主键
* @return 结果
*/
@Override
public int deleteSchoolVehicleInOutById(Long id)
{
return schoolVehicleInOutMapper.deleteSchoolVehicleInOutById(id);
}
}
package yangtz.cs.liu.campus.service.impl.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleRegistration;
import yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVehicleRegistrationMapper;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVehicleRegistrationService;
import java.util.List;
/**
* 车辆登记Service业务层处理
*
* @author ruoyi
* @date 2023-09-11
*/
@Service
public class SchoolVehicleRegistrationServiceImpl extends ServiceImpl<SchoolVehicleRegistrationMapper,SchoolVehicleRegistration> implements ISchoolVehicleRegistrationService
{
@Autowired
private SchoolVehicleRegistrationMapper schoolVehicleRegistrationMapper;
/**
* 查询车辆登记
*
* @param id 车辆登记主键
* @return 车辆登记
*/
@Override
public SchoolVehicleRegistration selectSchoolVehicleRegistrationById(Long id)
{
return schoolVehicleRegistrationMapper.selectSchoolVehicleRegistrationById(id);
}
/**
* 查询车辆登记列表
*
* @param schoolVehicleRegistration 车辆登记
* @return 车辆登记
*/
@Override
public List<SchoolVehicleRegistration> selectSchoolVehicleRegistrationList(SchoolVehicleRegistration schoolVehicleRegistration)
{
return schoolVehicleRegistrationMapper.selectSchoolVehicleRegistrationList(schoolVehicleRegistration);
}
/**
* 新增车辆登记
*
* @param schoolVehicleRegistration 车辆登记
* @return 结果
*/
@Override
public int insertSchoolVehicleRegistration(SchoolVehicleRegistration schoolVehicleRegistration)
{
schoolVehicleRegistration.setCreateTime(DateUtils.getNowDate());
return schoolVehicleRegistrationMapper.insertSchoolVehicleRegistration(schoolVehicleRegistration);
}
/**
* 修改车辆登记
*
* @param schoolVehicleRegistration 车辆登记
* @return 结果
*/
@Override
public int updateSchoolVehicleRegistration(SchoolVehicleRegistration schoolVehicleRegistration)
{
schoolVehicleRegistration.setUpdateTime(DateUtils.getNowDate());
return schoolVehicleRegistrationMapper.updateSchoolVehicleRegistration(schoolVehicleRegistration);
}
/**
* 批量删除车辆登记
*
* @param ids 需要删除的车辆登记主键
* @return 结果
*/
@Override
public int deleteSchoolVehicleRegistrationByIds(Long[] ids)
{
return schoolVehicleRegistrationMapper.deleteSchoolVehicleRegistrationByIds(ids);
}
/**
* 删除车辆登记信息
*
* @param id 车辆登记主键
* @return 结果
*/
@Override
public int deleteSchoolVehicleRegistrationById(Long id)
{
return schoolVehicleRegistrationMapper.deleteSchoolVehicleRegistrationById(id);
}
}
package yangtz.cs.liu.campus.service.impl.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import yangtz.cs.liu.campus.domain.accessory.SchoolAccessory;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsultExternal;
import yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVideoConsultExternalMapper;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVideoConsultExternalService;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultExternalVo;
import java.util.ArrayList;
import java.util.List;
/**
* 监控调阅(外部)Service业务层处理
*
* @author ruoyi
* @date 2023-09-11
*/
@Service
public class SchoolVideoConsultExternalServiceImpl extends ServiceImpl<SchoolVideoConsultExternalMapper,SchoolVideoConsultExternal> implements ISchoolVideoConsultExternalService
{
@Autowired
private SchoolVideoConsultExternalMapper schoolVideoConsultExternalMapper;
/**
* 查询监控调阅(外部)
*
* @param id 监控调阅(外部)主键
* @return 监控调阅(外部)
*/
@Override
public SchoolVideoConsultExternalVo selectSchoolVideoConsultExternalById(Long id)
{
return schoolVideoConsultExternalMapper.selectSchoolVideoConsultExternalById(id);
}
/**
* 查询监控调阅(外部)列表
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 监控调阅(外部)
*/
@Override
public List<SchoolVideoConsultExternalVo> selectSchoolVideoConsultExternalList(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
return schoolVideoConsultExternalMapper.selectSchoolVideoConsultExternalList(schoolVideoConsultExternalVo);
}
/**
* 新增监控调阅(外部)
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 结果
*/
@Transactional
@Override
public int insertSchoolVideoConsultExternal(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
schoolVideoConsultExternalVo.setCreateTime(DateUtils.getNowDate());
int rows = schoolVideoConsultExternalMapper.insertSchoolVideoConsultExternal(schoolVideoConsultExternalVo);
insertSchoolAccessory(schoolVideoConsultExternalVo);
return rows;
}
/**
* 修改监控调阅(外部)
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 结果
*/
@Transactional
@Override
public int updateSchoolVideoConsultExternal(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
schoolVideoConsultExternalVo.setUpdateTime(DateUtils.getNowDate());
schoolVideoConsultExternalMapper.deleteSchoolAccessoryByBusinessId(schoolVideoConsultExternalVo.getId());
insertSchoolAccessory(schoolVideoConsultExternalVo);
return schoolVideoConsultExternalMapper.updateSchoolVideoConsultExternal(schoolVideoConsultExternalVo);
}
/**
* 批量删除监控调阅(外部)
*
* @param ids 需要删除的监控调阅(外部)主键
* @return 结果
*/
@Transactional
@Override
public int deleteSchoolVideoConsultExternalByIds(Long[] ids)
{
schoolVideoConsultExternalMapper.deleteSchoolAccessoryByBusinessIds(ids);
return schoolVideoConsultExternalMapper.deleteSchoolVideoConsultExternalByIds(ids);
}
/**
* 删除监控调阅(外部)信息
*
* @param id 监控调阅(外部)主键
* @return 结果
*/
@Transactional
@Override
public int deleteSchoolVideoConsultExternalById(Long id)
{
schoolVideoConsultExternalMapper.deleteSchoolAccessoryByBusinessId(id);
return schoolVideoConsultExternalMapper.deleteSchoolVideoConsultExternalById(id);
}
/**
* 新增附件信息信息
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)对象
*/
public void insertSchoolAccessory(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo)
{
List<SchoolAccessory> schoolAccessoryList = schoolVideoConsultExternalVo.getSchoolAccessoryList();
Long id = schoolVideoConsultExternalVo.getId();
if (StringUtils.isNotNull(schoolAccessoryList))
{
List<SchoolAccessory> list = new ArrayList<SchoolAccessory>();
for (SchoolAccessory schoolAccessory : schoolAccessoryList)
{
schoolAccessory.setBusinessId(id);
list.add(schoolAccessory);
}
if (list.size() > 0)
{
schoolVideoConsultExternalMapper.batchSchoolAccessory(list);
}
}
}
}
package yangtz.cs.liu.campus.service.impl.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsult;
import yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVideoConsultMapper;
import yangtz.cs.liu.campus.service.schoolSecurity.ISchoolVideoConsultService;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultVo;
import java.util.List;
/**
* 监控录像调用(内部)Service业务层处理
*
* @author ruoyi
* @date 2023-09-11
*/
@Service
public class SchoolVideoConsultServiceImpl extends ServiceImpl<SchoolVideoConsultMapper,SchoolVideoConsult> implements ISchoolVideoConsultService
{
@Autowired
private SchoolVideoConsultMapper schoolVideoConsultMapper;
/**
* 查询监控录像调用(内部)
*
* @param id 监控录像调用(内部)主键
* @return 监控录像调用(内部)
*/
@Override
public SchoolVideoConsultVo selectSchoolVideoConsultById(Long id)
{
return schoolVideoConsultMapper.selectSchoolVideoConsultById(id);
}
/**
* 查询监控录像调用(内部)列表
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 监控录像调用(内部)
*/
@Override
public List<SchoolVideoConsultVo> selectSchoolVideoConsultList(SchoolVideoConsultVo schoolVideoConsultVo)
{
return schoolVideoConsultMapper.selectSchoolVideoConsultList(schoolVideoConsultVo);
}
/**
* 新增监控录像调用(内部)
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 结果
*/
@Override
public int insertSchoolVideoConsult(SchoolVideoConsultVo schoolVideoConsultVo)
{
schoolVideoConsultVo.setCreateTime(DateUtils.getNowDate());
return schoolVideoConsultMapper.insertSchoolVideoConsult(schoolVideoConsultVo);
}
/**
* 修改监控录像调用(内部)
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 结果
*/
@Override
public int updateSchoolVideoConsult(SchoolVideoConsultVo schoolVideoConsultVo)
{
schoolVideoConsultVo.setUpdateTime(DateUtils.getNowDate());
return schoolVideoConsultMapper.updateSchoolVideoConsult(schoolVideoConsultVo);
}
/**
* 批量删除监控录像调用(内部)
*
* @param ids 需要删除的监控录像调用(内部)主键
* @return 结果
*/
@Override
public int deleteSchoolVideoConsultByIds(Long[] ids)
{
return schoolVideoConsultMapper.deleteSchoolVideoConsultByIds(ids);
}
/**
* 删除监控录像调用(内部)信息
*
* @param id 监控录像调用(内部)主键
* @return 结果
*/
@Override
public int deleteSchoolVideoConsultById(Long id)
{
return schoolVideoConsultMapper.deleteSchoolVideoConsultById(id);
}
}
package yangtz.cs.liu.campus.service.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.IService;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleInOut;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVehicleInOutVo;
import java.util.List;
/**
* 车辆出入登记Service接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface ISchoolVehicleInOutService extends IService<SchoolVehicleInOut>
{
/**
* 查询车辆出入登记
*
* @param id 车辆出入登记主键
* @return 车辆出入登记
*/
public SchoolVehicleInOutVo selectSchoolVehicleInOutById(Long id);
/**
* 查询车辆出入登记列表
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 车辆出入登记集合
*/
public List<SchoolVehicleInOutVo> selectSchoolVehicleInOutList(SchoolVehicleInOutVo schoolVehicleInOutVo);
/**
* 新增车辆出入登记
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 结果
*/
public int insertSchoolVehicleInOut(SchoolVehicleInOutVo schoolVehicleInOutVo);
/**
* 修改车辆出入登记
*
* @param schoolVehicleInOutVo 车辆出入登记
* @return 结果
*/
public int updateSchoolVehicleInOut(SchoolVehicleInOutVo schoolVehicleInOutVo);
/**
* 批量删除车辆出入登记
*
* @param ids 需要删除的车辆出入登记主键集合
* @return 结果
*/
public int deleteSchoolVehicleInOutByIds(Long[] ids);
/**
* 删除车辆出入登记信息
*
* @param id 车辆出入登记主键
* @return 结果
*/
public int deleteSchoolVehicleInOutById(Long id);
}
package yangtz.cs.liu.campus.service.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.IService;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVehicleRegistration;
import java.util.List;
/**
* 车辆登记Service接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface ISchoolVehicleRegistrationService extends IService<SchoolVehicleRegistration>
{
/**
* 查询车辆登记
*
* @param id 车辆登记主键
* @return 车辆登记
*/
public SchoolVehicleRegistration selectSchoolVehicleRegistrationById(Long id);
/**
* 查询车辆登记列表
*
* @param schoolVehicleRegistration 车辆登记
* @return 车辆登记集合
*/
public List<SchoolVehicleRegistration> selectSchoolVehicleRegistrationList(SchoolVehicleRegistration schoolVehicleRegistration);
/**
* 新增车辆登记
*
* @param schoolVehicleRegistration 车辆登记
* @return 结果
*/
public int insertSchoolVehicleRegistration(SchoolVehicleRegistration schoolVehicleRegistration);
/**
* 修改车辆登记
*
* @param schoolVehicleRegistration 车辆登记
* @return 结果
*/
public int updateSchoolVehicleRegistration(SchoolVehicleRegistration schoolVehicleRegistration);
/**
* 批量删除车辆登记
*
* @param ids 需要删除的车辆登记主键集合
* @return 结果
*/
public int deleteSchoolVehicleRegistrationByIds(Long[] ids);
/**
* 删除车辆登记信息
*
* @param id 车辆登记主键
* @return 结果
*/
public int deleteSchoolVehicleRegistrationById(Long id);
}
package yangtz.cs.liu.campus.service.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.IService;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsultExternal;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultExternalVo;
import java.util.List;
/**
* 监控调阅(外部)Service接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface ISchoolVideoConsultExternalService extends IService<SchoolVideoConsultExternal>
{
/**
* 查询监控调阅(外部)
*
* @param id 监控调阅(外部)主键
* @return 监控调阅(外部)
*/
public SchoolVideoConsultExternalVo selectSchoolVideoConsultExternalById(Long id);
/**
* 查询监控调阅(外部)列表
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 监控调阅(外部)集合
*/
public List<SchoolVideoConsultExternalVo> selectSchoolVideoConsultExternalList(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo);
/**
* 新增监控调阅(外部)
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 结果
*/
public int insertSchoolVideoConsultExternal(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo);
/**
* 修改监控调阅(外部)
*
* @param schoolVideoConsultExternalVo 监控调阅(外部)
* @return 结果
*/
public int updateSchoolVideoConsultExternal(SchoolVideoConsultExternalVo schoolVideoConsultExternalVo);
/**
* 批量删除监控调阅(外部)
*
* @param ids 需要删除的监控调阅(外部)主键集合
* @return 结果
*/
public int deleteSchoolVideoConsultExternalByIds(Long[] ids);
/**
* 删除监控调阅(外部)信息
*
* @param id 监控调阅(外部)主键
* @return 结果
*/
public int deleteSchoolVideoConsultExternalById(Long id);
}
package yangtz.cs.liu.campus.service.schoolSecurity;
import com.baomidou.mybatisplus.extension.service.IService;
import yangtz.cs.liu.campus.domain.schoolSecurity.SchoolVideoConsult;
import yangtz.cs.liu.campus.vo.schoolSecurity.SchoolVideoConsultVo;
import java.util.List;
/**
* 监控录像调用(内部)Service接口
*
* @author ruoyi
* @date 2023-09-11
*/
public interface ISchoolVideoConsultService extends IService<SchoolVideoConsult>
{
/**
* 查询监控录像调用(内部)
*
* @param id 监控录像调用(内部)主键
* @return 监控录像调用(内部)
*/
public SchoolVideoConsultVo selectSchoolVideoConsultById(Long id);
/**
* 查询监控录像调用(内部)列表
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 监控录像调用(内部)集合
*/
public List<SchoolVideoConsultVo> selectSchoolVideoConsultList(SchoolVideoConsultVo schoolVideoConsultVo);
/**
* 新增监控录像调用(内部)
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 结果
*/
public int insertSchoolVideoConsult(SchoolVideoConsultVo schoolVideoConsultVo);
/**
* 修改监控录像调用(内部)
*
* @param schoolVideoConsultVo 监控录像调用(内部)
* @return 结果
*/
public int updateSchoolVideoConsult(SchoolVideoConsultVo schoolVideoConsultVo);
/**
* 批量删除监控录像调用(内部)
*
* @param ids 需要删除的监控录像调用(内部)主键集合
* @return 结果
*/
public int deleteSchoolVideoConsultByIds(Long[] ids);
/**
* 删除监控录像调用(内部)信息
*
* @param id 监控录像调用(内部)主键
* @return 结果
*/
public int deleteSchoolVideoConsultById(Long id);
}
package yangtz.cs.liu.campus.vo.schoolSecurity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import java.util.Date;
@Data
public class SchoolVehicleInOutVo extends BaseEntity
{
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/** 流程实例id */
private String instanceId;
/** 用户id */
private Long userId;
/** 用户名称 */
private String userName;
/** 联系电话 */
private Long phone;
/** 工作性质(1在编,2合同制,3代课,4其他) */
private String jobNature;
/** 预计在校工作开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
private Date workStartTime;
/** 预计在校工作结束时间 */
private String workEndTime;
/** 预计在校工作时间 */
private String workTime;
/** 现申请登记车号 */
private String applyLicenseNumber;
/** 车辆品牌 */
private String brand;
/** 车型 */
private String carType;
/** 已登记车辆车号 */
private String oldLicenseNumber;
/** 已登记车辆是否保留(1是,0否) */
private String isRetain;
/** 申请人id */
private Long applyUserId;
/** 申请人 */
private String applyUser;
/** 申请时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
/** 申请人类型((0教工 1职工)) */
private String applyType;
/** 状态(0未提交,1级部/处室审核,2分管领导审核,3已结束) */
private String state;
/** 申请人级部/处室id */
private Long applyOrgid;
/** 申请人级部/处室 */
private String applyOrgname;
/** 审批人id1 */
private Long handUserId1;
/** 审批人1 */
private String handUserName1;
/** 审批人1意见 */
private String handUserOpinion1;
/** 审批人1签名是否显示(1是,0否) */
private String isSign1;
/** 审批人id2 */
private Long handUserId2;
/** 审批人2 */
private String handUserName2;
/** 审批人2意见 */
private String handUserOpinion2;
/** 审批人2签名是否显示(1是,0否) */
private String isSign2;
}
package yangtz.cs.liu.campus.vo.schoolSecurity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import yangtz.cs.liu.campus.domain.accessory.SchoolAccessory;
import java.util.Date;
import java.util.List;
@Data
public class SchoolVideoConsultExternalVo extends BaseEntity
{
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/** 流程实例id */
private String instanceId;
/** 用户id */
private Long userId;
/** 姓名 */
private String userName;
/** 联系电话 */
private Long phone;
/** 身份证号 */
private String idCard;
/** 录像调用开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoStartTime;
/** 录像调用结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoEndTime;
/** 调取录像时间 */
private String videoTime;
/** 调阅位置 */
private String location;
/** 申请事由 */
private String applyReason;
/** 状态(0未提交,1信息技术中心负责人审核,2安保负责人审核,3安全管理中心负责人审核,4分管领导审核,5结束) */
private String state;
/** 申请人id */
private Long applyUserId;
/** 申请人 */
private String applyUser;
/** 申请时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
/** 审批人id1 */
private Long handUserId1;
/** 审批人1 */
private String handUserName1;
/** 审批人1意见 */
private String handUserOpinion1;
/** 审批人1签名是否显示(1是,0否) */
private String isSign1;
/** 审批人id2 */
private Long handUserId2;
/** 审批人2 */
private String handUserName2;
/** 审批人2意见 */
private String handUserOpinion2;
/** 审批人2签名是否显示(1是,0否) */
private String isSign2;
/** 审批人id3 */
private Long handUserId3;
/** 审批人3 */
private String handUserName3;
/** 审批人3意见 */
private String handUserOpinion3;
/** 审批人3签名是否显示(1是,0否) */
private String isSign3;
/** 审批人id4 */
private Long handUserId4;
/** 审批人4 */
private String handUserName4;
/** 审批人4意见 */
private String handUserOpinion4;
/** 审批人4签名是否显示(1是,0否) */
private String isSign4;
/** 调取结果 */
private String fetchResult;
/** 附件信息集合 */
private List<SchoolAccessory> schoolAccessoryList;
}
package yangtz.cs.liu.campus.vo.schoolSecurity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import java.util.Date;
@Data
public class SchoolVideoConsultVo extends BaseEntity
{
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/** 流程实例id */
private String instanceId;
/** 用户id */
private Long userId;
/** 用户名称 */
private String userName;
/** 联系电话 */
private Long phone;
/** 所在部门id */
private Long orgid;
/** 所在部门 */
private String orgname;
/** 录像调用开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoStartTime;
/** 录像调用结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
private Date videoEndTime;
/** 调取录像时间 */
private String videoTime;
/** 调阅位置 */
private String location;
/** 申请事由 */
private String applyReason;
/** 状态(0未提交,1级部/处室审核,2信息技术中心负责人审核,3安全管理中心负责人审核,4分管领导审核,5结束) */
private String state;
/** 申请人id */
private Long applyUserId;
/** 申请人 */
private String applyUser;
/** 申请部门id */
private Long applyOrgid;
/** 申请部门 */
private String applyOrgname;
/** 申请时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date applyTime;
/** 申请人类型(0教工 1职工) */
private String applyType;
/** 审批人id1 */
private Long handUserId1;
/** 审批人1 */
private String handUserName1;
/** 审批人1意见 */
private String handUserOpinion1;
/** 审批人1签名是否显示(1是,0否) */
private String isSign1;
/** 审批人id2 */
private Long handUserId2;
/** 审批人2 */
private String handUserName2;
/** 审批人2意见 */
private String handUserOpinion2;
/** 审批人2签名是否显示(1是,0否) */
private String isSign2;
/** 审批人id3 */
private Long handUserId3;
/** 审批人3 */
private String handUserName3;
/** 审批人3意见 */
private String handUserOpinion3;
/** 审批人3签名是否显示(1是,0否) */
private String isSign3;
/** 审批人id4 */
private Long handUserId4;
/** 审批人4 */
private String handUserName4;
/** 审批人4意见 */
private String handUserOpinion4;
/** 审批人4签名是否显示(1是,0否) */
private String isSign4;
/** 调取结果1 */
private String fetchResult1;
/** 调取结果2 */
private String fetchResult2;
}
<?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="yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVehicleInOutMapper">
<resultMap type="SchoolVehicleInOutVp" id="SchoolVehicleInOutVoResult">
<result property="id" column="id" />
<result property="instanceId" column="instance_id" />
<result property="userId" column="user_id" />
<result property="userName" column="user_name" />
<result property="phone" column="phone" />
<result property="jobNature" column="job_nature" />
<result property="workStartTime" column="work_start_time" />
<result property="workEndTime" column="work_end_time" />
<result property="applyLicenseNumber" column="apply_license_number" />
<result property="brand" column="brand" />
<result property="carType" column="car_type" />
<result property="oldLicenseNumber" column="old_license_number" />
<result property="isRetain" column="is_retain" />
<result property="applyUserId" column="apply_user_id" />
<result property="applyUser" column="apply_user" />
<result property="applyTime" column="apply_time" />
<result property="applyType" column="apply_type" />
<result property="state" column="state" />
<result property="applyOrgid" column="apply_orgid" />
<result property="applyOrgname" column="apply_orgname" />
<result property="handUserId1" column="hand_user_id1" />
<result property="handUserName1" column="hand_user_name1" />
<result property="handUserOpinion1" column="hand_user_opinion1" />
<result property="isSign1" column="is_sign1" />
<result property="handUserId2" column="hand_user_id2" />
<result property="handUserName2" column="hand_user_name2" />
<result property="handUserOpinion2" column="hand_user_opinion2" />
<result property="isSign2" column="is_sign2" />
<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="delFlag" column="del_flag" />
</resultMap>
<sql id="selectSchoolVehicleInOutVo">
select id, instance_id, user_id, user_name, phone, job_nature, work_start_time, work_end_time, apply_license_number, brand, car_type, old_license_number, is_retain, apply_user_id, apply_user, apply_time, apply_type, state, apply_orgid, apply_orgname, hand_user_id1, hand_user_name1, hand_user_opinion1, is_sign1, hand_user_id2, hand_user_name2, hand_user_opinion2, is_sign2, create_by, create_time, update_by, update_time, del_flag from school_vehicle_in_out
</sql>
<select id="selectSchoolVehicleInOutList" parameterType="SchoolVehicleInOutVo" resultMap="SchoolVehicleInOutVoResult">
<include refid="selectSchoolVehicleInOutVo"/>
<where>
<if test="instanceId != null and instanceId != ''"> and instance_id = #{instanceId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="phone != null "> and phone = #{phone}</if>
<if test="jobNature != null and jobNature != ''"> and job_nature = #{jobNature}</if>
<if test="workStartTime != null "> and work_start_time = #{workStartTime}</if>
<if test="workEndTime != null and workEndTime != ''"> and work_end_time = #{workEndTime}</if>
<if test="applyLicenseNumber != null and applyLicenseNumber != ''"> and apply_license_number = #{applyLicenseNumber}</if>
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
<if test="carType != null and carType != ''"> and car_type = #{carType}</if>
<if test="oldLicenseNumber != null and oldLicenseNumber != ''"> and old_license_number = #{oldLicenseNumber}</if>
<if test="isRetain != null and isRetain != ''"> and is_retain = #{isRetain}</if>
<if test="applyUserId != null "> and apply_user_id = #{applyUserId}</if>
<if test="applyUser != null and applyUser != ''"> and apply_user = #{applyUser}</if>
<if test="applyTime != null "> and apply_time = #{applyTime}</if>
<if test="applyType != null and applyType != ''"> and apply_type = #{applyType}</if>
<if test="state != null and state != ''"> and state = #{state}</if>
<if test="applyOrgid != null "> and apply_orgid = #{applyOrgid}</if>
<if test="applyOrgname != null and applyOrgname != ''"> and apply_orgname like concat('%', #{applyOrgname}, '%')</if>
<if test="handUserId1 != null "> and hand_user_id1 = #{handUserId1}</if>
<if test="handUserName1 != null and handUserName1 != ''"> and hand_user_name1 = #{handUserName1}</if>
<if test="handUserOpinion1 != null and handUserOpinion1 != ''"> and hand_user_opinion1 = #{handUserOpinion1}</if>
<if test="isSign1 != null and isSign1 != ''"> and is_sign1 = #{isSign1}</if>
<if test="handUserId2 != null "> and hand_user_id2 = #{handUserId2}</if>
<if test="handUserName2 != null and handUserName2 != ''"> and hand_user_name2 = #{handUserName2}</if>
<if test="handUserOpinion2 != null and handUserOpinion2 != ''"> and hand_user_opinion2 = #{handUserOpinion2}</if>
<if test="isSign2 != null and isSign2 != ''"> and is_sign2 = #{isSign2}</if>
</where>
</select>
<select id="selectSchoolVehicleInOutById" parameterType="Long" resultMap="SchoolVehicleInOutVoResult">
<include refid="selectSchoolVehicleInOutVo"/>
where id = #{id}
</select>
<insert id="insertSchoolVehicleInOut" parameterType="SchoolVehicleInOutVo" useGeneratedKeys="true" keyProperty="id">
insert into school_vehicle_in_out
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="instanceId != null">instance_id,</if>
<if test="userId != null">user_id,</if>
<if test="userName != null">user_name,</if>
<if test="phone != null">phone,</if>
<if test="jobNature != null">job_nature,</if>
<if test="workStartTime != null">work_start_time,</if>
<if test="workEndTime != null">work_end_time,</if>
<if test="applyLicenseNumber != null">apply_license_number,</if>
<if test="brand != null">brand,</if>
<if test="carType != null">car_type,</if>
<if test="oldLicenseNumber != null">old_license_number,</if>
<if test="isRetain != null">is_retain,</if>
<if test="applyUserId != null">apply_user_id,</if>
<if test="applyUser != null">apply_user,</if>
<if test="applyTime != null">apply_time,</if>
<if test="applyType != null">apply_type,</if>
<if test="state != null">state,</if>
<if test="applyOrgid != null">apply_orgid,</if>
<if test="applyOrgname != null">apply_orgname,</if>
<if test="handUserId1 != null">hand_user_id1,</if>
<if test="handUserName1 != null">hand_user_name1,</if>
<if test="handUserOpinion1 != null">hand_user_opinion1,</if>
<if test="isSign1 != null">is_sign1,</if>
<if test="handUserId2 != null">hand_user_id2,</if>
<if test="handUserName2 != null">hand_user_name2,</if>
<if test="handUserOpinion2 != null">hand_user_opinion2,</if>
<if test="isSign2 != null">is_sign2,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="instanceId != null">#{instanceId},</if>
<if test="userId != null">#{userId},</if>
<if test="userName != null">#{userName},</if>
<if test="phone != null">#{phone},</if>
<if test="jobNature != null">#{jobNature},</if>
<if test="workStartTime != null">#{workStartTime},</if>
<if test="workEndTime != null">#{workEndTime},</if>
<if test="applyLicenseNumber != null">#{applyLicenseNumber},</if>
<if test="brand != null">#{brand},</if>
<if test="carType != null">#{carType},</if>
<if test="oldLicenseNumber != null">#{oldLicenseNumber},</if>
<if test="isRetain != null">#{isRetain},</if>
<if test="applyUserId != null">#{applyUserId},</if>
<if test="applyUser != null">#{applyUser},</if>
<if test="applyTime != null">#{applyTime},</if>
<if test="applyType != null">#{applyType},</if>
<if test="state != null">#{state},</if>
<if test="applyOrgid != null">#{applyOrgid},</if>
<if test="applyOrgname != null">#{applyOrgname},</if>
<if test="handUserId1 != null">#{handUserId1},</if>
<if test="handUserName1 != null">#{handUserName1},</if>
<if test="handUserOpinion1 != null">#{handUserOpinion1},</if>
<if test="isSign1 != null">#{isSign1},</if>
<if test="handUserId2 != null">#{handUserId2},</if>
<if test="handUserName2 != null">#{handUserName2},</if>
<if test="handUserOpinion2 != null">#{handUserOpinion2},</if>
<if test="isSign2 != null">#{isSign2},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
</trim>
</insert>
<update id="updateSchoolVehicleInOut" parameterType="SchoolVehicleInOutVo">
update school_vehicle_in_out
<trim prefix="SET" suffixOverrides=",">
<if test="instanceId != null">instance_id = #{instanceId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="jobNature != null">job_nature = #{jobNature},</if>
<if test="workStartTime != null">work_start_time = #{workStartTime},</if>
<if test="workEndTime != null">work_end_time = #{workEndTime},</if>
<if test="applyLicenseNumber != null">apply_license_number = #{applyLicenseNumber},</if>
<if test="brand != null">brand = #{brand},</if>
<if test="carType != null">car_type = #{carType},</if>
<if test="oldLicenseNumber != null">old_license_number = #{oldLicenseNumber},</if>
<if test="isRetain != null">is_retain = #{isRetain},</if>
<if test="applyUserId != null">apply_user_id = #{applyUserId},</if>
<if test="applyUser != null">apply_user = #{applyUser},</if>
<if test="applyTime != null">apply_time = #{applyTime},</if>
<if test="applyType != null">apply_type = #{applyType},</if>
<if test="state != null">state = #{state},</if>
<if test="applyOrgid != null">apply_orgid = #{applyOrgid},</if>
<if test="applyOrgname != null">apply_orgname = #{applyOrgname},</if>
<if test="handUserId1 != null">hand_user_id1 = #{handUserId1},</if>
<if test="handUserName1 != null">hand_user_name1 = #{handUserName1},</if>
<if test="handUserOpinion1 != null">hand_user_opinion1 = #{handUserOpinion1},</if>
<if test="isSign1 != null">is_sign1 = #{isSign1},</if>
<if test="handUserId2 != null">hand_user_id2 = #{handUserId2},</if>
<if test="handUserName2 != null">hand_user_name2 = #{handUserName2},</if>
<if test="handUserOpinion2 != null">hand_user_opinion2 = #{handUserOpinion2},</if>
<if test="isSign2 != null">is_sign2 = #{isSign2},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<update id="deleteSchoolVehicleInOutById" parameterType="Long">
update school_vehicle_in_out set del_flag = '1' where id = #{id}
</update>
<update id="deleteSchoolVehicleInOutByIds" parameterType="String">
update school_vehicle_in_out set del_flag = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>
\ No newline at end of file
<?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="yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVehicleRegistrationMapper">
<resultMap type="SchoolVehicleRegistration" id="SchoolVehicleRegistrationResult">
<result property="id" column="id" />
<result property="userId" column="user_id" />
<result property="userName" column="user_name" />
<result property="jobNature" column="job_nature" />
<result property="licenseNumber" column="license_number" />
<result property="brand" column="brand" />
<result property="phone" column="phone" />
<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="remark1" column="remark1" />
<result property="remark2" column="remark2" />
<result property="remark3" column="remark3" />
<result property="remark4" column="remark4" />
<result property="remark5" column="remark5" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectSchoolVehicleRegistrationVo">
select id, user_id, user_name, job_nature, license_number, brand, phone, create_by, create_time, update_by, update_time, remark1, remark2, remark3, remark4, remark5, del_flag from school_vehicle_registration
</sql>
<select id="selectSchoolVehicleRegistrationList" parameterType="SchoolVehicleRegistration" resultMap="SchoolVehicleRegistrationResult">
<include refid="selectSchoolVehicleRegistrationVo"/>
<where>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="jobNature != null and jobNature != ''"> and job_nature = #{jobNature}</if>
<if test="licenseNumber != null and licenseNumber != ''"> and license_number = #{licenseNumber}</if>
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
<if test="phone != null "> and phone = #{phone}</if>
<if test="remark1 != null and remark1 != ''"> and remark1 = #{remark1}</if>
<if test="remark2 != null and remark2 != ''"> and remark2 = #{remark2}</if>
<if test="remark3 != null and remark3 != ''"> and remark3 = #{remark3}</if>
<if test="remark4 != null and remark4 != ''"> and remark4 = #{remark4}</if>
<if test="remark5 != null and remark5 != ''"> and remark5 = #{remark5}</if>
</where>
</select>
<select id="selectSchoolVehicleRegistrationById" parameterType="Long" resultMap="SchoolVehicleRegistrationResult">
<include refid="selectSchoolVehicleRegistrationVo"/>
where id = #{id}
</select>
<insert id="insertSchoolVehicleRegistration" parameterType="SchoolVehicleRegistration" useGeneratedKeys="true" keyProperty="id">
insert into school_vehicle_registration
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">user_id,</if>
<if test="userName != null">user_name,</if>
<if test="jobNature != null">job_nature,</if>
<if test="licenseNumber != null">license_number,</if>
<if test="brand != null">brand,</if>
<if test="phone != null">phone,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark1 != null">remark1,</if>
<if test="remark2 != null">remark2,</if>
<if test="remark3 != null">remark3,</if>
<if test="remark4 != null">remark4,</if>
<if test="remark5 != null">remark5,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userId != null">#{userId},</if>
<if test="userName != null">#{userName},</if>
<if test="jobNature != null">#{jobNature},</if>
<if test="licenseNumber != null">#{licenseNumber},</if>
<if test="brand != null">#{brand},</if>
<if test="phone != null">#{phone},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark1 != null">#{remark1},</if>
<if test="remark2 != null">#{remark2},</if>
<if test="remark3 != null">#{remark3},</if>
<if test="remark4 != null">#{remark4},</if>
<if test="remark5 != null">#{remark5},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
</trim>
</insert>
<update id="updateSchoolVehicleRegistration" parameterType="SchoolVehicleRegistration">
update school_vehicle_registration
<trim prefix="SET" suffixOverrides=",">
<if test="userId != null">user_id = #{userId},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="jobNature != null">job_nature = #{jobNature},</if>
<if test="licenseNumber != null">license_number = #{licenseNumber},</if>
<if test="brand != null">brand = #{brand},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark1 != null">remark1 = #{remark1},</if>
<if test="remark2 != null">remark2 = #{remark2},</if>
<if test="remark3 != null">remark3 = #{remark3},</if>
<if test="remark4 != null">remark4 = #{remark4},</if>
<if test="remark5 != null">remark5 = #{remark5},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSchoolVehicleRegistrationById" parameterType="Long">
delete from school_vehicle_registration where id = #{id}
</delete>
<delete id="deleteSchoolVehicleRegistrationByIds" parameterType="String">
delete from school_vehicle_registration where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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="yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVideoConsultExternalMapper">
<resultMap type="SchoolVideoConsultExternalVo" id="SchoolVideoConsultExternalVoResult">
<result property="id" column="id" />
<result property="instanceId" column="instance_id" />
<result property="userId" column="user_id" />
<result property="userName" column="user_name" />
<result property="phone" column="phone" />
<result property="idCard" column="id_card" />
<result property="videoStartTime" column="video_start_time" />
<result property="videoEndTime" column="video_end_time" />
<result property="location" column="location" />
<result property="applyReason" column="apply_reason" />
<result property="state" column="state" />
<result property="applyUserId" column="apply_user_id" />
<result property="applyUser" column="apply_user" />
<result property="applyTime" column="apply_time" />
<result property="handUserId1" column="hand_user_id1" />
<result property="handUserName1" column="hand_user_name1" />
<result property="handUserOpinion1" column="hand_user_opinion1" />
<result property="isSign1" column="is_sign1" />
<result property="handUserId2" column="hand_user_id2" />
<result property="handUserName2" column="hand_user_name2" />
<result property="handUserOpinion2" column="hand_user_opinion2" />
<result property="isSign2" column="is_sign2" />
<result property="handUserId3" column="hand_user_id3" />
<result property="handUserName3" column="hand_user_name3" />
<result property="handUserOpinion3" column="hand_user_opinion3" />
<result property="isSign3" column="is_sign3" />
<result property="handUserId4" column="hand_user_id4" />
<result property="handUserName4" column="hand_user_name4" />
<result property="handUserOpinion4" column="hand_user_opinion4" />
<result property="isSign4" column="is_sign4" />
<result property="fetchResult" column="fetch_result" />
<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="delFlag" column="del_flag" />
</resultMap>
<resultMap id="SchoolVideoConsultExternalSchoolAccessoryResult" type="SchoolVideoConsultExternalVo" extends="SchoolVideoConsultExternalVoResult">
<collection property="schoolAccessoryList" notNullColumn="sub_id" javaType="java.util.List" resultMap="SchoolAccessoryResult" />
</resultMap>
<resultMap type="SchoolAccessory" id="SchoolAccessoryResult">
<result property="id" column="sub_id" />
<result property="businessId" column="sub_business_id" />
<result property="moduleName" column="sub_module_name" />
<result property="accessoryType" column="sub_accessory_type" />
<result property="accessoryUrl" column="sub_accessory_url" />
<result property="accessoryName" column="sub_accessory_name" />
</resultMap>
<sql id="selectSchoolVideoConsultExternalVo">
select id, instance_id, user_id, user_name, phone, id_card, video_start_time, video_end_time, location, apply_reason, state, apply_user_id, apply_user, apply_time, hand_user_id1, hand_user_name1, hand_user_opinion1, is_sign1, hand_user_id2, hand_user_name2, hand_user_opinion2, is_sign2, hand_user_id3, hand_user_name3, hand_user_opinion3, is_sign3, hand_user_id4, hand_user_name4, hand_user_opinion4, is_sign4, fetch_result, create_by, create_time, update_by, update_time, del_flag from school_video_consult_external
</sql>
<select id="selectSchoolVideoConsultExternalList" parameterType="SchoolVideoConsultExternalVo" resultMap="SchoolVideoConsultExternalVoResult">
<include refid="selectSchoolVideoConsultExternalVo"/>
<where>
<if test="instanceId != null and instanceId != ''"> and instance_id = #{instanceId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="phone != null "> and phone = #{phone}</if>
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
<if test="videoStartTime != null "> and video_start_time = #{videoStartTime}</if>
<if test="videoEndTime != null "> and video_end_time = #{videoEndTime}</if>
<if test="location != null and location != ''"> and location = #{location}</if>
<if test="applyReason != null and applyReason != ''"> and apply_reason = #{applyReason}</if>
<if test="state != null and state != ''"> and state = #{state}</if>
<if test="applyUserId != null "> and apply_user_id = #{applyUserId}</if>
<if test="applyUser != null and applyUser != ''"> and apply_user = #{applyUser}</if>
<if test="applyTime != null "> and apply_time = #{applyTime}</if>
<if test="handUserId1 != null "> and hand_user_id1 = #{handUserId1}</if>
<if test="handUserName1 != null and handUserName1 != ''"> and hand_user_name1 = #{handUserName1}</if>
<if test="handUserOpinion1 != null and handUserOpinion1 != ''"> and hand_user_opinion1 = #{handUserOpinion1}</if>
<if test="isSign1 != null and isSign1 != ''"> and is_sign1 = #{isSign1}</if>
<if test="handUserId2 != null "> and hand_user_id2 = #{handUserId2}</if>
<if test="handUserName2 != null and handUserName2 != ''"> and hand_user_name2 = #{handUserName2}</if>
<if test="handUserOpinion2 != null and handUserOpinion2 != ''"> and hand_user_opinion2 = #{handUserOpinion2}</if>
<if test="isSign2 != null and isSign2 != ''"> and is_sign2 = #{isSign2}</if>
<if test="handUserId3 != null "> and hand_user_id3 = #{handUserId3}</if>
<if test="handUserName3 != null and handUserName3 != ''"> and hand_user_name3 = #{handUserName3}</if>
<if test="handUserOpinion3 != null and handUserOpinion3 != ''"> and hand_user_opinion3 = #{handUserOpinion3}</if>
<if test="isSign3 != null and isSign3 != ''"> and is_sign3 = #{isSign3}</if>
<if test="handUserId4 != null "> and hand_user_id4 = #{handUserId4}</if>
<if test="handUserName4 != null and handUserName4 != ''"> and hand_user_name4 = #{handUserName4}</if>
<if test="handUserOpinion4 != null and handUserOpinion4 != ''"> and hand_user_opinion4 = #{handUserOpinion4}</if>
<if test="isSign4 != null and isSign4 != ''"> and is_sign4 = #{isSign4}</if>
<if test="fetchResult != null and fetchResult != ''"> and fetch_result = #{fetchResult}</if>
</where>
</select>
<select id="selectSchoolVideoConsultExternalById" parameterType="Long" resultMap="SchoolVideoConsultExternalSchoolAccessoryResult">
select a.id, a.instance_id, a.user_id, a.user_name, a.phone, a.id_card, a.video_start_time, a.video_end_time, a.location, a.apply_reason, a.state, a.apply_user_id, a.apply_user, a.apply_time, a.hand_user_id1, a.hand_user_name1, a.hand_user_opinion1, a.is_sign1, a.hand_user_id2, a.hand_user_name2, a.hand_user_opinion2, a.is_sign2, a.hand_user_id3, a.hand_user_name3, a.hand_user_opinion3, a.is_sign3, a.hand_user_id4, a.hand_user_name4, a.hand_user_opinion4, a.is_sign4, a.fetch_result, a.create_by, a.create_time, a.update_by, a.update_time, a.del_flag,
b.id as sub_id, b.business_id as sub_business_id, b.module_name as sub_module_name, b.accessory_type as sub_accessory_type, b.accessory_url as sub_accessory_url, b.accessory_name as sub_accessory_name
from school_video_consult_external a
left join school_accessory b on b.business_id = a.id
where a.id = #{id}
</select>
<insert id="insertSchoolVideoConsultExternal" parameterType="SchoolVideoConsultExternalVo" useGeneratedKeys="true" keyProperty="id">
insert into school_video_consult_external
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="instanceId != null">instance_id,</if>
<if test="userId != null">user_id,</if>
<if test="userName != null">user_name,</if>
<if test="phone != null">phone,</if>
<if test="idCard != null">id_card,</if>
<if test="videoStartTime != null">video_start_time,</if>
<if test="videoEndTime != null">video_end_time,</if>
<if test="location != null">location,</if>
<if test="applyReason != null">apply_reason,</if>
<if test="state != null">state,</if>
<if test="applyUserId != null">apply_user_id,</if>
<if test="applyUser != null">apply_user,</if>
<if test="applyTime != null">apply_time,</if>
<if test="handUserId1 != null">hand_user_id1,</if>
<if test="handUserName1 != null">hand_user_name1,</if>
<if test="handUserOpinion1 != null">hand_user_opinion1,</if>
<if test="isSign1 != null">is_sign1,</if>
<if test="handUserId2 != null">hand_user_id2,</if>
<if test="handUserName2 != null">hand_user_name2,</if>
<if test="handUserOpinion2 != null">hand_user_opinion2,</if>
<if test="isSign2 != null">is_sign2,</if>
<if test="handUserId3 != null">hand_user_id3,</if>
<if test="handUserName3 != null">hand_user_name3,</if>
<if test="handUserOpinion3 != null">hand_user_opinion3,</if>
<if test="isSign3 != null">is_sign3,</if>
<if test="handUserId4 != null">hand_user_id4,</if>
<if test="handUserName4 != null">hand_user_name4,</if>
<if test="handUserOpinion4 != null">hand_user_opinion4,</if>
<if test="isSign4 != null">is_sign4,</if>
<if test="fetchResult != null">fetch_result,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="instanceId != null">#{instanceId},</if>
<if test="userId != null">#{userId},</if>
<if test="userName != null">#{userName},</if>
<if test="phone != null">#{phone},</if>
<if test="idCard != null">#{idCard},</if>
<if test="videoStartTime != null">#{videoStartTime},</if>
<if test="videoEndTime != null">#{videoEndTime},</if>
<if test="location != null">#{location},</if>
<if test="applyReason != null">#{applyReason},</if>
<if test="state != null">#{state},</if>
<if test="applyUserId != null">#{applyUserId},</if>
<if test="applyUser != null">#{applyUser},</if>
<if test="applyTime != null">#{applyTime},</if>
<if test="handUserId1 != null">#{handUserId1},</if>
<if test="handUserName1 != null">#{handUserName1},</if>
<if test="handUserOpinion1 != null">#{handUserOpinion1},</if>
<if test="isSign1 != null">#{isSign1},</if>
<if test="handUserId2 != null">#{handUserId2},</if>
<if test="handUserName2 != null">#{handUserName2},</if>
<if test="handUserOpinion2 != null">#{handUserOpinion2},</if>
<if test="isSign2 != null">#{isSign2},</if>
<if test="handUserId3 != null">#{handUserId3},</if>
<if test="handUserName3 != null">#{handUserName3},</if>
<if test="handUserOpinion3 != null">#{handUserOpinion3},</if>
<if test="isSign3 != null">#{isSign3},</if>
<if test="handUserId4 != null">#{handUserId4},</if>
<if test="handUserName4 != null">#{handUserName4},</if>
<if test="handUserOpinion4 != null">#{handUserOpinion4},</if>
<if test="isSign4 != null">#{isSign4},</if>
<if test="fetchResult != null">#{fetchResult},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateSchoolVideoConsultExternal" parameterType="SchoolVideoConsultExternalVo">
update school_video_consult_external
<trim prefix="SET" suffixOverrides=",">
<if test="instanceId != null">instance_id = #{instanceId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="idCard != null">id_card = #{idCard},</if>
<if test="videoStartTime != null">video_start_time = #{videoStartTime},</if>
<if test="videoEndTime != null">video_end_time = #{videoEndTime},</if>
<if test="location != null">location = #{location},</if>
<if test="applyReason != null">apply_reason = #{applyReason},</if>
<if test="state != null">state = #{state},</if>
<if test="applyUserId != null">apply_user_id = #{applyUserId},</if>
<if test="applyUser != null">apply_user = #{applyUser},</if>
<if test="applyTime != null">apply_time = #{applyTime},</if>
<if test="handUserId1 != null">hand_user_id1 = #{handUserId1},</if>
<if test="handUserName1 != null">hand_user_name1 = #{handUserName1},</if>
<if test="handUserOpinion1 != null">hand_user_opinion1 = #{handUserOpinion1},</if>
<if test="isSign1 != null">is_sign1 = #{isSign1},</if>
<if test="handUserId2 != null">hand_user_id2 = #{handUserId2},</if>
<if test="handUserName2 != null">hand_user_name2 = #{handUserName2},</if>
<if test="handUserOpinion2 != null">hand_user_opinion2 = #{handUserOpinion2},</if>
<if test="isSign2 != null">is_sign2 = #{isSign2},</if>
<if test="handUserId3 != null">hand_user_id3 = #{handUserId3},</if>
<if test="handUserName3 != null">hand_user_name3 = #{handUserName3},</if>
<if test="handUserOpinion3 != null">hand_user_opinion3 = #{handUserOpinion3},</if>
<if test="isSign3 != null">is_sign3 = #{isSign3},</if>
<if test="handUserId4 != null">hand_user_id4 = #{handUserId4},</if>
<if test="handUserName4 != null">hand_user_name4 = #{handUserName4},</if>
<if test="handUserOpinion4 != null">hand_user_opinion4 = #{handUserOpinion4},</if>
<if test="isSign4 != null">is_sign4 = #{isSign4},</if>
<if test="fetchResult != null">fetch_result = #{fetchResult},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<update id="deleteSchoolVideoConsultExternalById" parameterType="Long">
update school_video_consult_external set del_flag = '1' where id = #{id}
</update>
<update id="deleteSchoolVideoConsultExternalByIds" parameterType="String">
update school_video_consult_external set del_flag = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<delete id="deleteSchoolAccessoryByBusinessIds" parameterType="String">
delete from school_accessory where business_id in
<foreach item="businessId" collection="array" open="(" separator="," close=")">
#{businessId}
</foreach>
</delete>
<delete id="deleteSchoolAccessoryByBusinessId" parameterType="Long">
delete from school_accessory where business_id = #{businessId}
</delete>
<insert id="batchSchoolAccessory">
insert into school_accessory( id, business_id, module_name, accessory_type, accessory_url, accessory_name, create_by, create_time, update_by, update_time) values
<foreach item="item" index="index" collection="list" separator=",">
( 0, #{item.businessId}, #{item.moduleName}, #{item.accessoryType}, #{item.accessoryUrl}, #{item.accessoryName}, #{item.createBy}, #{item.createTime}, #{item.updateBy},#{item.updateTime})
</foreach>
</insert>
</mapper>
\ No newline at end of file
<?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="yangtz.cs.liu.campus.mapper.schoolSecurity.SchoolVideoConsultMapper">
<resultMap type="SchoolVideoConsultVo" id="SchoolVideoConsultVoResult">
<result property="id" column="id" />
<result property="instanceId" column="instance_id" />
<result property="userId" column="user_id" />
<result property="userName" column="user_name" />
<result property="phone" column="phone" />
<result property="orgid" column="orgid" />
<result property="orgname" column="orgname" />
<result property="videoStartTime" column="video_start_time" />
<result property="videoEndTime" column="video_end_time" />
<result property="location" column="location" />
<result property="applyReason" column="apply_reason" />
<result property="state" column="state" />
<result property="applyUserId" column="apply_user_id" />
<result property="applyUser" column="apply_user" />
<result property="applyOrgid" column="apply_orgid" />
<result property="applyOrgname" column="apply_orgname" />
<result property="applyTime" column="apply_time" />
<result property="applyType" column="apply_type" />
<result property="handUserId1" column="hand_user_id1" />
<result property="handUserName1" column="hand_user_name1" />
<result property="handUserOpinion1" column="hand_user_opinion1" />
<result property="isSign1" column="is_sign1" />
<result property="handUserId2" column="hand_user_id2" />
<result property="handUserName2" column="hand_user_name2" />
<result property="handUserOpinion2" column="hand_user_opinion2" />
<result property="isSign2" column="is_sign2" />
<result property="handUserId3" column="hand_user_id3" />
<result property="handUserName3" column="hand_user_name3" />
<result property="handUserOpinion3" column="hand_user_opinion3" />
<result property="isSign3" column="is_sign3" />
<result property="handUserId4" column="hand_user_id4" />
<result property="handUserName4" column="hand_user_name4" />
<result property="handUserOpinion4" column="hand_user_opinion4" />
<result property="isSign4" column="is_sign4" />
<result property="fetchResult1" column="fetch_result1" />
<result property="fetchResult2" column="fetch_result2" />
<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="delFlag" column="del_flag" />
</resultMap>
<sql id="selectSchoolVideoConsultVo">
select id, instance_id, user_id, user_name, phone, orgid, orgname, video_start_time, video_end_time, location, apply_reason, state, apply_user_id, apply_user, apply_orgid, apply_orgname, apply_time, apply_type, hand_user_id1, hand_user_name1, hand_user_opinion1, is_sign1, hand_user_id2, hand_user_name2, hand_user_opinion2, is_sign2, hand_user_id3, hand_user_name3, hand_user_opinion3, is_sign3, hand_user_id4, hand_user_name4, hand_user_opinion4, is_sign4, fetch_result1, fetch_result2, create_by, create_time, update_by, update_time, del_flag from school_video_consult
</sql>
<select id="selectSchoolVideoConsultList" parameterType="SchoolVideoConsultVo" resultMap="SchoolVideoConsultVoResult">
<include refid="selectSchoolVideoConsultVo"/>
<where>
<if test="instanceId != null and instanceId != ''"> and instance_id = #{instanceId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="phone != null "> and phone = #{phone}</if>
<if test="orgid != null "> and orgid = #{orgid}</if>
<if test="orgname != null and orgname != ''"> and orgname like concat('%', #{orgname}, '%')</if>
<if test="videoStartTime != null "> and video_start_time = #{videoStartTime}</if>
<if test="videoEndTime != null "> and video_end_time = #{videoEndTime}</if>
<if test="location != null and location != ''"> and location = #{location}</if>
<if test="applyReason != null and applyReason != ''"> and apply_reason = #{applyReason}</if>
<if test="state != null and state != ''"> and state = #{state}</if>
<if test="applyUserId != null "> and apply_user_id = #{applyUserId}</if>
<if test="applyUser != null and applyUser != ''"> and apply_user = #{applyUser}</if>
<if test="applyOrgid != null "> and apply_orgid = #{applyOrgid}</if>
<if test="applyOrgname != null and applyOrgname != ''"> and apply_orgname like concat('%', #{applyOrgname}, '%')</if>
<if test="applyTime != null "> and apply_time = #{applyTime}</if>
<if test="applyType != null and applyType != ''"> and apply_type = #{applyType}</if>
<if test="handUserId1 != null "> and hand_user_id1 = #{handUserId1}</if>
<if test="handUserName1 != null and handUserName1 != ''"> and hand_user_name1 = #{handUserName1}</if>
<if test="handUserOpinion1 != null and handUserOpinion1 != ''"> and hand_user_opinion1 = #{handUserOpinion1}</if>
<if test="isSign1 != null and isSign1 != ''"> and is_sign1 = #{isSign1}</if>
<if test="handUserId2 != null "> and hand_user_id2 = #{handUserId2}</if>
<if test="handUserName2 != null and handUserName2 != ''"> and hand_user_name2 = #{handUserName2}</if>
<if test="handUserOpinion2 != null and handUserOpinion2 != ''"> and hand_user_opinion2 = #{handUserOpinion2}</if>
<if test="isSign2 != null and isSign2 != ''"> and is_sign2 = #{isSign2}</if>
<if test="handUserId3 != null "> and hand_user_id3 = #{handUserId3}</if>
<if test="handUserName3 != null and handUserName3 != ''"> and hand_user_name3 = #{handUserName3}</if>
<if test="handUserOpinion3 != null and handUserOpinion3 != ''"> and hand_user_opinion3 = #{handUserOpinion3}</if>
<if test="isSign3 != null and isSign3 != ''"> and is_sign3 = #{isSign3}</if>
<if test="handUserId4 != null "> and hand_user_id4 = #{handUserId4}</if>
<if test="handUserName4 != null and handUserName4 != ''"> and hand_user_name4 = #{handUserName4}</if>
<if test="handUserOpinion4 != null and handUserOpinion4 != ''"> and hand_user_opinion4 = #{handUserOpinion4}</if>
<if test="isSign4 != null and isSign4 != ''"> and is_sign4 = #{isSign4}</if>
<if test="fetchResult1 != null and fetchResult1 != ''"> and fetch_result1 = #{fetchResult1}</if>
<if test="fetchResult2 != null and fetchResult2 != ''"> and fetch_result2 = #{fetchResult2}</if>
</where>
</select>
<select id="selectSchoolVideoConsultById" parameterType="Long" resultMap="SchoolVideoConsultVoResult">
<include refid="selectSchoolVideoConsultVo"/>
where id = #{id}
</select>
<insert id="insertSchoolVideoConsult" parameterType="SchoolVideoConsultVo" useGeneratedKeys="true" keyProperty="id">
insert into school_video_consult
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="instanceId != null">instance_id,</if>
<if test="userId != null">user_id,</if>
<if test="userName != null">user_name,</if>
<if test="phone != null">phone,</if>
<if test="orgid != null">orgid,</if>
<if test="orgname != null">orgname,</if>
<if test="videoStartTime != null">video_start_time,</if>
<if test="videoEndTime != null">video_end_time,</if>
<if test="location != null">location,</if>
<if test="applyReason != null">apply_reason,</if>
<if test="state != null">state,</if>
<if test="applyUserId != null">apply_user_id,</if>
<if test="applyUser != null">apply_user,</if>
<if test="applyOrgid != null">apply_orgid,</if>
<if test="applyOrgname != null">apply_orgname,</if>
<if test="applyTime != null">apply_time,</if>
<if test="applyType != null">apply_type,</if>
<if test="handUserId1 != null">hand_user_id1,</if>
<if test="handUserName1 != null">hand_user_name1,</if>
<if test="handUserOpinion1 != null">hand_user_opinion1,</if>
<if test="isSign1 != null">is_sign1,</if>
<if test="handUserId2 != null">hand_user_id2,</if>
<if test="handUserName2 != null">hand_user_name2,</if>
<if test="handUserOpinion2 != null">hand_user_opinion2,</if>
<if test="isSign2 != null">is_sign2,</if>
<if test="handUserId3 != null">hand_user_id3,</if>
<if test="handUserName3 != null">hand_user_name3,</if>
<if test="handUserOpinion3 != null">hand_user_opinion3,</if>
<if test="isSign3 != null">is_sign3,</if>
<if test="handUserId4 != null">hand_user_id4,</if>
<if test="handUserName4 != null">hand_user_name4,</if>
<if test="handUserOpinion4 != null">hand_user_opinion4,</if>
<if test="isSign4 != null">is_sign4,</if>
<if test="fetchResult1 != null">fetch_result1,</if>
<if test="fetchResult2 != null">fetch_result2,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="instanceId != null">#{instanceId},</if>
<if test="userId != null">#{userId},</if>
<if test="userName != null">#{userName},</if>
<if test="phone != null">#{phone},</if>
<if test="orgid != null">#{orgid},</if>
<if test="orgname != null">#{orgname},</if>
<if test="videoStartTime != null">#{videoStartTime},</if>
<if test="videoEndTime != null">#{videoEndTime},</if>
<if test="location != null">#{location},</if>
<if test="applyReason != null">#{applyReason},</if>
<if test="state != null">#{state},</if>
<if test="applyUserId != null">#{applyUserId},</if>
<if test="applyUser != null">#{applyUser},</if>
<if test="applyOrgid != null">#{applyOrgid},</if>
<if test="applyOrgname != null">#{applyOrgname},</if>
<if test="applyTime != null">#{applyTime},</if>
<if test="applyType != null">#{applyType},</if>
<if test="handUserId1 != null">#{handUserId1},</if>
<if test="handUserName1 != null">#{handUserName1},</if>
<if test="handUserOpinion1 != null">#{handUserOpinion1},</if>
<if test="isSign1 != null">#{isSign1},</if>
<if test="handUserId2 != null">#{handUserId2},</if>
<if test="handUserName2 != null">#{handUserName2},</if>
<if test="handUserOpinion2 != null">#{handUserOpinion2},</if>
<if test="isSign2 != null">#{isSign2},</if>
<if test="handUserId3 != null">#{handUserId3},</if>
<if test="handUserName3 != null">#{handUserName3},</if>
<if test="handUserOpinion3 != null">#{handUserOpinion3},</if>
<if test="isSign3 != null">#{isSign3},</if>
<if test="handUserId4 != null">#{handUserId4},</if>
<if test="handUserName4 != null">#{handUserName4},</if>
<if test="handUserOpinion4 != null">#{handUserOpinion4},</if>
<if test="isSign4 != null">#{isSign4},</if>
<if test="fetchResult1 != null">#{fetchResult1},</if>
<if test="fetchResult2 != null">#{fetchResult2},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
</trim>
</insert>
<update id="updateSchoolVideoConsult" parameterType="SchoolVideoConsultVo">
update school_video_consult
<trim prefix="SET" suffixOverrides=",">
<if test="instanceId != null">instance_id = #{instanceId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="orgid != null">orgid = #{orgid},</if>
<if test="orgname != null">orgname = #{orgname},</if>
<if test="videoStartTime != null">video_start_time = #{videoStartTime},</if>
<if test="videoEndTime != null">video_end_time = #{videoEndTime},</if>
<if test="location != null">location = #{location},</if>
<if test="applyReason != null">apply_reason = #{applyReason},</if>
<if test="state != null">state = #{state},</if>
<if test="applyUserId != null">apply_user_id = #{applyUserId},</if>
<if test="applyUser != null">apply_user = #{applyUser},</if>
<if test="applyOrgid != null">apply_orgid = #{applyOrgid},</if>
<if test="applyOrgname != null">apply_orgname = #{applyOrgname},</if>
<if test="applyTime != null">apply_time = #{applyTime},</if>
<if test="applyType != null">apply_type = #{applyType},</if>
<if test="handUserId1 != null">hand_user_id1 = #{handUserId1},</if>
<if test="handUserName1 != null">hand_user_name1 = #{handUserName1},</if>
<if test="handUserOpinion1 != null">hand_user_opinion1 = #{handUserOpinion1},</if>
<if test="isSign1 != null">is_sign1 = #{isSign1},</if>
<if test="handUserId2 != null">hand_user_id2 = #{handUserId2},</if>
<if test="handUserName2 != null">hand_user_name2 = #{handUserName2},</if>
<if test="handUserOpinion2 != null">hand_user_opinion2 = #{handUserOpinion2},</if>
<if test="isSign2 != null">is_sign2 = #{isSign2},</if>
<if test="handUserId3 != null">hand_user_id3 = #{handUserId3},</if>
<if test="handUserName3 != null">hand_user_name3 = #{handUserName3},</if>
<if test="handUserOpinion3 != null">hand_user_opinion3 = #{handUserOpinion3},</if>
<if test="isSign3 != null">is_sign3 = #{isSign3},</if>
<if test="handUserId4 != null">hand_user_id4 = #{handUserId4},</if>
<if test="handUserName4 != null">hand_user_name4 = #{handUserName4},</if>
<if test="handUserOpinion4 != null">hand_user_opinion4 = #{handUserOpinion4},</if>
<if test="isSign4 != null">is_sign4 = #{isSign4},</if>
<if test="fetchResult1 != null">fetch_result1 = #{fetchResult1},</if>
<if test="fetchResult2 != null">fetch_result2 = #{fetchResult2},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<update id="deleteSchoolVideoConsultById" parameterType="Long">
update school_video_consult set del_flag = '1' where id = #{id}
</update>
<update id="deleteSchoolVideoConsultByIds" parameterType="String">
update school_video_consult set del_flag = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment