| | |
| | | package com.panzhihua.service_grid.service.impl; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.grid.EventApplicationAppReleaseDetailsVO; |
| | | import com.panzhihua.common.model.vos.grid.EventApplicationAppReleaseVO; |
| | | import com.panzhihua.service_grid.dao.*; |
| | | import com.panzhihua.service_grid.model.dos.*; |
| | | import com.panzhihua.service_grid.dao.EventApplicationAppReleaseMapper; |
| | | import com.panzhihua.service_grid.model.dos.EventApplicationAppReleaseDO; |
| | | import com.panzhihua.service_grid.service.EventApplicationAppReleaseService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.beans.BeanUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | /** |
| | | * @auther lyq |
| | |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class EventApplicationAppReleaseServiceImpl extends ServiceImpl<EventApplicationAppReleaseMapper, EventApplicationAppReleaseDO> implements EventApplicationAppReleaseService { |
| | | public class EventApplicationAppReleaseServiceImpl |
| | | extends ServiceImpl<EventApplicationAppReleaseMapper, EventApplicationAppReleaseDO> |
| | | implements EventApplicationAppReleaseService { |
| | | |
| | | @Resource |
| | | private EventApplicationAppReleaseMapper eventApplicationAppReleaseMapper; |
| | | |
| | | /** |
| | | * 新增APP应用版本信息 |
| | | * |
| | | * @param eventApplicationAppReleaseAddDTO |
| | | * @return 新增结果 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 修改APP应用版本信息 |
| | | * |
| | | * @param eventApplicationAppReleaseEditDTO |
| | | * @return 维护结果 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 分页查找APP应用版本信息 |
| | | * |
| | | * @param pageEventApplicationAppReleaseDTO |
| | | * @return 维护结果 |
| | | */ |
| | | public R<IPage<EventApplicationAppReleaseVO>> query(PageEventApplicationAppReleaseDTO pageEventApplicationAppReleaseDTO){ |
| | | public R<IPage<EventApplicationAppReleaseVO>> |
| | | query(PageEventApplicationAppReleaseDTO pageEventApplicationAppReleaseDTO) { |
| | | Page page = new Page(1,10); |
| | | if(pageEventApplicationAppReleaseDTO.getPageNum()!=null) { |
| | | page.setCurrent(pageEventApplicationAppReleaseDTO.getPageNum()); |
| | |
| | | |
| | | /** |
| | | * 删除APP应用版本信息 |
| | | * |
| | | * @param EventApplicationAppReleaseDeleteDTO |
| | | * @return 平台用户信息 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询APP应用版本信息详细信息 |
| | | * @param id APP应用版本信息 id |
| | | * |
| | | * @param id |
| | | * APP应用版本信息 id |
| | | * @return 查找结果 |
| | | */ |
| | | public R<EventApplicationAppReleaseDetailsVO> eventApplicationAppReleaseDetails(Long id){ |
| | | EventApplicationAppReleaseDO eventApplicationAppReleaseDO = eventApplicationAppReleaseMapper.selectById(id); |
| | | if(eventApplicationAppReleaseDO!=null) { |
| | | EventApplicationAppReleaseDetailsVO eventApplicationAppReleaseDetailsVO = new EventApplicationAppReleaseDetailsVO(); |
| | | EventApplicationAppReleaseDetailsVO eventApplicationAppReleaseDetailsVO = |
| | | new EventApplicationAppReleaseDetailsVO(); |
| | | BeanUtils.copyProperties(eventApplicationAppReleaseDO, eventApplicationAppReleaseDetailsVO); |
| | | return R.ok(eventApplicationAppReleaseDetailsVO); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 获取最新版本信息 |
| | | * |
| | | * @return 版本信息 |
| | | */ |
| | | @Override |