wl
2022-11-29 6eda06a4aa05de19ceaa37821810e3b2e2ea9897
fix: 导出不要传参
13个文件已修改
65 ■■■■■ 已修改文件
ycl-common/src/main/java/com/ycl/mapper/user/UmsAdminLoginLogMapper.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-common/src/main/java/com/ycl/service/user/IAdminLoginLogService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-common/src/main/java/com/ycl/service/user/impl/AdminLoginLogServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/controller/epuipment/EquipmentBayonetController.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/mapper/caseHandler/BaseCaseMapper.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/mapper/equipment/EquipmentBayonetMapper.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/caseHandler/IBaseCaseService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/equipment/IEquipmentBayonetService.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/equipment/impl/EquipmentBayonetServiceImpl.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/java/com/ycl/service/message/impl/MessageServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-platform/src/main/resources/application-dev.yml 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-common/src/main/java/com/ycl/mapper/user/UmsAdminLoginLogMapper.java
@@ -6,6 +6,8 @@
import com.ycl.entity.user.UmsAdminLoginLog;
import com.ycl.entity.user.vo.UmsAdminLogVO;
import java.util.List;
/**
 * <p>
 * 后台用户登录日志表 Mapper 接口
@@ -13,4 +15,6 @@
 */
public interface UmsAdminLoginLogMapper extends BaseMapper<UmsAdminLoginLog> {
    Page<UmsAdminLogVO> selectByCondition(Page<UmsAdminLogVO> umsAdminLogVOPage, LogQueryParams logQueryParams);
    List<UmsAdminLogVO> selectByCondition(LogQueryParams logQueryParams);
}
ycl-common/src/main/java/com/ycl/service/user/IAdminLoginLogService.java
@@ -6,6 +6,8 @@
import com.ycl.entity.user.UmsAdminLoginLog;
import com.ycl.entity.user.vo.UmsAdminLogVO;
import java.util.List;
/**
 * <p>
 * 后台用户登录日志表 服务类
@@ -17,4 +19,6 @@
public interface IAdminLoginLogService extends IService<UmsAdminLoginLog> {
    Page<UmsAdminLogVO> pageList(LogQueryParams logQueryParams);
    List<UmsAdminLogVO> List(LogQueryParams logQueryParams);
}
ycl-common/src/main/java/com/ycl/service/user/impl/AdminLoginLogServiceImpl.java
@@ -31,4 +31,9 @@
        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);
    }
}
ycl-platform/src/main/java/com/ycl/controller/cockpit/teamConstruction/TeamConstructionController.java
@@ -92,25 +92,21 @@
    @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)));
    }
ycl-platform/src/main/java/com/ycl/controller/epuipment/EquipmentBayonetController.java
@@ -78,12 +78,7 @@
    @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));
    }
}
ycl-platform/src/main/java/com/ycl/mapper/caseHandler/BaseCaseMapper.java
@@ -34,5 +34,7 @@
    Page<QueryForViolationVO> selectViolationPage(Page<QueryForViolationVO> setCurrent, QueryForViolationParam queryForViolationParam);
    List<QueryForViolationVO> selectViolationPage(QueryForViolationParam queryForViolationParam);
    Page<BaseCaseVO> selectVideoInspection(Page<Object> objectPage);
}
ycl-platform/src/main/java/com/ycl/mapper/equipment/EquipmentBayonetMapper.java
@@ -5,6 +5,8 @@
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycl.vo.equipment.EquipmentBayonetVO;
import java.util.List;
/**
 * <p>
 * 卡口管理 Mapper 接口
@@ -16,4 +18,6 @@
public interface EquipmentBayonetMapper extends BaseMapper<EquipmentBayonet> {
    Page<EquipmentBayonetVO> selectEquipmentPage(Page<EquipmentBayonet> equipmentBayonetPage, String bayonetName);
    List<EquipmentBayonetVO> selectEquipmentPage(String bayonetName);
}
ycl-platform/src/main/java/com/ycl/service/caseHandler/IBaseCaseService.java
@@ -60,6 +60,8 @@
    Page<QueryForViolationVO> selectViolation(QueryForViolationParam queryForViolationParam);
    List<QueryForViolationVO> selectViolationList(QueryForViolationParam queryForViolationParam);
    Page<BaseCaseVO> selectVideoInspection(Integer current);
    Map<String,Object> selectCount();
ycl-platform/src/main/java/com/ycl/service/caseHandler/impl/BaseCaseServiceImpl.java
@@ -389,6 +389,11 @@
    }
    @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));
    }
ycl-platform/src/main/java/com/ycl/service/equipment/IEquipmentBayonetService.java
@@ -17,4 +17,6 @@
 */
public interface IEquipmentBayonetService extends IService<EquipmentBayonet> {
    Page<EquipmentBayonetVO> selectEquipmentPage(Page<EquipmentBayonet> equipmentBayonetPage, String bayonetName);
    List<EquipmentBayonetVO> selectEquipmentList(String bayonetName);
}
ycl-platform/src/main/java/com/ycl/service/equipment/impl/EquipmentBayonetServiceImpl.java
@@ -9,6 +9,7 @@
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
 * <p>
@@ -28,4 +29,9 @@
    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);
    }
}
ycl-platform/src/main/java/com/ycl/service/message/impl/MessageServiceImpl.java
@@ -80,6 +80,7 @@
    @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())
ycl-platform/src/main/resources/application-dev.yml
@@ -64,10 +64,3 @@
  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