洪城义警-正式版后台
zhongrj
2023-06-27 2ca9993b57bdd090c4345ea6767687e2fbb83014
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*
 *      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<TaskqdMapper, Taskqd> 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<Taskqd> selectList(Integer id) {
        return baseMapper.selectList(id);
    }
 
    @Override
    public List<Map<String, Object>> queryReceiver(String serid) {
        return baseMapper.queryReceiver(serid);
    }
    @Override
    public List<Map<String, Object>> taskCount(String id,String type) {
        return baseMapper.taskCount(id,type);
    }
 
    @Override
    public List<Map<String, Object>> allTask() {
        return baseMapper.allTask();
    }
    @Override
    public List<TaskqdVO> getlist(String id,String type) {
        return baseMapper.getlist(id,type);
    }
 
    @Override
    public List<TaskqdVO> selectLi(String type, String serid,String jurisdiction,String workjurisdiction,String tasktype) {
        return baseMapper.selectLi(type, serid,jurisdiction,workjurisdiction,tasktype);
    }
 
    @Override
    public List<Map<String, Object>> 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<Taskqd> 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<TaskqdVO> 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<TaskExcel> exportTask(TaskqdVO task) {
        return baseMapper.selectTaskList(task);
    }
}