/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.springblade.modules.taskqd.service.impl; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springblade.modules.taskqd.entity.Taskqd; import org.springblade.modules.taskqd.excel.TaskExcel; import org.springblade.modules.taskqd.mapper.TaskqdMapper; import org.springblade.modules.taskqd.service.ITaskqdService; import org.springblade.modules.taskqd.vo.TaskqdVO; import org.springframework.stereotype.Service; import java.util.Date; import java.util.List; import java.util.Map; /** * 服务实现类 * * @author BladeX * @since 2020-08-06 */ @Service public class TaskqdServiceImpl extends ServiceImpl implements ITaskqdService { @Override public void updatet(Integer id, Integer num, String serid,String captain,String team) { baseMapper.updatet(id, num, serid,captain,team); } @Override public void updateRtype(String type,String rid) { baseMapper.updateRtype(type,rid); } @Override public Boolean updateSerid(String rid, String serid,String newteam,int newnum) { return baseMapper.updateSerid(rid,serid,newteam,newnum); } @Override public List selectList(Integer id) { return baseMapper.selectList(id); } @Override public List> queryReceiver(String serid) { return baseMapper.queryReceiver(serid); } @Override public List> taskCount(String id,String type) { return baseMapper.taskCount(id,type); } @Override public List> allTask() { return baseMapper.allTask(); } @Override public List getlist(String id,String type) { return baseMapper.getlist(id,type); } /** * 任务查询 * @param type 任务状态 0:未开始 1:正在进行 2:已完成 * @param serid 用户id * @param jurisdiction 辖区id * @param workjurisdiction 工作辖区 * @param tasktype 任务状态 * @return */ @Override public List selectLi(Integer type, String serid,String jurisdiction,String workjurisdiction,String tasktype) { return baseMapper.selectLi(type, serid,jurisdiction,workjurisdiction,tasktype); } @Override public List> selectNum(String serid, String jurisdiction,String workjurisdiction) { return baseMapper.selectNum(serid, jurisdiction,workjurisdiction); } @Override public String querySerid(String rid) { return baseMapper.querySerid(rid); } @Override public List countTaskByJur(String jurisdiction, String startTime, String period) { return baseMapper.countTaskByJur(jurisdiction,startTime,period); } @Override public int getRealTime(String hdid) { return baseMapper.getRealTime(hdid); } /** * 自定义分页查询 * @param taskqd * @param page * @return */ @Override public Object selectTaskQdPage(IPage page, TaskqdVO taskqd) { if (null!=taskqd.getIsPage()){ return baseMapper.selectTaskQdPage(null,taskqd); } return page.setRecords(baseMapper.selectTaskQdPage(page,taskqd)); } /** * 导出任务数据 * @param task * @return */ @Override public List exportTask(TaskqdVO task) { return baseMapper.selectTaskList(task); } }