jinpengyong
2023-11-13 607613b5d0e3fd237c04dbd2ae8a65bb143fe598
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
package com.moral.api.service;
 
import java.util.List;
import java.util.Map;
 
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.moral.api.entity.Allocation;
import com.moral.api.entity.AllocationLog;
import com.moral.api.entity.ResponsibilityUnit;
import com.moral.api.pojo.ext.allocation.AllocationExt;
import com.moral.api.pojo.ext.allocation.AllocationListExt;
import com.moral.api.pojo.ext.allocation.AllocationPageExt;
import com.moral.api.pojo.query.allocation.*;
import com.moral.api.pojo.query.allocationextension.AllocationExtensionAddCond;
import com.moral.api.pojo.query.app.AppAllocationFileCond;
import com.moral.api.pojo.query.app.AppAllocationPageCond;
import com.moral.api.pojo.vo.allocation.AllocationFindVo;
import com.moral.api.pojo.vo.app.AppAuthority;
 
public interface AllocationService extends IService<Allocation> {
 
    List<Map<String, Object>> sysDictData(String code);
 
    List<ResponsibilityUnit> seleteUnit();
 
    Integer insertAllocation(AllocationAddCond allocation);
 
    void updateAll(AllocationUpdateCond allocationUpdateCond);
 
    /**
     *  列表数据权限 0无权 空值,管理员
     * @return
     */
    List<Integer> unitResult();
 
    /**
     * 区域权限 是否是区域管理员 1,超级管理员2区域管理员0普通权限
     * 验证是否出现审批按钮
     * @return
     */
    Integer unitAreaCode();
 
    Map<String, Object> selectUnitView(Map<String,Object> map);
 
    List<Map<String,Object>> unitExel(Map<String,Object> map);
 
    Page<AllocationPageExt> extPage(AllocationPageCond allocationPageCond);
    /**
     * 根据id查询详情
     * @param id
     * @return AllocationExt
     */
    AllocationExt extOne(Integer id);
 
    /**
     * 单个详情
     * @param id
     * @return
     */
     AllocationExt oneAllocation(Integer id);
 
    /**
     * 整改
     * @param changeCond
     */
    void changeAllocation(AllocationChangeCond changeCond);
 
    /**
     * 审批
     * @param checkCond
     */
    void checkAllocation(AllocationCheckCond checkCond);
 
    /**
     * 删除
     * @param id
     * @return
     */
    boolean removeById(Integer id);
 
    /**
     * 作废
     * @param id
     * @param invalidReason
     * @return
     */
    boolean invalidResult (Integer id,String invalidReason);
 
    /**
     * 查询列表详情
     * @param allocationListCond
     * @return AllocationListExt
     */
    List<AllocationListExt> extList(AllocationListCond allocationListCond);
 
    /**
     * 延期申请
     * @param allocationExtensionAddCond
     * @return
     */
    boolean applyFor (AllocationExtensionAddCond allocationExtensionAddCond);
 
    /**
     * 小程序查询
     * @param state
     * @return
     */
    List<AllocationFindVo> selectSmallRoutine(Integer state,String startTime,String endTime);
 
    /**
     * 小程序分页
     * @param allocationPageCond
     * @return
     */
    Page<AllocationPageExt> pageApp(AppAllocationPageCond allocationPageCond);
 
    boolean saveFile(AppAllocationFileCond appAllocationFileCond);
 
    /**
     * 小程序整改
     * @param changeCond
     */
    void changeSmallRoutine(AllocationChangeCond changeCond);
 
 
 
    /**
     * 小程序审批
     * @param checkCond
     */
    void checkSmallRoutine(AllocationCheckCond checkCond);
 
    /**
     * 分享权限 1 可以看可以写  2.可以看不能写 3.都不能
     * @param allocationNum
     * @param userId
     * @return
     */
    AppAuthority authority(String allocationNum, Integer userId);
 
    /**
     * 修改责任单位
     * @param id
     * @param unitId
     */
    void updataUnit(Integer id,Integer unitId,Integer polluteType);
 
    /**
     * 查看修改记录
     * @param allocationNum
     * @return
     */
    List<AllocationLog> getLog(String allocationNum);
}