| | |
| | | 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)); |
| | | } |
| | |
| | | */ |
| | | 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); |
| | | } |
| | | } |
| | |
| | | @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()) |
| | |
| | | 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 |