Merge branch 'master' of http://42.193.1.25:9521/r/sccg_server
# Conflicts:
# ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/DisposeRecordServiceImpl.java
# ycl-platform/src/main/java/com/ycl/vo/casePool/CasePoolViolationVO.java
| | |
| | | import com.ycl.entity.user.UmsAdminLoginLog; |
| | | import com.ycl.entity.user.vo.UmsAdminLogVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 后台用户登录日志表 Mapper 接口 |
| | |
| | | */ |
| | | public interface UmsAdminLoginLogMapper extends BaseMapper<UmsAdminLoginLog> { |
| | | Page<UmsAdminLogVO> selectByCondition(Page<UmsAdminLogVO> umsAdminLogVOPage, LogQueryParams logQueryParams); |
| | | |
| | | List<UmsAdminLogVO> selectByCondition(LogQueryParams logQueryParams); |
| | | } |
| | |
| | | import com.ycl.entity.user.UmsAdminLoginLog; |
| | | import com.ycl.entity.user.vo.UmsAdminLogVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 后台用户登录日志表 服务类 |
| | |
| | | public interface IAdminLoginLogService extends IService<UmsAdminLoginLog> { |
| | | |
| | | Page<UmsAdminLogVO> pageList(LogQueryParams logQueryParams); |
| | | |
| | | List<UmsAdminLogVO> List(LogQueryParams logQueryParams); |
| | | } |
| | |
| | | Page<UmsAdminLogVO> umsAdminLogVOPage = new Page<UmsAdminLogVO>().setCurrent(logQueryParams.getCurrent()).setSize(logQueryParams.getSize()); |
| | | return umsAdminLoginLogMapper.selectByCondition(umsAdminLogVOPage,logQueryParams); |
| | | } |
| | | |
| | | @Override |
| | | public List<UmsAdminLogVO> List(LogQueryParams logQueryParams) { |
| | | return umsAdminLoginLogMapper.selectByCondition(logQueryParams); |
| | | } |
| | | } |
| | |
| | | @LogSave(operationType = "队伍建设管理", contain = "导出") |
| | | @ApiImplicitParams( |
| | | { |
| | | @ApiImplicitParam(name = "size", required = true, value = "页面数量"), |
| | | @ApiImplicitParam(name = "current", required = true, value = "页码"), |
| | | @ApiImplicitParam(name = "departName", value = "部门名称"), |
| | | @ApiImplicitParam(name = "status", value = "状态")} |
| | | ) |
| | | @SneakyThrows |
| | | public void export(@RequestParam() Integer size, |
| | | @RequestParam() Integer current, |
| | | @RequestParam(name = "departName", required = false) String departName, |
| | | @RequestParam(name = "status", required = false) Integer status, |
| | | HttpServletResponse response) { |
| | | public void export( |
| | | @RequestParam(name = "departName", required = false) String departName, |
| | | @RequestParam(name = "status", required = false) Integer status, |
| | | HttpServletResponse response) { |
| | | Integer isDelete = 0; |
| | | String sheetName = "数据"; |
| | | EasyExcelUtils.export(response, sheetName, TeamConstruction.class, iTeamConstructionService |
| | | .page(new Page<TeamConstruction>().setSize(size).setCurrent(current), new LambdaQueryWrapper<TeamConstruction>() |
| | | .list(new LambdaQueryWrapper<TeamConstruction>() |
| | | .like(StringUtils.isNotBlank(departName), TeamConstruction::getName, departName) |
| | | .eq(status != null, TeamConstruction::getStatus, status) |
| | | .eq(TeamConstruction::getIsDelete, isDelete)) |
| | | .getRecords()); |
| | | .eq(TeamConstruction::getIsDelete, isDelete))); |
| | | } |
| | | |
| | | |
| | |
| | | @SneakyThrows |
| | | @LogSave(operationType = "卡口管理", contain = "导出卡口") |
| | | public void export(HttpServletResponse response, |
| | | @RequestParam(required = false) Integer size, |
| | | @RequestParam(required = false) Integer current, |
| | | @RequestParam(required = false) String bayonetName) { |
| | | Page<EquipmentBayonet> equipmentBayonetPage = new Page<>(); |
| | | equipmentBayonetPage.setCurrent(current); |
| | | equipmentBayonetPage.setSize(size); |
| | | EasyExcelUtils.export(response, "数据", EquipmentBayonetVO.class, iEquipmentBayonetService.selectEquipmentPage(equipmentBayonetPage, bayonetName).getRecords()); |
| | | EasyExcelUtils.export(response, "数据", EquipmentBayonetVO.class, iEquipmentBayonetService.selectEquipmentList(bayonetName)); |
| | | } |
| | | } |
| | |
| | | |
| | | Page<QueryForViolationVO> selectViolationPage(Page<QueryForViolationVO> setCurrent, QueryForViolationParam queryForViolationParam); |
| | | |
| | | List<QueryForViolationVO> selectViolationPage(QueryForViolationParam queryForViolationParam); |
| | | |
| | | Page<BaseCaseVO> selectVideoInspection(Page<Object> objectPage); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.vo.equipment.EquipmentBayonetVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 卡口管理 Mapper 接口 |
| | |
| | | public interface EquipmentBayonetMapper extends BaseMapper<EquipmentBayonet> { |
| | | |
| | | Page<EquipmentBayonetVO> selectEquipmentPage(Page<EquipmentBayonet> equipmentBayonetPage, String bayonetName); |
| | | |
| | | List<EquipmentBayonetVO> selectEquipmentPage(String bayonetName); |
| | | } |
| | |
| | | |
| | | Page<QueryForViolationVO> selectViolation(QueryForViolationParam queryForViolationParam); |
| | | |
| | | List<QueryForViolationVO> selectViolationList(QueryForViolationParam queryForViolationParam); |
| | | |
| | | Page<BaseCaseVO> selectVideoInspection(Integer current); |
| | | |
| | | Map<String,Object> selectCount(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<QueryForViolationVO> selectViolationList(QueryForViolationParam queryForViolationParam) { |
| | | return baseCaseMapper.selectViolationPage(queryForViolationParam); |
| | | } |
| | | |
| | | @Override |
| | | public Page<BaseCaseVO> selectVideoInspection(Integer current) { |
| | | return baseCaseMapper.selectVideoInspection(new Page<>(current, 1)); |
| | | } |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean saveOrUpdateUpload(UploadDisposingResultParam uploadDisposingResultParam) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | ArrivalSituation arrivalSituationed = iArrivalSituationService.getOne(new LambdaQueryWrapper<ArrivalSituation>().eq(ArrivalSituation::getBaseCaseId, uploadDisposingResultParam.getCaseId())); |
| | | if (arrivalSituationed != null) { |
| | | List<ArrivalSituation> list = iArrivalSituationService.list(new LambdaQueryWrapper<ArrivalSituation>().eq(ArrivalSituation::getBaseCaseId, uploadDisposingResultParam.getCaseId())); |
| | | if (!list.isEmpty()) { |
| | | //当事人 |
| | | PartyInfo partyInfo = new PartyInfo(); |
| | | if (StringUtils.isNotEmpty(uploadDisposingResultParam.getName())) { |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, partyInfo); |
| | | partyInfo.setId(uploadDisposingResultParam.getPartyInfoId()); |
| | | iPartyInfoService.updateById(partyInfo); |
| | | } |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, partyInfo); |
| | | partyInfo.setId(uploadDisposingResultParam.getPartyInfoId()); |
| | | iPartyInfoService.updateById(partyInfo); |
| | | //调查取证 |
| | | Investigation investigation = new Investigation(); |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, investigation); |
| | |
| | | } else { |
| | | //当事人 |
| | | PartyInfo partyInfo = new PartyInfo(); |
| | | if (StringUtils.isNotEmpty(uploadDisposingResultParam.getName())) { |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, partyInfo); |
| | | partyInfo.setCreateUser(user.getUserId().intValue()); |
| | | partyInfo.setCreateTime(LocalDateTime.now()); |
| | | iPartyInfoService.save(partyInfo); |
| | | } |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, partyInfo); |
| | | partyInfo.setCreateUser(user.getUserId().intValue()); |
| | | partyInfo.setCreateTime(LocalDateTime.now()); |
| | | iPartyInfoService.save(partyInfo); |
| | | //调查取证 |
| | | Investigation investigation = new Investigation(); |
| | | BeanUtils.copyProperties(uploadDisposingResultParam, investigation); |
| | |
| | | writ.setIllegalBuildingId(uploadDisposingResultParam.getCaseId()); |
| | | writ.setCreateTime(LocalDateTime.now()); |
| | | writ.setCreateUser(user.getUserId()); |
| | | DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | writ.setLimitTime(LocalDateTime.parse(uploadDisposingResultParam.getLimitTime(), dtf)); |
| | | writ.setRectifyTime(LocalDateTime.parse(uploadDisposingResultParam.getRectifyTime(), dtf)); |
| | | writ.setSendTime(LocalDateTime.parse(uploadDisposingResultParam.getSendTime(), dtf)); |
| | | writ.setLimitTime(LocalDateTime.parse(uploadDisposingResultParam.getLimitTime(), DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"))); |
| | | writ.setRectifyTime(LocalDateTime.parse(uploadDisposingResultParam.getRectifyTime(), DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"))); |
| | | writ.setSendTime(LocalDateTime.parse(uploadDisposingResultParam.getSendTime(), DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"))); |
| | | iWritService.save(writ); |
| | | imageResources.setUrl(StringUtils |
| | | .joinWith(",", uploadDisposingResultParam.getPic() |
| | |
| | | */ |
| | | public interface IEquipmentBayonetService extends IService<EquipmentBayonet> { |
| | | Page<EquipmentBayonetVO> selectEquipmentPage(Page<EquipmentBayonet> equipmentBayonetPage, String bayonetName); |
| | | |
| | | List<EquipmentBayonetVO> selectEquipmentList(String bayonetName); |
| | | } |
| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public Page<EquipmentBayonetVO> selectEquipmentPage(Page<EquipmentBayonet> equipmentBayonetPage, String bayonetName) { |
| | | return equipmentBayonetMapper.selectEquipmentPage(equipmentBayonetPage, bayonetName); |
| | | } |
| | | |
| | | @Override |
| | | public List<EquipmentBayonetVO> selectEquipmentList(String bayonetName) { |
| | | return equipmentBayonetMapper.selectEquipmentPage(bayonetName); |
| | | } |
| | | } |
| | |
| | | import com.ycl.entity.message.Message; |
| | | import com.ycl.entity.message.SendReq; |
| | | import com.ycl.entity.message.SendRes; |
| | | import com.ycl.entity.user.UmsAdmin; |
| | | import com.ycl.exception.ApiException; |
| | | import com.ycl.mapper.message.MessageMapper; |
| | | import com.ycl.mapper.user.UmsAdminMapper; |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public String sendMessage(Message message) { |
| | | |
| | | Message savedMessage = messageMapper.selectOne(new LambdaQueryWrapper<Message>() |
| | | .eq(Message::getTargetTo, message.getTargetTo()) |
| | | .eq(Message::getTargetFrom, message.getTargetFrom()) |
| | |
| | | } |
| | | |
| | | ArrayList<Long> ids = new ArrayList<>(); |
| | | |
| | | message.setTargetFrom(umsAdminMapper.selectById(message.getCreateUser()).getUsername()); |
| | | for (String receive : message.getTargetTo().split(",")) { |
| | | Message sendMessage = new Message(); |
| | | BeanUtils.copyProperties(message, sendMessage); |
| | |
| | | public IPage<SmsTemplate> list(SmsTemplate smsTemplate) { |
| | | Page<SmsTemplate> page = new Page<>(smsTemplate.getCurrent(), smsTemplate.getPageSize()); |
| | | LambdaQueryWrapper<SmsTemplate> queryWrapper = new LambdaQueryWrapper<>(); |
| | | if (CommonUtils.isNotEmpty(smsTemplate.getType())) { |
| | | if (CommonUtils.isNotEmpty(smsTemplate.getType()) && smsTemplate.getType()!=0) { |
| | | queryWrapper.eq(SmsTemplate::getType, smsTemplate.getType()); |
| | | } |
| | | if (CommonUtils.isNotEmpty(smsTemplate.getTitle())) { |
| | | queryWrapper.eq(SmsTemplate::getTitle, smsTemplate.getTitle()); |
| | | if (!smsTemplate.getTitle().isEmpty()) { |
| | | queryWrapper.like(SmsTemplate::getTitle, smsTemplate.getTitle()); |
| | | } |
| | | Page<SmsTemplate> result = baseMapper.selectPage(page, queryWrapper); |
| | | return result; |
| | |
| | | package com.ycl.vo.casePool; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @ApiModel("案件池违建立案件") |
| | |
| | | * 报警时间 |
| | | */ |
| | | @ApiModelProperty(value = "报警时间") |
| | | <<<<<<< .mine |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
| | | ======= |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | >>>>>>> .theirs |
| | | private LocalDateTime alarmTime; |
| | | |
| | | |
| | |
| | | * 关闭时间 |
| | | */ |
| | | @ApiModelProperty(value = "关闭时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime closeTime; |
| | | } |
| | |
| | | apId: 1 |
| | | sign: sign |
| | | url: http://localhost:8082/sccg/text/sms_res |
| | | |
| | | point: |
| | | severIpAddress: http://localhost:8082/sccg/text/point |
| | | username: text |
| | | password: 123456 |
| | | sendIp: 192.168.3.137 |
| | | os: WinPc |