Commit 50565778936409d19f2306eecdfa2c04afcf55a8
1 parent
7848a244
新增未成年人、户籍信息、特殊学校、学籍信息等相关文件
Showing
148 changed files
with
6983 additions
and
125 deletions
Too many changes.
To preserve performance only 100 of 148 files are displayed.
juvenile-prosecution-boot/jeecg-boot-base/jeecg-boot-base-core/target/classes/org/jeecg/common/constant/ProvinceCityArea.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-base/jeecg-boot-base-core/target/classes/org/jeecg/common/system/base/controller/JeecgController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-base/jeecg-boot-base-core/target/classes/org/jeecg/common/util/CommonUtils.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-base/jeecg-boot-base-tools/target/classes/org/jeecg/common/modules/redis/writer/JeecgRedisCacheWriter.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/pom.xml
... | ... | @@ -39,8 +39,13 @@ |
39 | 39 | <artifactId>jeewx-api</artifactId> |
40 | 40 | <version>1.4.2</version> |
41 | 41 | </dependency> |
42 | + <dependency> | |
43 | + <groupId>org.jeecgframework</groupId> | |
44 | + <artifactId>jeewx-api</artifactId> | |
45 | + <version>1.4.7</version> | |
46 | + </dependency> | |
42 | 47 | |
43 | - <!--<dependency>--> | |
48 | + <!--<dependency>--> | |
44 | 49 | <!--<groupId>org.jeecgframework.boot</groupId>--> |
45 | 50 | <!--<artifactId>jeecg-boot-module-demo</artifactId>--> |
46 | 51 | <!--<version>${jeecgboot.version}</version>--> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/AnalyzeController.java
0 → 100644
1 | +package org.jeecg.modules.system.controller; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
4 | +import io.swagger.annotations.Api; | |
5 | +import io.swagger.annotations.ApiOperation; | |
6 | +import lombok.extern.slf4j.Slf4j; | |
7 | +import org.jeecg.common.aspect.annotation.AutoLog; | |
8 | +import org.jeecg.common.system.base.controller.JeecgController; | |
9 | +import org.jeecg.common.util.oConvertUtils; | |
10 | +import org.jeecg.modules.system.entity.Family; | |
11 | +import org.jeecg.modules.system.entity.GaDemographic; | |
12 | +import org.jeecg.modules.system.entity.Minor; | |
13 | +import org.jeecg.modules.system.entity.SysDepart; | |
14 | +import org.jeecg.modules.system.service.*; | |
15 | +import org.jeecg.modules.system.util.IDNumberUtil; | |
16 | +import org.jeecg.modules.system.util.MultiThreadUtil; | |
17 | +import org.jeecg.modules.system.vo.FamilyVo; | |
18 | +import org.jeecg.modules.system.vo.GaPunishVo; | |
19 | +import org.jeecg.modules.system.vo.SpecialStudentVo; | |
20 | +import org.springframework.web.bind.annotation.*; | |
21 | + | |
22 | +import javax.annotation.Resource; | |
23 | +import java.util.ArrayList; | |
24 | +import java.util.List; | |
25 | +import java.util.concurrent.CountDownLatch; | |
26 | +import java.util.concurrent.ExecutorService; | |
27 | +import java.util.concurrent.Executors; | |
28 | + | |
29 | +/** | |
30 | +* @Description: 数据分析 | |
31 | +* @Author: jeecg-boot | |
32 | +* @Date: 2022-07-13 | |
33 | +* @Version: V1.0 | |
34 | +*/ | |
35 | +@Api(tags="数据分析") | |
36 | +@RestController | |
37 | +@RequestMapping("/sys/analyze") | |
38 | +@Slf4j | |
39 | +public class AnalyzeController extends JeecgController<GaDemographic, IGaDemographicService> { | |
40 | + @Resource | |
41 | + private IGaDemographicService gaDemographicService; | |
42 | + @Resource | |
43 | + private IGaHouseholdService gaHouseholdService; | |
44 | + @Resource | |
45 | + private ISysDepartService sysDepartService; | |
46 | + @Resource | |
47 | + private IGaPunishService gaPunishService; | |
48 | + @Resource | |
49 | + private IGaJuvenilesStayService gaJuvenilesStayService; | |
50 | + @Resource | |
51 | + private IMzAdoptionService mzAdoptionService; | |
52 | + @Resource | |
53 | + private IMzLeftBehindChildrenService mzLeftBehindChildrenService; | |
54 | + @Resource | |
55 | + private IMzOrphanService mzOrphanService; | |
56 | + @Resource | |
57 | + private IMzUnsupportedService mzUnsupportedService; | |
58 | + @Resource | |
59 | + private ISpecialStudentService specialStudentService; | |
60 | + @Resource | |
61 | + private IFamilyService familyService; | |
62 | + @Resource | |
63 | + private IMinorService minorService; | |
64 | + @Resource | |
65 | + private IMrSchoolService schoolService; | |
66 | + | |
67 | + private Integer queryNum=0; | |
68 | + private Integer pageSize=200000; | |
69 | + private List<GaPunishVo> gaPunishVos=new ArrayList<>(); | |
70 | + private List<Family> rasultFamily=new ArrayList<>();//分析后家庭的数据 | |
71 | + private List<Minor> rasultMinor=new ArrayList<>();//分析后未成年人的信息 | |
72 | + private List<SpecialStudentVo> specialStudentVos=new ArrayList<>(); | |
73 | + @AutoLog(value = "来源数据管理-分页列表查询") | |
74 | + @ApiOperation(value="来源数据管理-分页列表查询", notes="来源数据管理-分页列表查询") | |
75 | + @GetMapping(value = "/doAnalyzeData") | |
76 | + public void doAnalyzeData() { | |
77 | + | |
78 | +// List<FamilyVo> allData=new ArrayList<>() | |
79 | + LambdaQueryWrapper<SysDepart> cfq = new LambdaQueryWrapper<>(); | |
80 | + cfq.isNotNull(SysDepart::getParentId); | |
81 | + List<SysDepart> departs= sysDepartService.list(cfq); | |
82 | + gaPunishVos.addAll(gaPunishService.queryAll()); | |
83 | + specialStudentVos.addAll(specialStudentService.queryList()); | |
84 | + | |
85 | +// List<FamilyVo> familyVos=queryByThread(new ArrayList<>(),departs); | |
86 | + //获取当前系统时间 | |
87 | +// long startTime = System.currentTimeMillis(); | |
88 | + queryByThread(departs); | |
89 | +// long endTime = System.currentTimeMillis(); | |
90 | +// System.out.println(endTime-startTime); | |
91 | +// long startTime1 = System.currentTimeMillis(); | |
92 | +// long endTime1 = System.currentTimeMillis(); | |
93 | +// System.out.println("***********************结束时间"+(endTime1-startTime1)); | |
94 | + } | |
95 | + | |
96 | + /** | |
97 | + * 分页列表查询 | |
98 | + * @param allData | |
99 | + * @return | |
100 | + */ | |
101 | + public List<FamilyVo> queryPageList(List<FamilyVo> allData,List<SysDepart> departs){ | |
102 | + try { | |
103 | +// List<FamilyVo> familyVos=gaDemographicService.queryPageList(queryNum,pageSize); | |
104 | +//// allData.addAll(familyVos); | |
105 | +// if(oConvertUtils.isNotEmpty(familyVos)){ | |
106 | +// //当查出来的数据等于分页的数量说明还有数据需要查询 | |
107 | +// if(familyVos.size() == pageSize){ | |
108 | +// queryNum=queryNum+pageSize; | |
109 | +//// queryPageList(allData); | |
110 | +// analyzeData(familyVos,departs); | |
111 | +// }else { | |
112 | +// | |
113 | +// } | |
114 | +// } | |
115 | + | |
116 | + }catch (Exception e){ | |
117 | + System.out.println(e); | |
118 | + } | |
119 | + return allData; | |
120 | + } | |
121 | + | |
122 | + public void analyzeData(List<Family> allData,List<SysDepart> departs){ | |
123 | + List<Family> familyMajors=new ArrayList<>();//户籍信息里的成年人 | |
124 | + List<Family> familyMinors=new ArrayList<>();//户籍信息里的未成年人 | |
125 | + if(oConvertUtils.isNotEmpty(allData) && oConvertUtils.isNotEmpty(departs)){ | |
126 | + for(SysDepart d:departs){ | |
127 | + for(Family f:allData){ | |
128 | + if(d.getAbbreviation().contains(f.getDivision())){ | |
129 | + f.setSysOrgCode(d.getId()); | |
130 | + } | |
131 | + if(oConvertUtils.isNotEmpty(f.getIdentity())){ | |
132 | + f.setGender(Integer.valueOf(IDNumberUtil.judgeGender(f.getIdentity()))); | |
133 | + Integer age=IDNumberUtil.countAge(f.getIdentity()); | |
134 | + if(age<18){ | |
135 | + familyMinors.add(f); | |
136 | + }else { | |
137 | + familyMajors.add(f); | |
138 | + } | |
139 | + } | |
140 | + } | |
141 | + } | |
142 | + } | |
143 | + doFamilyMajors(familyMajors);//处理成年人 | |
144 | + doFamilyMinors(familyMinors);//处理成年人 | |
145 | + } | |
146 | + | |
147 | + public void doFamilyMajors(List<Family> familyMajors){ | |
148 | + if(oConvertUtils.isNotEmpty(gaPunishVos) && oConvertUtils.isNotEmpty(familyMajors)){ | |
149 | + for(GaPunishVo p:gaPunishVos){ | |
150 | + for(Family f:familyMajors){ | |
151 | + if(p.getDxsfzh().equals(f.getIdentity())){ | |
152 | + f.setOther(p.getAjmc()); | |
153 | + f.setReason(p.getSldwmc()); | |
154 | + f.setCrime(Family.IS_CRIME); | |
155 | + gaPunishVos.remove(p); | |
156 | + }else { | |
157 | + f.setCrime(Family.IS_NOT_CRIME); | |
158 | + } | |
159 | + } | |
160 | + } | |
161 | + } | |
162 | +// familyService.saveBatch(familyMajors); | |
163 | + } | |
164 | + | |
165 | + public void doFamilyMinors(List<Family> familyMinors){ | |
166 | + if(oConvertUtils.isNotEmpty(specialStudentVos) && oConvertUtils.isNotEmpty(familyMinors)){ | |
167 | + for (SpecialStudentVo s:specialStudentVos){ | |
168 | + for(Family f:familyMinors){ | |
169 | + Minor minor=new Minor(); | |
170 | + if(s.getIdentity().equals(f.getIdentity())){ | |
171 | + minor.setReason(s.getReason()); | |
172 | + minor.setRemark(s.getRemark()); | |
173 | + specialStudentVos.remove(s); | |
174 | + } | |
175 | + minor.setAddress(f.getAddress()); | |
176 | + minor.setGender(f.getGender()); | |
177 | + minor.setHouseholdNum(f.getHouseholdNum()); | |
178 | + minor.setName(f.getName()); | |
179 | + minor.setRelation(f.getRelation()); | |
180 | + minor.setNumber(f.getNumber()); | |
181 | + minor.setSysOrgCode(f.getSysOrgCode()); | |
182 | + } | |
183 | + } | |
184 | + } | |
185 | + familyService.saveBatch(familyMinors); | |
186 | +// minorService.saveBatch(); | |
187 | + } | |
188 | + | |
189 | + public void queryByThread(List<SysDepart> departs) { | |
190 | + long startTime = System.currentTimeMillis(); | |
191 | + // 数据集合大小,由调用者自己指定 | |
192 | + int listSize = gaDemographicService.count(); | |
193 | + // 开启的线程数 | |
194 | + int runSize = 20; | |
195 | + // 一个线程处理数据条数,如果库中有100条数据,开启20个线程,那么每一个线程执行的条数就是5条 | |
196 | + int count = listSize / runSize;//5 | |
197 | + // 创建一个线程池,数量和开启线程的数量一样 | |
198 | + ExecutorService executor = MultiThreadUtil.createThread(runSize); | |
199 | + // 计算sql语句中每个分页查询的起始和结束数据下标 | |
200 | + // 循环创建线程 | |
201 | + //此处调用具体的查询方法 | |
202 | + System.out.println("开始查询线程总数"+runSize); | |
203 | + for (int i = 0; i < runSize; i++) { | |
204 | + int index = i * count; | |
205 | + int num = count; | |
206 | + executor.execute(new Runnable() { | |
207 | + @Override | |
208 | + public void run() { | |
209 | + try { | |
210 | + //查询的结果如何保存下来,会不会存在覆盖的问题 | |
211 | + System.out.println("每次查询的下标:" + index + ",条数:" + num); | |
212 | + List<Family> familyVos=gaDemographicService.queryPageList(index,num); | |
213 | + //行政处罚数据查询 | |
214 | +// gaPunishService | |
215 | + //这里做处理信息的方法 | |
216 | + analyzeData(familyVos,departs); | |
217 | + } catch (Exception e) { | |
218 | + System.out.println("查询失败" + e); | |
219 | + } | |
220 | + } | |
221 | + }); | |
222 | + } | |
223 | + // 执行完关闭线程池 | |
224 | + executor.shutdown(); | |
225 | + long endTime = System.currentTimeMillis(); | |
226 | + System.out.println(endTime-startTime); | |
227 | + } | |
228 | + | |
229 | + | |
230 | +// public static void exec(List<String> list) throws InterruptedException{ | |
231 | +// int count = 300; //一个线程处理300条数据 | |
232 | +// int listSize = list.size(); //数据集合大小 | |
233 | +// int runSize = (listSize/count)+1; //开启的线程数 | |
234 | +// List<String> newlist = null; //存放每个线程的执行数据 | |
235 | +// ExecutorService executor = Executors.newFixedThreadPool(runSize); //创建一个线程池,数量和开启线程的数量一样 | |
236 | +// //创建两个个计数器 | |
237 | +// CountDownLatch begin = new CountDownLatch(1); | |
238 | +// CountDownLatch end = new CountDownLatch(runSize); | |
239 | +// //循环创建线程 | |
240 | +// for (int i = 0; i < runSize ; i++) { | |
241 | +// //计算每个线程执行的数据 | |
242 | +// if((i+1)==runSize){ | |
243 | +// int startIndex = (i*count); | |
244 | +// int endIndex = list.size(); | |
245 | +// newlist= list.subList(startIndex, endIndex); | |
246 | +// }else{ | |
247 | +// int startIndex = (i*count); | |
248 | +// int endIndex = (i+1)*count; | |
249 | +// newlist= list.subList(startIndex, endIndex); | |
250 | +// } | |
251 | +// //线程类 | |
252 | +// MyThread mythead = new MyThread(newlist,begin,end); | |
253 | +// //这里执行线程的方式是调用线程池里的executor.execute(mythead)方法。 | |
254 | +// | |
255 | +// executor.execute(mythead); | |
256 | +// } | |
257 | +// | |
258 | +// begin.countDown(); | |
259 | +// end.await(); | |
260 | +// | |
261 | +// //执行完关闭线程池 | |
262 | +// executor.shutdown(); | |
263 | +// } | |
264 | + | |
265 | +// /** | |
266 | +// * 分割list集合 | |
267 | +// * | |
268 | +// * @param dataList | |
269 | +// * @return | |
270 | +// */ | |
271 | +// public List<FamilyVo> subList(List<FamilyVo> dataList) { | |
272 | +// List<FamilyVo> resultlist = new ArrayList<>();//存放批量数据处理的总结果集 | |
273 | +// if (null != dataList && dataList.size() > 0) { | |
274 | +// int pointsDataLimit = 100;//限制条数 10条一批 也是线程池线程数量 | |
275 | +// Integer size = dataList.size(); | |
276 | +// List<FamilyVo> cardlist=new ArrayList<>(); | |
277 | +// //判断是否有必要分批 | |
278 | +// if (pointsDataLimit < size) {//大于10条 | |
279 | +// int part = size / pointsDataLimit;//分批数 | |
280 | +// for (int i = 0; i < part; i++) { | |
281 | +// List<FamilyVo> listPage = dataList.subList(0, pointsDataLimit); //10条数据 | |
282 | +// Integer start = cardlist.size();//10条数据在总结果集的开始下标 | |
283 | +// cardlist = testTime(listPage, resultlist );//返回拼接后的总结果集 | |
284 | +// Integer end = resultlist .size();//10条数据在总结果集的结束下标 | |
285 | +// for (i = start; i < end; i++) { | |
286 | +// //对总数据集的10条数据进行业务处理 | |
287 | +// } | |
288 | +// //剔除已经处理过的10条数据 | |
289 | +// dataList.subList(0, pointsDataLimit).clear(); | |
290 | +// } | |
291 | +// if (!dataList.isEmpty()) {//小于10条 | |
292 | +// cardlist = testTime(dataList, cardlist);//处理最后的数据 | |
293 | +// } | |
294 | +// } else { | |
295 | +// } | |
296 | +// } | |
297 | +// | |
298 | +// return resultlist ; | |
299 | +// } | |
300 | +// | |
301 | +// /** | |
302 | +// * 多线程处理批量数据 | |
303 | +// * | |
304 | +// * @param splitList 处理数据 | |
305 | +// * @param cardlist 处理后总数据 | |
306 | +// * | |
307 | +// * @return | |
308 | +// */ | |
309 | +// public List<FamilyVo> testTime(List<FamilyVo> splitList, List<FamilyVo> cardlist) { | |
310 | +// List<FamilyVo> list = null; | |
311 | +// try { | |
312 | +// MultiThreadUtil<FamilyVo, FamilyVo> multiThread = new MultiThreadUtil<FamilyVo, FamilyVo>(splitList) { | |
313 | +// @Override | |
314 | +// public FamilyVo outExecute(int currentThread, FamilyVo data) { | |
315 | +// //业务处理 | |
316 | +// /* String iccid = data.getIccid(); | |
317 | +// String allOrder = cardServerService.findAllOrder(iccid); | |
318 | +// String allFlow = cardServerService.allFlowByiccid(iccid); | |
319 | +// String allUseFlow = cardServerService.allUseFlowByiccid(iccid); | |
320 | +// Card card = cardMapper.findByIccid(iccid); | |
321 | +// String monthFlow = card.getMonthFlow(); | |
322 | +// data.setMonthFlow(monthFlow); | |
323 | +// data.setAllOrder(allOrder); | |
324 | +// data.setAllFlow(allFlow); | |
325 | +// data.setAllUseFlow(allUseFlow); | |
326 | +// return data;*/ | |
327 | +// //业务处理end | |
328 | +// return data; | |
329 | +// } | |
330 | +// }; | |
331 | +// list = multiThread.getResult();//返回结果 | |
332 | +// for (FamilyVo ccar : list) { | |
333 | +// cardlist.add(ccar);//批量数据遍历放入总结果 | |
334 | +// } | |
335 | +// } catch (Exception e) { | |
336 | +// e.printStackTrace(); | |
337 | +// } | |
338 | +// return cardlist; | |
339 | +// | |
340 | +// } | |
341 | + | |
342 | + | |
343 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/DivisionController.java
0 → 100644
1 | +package org.jeecg.modules.system.controller; | |
2 | + | |
3 | +import java.util.Arrays; | |
4 | +import java.util.List; | |
5 | +import java.util.Map; | |
6 | +import java.util.stream.Collectors; | |
7 | +import java.io.IOException; | |
8 | +import java.io.UnsupportedEncodingException; | |
9 | +import java.net.URLDecoder; | |
10 | +import javax.servlet.http.HttpServletRequest; | |
11 | +import javax.servlet.http.HttpServletResponse; | |
12 | + | |
13 | +import org.apache.shiro.SecurityUtils; | |
14 | +import org.jeecg.common.api.vo.Result; | |
15 | +import org.jeecg.common.constant.CommonConstant; | |
16 | +import org.jeecg.common.system.query.QueryGenerator; | |
17 | +import org.jeecg.common.system.vo.LoginUser; | |
18 | +import org.jeecg.common.util.oConvertUtils; | |
19 | + | |
20 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
21 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
22 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
23 | +import lombok.extern.slf4j.Slf4j; | |
24 | + | |
25 | +import org.jeecg.modules.system.entity.Division; | |
26 | +import org.jeecg.modules.system.model.DivisionModel; | |
27 | +import org.jeecg.modules.system.model.SysDepartTreeModel; | |
28 | +import org.jeecg.modules.system.service.IDivisionService; | |
29 | +import org.jeecgframework.poi.excel.ExcelImportUtil; | |
30 | +import org.jeecgframework.poi.excel.def.NormalExcelConstants; | |
31 | +import org.jeecgframework.poi.excel.entity.ExportParams; | |
32 | +import org.jeecgframework.poi.excel.entity.ImportParams; | |
33 | +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; | |
34 | +import org.jeecg.common.system.base.controller.JeecgController; | |
35 | +import org.springframework.beans.factory.annotation.Autowired; | |
36 | +import org.springframework.web.bind.annotation.*; | |
37 | +import org.springframework.web.multipart.MultipartFile; | |
38 | +import org.springframework.web.multipart.MultipartHttpServletRequest; | |
39 | +import org.springframework.web.servlet.ModelAndView; | |
40 | +import com.alibaba.fastjson.JSON; | |
41 | +import io.swagger.annotations.Api; | |
42 | +import io.swagger.annotations.ApiOperation; | |
43 | +import org.jeecg.common.aspect.annotation.AutoLog; | |
44 | + | |
45 | + /** | |
46 | + * @Description: 行政区划 | |
47 | + * @Author: jeecg-boot | |
48 | + * @Date: 2022-07-12 | |
49 | + * @Version: V1.0 | |
50 | + */ | |
51 | +@Api(tags="行政区划") | |
52 | +@RestController | |
53 | +@RequestMapping("/sys/division") | |
54 | +@Slf4j | |
55 | +public class DivisionController extends JeecgController<Division, IDivisionService>{ | |
56 | + @Autowired | |
57 | + private IDivisionService divisionService; | |
58 | + | |
59 | + /** | |
60 | + * 查询数据 查出所有部门,并以树结构数据格式响应给前端 | |
61 | + * | |
62 | + * @return | |
63 | + */ | |
64 | + @RequestMapping(value = "/queryTreeList", method = RequestMethod.GET) | |
65 | + public Result<List<DivisionModel>> queryTreeList(@RequestParam(name = "ids", required = false) String ids) { | |
66 | + Result<List<DivisionModel>> result = new Result<>(); | |
67 | + try { | |
68 | + // 从内存中读取 | |
69 | +// List<SysDepartTreeModel> list =FindsDepartsChildrenUtil.getSysDepartTreeList(); | |
70 | +// if (CollectionUtils.isEmpty(list)) { | |
71 | +// list = sysDepartService.queryTreeList(); | |
72 | +// } | |
73 | + if(oConvertUtils.isNotEmpty(ids)){ | |
74 | + List<DivisionModel> list = divisionService.queryTreeList(ids); | |
75 | + result.setResult(list); | |
76 | + }else{ | |
77 | + List<DivisionModel> list = divisionService.queryTreeList(); | |
78 | + result.setResult(list); | |
79 | + } | |
80 | + result.setSuccess(true); | |
81 | + } catch (Exception e) { | |
82 | + log.error(e.getMessage(),e); | |
83 | + } | |
84 | + return result; | |
85 | + } | |
86 | + | |
87 | + /** | |
88 | + * 获取子数据 | |
89 | + * @param division | |
90 | + * @param req | |
91 | + * @return | |
92 | + */ | |
93 | + @AutoLog(value = "行政区划-获取子数据") | |
94 | + @ApiOperation(value="行政区划-获取子数据", notes="行政区划-获取子数据") | |
95 | + @GetMapping(value = "/childList") | |
96 | + public Result<?> queryPageList(Division division,HttpServletRequest req) { | |
97 | + QueryWrapper<Division> queryWrapper = QueryGenerator.initQueryWrapper(division, req.getParameterMap()); | |
98 | + List<Division> list = divisionService.list(queryWrapper); | |
99 | + IPage<Division> pageList = new Page<>(1, 10, list.size()); | |
100 | + pageList.setRecords(list); | |
101 | + return Result.OK(pageList); | |
102 | + } | |
103 | + | |
104 | + /** | |
105 | + * 批量查询子节点 | |
106 | + * @param parentIds 父ID(多个采用半角逗号分割) | |
107 | + * @return 返回 IPage | |
108 | + * @param parentIds | |
109 | + * @return | |
110 | + */ | |
111 | + @AutoLog(value = "行政区划-批量获取子数据") | |
112 | + @ApiOperation(value="行政区划-批量获取子数据", notes="行政区划-批量获取子数据") | |
113 | + @GetMapping("/getChildListBatch") | |
114 | + public Result getChildListBatch(@RequestParam("parentIds") String parentIds) { | |
115 | + try { | |
116 | + QueryWrapper<Division> queryWrapper = new QueryWrapper<>(); | |
117 | + List<String> parentIdList = Arrays.asList(parentIds.split(",")); | |
118 | + queryWrapper.in("pid", parentIdList); | |
119 | + List<Division> list = divisionService.list(queryWrapper); | |
120 | + IPage<Division> pageList = new Page<>(1, 10, list.size()); | |
121 | + pageList.setRecords(list); | |
122 | + return Result.OK(pageList); | |
123 | + } catch (Exception e) { | |
124 | + log.error(e.getMessage(), e); | |
125 | + return Result.error("批量查询子节点失败:" + e.getMessage()); | |
126 | + } | |
127 | + } | |
128 | + | |
129 | + /** | |
130 | + * 添加 | |
131 | + * | |
132 | + * @param division | |
133 | + * @return | |
134 | + */ | |
135 | + @AutoLog(value = "行政区划-添加") | |
136 | + @ApiOperation(value="行政区划-添加", notes="行政区划-添加") | |
137 | + @PostMapping(value = "/add") | |
138 | + public Result<?> add(@RequestBody Division division) { | |
139 | + divisionService.addDivision(division); | |
140 | + return Result.OK("添加成功!"); | |
141 | + } | |
142 | + | |
143 | + /** | |
144 | + * 编辑 | |
145 | + * | |
146 | + * @param division | |
147 | + * @return | |
148 | + */ | |
149 | + @AutoLog(value = "行政区划-编辑") | |
150 | + @ApiOperation(value="行政区划-编辑", notes="行政区划-编辑") | |
151 | + @PutMapping(value = "/edit") | |
152 | + public Result<?> edit(@RequestBody Division division) { | |
153 | + divisionService.updateDivision(division); | |
154 | + return Result.OK("编辑成功!"); | |
155 | + } | |
156 | + | |
157 | + /** | |
158 | + * 通过id删除 | |
159 | + * | |
160 | + * @param id | |
161 | + * @return | |
162 | + */ | |
163 | + @AutoLog(value = "行政区划-通过id删除") | |
164 | + @ApiOperation(value="行政区划-通过id删除", notes="行政区划-通过id删除") | |
165 | + @DeleteMapping(value = "/delete") | |
166 | + public Result<?> delete(@RequestParam(name="id",required=true) String id) { | |
167 | + divisionService.delete(id); | |
168 | + return Result.OK("删除成功!"); | |
169 | + } | |
170 | + | |
171 | + /** | |
172 | + * 批量删除 | |
173 | + * | |
174 | + * @param ids | |
175 | + * @return | |
176 | + */ | |
177 | + @AutoLog(value = "行政区划-批量删除") | |
178 | + @ApiOperation(value="行政区划-批量删除", notes="行政区划-批量删除") | |
179 | + @DeleteMapping(value = "/deleteBatch") | |
180 | + public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | |
181 | + divisionService.deleteBatchWithChildren(Arrays.asList(ids.split(","))); | |
182 | + return Result.OK("批量删除成功!"); | |
183 | + } | |
184 | + | |
185 | + /** | |
186 | + * 通过id查询 | |
187 | + * | |
188 | + * @param id | |
189 | + * @return | |
190 | + */ | |
191 | + @AutoLog(value = "行政区划-通过id查询") | |
192 | + @ApiOperation(value="行政区划-通过id查询", notes="行政区划-通过id查询") | |
193 | + @GetMapping(value = "/queryById") | |
194 | + public Result<?> queryById(@RequestParam(name="id",required=true) String id) { | |
195 | + Division division = divisionService.getById(id); | |
196 | + if(division==null) { | |
197 | + return Result.error("未找到对应数据"); | |
198 | + } | |
199 | + return Result.OK(division); | |
200 | + } | |
201 | + | |
202 | + /** | |
203 | + * 导出excel | |
204 | + * | |
205 | + * @param request | |
206 | + * @param division | |
207 | + */ | |
208 | + @RequestMapping(value = "/exportXls") | |
209 | + public ModelAndView exportXls(HttpServletRequest request, Division division) { | |
210 | + return super.exportXls(request, division, Division.class, "行政区划"); | |
211 | + } | |
212 | + | |
213 | + /** | |
214 | + * 通过excel导入数据 | |
215 | + * | |
216 | + * @param request | |
217 | + * @param response | |
218 | + * @return | |
219 | + */ | |
220 | + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | |
221 | + public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | |
222 | + return super.importExcel(request, response, Division.class); | |
223 | + } | |
224 | + | |
225 | + | |
226 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/MinorController.java
0 → 100644
1 | +package org.jeecg.modules.system.controller; | |
2 | + | |
3 | +import java.io.UnsupportedEncodingException; | |
4 | +import java.io.IOException; | |
5 | +import java.net.URLDecoder; | |
6 | +import java.util.ArrayList; | |
7 | +import java.util.Arrays; | |
8 | +import java.util.List; | |
9 | +import java.util.Map; | |
10 | +import java.util.stream.Collectors; | |
11 | + | |
12 | +import javax.servlet.http.HttpServletRequest; | |
13 | +import javax.servlet.http.HttpServletResponse; | |
14 | + | |
15 | +import org.jeecg.modules.system.entity.Family; | |
16 | +import org.jeecg.modules.system.entity.Minor; | |
17 | +import org.jeecg.modules.system.service.IFamilyService; | |
18 | +import org.jeecg.modules.system.service.IMinorService; | |
19 | +import org.jeecg.modules.system.vo.MinorPage; | |
20 | +import org.jeecgframework.poi.excel.ExcelImportUtil; | |
21 | +import org.jeecgframework.poi.excel.def.NormalExcelConstants; | |
22 | +import org.jeecgframework.poi.excel.entity.ExportParams; | |
23 | +import org.jeecgframework.poi.excel.entity.ImportParams; | |
24 | +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; | |
25 | +import org.jeecg.common.system.vo.LoginUser; | |
26 | +import org.apache.shiro.SecurityUtils; | |
27 | +import org.jeecg.common.api.vo.Result; | |
28 | +import org.jeecg.common.system.query.QueryGenerator; | |
29 | +import org.jeecg.common.util.oConvertUtils; | |
30 | +import org.springframework.beans.BeanUtils; | |
31 | +import org.springframework.beans.factory.annotation.Autowired; | |
32 | +import org.springframework.web.bind.annotation.*; | |
33 | +import org.springframework.web.servlet.ModelAndView; | |
34 | +import org.springframework.web.multipart.MultipartFile; | |
35 | +import org.springframework.web.multipart.MultipartHttpServletRequest; | |
36 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
37 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
38 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
39 | +import lombok.extern.slf4j.Slf4j; | |
40 | +import com.alibaba.fastjson.JSON; | |
41 | +import io.swagger.annotations.Api; | |
42 | +import io.swagger.annotations.ApiOperation; | |
43 | +import org.jeecg.common.aspect.annotation.AutoLog; | |
44 | + | |
45 | + /** | |
46 | + * @Description: 未成年人 | |
47 | + * @Author: jeecg-boot | |
48 | + * @Date: 2022-07-13 | |
49 | + * @Version: V1.0 | |
50 | + */ | |
51 | +@Api(tags="未成年人") | |
52 | +@RestController | |
53 | +@RequestMapping("/sys/minor") | |
54 | +@Slf4j | |
55 | +public class MinorController { | |
56 | + @Autowired | |
57 | + private IMinorService minorService; | |
58 | + @Autowired | |
59 | + private IFamilyService familyService; | |
60 | + | |
61 | + /** | |
62 | + * 分页列表查询 | |
63 | + * | |
64 | + * @param minor | |
65 | + * @param pageNo | |
66 | + * @param pageSize | |
67 | + * @param req | |
68 | + * @return | |
69 | + */ | |
70 | + @AutoLog(value = "未成年人-分页列表查询") | |
71 | + @ApiOperation(value="未成年人-分页列表查询", notes="未成年人-分页列表查询") | |
72 | + @GetMapping(value = "/list") | |
73 | + public Result<?> queryPageList(Minor minor, | |
74 | + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | |
75 | + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | |
76 | + HttpServletRequest req) { | |
77 | + QueryWrapper<Minor> queryWrapper = QueryGenerator.initQueryWrapper(minor, req.getParameterMap()); | |
78 | + Page<Minor> page = new Page<Minor>(pageNo, pageSize); | |
79 | + IPage<Minor> pageList = minorService.page(page, queryWrapper); | |
80 | + return Result.OK(pageList); | |
81 | + } | |
82 | + | |
83 | + /** | |
84 | + * 添加 | |
85 | + * | |
86 | + * @param minorPage | |
87 | + * @return | |
88 | + */ | |
89 | + @AutoLog(value = "未成年人-添加") | |
90 | + @ApiOperation(value="未成年人-添加", notes="未成年人-添加") | |
91 | + @PostMapping(value = "/add") | |
92 | + public Result<?> add(@RequestBody MinorPage minorPage) { | |
93 | + Minor minor = new Minor(); | |
94 | + BeanUtils.copyProperties(minorPage, minor); | |
95 | + minorService.saveMain(minor, minorPage.getFamilyList()); | |
96 | + return Result.OK("添加成功!"); | |
97 | + } | |
98 | + | |
99 | + /** | |
100 | + * 编辑 | |
101 | + * | |
102 | + * @param minorPage | |
103 | + * @return | |
104 | + */ | |
105 | + @AutoLog(value = "未成年人-编辑") | |
106 | + @ApiOperation(value="未成年人-编辑", notes="未成年人-编辑") | |
107 | + @PutMapping(value = "/edit") | |
108 | + public Result<?> edit(@RequestBody MinorPage minorPage) { | |
109 | + Minor minor = new Minor(); | |
110 | + BeanUtils.copyProperties(minorPage, minor); | |
111 | + Minor minorEntity = minorService.getById(minor.getId()); | |
112 | + if(minorEntity==null) { | |
113 | + return Result.error("未找到对应数据"); | |
114 | + } | |
115 | + minorService.updateMain(minor, minorPage.getFamilyList()); | |
116 | + return Result.OK("编辑成功!"); | |
117 | + } | |
118 | + | |
119 | + /** | |
120 | + * 通过id删除 | |
121 | + * | |
122 | + * @param id | |
123 | + * @return | |
124 | + */ | |
125 | + @AutoLog(value = "未成年人-通过id删除") | |
126 | + @ApiOperation(value="未成年人-通过id删除", notes="未成年人-通过id删除") | |
127 | + @DeleteMapping(value = "/delete") | |
128 | + public Result<?> delete(@RequestParam(name="id",required=true) String id) { | |
129 | + minorService.delMain(id); | |
130 | + return Result.OK("删除成功!"); | |
131 | + } | |
132 | + | |
133 | + /** | |
134 | + * 批量删除 | |
135 | + * | |
136 | + * @param ids | |
137 | + * @return | |
138 | + */ | |
139 | + @AutoLog(value = "未成年人-批量删除") | |
140 | + @ApiOperation(value="未成年人-批量删除", notes="未成年人-批量删除") | |
141 | + @DeleteMapping(value = "/deleteBatch") | |
142 | + public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | |
143 | + this.minorService.delBatchMain(Arrays.asList(ids.split(","))); | |
144 | + return Result.OK("批量删除成功!"); | |
145 | + } | |
146 | + | |
147 | + /** | |
148 | + * 通过id查询 | |
149 | + * | |
150 | + * @param id | |
151 | + * @return | |
152 | + */ | |
153 | + @AutoLog(value = "未成年人-通过id查询") | |
154 | + @ApiOperation(value="未成年人-通过id查询", notes="未成年人-通过id查询") | |
155 | + @GetMapping(value = "/queryById") | |
156 | + public Result<?> queryById(@RequestParam(name="id",required=true) String id) { | |
157 | + Minor minor = minorService.getById(id); | |
158 | + if(minor==null) { | |
159 | + return Result.error("未找到对应数据"); | |
160 | + } | |
161 | + return Result.OK(minor); | |
162 | + | |
163 | + } | |
164 | + | |
165 | + /** | |
166 | + * 通过id查询 | |
167 | + * | |
168 | + * @param id | |
169 | + * @return | |
170 | + */ | |
171 | + @AutoLog(value = "家庭成员表通过主表ID查询") | |
172 | + @ApiOperation(value="家庭成员表主表ID查询", notes="家庭成员表-通主表ID查询") | |
173 | + @GetMapping(value = "/queryFamilyByMainId") | |
174 | + public Result<?> queryFamilyListByMainId(@RequestParam(name="id",required=true) String id) { | |
175 | + List<Family> familyList = familyService.selectByMainId(id); | |
176 | + return Result.OK(familyList); | |
177 | + } | |
178 | + | |
179 | + /** | |
180 | + * 导出excel | |
181 | + * | |
182 | + * @param request | |
183 | + * @param minor | |
184 | + */ | |
185 | + @RequestMapping(value = "/exportXls") | |
186 | + public ModelAndView exportXls(HttpServletRequest request, Minor minor) { | |
187 | + // Step.1 组装查询条件查询数据 | |
188 | + QueryWrapper<Minor> queryWrapper = QueryGenerator.initQueryWrapper(minor, request.getParameterMap()); | |
189 | + LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); | |
190 | + | |
191 | + //Step.2 获取导出数据 | |
192 | + List<Minor> queryList = minorService.list(queryWrapper); | |
193 | + // 过滤选中数据 | |
194 | + String selections = request.getParameter("selections"); | |
195 | + List<Minor> minorList = new ArrayList<Minor>(); | |
196 | + if(oConvertUtils.isEmpty(selections)) { | |
197 | + minorList = queryList; | |
198 | + }else { | |
199 | + List<String> selectionList = Arrays.asList(selections.split(",")); | |
200 | + minorList = queryList.stream().filter(item -> selectionList.contains(item.getId())).collect(Collectors.toList()); | |
201 | + } | |
202 | + | |
203 | + // Step.3 组装pageList | |
204 | + List<MinorPage> pageList = new ArrayList<MinorPage>(); | |
205 | + for (Minor main : minorList) { | |
206 | + MinorPage vo = new MinorPage(); | |
207 | + BeanUtils.copyProperties(main, vo); | |
208 | + List<Family> familyList = familyService.selectByMainId(main.getId()); | |
209 | + vo.setFamilyList(familyList); | |
210 | + pageList.add(vo); | |
211 | + } | |
212 | + | |
213 | + // Step.4 AutoPoi 导出Excel | |
214 | + ModelAndView mv = new ModelAndView(new JeecgEntityExcelView()); | |
215 | + mv.addObject(NormalExcelConstants.FILE_NAME, "未成年人列表"); | |
216 | + mv.addObject(NormalExcelConstants.CLASS, MinorPage.class); | |
217 | + mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("未成年人数据", "导出人:"+sysUser.getRealname(), "未成年人")); | |
218 | + mv.addObject(NormalExcelConstants.DATA_LIST, pageList); | |
219 | + return mv; | |
220 | + } | |
221 | + | |
222 | + /** | |
223 | + * 通过excel导入数据 | |
224 | + * | |
225 | + * @param request | |
226 | + * @param response | |
227 | + * @return | |
228 | + */ | |
229 | + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | |
230 | + public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | |
231 | + MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; | |
232 | + Map<String, MultipartFile> fileMap = multipartRequest.getFileMap(); | |
233 | + for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) { | |
234 | + MultipartFile file = entity.getValue();// 获取上传文件对象 | |
235 | + ImportParams params = new ImportParams(); | |
236 | + params.setTitleRows(2); | |
237 | + params.setHeadRows(1); | |
238 | + params.setNeedSave(true); | |
239 | + try { | |
240 | + List<MinorPage> list = ExcelImportUtil.importExcel(file.getInputStream(), MinorPage.class, params); | |
241 | + for (MinorPage page : list) { | |
242 | + Minor po = new Minor(); | |
243 | + BeanUtils.copyProperties(page, po); | |
244 | + minorService.saveMain(po, page.getFamilyList()); | |
245 | + } | |
246 | + return Result.OK("文件导入成功!数据行数:" + list.size()); | |
247 | + } catch (Exception e) { | |
248 | + log.error(e.getMessage(),e); | |
249 | + return Result.error("文件导入失败:"+e.getMessage()); | |
250 | + } finally { | |
251 | + try { | |
252 | + file.getInputStream().close(); | |
253 | + } catch (IOException e) { | |
254 | + e.printStackTrace(); | |
255 | + } | |
256 | + } | |
257 | + } | |
258 | + return Result.OK("文件导入失败!"); | |
259 | + } | |
260 | + | |
261 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SourceController.java
0 → 100644
1 | +package org.jeecg.modules.system.controller; | |
2 | + | |
3 | +import java.util.Arrays; | |
4 | +import java.util.List; | |
5 | +import java.util.Map; | |
6 | +import java.util.stream.Collectors; | |
7 | +import java.io.IOException; | |
8 | +import java.io.UnsupportedEncodingException; | |
9 | +import java.net.URLDecoder; | |
10 | +import javax.servlet.http.HttpServletRequest; | |
11 | +import javax.servlet.http.HttpServletResponse; | |
12 | +import org.jeecg.common.api.vo.Result; | |
13 | +import org.jeecg.common.system.query.QueryGenerator; | |
14 | +import org.jeecg.common.util.oConvertUtils; | |
15 | + | |
16 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
17 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
18 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
19 | +import lombok.extern.slf4j.Slf4j; | |
20 | + | |
21 | +import org.jeecg.modules.system.entity.SourceData; | |
22 | +import org.jeecg.modules.system.service.ISourceService; | |
23 | +import org.jeecgframework.poi.excel.ExcelImportUtil; | |
24 | +import org.jeecgframework.poi.excel.def.NormalExcelConstants; | |
25 | +import org.jeecgframework.poi.excel.entity.ExportParams; | |
26 | +import org.jeecgframework.poi.excel.entity.ImportParams; | |
27 | +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; | |
28 | +import org.jeecg.common.system.base.controller.JeecgController; | |
29 | +import org.springframework.beans.factory.annotation.Autowired; | |
30 | +import org.springframework.web.bind.annotation.*; | |
31 | +import org.springframework.web.multipart.MultipartFile; | |
32 | +import org.springframework.web.multipart.MultipartHttpServletRequest; | |
33 | +import org.springframework.web.servlet.ModelAndView; | |
34 | +import com.alibaba.fastjson.JSON; | |
35 | +import io.swagger.annotations.Api; | |
36 | +import io.swagger.annotations.ApiOperation; | |
37 | +import org.jeecg.common.aspect.annotation.AutoLog; | |
38 | + | |
39 | + /** | |
40 | + * @Description: 来源数据管理 | |
41 | + * @Author: jeecg-boot | |
42 | + * @Date: 2022-07-13 | |
43 | + * @Version: V1.0 | |
44 | + */ | |
45 | +@Api(tags="来源数据管理") | |
46 | +@RestController | |
47 | +@RequestMapping("/sys/source") | |
48 | +@Slf4j | |
49 | +public class SourceController extends JeecgController<SourceData, ISourceService> { | |
50 | + @Autowired | |
51 | + private ISourceService sourceService; | |
52 | + | |
53 | + /** | |
54 | + * 分页列表查询 | |
55 | + * | |
56 | + * @param source | |
57 | + * @param pageNo | |
58 | + * @param pageSize | |
59 | + * @param req | |
60 | + * @return | |
61 | + */ | |
62 | + @AutoLog(value = "来源数据管理-分页列表查询") | |
63 | + @ApiOperation(value="来源数据管理-分页列表查询", notes="来源数据管理-分页列表查询") | |
64 | + @GetMapping(value = "/list") | |
65 | + public Result<?> queryPageList(SourceData source, | |
66 | + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | |
67 | + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | |
68 | + HttpServletRequest req) { | |
69 | + QueryWrapper<SourceData> queryWrapper = QueryGenerator.initQueryWrapper(source, req.getParameterMap()); | |
70 | + Page<SourceData> page = new Page<SourceData>(pageNo, pageSize); | |
71 | + IPage<SourceData> pageList = sourceService.page(page, queryWrapper); | |
72 | + return Result.OK(pageList); | |
73 | + } | |
74 | + | |
75 | + /** | |
76 | + * 根据单位名称分组查询数据 | |
77 | + * @param source | |
78 | + * @param pageNo | |
79 | + * @param pageSize | |
80 | + * @param req | |
81 | + * @return | |
82 | + */ | |
83 | + @AutoLog(value = "来源数据管理-根据单位名称分组查询数据") | |
84 | + @ApiOperation(value="来源数据管理-根据单位名称分组查询数据", notes="来源数据管理-根据单位名称分组查询数据") | |
85 | + @GetMapping(value = "/getListGroupByName") | |
86 | + public Result<?> getListGroupByName(SourceData source,String name, | |
87 | + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, | |
88 | + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, | |
89 | + HttpServletRequest req) { | |
90 | + Page<SourceData> page = new Page<SourceData>(pageNo, pageSize); | |
91 | + IPage<SourceData> pageList = sourceService.getListGroupByName(page,name); | |
92 | + return Result.OK(pageList); | |
93 | + } | |
94 | + | |
95 | + /** | |
96 | + * 添加 | |
97 | + * | |
98 | + * @param source | |
99 | + * @return | |
100 | + */ | |
101 | + @AutoLog(value = "来源数据管理-添加") | |
102 | + @ApiOperation(value="来源数据管理-添加", notes="来源数据管理-添加") | |
103 | + @PostMapping(value = "/add") | |
104 | + public Result<?> add(@RequestBody SourceData source) { | |
105 | + sourceService.save(source); | |
106 | + return Result.OK("添加成功!"); | |
107 | + } | |
108 | + | |
109 | + /** | |
110 | + * 编辑 | |
111 | + * | |
112 | + * @param source | |
113 | + * @return | |
114 | + */ | |
115 | + @AutoLog(value = "来源数据管理-编辑") | |
116 | + @ApiOperation(value="来源数据管理-编辑", notes="来源数据管理-编辑") | |
117 | + @PutMapping(value = "/edit") | |
118 | + public Result<?> edit(@RequestBody SourceData source) { | |
119 | + sourceService.updateById(source); | |
120 | + return Result.OK("编辑成功!"); | |
121 | + } | |
122 | + | |
123 | + /** | |
124 | + * 通过id删除 | |
125 | + * | |
126 | + * @param id | |
127 | + * @return | |
128 | + */ | |
129 | + @AutoLog(value = "来源数据管理-通过id删除") | |
130 | + @ApiOperation(value="来源数据管理-通过id删除", notes="来源数据管理-通过id删除") | |
131 | + @DeleteMapping(value = "/delete") | |
132 | + public Result<?> delete(@RequestParam(name="id",required=true) String id) { | |
133 | + sourceService.removeById(id); | |
134 | + return Result.OK("删除成功!"); | |
135 | + } | |
136 | + | |
137 | + /** | |
138 | + * 批量删除 | |
139 | + * | |
140 | + * @param ids | |
141 | + * @return | |
142 | + */ | |
143 | + @AutoLog(value = "来源数据管理-批量删除") | |
144 | + @ApiOperation(value="来源数据管理-批量删除", notes="来源数据管理-批量删除") | |
145 | + @DeleteMapping(value = "/deleteBatch") | |
146 | + public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { | |
147 | + this.sourceService.removeByIds(Arrays.asList(ids.split(","))); | |
148 | + return Result.OK("批量删除成功!"); | |
149 | + } | |
150 | + | |
151 | + /** | |
152 | + * 通过id查询 | |
153 | + * | |
154 | + * @param id | |
155 | + * @return | |
156 | + */ | |
157 | + @AutoLog(value = "来源数据管理-通过id查询") | |
158 | + @ApiOperation(value="来源数据管理-通过id查询", notes="来源数据管理-通过id查询") | |
159 | + @GetMapping(value = "/queryById") | |
160 | + public Result<?> queryById(@RequestParam(name="id",required=true) String id) { | |
161 | + SourceData source = sourceService.getById(id); | |
162 | + if(source==null) { | |
163 | + return Result.error("未找到对应数据"); | |
164 | + } | |
165 | + return Result.OK(source); | |
166 | + } | |
167 | + | |
168 | + /** | |
169 | + * 导出excel | |
170 | + * | |
171 | + * @param request | |
172 | + * @param source | |
173 | + */ | |
174 | + @RequestMapping(value = "/exportXls") | |
175 | + public ModelAndView exportXls(HttpServletRequest request, SourceData source) { | |
176 | + return super.exportXls(request, source, SourceData.class, "来源数据管理"); | |
177 | + } | |
178 | + | |
179 | + /** | |
180 | + * 通过excel导入数据 | |
181 | + * | |
182 | + * @param request | |
183 | + * @param response | |
184 | + * @return | |
185 | + */ | |
186 | + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) | |
187 | + public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) { | |
188 | + return super.importExcel(request, response, SourceData.class); | |
189 | + } | |
190 | + | |
191 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/Division.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.util.Date; | |
5 | +import java.math.BigDecimal; | |
6 | +import com.baomidou.mybatisplus.annotation.IdType; | |
7 | +import com.baomidou.mybatisplus.annotation.TableId; | |
8 | +import com.baomidou.mybatisplus.annotation.TableName; | |
9 | +import lombok.Data; | |
10 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
11 | +import org.springframework.format.annotation.DateTimeFormat; | |
12 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
13 | +import org.jeecg.common.aspect.annotation.Dict; | |
14 | +import io.swagger.annotations.ApiModel; | |
15 | +import io.swagger.annotations.ApiModelProperty; | |
16 | +import java.io.UnsupportedEncodingException; | |
17 | + | |
18 | +/** | |
19 | + * @Description: 行政区划 | |
20 | + * @Author: jeecg-boot | |
21 | + * @Date: 2022-07-12 | |
22 | + * @Version: V1.0 | |
23 | + */ | |
24 | +@Data | |
25 | +@TableName("mr_division") | |
26 | +@ApiModel(value="mr_division对象", description="行政区划") | |
27 | +public class Division implements Serializable { | |
28 | + private static final long serialVersionUID = 1L; | |
29 | + | |
30 | + /**主键*/ | |
31 | + @TableId(type = IdType.ASSIGN_ID) | |
32 | + @ApiModelProperty(value = "主键") | |
33 | + private String id; | |
34 | + /**创建人*/ | |
35 | + @ApiModelProperty(value = "创建人") | |
36 | + private String createBy; | |
37 | + /**创建日期*/ | |
38 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
39 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
40 | + @ApiModelProperty(value = "创建日期") | |
41 | + private Date createTime; | |
42 | + /**更新人*/ | |
43 | + @ApiModelProperty(value = "更新人") | |
44 | + private String updateBy; | |
45 | + /**更新日期*/ | |
46 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
47 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
48 | + @ApiModelProperty(value = "更新日期") | |
49 | + private Date updateTime; | |
50 | + /**名称*/ | |
51 | + @Excel(name = "名称", width = 15) | |
52 | + @ApiModelProperty(value = "名称") | |
53 | + private String name; | |
54 | + /**常用名称*/ | |
55 | + @Excel(name = "常用名称", width = 15) | |
56 | + @ApiModelProperty(value = "常用名称") | |
57 | + private String abbreviation; | |
58 | + /**编码*/ | |
59 | + @Excel(name = "编码", width = 15) | |
60 | + @ApiModelProperty(value = "编码") | |
61 | + private String code; | |
62 | + /**常用编码*/ | |
63 | + @Excel(name = "常用编码", width = 15) | |
64 | + @ApiModelProperty(value = "常用编码") | |
65 | + private String commonCode; | |
66 | + /**父级节点*/ | |
67 | + @Excel(name = "父级节点", width = 15) | |
68 | + @ApiModelProperty(value = "父级节点") | |
69 | + private String pid; | |
70 | + /**是否有子节点*/ | |
71 | + @Excel(name = "是否有子节点", width = 15, dicCode = "yn") | |
72 | + @Dict(dicCode = "yn") | |
73 | + @ApiModelProperty(value = "是否有子节点") | |
74 | + private String hasChild; | |
75 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/Family.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import com.baomidou.mybatisplus.annotation.IdType; | |
5 | +import com.baomidou.mybatisplus.annotation.TableField; | |
6 | +import com.baomidou.mybatisplus.annotation.TableId; | |
7 | +import com.baomidou.mybatisplus.annotation.TableName; | |
8 | +import lombok.Data; | |
9 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
10 | +import org.jeecg.common.aspect.annotation.Dict; | |
11 | +import org.springframework.format.annotation.DateTimeFormat; | |
12 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
13 | +import java.util.Date; | |
14 | +import io.swagger.annotations.ApiModel; | |
15 | +import io.swagger.annotations.ApiModelProperty; | |
16 | +import java.io.UnsupportedEncodingException; | |
17 | + | |
18 | +/** | |
19 | + * @Description: 家庭成员表 | |
20 | + * @Author: jeecg-boot | |
21 | + * @Date: 2022-07-13 | |
22 | + * @Version: V1.0 | |
23 | + */ | |
24 | +@ApiModel(value="mr_family对象", description="家庭成员表") | |
25 | +@Data | |
26 | +@TableName("mr_family") | |
27 | +public class Family implements Serializable { | |
28 | + private static final long serialVersionUID = 1L; | |
29 | + //是否犯罪 | |
30 | + public static final Integer IS_CRIME=1;//是 | |
31 | + public static final Integer IS_NOT_CRIME=0;//否 | |
32 | + | |
33 | + /**主键*/ | |
34 | + @TableId(type = IdType.ASSIGN_ID) | |
35 | + @ApiModelProperty(value = "主键") | |
36 | + private String id; | |
37 | + /**创建人*/ | |
38 | + @ApiModelProperty(value = "创建人") | |
39 | + private String createBy; | |
40 | + /**创建日期*/ | |
41 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
42 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
43 | + @ApiModelProperty(value = "创建日期") | |
44 | + private Date createTime; | |
45 | + /**更新人*/ | |
46 | + @ApiModelProperty(value = "更新人") | |
47 | + private String updateBy; | |
48 | + /**更新日期*/ | |
49 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
50 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
51 | + @ApiModelProperty(value = "更新日期") | |
52 | + private Date updateTime; | |
53 | + /**所属部门*/ | |
54 | + @ApiModelProperty(value = "所属部门") | |
55 | + private String sysOrgCode; | |
56 | + /**姓名*/ | |
57 | + @Excel(name = "姓名", width = 15) | |
58 | + @ApiModelProperty(value = "姓名") | |
59 | + private String name; | |
60 | + /**性别*/ | |
61 | + @Excel(name = "性别", width = 15,dicCode = "sex") | |
62 | + @ApiModelProperty(value = "性别") | |
63 | + @Dict(dicCode = "sex") | |
64 | + private Integer gender; | |
65 | + /**身份证号*/ | |
66 | + @Excel(name = "身份证号", width = 15) | |
67 | + @ApiModelProperty(value = "身份证号") | |
68 | + private String identity; | |
69 | + /**户号*/ | |
70 | + @Excel(name = "户号", width = 15) | |
71 | + @ApiModelProperty(value = "户号") | |
72 | + private String householdNum; | |
73 | + /**人员编号*/ | |
74 | + @Excel(name = "人员编号", width = 15) | |
75 | + @ApiModelProperty(value = "人员编号") | |
76 | + private String number; | |
77 | + /**婚姻状况*/ | |
78 | + @Excel(name = "婚姻状况", width = 15,dicCode = "marital_status") | |
79 | + @ApiModelProperty(value = "婚姻状况") | |
80 | + @Dict(dicCode = "marital_status") | |
81 | + private Integer marital; | |
82 | + /**是否犯罪*/ | |
83 | + @Excel(name = "是否犯罪", width = 15,dicCode = "is_crime") | |
84 | + @ApiModelProperty(value = "是否犯罪") | |
85 | + @Dict(dicCode = "is_crime") | |
86 | + private Integer crime; | |
87 | + /**犯罪原因*/ | |
88 | + @Excel(name = "犯罪原因", width = 15) | |
89 | + @ApiModelProperty(value = "犯罪原因") | |
90 | + private String reason; | |
91 | + /**其他参考信息*/ | |
92 | + @Excel(name = "其他参考信息", width = 15) | |
93 | + @ApiModelProperty(value = "其他参考信息") | |
94 | + private String other; | |
95 | + /**行政区划*/ | |
96 | + @Excel(name = "行政区划", width = 15) | |
97 | + @ApiModelProperty(value = "行政区划") | |
98 | + private String division; | |
99 | + @Excel(name = "与户主的关系", width = 15) | |
100 | + @ApiModelProperty(value = "与户主的关系") | |
101 | + private String relation; | |
102 | + /**现住址*/ | |
103 | + @Excel(name = "现住址", width = 15) | |
104 | + @ApiModelProperty(value = "现住址") | |
105 | + private String address; | |
106 | + /**未成年人表id*/ | |
107 | + @ApiModelProperty(value = "未成年人表id") | |
108 | + private String minorId; | |
109 | + | |
110 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/GaDemographic.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: ga_demographic | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("ga_demographic") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="ga_demographic对象", description="ga_demographic") | |
31 | +public class GaDemographic implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**人员编号*/ | |
35 | + @Excel(name = "人员编号", width = 15) | |
36 | + @ApiModelProperty(value = "人员编号") | |
37 | + private String rybh; | |
38 | + /**姓名*/ | |
39 | + @Excel(name = "姓名", width = 15) | |
40 | + @ApiModelProperty(value = "姓名") | |
41 | + private String xm; | |
42 | + /**身份证号*/ | |
43 | + @Excel(name = "身份证号", width = 15) | |
44 | + @ApiModelProperty(value = "身份证号") | |
45 | + private String gmsfhm; | |
46 | + /**曾用名*/ | |
47 | + @Excel(name = "曾用名", width = 15) | |
48 | + @ApiModelProperty(value = "曾用名") | |
49 | + private String cym; | |
50 | + /**性别*/ | |
51 | + @Excel(name = "性别", width = 15) | |
52 | + @ApiModelProperty(value = "性别") | |
53 | + private String xb; | |
54 | + /**出生日期*/ | |
55 | + @Excel(name = "出生日期", width = 15) | |
56 | + @ApiModelProperty(value = "出生日期") | |
57 | + private String csrq; | |
58 | + /**民族*/ | |
59 | + @Excel(name = "民族", width = 15) | |
60 | + @ApiModelProperty(value = "民族") | |
61 | + private String mz; | |
62 | + /**户籍祥址*/ | |
63 | + @Excel(name = "户籍祥址", width = 15) | |
64 | + @ApiModelProperty(value = "户籍祥址") | |
65 | + private String hjxz; | |
66 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/GaHousehold.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: ga_household | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("ga_household") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="ga_household对象", description="ga_household") | |
31 | +public class GaHousehold implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**人员编号*/ | |
35 | + @Excel(name = "人员编号", width = 15) | |
36 | + @ApiModelProperty(value = "人员编号") | |
37 | + private String rybh; | |
38 | + /**姓名*/ | |
39 | + @Excel(name = "姓名", width = 15) | |
40 | + @ApiModelProperty(value = "姓名") | |
41 | + private String xm; | |
42 | + /**身份证号*/ | |
43 | + @Excel(name = "身份证号", width = 15) | |
44 | + @ApiModelProperty(value = "身份证号") | |
45 | + private String gmsfhm; | |
46 | + /**曾用名*/ | |
47 | + @Excel(name = "曾用名", width = 15) | |
48 | + @ApiModelProperty(value = "曾用名") | |
49 | + private String cym; | |
50 | + /**性别*/ | |
51 | + @Excel(name = "性别", width = 15) | |
52 | + @ApiModelProperty(value = "性别") | |
53 | + private String xb; | |
54 | + /**出生日期*/ | |
55 | + @Excel(name = "出生日期", width = 15) | |
56 | + @ApiModelProperty(value = "出生日期") | |
57 | + private String csrq; | |
58 | + /**民族*/ | |
59 | + @Excel(name = "民族", width = 15) | |
60 | + @ApiModelProperty(value = "民族") | |
61 | + private String mz; | |
62 | + /**户籍祥址*/ | |
63 | + @Excel(name = "户籍祥址", width = 15) | |
64 | + @ApiModelProperty(value = "户籍祥址") | |
65 | + private String hjxz; | |
66 | + /**现住祥址*/ | |
67 | + @Excel(name = "现住祥址", width = 15) | |
68 | + @ApiModelProperty(value = "现住祥址") | |
69 | + private String xzxz; | |
70 | + /**户号*/ | |
71 | + @Excel(name = "户号", width = 15) | |
72 | + @ApiModelProperty(value = "户号") | |
73 | + private String hh; | |
74 | + /**人员状态*/ | |
75 | + @Excel(name = "人员状态", width = 15) | |
76 | + @ApiModelProperty(value = "人员状态") | |
77 | + private String ryzt; | |
78 | + /**行政区划*/ | |
79 | + @Excel(name = "行政区划", width = 15) | |
80 | + @ApiModelProperty(value = "行政区划") | |
81 | + private String xzqhmc; | |
82 | + /**jgxzqh*/ | |
83 | + @Excel(name = "jgxzqh", width = 15) | |
84 | + @ApiModelProperty(value = "jgxzqh") | |
85 | + private String jgxzqh; | |
86 | + /**与户主关系*/ | |
87 | + @Excel(name = "与户主关系", width = 15) | |
88 | + @ApiModelProperty(value = "与户主关系") | |
89 | + private String yhzgxmc; | |
90 | + /**id*/ | |
91 | + @TableId(type = IdType.ASSIGN_ID) | |
92 | + @ApiModelProperty(value = "id") | |
93 | + private Integer id; | |
94 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/GaJuvenilesStay.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: 公安_未成年人住宿信息 | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("ga_juveniles_stay") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="ga_juveniles_stay对象", description="ga_juveniles_stay") | |
31 | +public class GaJuvenilesStay implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**姓名*/ | |
35 | + @Excel(name = "姓名", width = 15) | |
36 | + @ApiModelProperty(value = "姓名") | |
37 | + private String xm; | |
38 | + /**身份证号*/ | |
39 | + @Excel(name = "身份证号", width = 15) | |
40 | + @ApiModelProperty(value = "身份证号") | |
41 | + private String gmsfhm; | |
42 | + /**出生日期*/ | |
43 | + @Excel(name = "出生日期", width = 15, format = "yyyy-MM-dd") | |
44 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") | |
45 | + @DateTimeFormat(pattern="yyyy-MM-dd") | |
46 | + @ApiModelProperty(value = "出生日期") | |
47 | + private Date csrq; | |
48 | + /**入住时间*/ | |
49 | + @Excel(name = "入住时间", width = 15, format = "yyyy-MM-dd") | |
50 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") | |
51 | + @DateTimeFormat(pattern="yyyy-MM-dd") | |
52 | + @ApiModelProperty(value = "入住时间") | |
53 | + private Date rzsj; | |
54 | + /**退房时间*/ | |
55 | + @Excel(name = "退房时间", width = 15, format = "yyyy-MM-dd") | |
56 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") | |
57 | + @DateTimeFormat(pattern="yyyy-MM-dd") | |
58 | + @ApiModelProperty(value = "退房时间") | |
59 | + private Date tfsj; | |
60 | + /**旅馆名称*/ | |
61 | + @Excel(name = "旅馆名称", width = 15) | |
62 | + @ApiModelProperty(value = "旅馆名称") | |
63 | + private String lgbm; | |
64 | + /**入住房号*/ | |
65 | + @Excel(name = "入住房号", width = 15) | |
66 | + @ApiModelProperty(value = "入住房号") | |
67 | + private String rzfh; | |
68 | + /**dwmc*/ | |
69 | + @Excel(name = "dwmc", width = 15) | |
70 | + @ApiModelProperty(value = "dwmc") | |
71 | + private String dwmc; | |
72 | + /**dwdz*/ | |
73 | + @Excel(name = "dwdz", width = 15) | |
74 | + @ApiModelProperty(value = "dwdz") | |
75 | + private String dwdz; | |
76 | + /**id*/ | |
77 | + @TableId(type = IdType.ASSIGN_ID) | |
78 | + @ApiModelProperty(value = "id") | |
79 | + private Integer id; | |
80 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/GaPunish.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: 公安_行政处罚打处人员信息 | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("ga_punish") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="ga_punish对象", description="ga_punish") | |
31 | +public class GaPunish implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**姓名*/ | |
35 | + @Excel(name = "姓名", width = 15) | |
36 | + @ApiModelProperty(value = "姓名") | |
37 | + private String xm; | |
38 | + /**身份证号*/ | |
39 | + @Excel(name = "身份证号", width = 15) | |
40 | + @ApiModelProperty(value = "身份证号") | |
41 | + private String dxsfzh; | |
42 | + /**受理单位*/ | |
43 | + @Excel(name = "受理单位", width = 15) | |
44 | + @ApiModelProperty(value = "受理单位") | |
45 | + private String sldw; | |
46 | + /**案件编号*/ | |
47 | + @Excel(name = "案件编号", width = 15) | |
48 | + @ApiModelProperty(value = "案件编号") | |
49 | + private String ajbh; | |
50 | + /**案件名称*/ | |
51 | + @Excel(name = "案件名称", width = 15) | |
52 | + @ApiModelProperty(value = "案件名称") | |
53 | + private String ajmc; | |
54 | + /**案件类别*/ | |
55 | + @Excel(name = "案件类别", width = 15) | |
56 | + @ApiModelProperty(value = "案件类别") | |
57 | + private String ajlb; | |
58 | + /**决定结果*/ | |
59 | + @Excel(name = "决定结果", width = 15) | |
60 | + @ApiModelProperty(value = "决定结果") | |
61 | + private String jdjg; | |
62 | + /**案件编码*/ | |
63 | + @Excel(name = "案件编码", width = 15) | |
64 | + @ApiModelProperty(value = "案件编码") | |
65 | + private String ajlbmc; | |
66 | + /**sldwmc*/ | |
67 | + @Excel(name = "sldwmc", width = 15) | |
68 | + @ApiModelProperty(value = "sldwmc") | |
69 | + private String sldwmc; | |
70 | + /**jdjgmc*/ | |
71 | + @Excel(name = "jdjgmc", width = 15) | |
72 | + @ApiModelProperty(value = "jdjgmc") | |
73 | + private String jdjgmc; | |
74 | + /**id*/ | |
75 | + @TableId(type = IdType.ASSIGN_ID) | |
76 | + @ApiModelProperty(value = "id") | |
77 | + private Integer id; | |
78 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/HighSchool.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: mr_high_school | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-15 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mr_high_school") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mr_high_school对象", description="mr_high_school") | |
31 | +public class HighSchool implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**姓名*/ | |
35 | + @Excel(name = "姓名", width = 15) | |
36 | + @ApiModelProperty(value = "姓名") | |
37 | + private String xm; | |
38 | + /**身份证件号*/ | |
39 | + @Excel(name = "身份证件号", width = 15) | |
40 | + @ApiModelProperty(value = "身份证件号") | |
41 | + private String sfzjh; | |
42 | + /**学校名称*/ | |
43 | + @Excel(name = "学校名称", width = 15) | |
44 | + @ApiModelProperty(value = "学校名称") | |
45 | + private String xxmc; | |
46 | + /**年级名称*/ | |
47 | + @Excel(name = "年级名称", width = 15) | |
48 | + @ApiModelProperty(value = "年级名称") | |
49 | + private String njmc; | |
50 | + /**入学年份*/ | |
51 | + @Excel(name = "入学年份", width = 15) | |
52 | + @ApiModelProperty(value = "入学年份") | |
53 | + private String rxnf; | |
54 | + /**家庭住址*/ | |
55 | + @Excel(name = "家庭住址", width = 15) | |
56 | + @ApiModelProperty(value = "家庭住址") | |
57 | + private String jtzz; | |
58 | + /**联系电话*/ | |
59 | + @Excel(name = "联系电话", width = 15) | |
60 | + @ApiModelProperty(value = "联系电话") | |
61 | + private String lxdh; | |
62 | + /**成员姓名1*/ | |
63 | + @Excel(name = "成员姓名1", width = 15) | |
64 | + @ApiModelProperty(value = "成员姓名1") | |
65 | + private String cyxm1; | |
66 | + /**联系电话1*/ | |
67 | + @Excel(name = "联系电话1", width = 15) | |
68 | + @ApiModelProperty(value = "联系电话1") | |
69 | + private String lxdh1; | |
70 | + /**成员姓名2*/ | |
71 | + @Excel(name = "成员姓名2", width = 15) | |
72 | + @ApiModelProperty(value = "成员姓名2") | |
73 | + private String cyxm2; | |
74 | + /**联系电话2*/ | |
75 | + @Excel(name = "联系电话2", width = 15) | |
76 | + @ApiModelProperty(value = "联系电话2") | |
77 | + private String lxdh2; | |
78 | + /**id*/ | |
79 | + @TableId(type = IdType.ASSIGN_ID) | |
80 | + @ApiModelProperty(value = "id") | |
81 | + private Integer id; | |
82 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/Minor.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import com.baomidou.mybatisplus.annotation.IdType; | |
7 | +import com.baomidou.mybatisplus.annotation.TableField; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | + | |
18 | +/** | |
19 | + * @Description: 未成年人 | |
20 | + * @Author: jeecg-boot | |
21 | + * @Date: 2022-07-13 | |
22 | + * @Version: V1.0 | |
23 | + */ | |
24 | +@ApiModel(value="mr_minor对象", description="未成年人") | |
25 | +@Data | |
26 | +@TableName("mr_minor") | |
27 | +public class Minor implements Serializable { | |
28 | + private static final long serialVersionUID = 1L; | |
29 | + | |
30 | + /**主键*/ | |
31 | + @TableId(type = IdType.ASSIGN_ID) | |
32 | + @ApiModelProperty(value = "主键") | |
33 | + private String id; | |
34 | + /**创建人*/ | |
35 | + @ApiModelProperty(value = "创建人") | |
36 | + private String createBy; | |
37 | + /**创建日期*/ | |
38 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
39 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
40 | + @ApiModelProperty(value = "创建日期") | |
41 | + private Date createTime; | |
42 | + /**更新人*/ | |
43 | + @ApiModelProperty(value = "更新人") | |
44 | + private String updateBy; | |
45 | + /**更新日期*/ | |
46 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
47 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
48 | + @ApiModelProperty(value = "更新日期") | |
49 | + private Date updateTime; | |
50 | + /**所属部门*/ | |
51 | + @ApiModelProperty(value = "所属部门") | |
52 | + @Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "id") | |
53 | + private String sysOrgCode; | |
54 | + /**姓名*/ | |
55 | + @Excel(name = "姓名", width = 15) | |
56 | + @ApiModelProperty(value = "姓名") | |
57 | + private String name; | |
58 | + /**性别*/ | |
59 | + @Excel(name = "性别", width = 15,dicCode = "sex") | |
60 | + @ApiModelProperty(value = "性别") | |
61 | + @Dict(dicCode = "sex") | |
62 | + private Integer gender; | |
63 | + /**家庭住址*/ | |
64 | + @Excel(name = "家庭住址", width = 15) | |
65 | + @ApiModelProperty(value = "家庭住址") | |
66 | + private String address; | |
67 | + /**身份证号*/ | |
68 | + @Excel(name = "身份证号", width = 15) | |
69 | + @ApiModelProperty(value = "身份证号") | |
70 | + private String identity; | |
71 | + /**重点关注原因*/ | |
72 | + @Excel(name = "重点关注原因", width = 15) | |
73 | + @ApiModelProperty(value = "重点关注原因") | |
74 | + private String reason; | |
75 | + /**备注*/ | |
76 | + @Excel(name = "备注", width = 15) | |
77 | + @ApiModelProperty(value = "备注") | |
78 | + private String remark; | |
79 | + | |
80 | + /** | |
81 | + * 监护人 | |
82 | + */ | |
83 | + @Excel(name = "监护人", width = 15) | |
84 | + @ApiModelProperty(value = "监护人") | |
85 | + private String guardian; | |
86 | + | |
87 | + /** | |
88 | + * 监护人关系 | |
89 | + */ | |
90 | + @Excel(name = "监护人关系", width = 15) | |
91 | + @ApiModelProperty(value = "监护人关系") | |
92 | + private String relation; | |
93 | + | |
94 | + /**是否失学*/ | |
95 | + @Excel(name = "是否失学", width = 15,dicCode = "school_status") | |
96 | + @ApiModelProperty(value = "是否失学") | |
97 | + @Dict(dicCode = "school_status") | |
98 | + private Integer school; | |
99 | + | |
100 | + /**人员编号*/ | |
101 | + @Excel(name = "人员编号", width = 15) | |
102 | + @ApiModelProperty(value = "人员编号") | |
103 | + private String number; | |
104 | + | |
105 | + /**户号*/ | |
106 | + @Excel(name = "户号", width = 15) | |
107 | + @ApiModelProperty(value = "户号") | |
108 | + private String householdNum; | |
109 | + | |
110 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/MrSchool.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: 学校 | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-15 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mr_school") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mr_school对象", description="学校") | |
31 | +public class MrSchool implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**主键*/ | |
35 | + @TableId(type = IdType.ASSIGN_ID) | |
36 | + @ApiModelProperty(value = "主键") | |
37 | + private String id; | |
38 | + /**创建人*/ | |
39 | + @ApiModelProperty(value = "创建人") | |
40 | + private String createBy; | |
41 | + /**创建日期*/ | |
42 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
43 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
44 | + @ApiModelProperty(value = "创建日期") | |
45 | + private Date createTime; | |
46 | + /**更新人*/ | |
47 | + @ApiModelProperty(value = "更新人") | |
48 | + private String updateBy; | |
49 | + /**更新日期*/ | |
50 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
51 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
52 | + @ApiModelProperty(value = "更新日期") | |
53 | + private Date updateTime; | |
54 | + /**所属部门*/ | |
55 | + @ApiModelProperty(value = "所属部门") | |
56 | + private String sysOrgCode; | |
57 | + /**姓名*/ | |
58 | + @Excel(name = "姓名", width = 15) | |
59 | + @ApiModelProperty(value = "姓名") | |
60 | + private String name; | |
61 | + /**身份证件号*/ | |
62 | + @Excel(name = "身份证件号", width = 15) | |
63 | + @ApiModelProperty(value = "身份证件号") | |
64 | + private String identity; | |
65 | + /**学校名称*/ | |
66 | + @Excel(name = "学校名称", width = 15) | |
67 | + @ApiModelProperty(value = "学校名称") | |
68 | + private String school; | |
69 | + /**入学日期*/ | |
70 | + @Excel(name = "入学日期", width = 15) | |
71 | + @ApiModelProperty(value = "入学日期") | |
72 | + private String admissionDate; | |
73 | + /**班级名称*/ | |
74 | + @Excel(name = "班级名称", width = 15) | |
75 | + @ApiModelProperty(value = "班级名称") | |
76 | + private String className; | |
77 | + /**现住址*/ | |
78 | + @Excel(name = "现住址", width = 15) | |
79 | + @ApiModelProperty(value = "现住址") | |
80 | + private String address; | |
81 | + /**成员姓名1*/ | |
82 | + @Excel(name = "成员姓名1", width = 15) | |
83 | + @ApiModelProperty(value = "成员姓名1") | |
84 | + private String memberOne; | |
85 | + /**联系电话1*/ | |
86 | + @Excel(name = "联系电话1", width = 15) | |
87 | + @ApiModelProperty(value = "联系电话1") | |
88 | + private String connectOne; | |
89 | + /**手机号码1*/ | |
90 | + @Excel(name = "手机号码1", width = 15) | |
91 | + @ApiModelProperty(value = "手机号码1") | |
92 | + private String phoneOne; | |
93 | + /**成员姓名2*/ | |
94 | + @Excel(name = "成员姓名2", width = 15) | |
95 | + @ApiModelProperty(value = "成员姓名2") | |
96 | + private String memberTwo; | |
97 | + /**联系电话2*/ | |
98 | + @Excel(name = "联系电话2", width = 15) | |
99 | + @ApiModelProperty(value = "联系电话2") | |
100 | + private String connectTwo; | |
101 | + /**手机号码2*/ | |
102 | + @Excel(name = "手机号码2", width = 15) | |
103 | + @ApiModelProperty(value = "手机号码2") | |
104 | + private String phoneTwo; | |
105 | + /**联系电话*/ | |
106 | + @Excel(name = "联系电话", width = 15) | |
107 | + @ApiModelProperty(value = "联系电话") | |
108 | + private String phone; | |
109 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/MzAdoption.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: mz_adoption | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mz_adoption") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mz_adoption对象", description="mz_adoption") | |
31 | +public class MzAdoption implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**id*/ | |
35 | + @TableId(type = IdType.ASSIGN_ID) | |
36 | + @ApiModelProperty(value = "id") | |
37 | + private Integer id; | |
38 | + /**序号*/ | |
39 | + @Excel(name = "序号", width = 15) | |
40 | + @ApiModelProperty(value = "序号") | |
41 | + private String num; | |
42 | + /**区划代码*/ | |
43 | + @Excel(name = "区划代码", width = 15) | |
44 | + @ApiModelProperty(value = "区划代码") | |
45 | + private String areaCode; | |
46 | + /**收养日期*/ | |
47 | + @Excel(name = "收养日期", width = 15) | |
48 | + @ApiModelProperty(value = "收养日期") | |
49 | + private String adoptionDate; | |
50 | + /**登记字号*/ | |
51 | + @Excel(name = "登记字号", width = 15) | |
52 | + @ApiModelProperty(value = "登记字号") | |
53 | + private String registerNum; | |
54 | + /**登记日期*/ | |
55 | + @Excel(name = "登记日期", width = 15) | |
56 | + @ApiModelProperty(value = "登记日期") | |
57 | + private String registerDate; | |
58 | + /**办理机构*/ | |
59 | + @Excel(name = "办理机构", width = 15) | |
60 | + @ApiModelProperty(value = "办理机构") | |
61 | + private String agency; | |
62 | + /**业务类别*/ | |
63 | + @Excel(name = "业务类别", width = 15) | |
64 | + @ApiModelProperty(value = "业务类别") | |
65 | + private String category; | |
66 | + /**是否补录*/ | |
67 | + @Excel(name = "是否补录", width = 15) | |
68 | + @ApiModelProperty(value = "是否补录") | |
69 | + private String isRepair; | |
70 | + /**收养类别*/ | |
71 | + @Excel(name = "收养类别", width = 15) | |
72 | + @ApiModelProperty(value = "收养类别") | |
73 | + private String adoptionType; | |
74 | + /**被收养人身份类别*/ | |
75 | + @Excel(name = "被收养人身份类别", width = 15) | |
76 | + @ApiModelProperty(value = "被收养人身份类别") | |
77 | + private String identityCategory; | |
78 | + /**被收养人姓名*/ | |
79 | + @Excel(name = "被收养人姓名", width = 15) | |
80 | + @ApiModelProperty(value = "被收养人姓名") | |
81 | + private String initialName; | |
82 | + /**被收养人*/ | |
83 | + @Excel(name = "被收养人", width = 15) | |
84 | + @ApiModelProperty(value = "被收养人") | |
85 | + private String adoptedName; | |
86 | + /**被收养人性别*/ | |
87 | + @Excel(name = "被收养人性别", width = 15) | |
88 | + @ApiModelProperty(value = "被收养人性别") | |
89 | + private String gender; | |
90 | + /**被收养人身份证号*/ | |
91 | + @Excel(name = "被收养人身份证号", width = 15) | |
92 | + @ApiModelProperty(value = "被收养人身份证号") | |
93 | + private String identity; | |
94 | + /**被收养人出生年月*/ | |
95 | + @Excel(name = "被收养人出生年月", width = 15) | |
96 | + @ApiModelProperty(value = "被收养人出生年月") | |
97 | + private String birthday; | |
98 | + /**被收养人民族*/ | |
99 | + @Excel(name = "被收养人民族", width = 15) | |
100 | + @ApiModelProperty(value = "被收养人民族") | |
101 | + private String nation; | |
102 | + /**被收养人健康状况*/ | |
103 | + @Excel(name = "被收养人健康状况", width = 15) | |
104 | + @ApiModelProperty(value = "被收养人健康状况") | |
105 | + private String health; | |
106 | + /**被收养人住址*/ | |
107 | + @Excel(name = "被收养人住址", width = 15) | |
108 | + @ApiModelProperty(value = "被收养人住址") | |
109 | + private String address; | |
110 | + /**被收养人所在福利组织机构名称*/ | |
111 | + @Excel(name = "被收养人所在福利组织机构名称", width = 15) | |
112 | + @ApiModelProperty(value = "被收养人所在福利组织机构名称") | |
113 | + private String orgName; | |
114 | + /**主收养人男方姓名*/ | |
115 | + @Excel(name = "主收养人男方姓名", width = 15) | |
116 | + @ApiModelProperty(value = "主收养人男方姓名") | |
117 | + private String mName; | |
118 | + /**主收养人男方身份证号*/ | |
119 | + @Excel(name = "主收养人男方身份证号", width = 15) | |
120 | + @ApiModelProperty(value = "主收养人男方身份证号") | |
121 | + private String mIdentity; | |
122 | + /**主收养人男方民族*/ | |
123 | + @Excel(name = "主收养人男方民族", width = 15) | |
124 | + @ApiModelProperty(value = "主收养人男方民族") | |
125 | + private String mNation; | |
126 | + /**主收养人男方国籍*/ | |
127 | + @Excel(name = "主收养人男方国籍", width = 15) | |
128 | + @ApiModelProperty(value = "主收养人男方国籍") | |
129 | + private String mNationality; | |
130 | + /**主收养人男方住址*/ | |
131 | + @Excel(name = "主收养人男方住址", width = 15) | |
132 | + @ApiModelProperty(value = "主收养人男方住址") | |
133 | + private String mAddress; | |
134 | + /**主收养人男方电话*/ | |
135 | + @Excel(name = "主收养人男方电话", width = 15) | |
136 | + @ApiModelProperty(value = "主收养人男方电话") | |
137 | + private String mPhone; | |
138 | + /**主收养人男方婚姻状况*/ | |
139 | + @Excel(name = "主收养人男方婚姻状况", width = 15) | |
140 | + @ApiModelProperty(value = "主收养人男方婚姻状况") | |
141 | + private String mMarital; | |
142 | + /**主收养人女方姓名*/ | |
143 | + @Excel(name = "主收养人女方姓名", width = 15) | |
144 | + @ApiModelProperty(value = "主收养人女方姓名") | |
145 | + private String wName; | |
146 | + /**主收养人女方身份证号*/ | |
147 | + @Excel(name = "主收养人女方身份证号", width = 15) | |
148 | + @ApiModelProperty(value = "主收养人女方身份证号") | |
149 | + private String wIdentity; | |
150 | + /**主收养人女方民族*/ | |
151 | + @Excel(name = "主收养人女方民族", width = 15) | |
152 | + @ApiModelProperty(value = "主收养人女方民族") | |
153 | + private String wNation; | |
154 | + /**主收养人女方国籍*/ | |
155 | + @Excel(name = "主收养人女方国籍", width = 15) | |
156 | + @ApiModelProperty(value = "主收养人女方国籍") | |
157 | + private String wNationality; | |
158 | + /**主收养人女方住址*/ | |
159 | + @Excel(name = "主收养人女方住址", width = 15) | |
160 | + @ApiModelProperty(value = "主收养人女方住址") | |
161 | + private String wAddress; | |
162 | + /**主收养人女方电话*/ | |
163 | + @Excel(name = "主收养人女方电话", width = 15) | |
164 | + @ApiModelProperty(value = "主收养人女方电话") | |
165 | + private String wPhone; | |
166 | + /**主收养人女方婚姻状况*/ | |
167 | + @Excel(name = "主收养人女方婚姻状况", width = 15) | |
168 | + @ApiModelProperty(value = "主收养人女方婚姻状况") | |
169 | + private String wMarital; | |
170 | + /**送养人姓名(名称)*/ | |
171 | + @Excel(name = "送养人姓名(名称)", width = 15) | |
172 | + @ApiModelProperty(value = "送养人姓名(名称)") | |
173 | + private String adopteeGuardian; | |
174 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/MzLeftBehindChildren.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: 民政_全市在册农村留守儿童数据 | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mz_left_behind_children") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mz_left_behind_children对象", description="mz_left_behind_children") | |
31 | +public class MzLeftBehindChildren implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**区域*/ | |
35 | + @Excel(name = "区域", width = 15) | |
36 | + @ApiModelProperty(value = "区域") | |
37 | + private String area; | |
38 | + /**儿童姓名*/ | |
39 | + @Excel(name = "儿童姓名", width = 15) | |
40 | + @ApiModelProperty(value = "儿童姓名") | |
41 | + private String name; | |
42 | + /**身份证号*/ | |
43 | + @Excel(name = "身份证号", width = 15) | |
44 | + @ApiModelProperty(value = "身份证号") | |
45 | + private String identity; | |
46 | + /**儿童性别*/ | |
47 | + @Excel(name = "儿童性别", width = 15) | |
48 | + @ApiModelProperty(value = "儿童性别") | |
49 | + private String gender; | |
50 | + /**民族*/ | |
51 | + @Excel(name = "民族", width = 15) | |
52 | + @ApiModelProperty(value = "民族") | |
53 | + private String nation; | |
54 | + /**出生日期*/ | |
55 | + @Excel(name = "出生日期", width = 15) | |
56 | + @ApiModelProperty(value = "出生日期") | |
57 | + private String birthday; | |
58 | + /**户口分类*/ | |
59 | + @Excel(name = "户口分类", width = 15) | |
60 | + @ApiModelProperty(value = "户口分类") | |
61 | + private String type; | |
62 | + /**户籍状况*/ | |
63 | + @Excel(name = "户籍状况", width = 15) | |
64 | + @ApiModelProperty(value = "户籍状况") | |
65 | + private String censusStatus; | |
66 | + /**户籍所在地*/ | |
67 | + @Excel(name = "户籍所在地", width = 15) | |
68 | + @ApiModelProperty(value = "户籍所在地") | |
69 | + private String domicile; | |
70 | + /**现住址*/ | |
71 | + @Excel(name = "现住址", width = 15) | |
72 | + @ApiModelProperty(value = "现住址") | |
73 | + private String currentAddress; | |
74 | + /**健康状况*/ | |
75 | + @Excel(name = "健康状况", width = 15) | |
76 | + @ApiModelProperty(value = "健康状况") | |
77 | + private String health; | |
78 | + /**患艾滋病情况*/ | |
79 | + @Excel(name = "患艾滋病情况", width = 15) | |
80 | + @ApiModelProperty(value = "患艾滋病情况") | |
81 | + private String hivStatus; | |
82 | + /**学业状况*/ | |
83 | + @Excel(name = "学业状况", width = 15) | |
84 | + @ApiModelProperty(value = "学业状况") | |
85 | + private String academicStatus; | |
86 | + /**就学状况*/ | |
87 | + @Excel(name = "就学状况", width = 15) | |
88 | + @ApiModelProperty(value = "就学状况") | |
89 | + private String schoolStatus; | |
90 | + /**是否学校寄宿*/ | |
91 | + @Excel(name = "是否学校寄宿", width = 15) | |
92 | + @ApiModelProperty(value = "是否学校寄宿") | |
93 | + private String board; | |
94 | + /**监护类型*/ | |
95 | + @Excel(name = "监护类型", width = 15) | |
96 | + @ApiModelProperty(value = "监护类型") | |
97 | + private String guardianshipType; | |
98 | + /**监护不当情形*/ | |
99 | + @Excel(name = "监护不当情形", width = 15) | |
100 | + @ApiModelProperty(value = "监护不当情形") | |
101 | + private String improperGuardianship; | |
102 | + /**救助措施*/ | |
103 | + @Excel(name = "救助措施", width = 15) | |
104 | + @ApiModelProperty(value = "救助措施") | |
105 | + private String reliefMeasures; | |
106 | + /**其他特殊情况*/ | |
107 | + @Excel(name = "其他特殊情况", width = 15) | |
108 | + @ApiModelProperty(value = "其他特殊情况") | |
109 | + private String specialCase; | |
110 | + /**父亲姓名*/ | |
111 | + @Excel(name = "父亲姓名", width = 15) | |
112 | + @ApiModelProperty(value = "父亲姓名") | |
113 | + private String fName; | |
114 | + /**父亲证件类型*/ | |
115 | + @Excel(name = "父亲证件类型", width = 15) | |
116 | + @ApiModelProperty(value = "父亲证件类型") | |
117 | + private String fCredentials; | |
118 | + /**证件号码*/ | |
119 | + @Excel(name = "证件号码", width = 15) | |
120 | + @ApiModelProperty(value = "证件号码") | |
121 | + private String fIdentity; | |
122 | + /**父亲联系电话*/ | |
123 | + @Excel(name = "父亲联系电话", width = 15) | |
124 | + @ApiModelProperty(value = "父亲联系电话") | |
125 | + private String fPhone; | |
126 | + /**父亲现住址情况*/ | |
127 | + @Excel(name = "父亲现住址情况", width = 15) | |
128 | + @ApiModelProperty(value = "父亲现住址情况") | |
129 | + private String fAddressStatus; | |
130 | + /**父亲户籍所在地*/ | |
131 | + @Excel(name = "父亲户籍所在地", width = 15) | |
132 | + @ApiModelProperty(value = "父亲户籍所在地") | |
133 | + private String fDomicile; | |
134 | + /**父亲现住址*/ | |
135 | + @Excel(name = "父亲现住址", width = 15) | |
136 | + @ApiModelProperty(value = "父亲现住址") | |
137 | + private String fCurrentAddress; | |
138 | + /**父亲健康状况*/ | |
139 | + @Excel(name = "父亲健康状况", width = 15) | |
140 | + @ApiModelProperty(value = "父亲健康状况") | |
141 | + private String fHealth; | |
142 | + /**父亲家庭经济来源*/ | |
143 | + @Excel(name = "父亲家庭经济来源", width = 15) | |
144 | + @ApiModelProperty(value = "父亲家庭经济来源") | |
145 | + private String fEconomicSource; | |
146 | + /**父亲其他特殊情况*/ | |
147 | + @Excel(name = "父亲其他特殊情况", width = 15) | |
148 | + @ApiModelProperty(value = "父亲其他特殊情况") | |
149 | + private String fSpecialCase; | |
150 | + /**母亲姓名*/ | |
151 | + @Excel(name = "母亲姓名", width = 15) | |
152 | + @ApiModelProperty(value = "母亲姓名") | |
153 | + private String mName; | |
154 | + /**母亲证件类型*/ | |
155 | + @Excel(name = "母亲证件类型", width = 15) | |
156 | + @ApiModelProperty(value = "母亲证件类型") | |
157 | + private String mCredentials; | |
158 | + /**母亲证件号码*/ | |
159 | + @Excel(name = "母亲证件号码", width = 15) | |
160 | + @ApiModelProperty(value = "母亲证件号码") | |
161 | + private String mIdentity; | |
162 | + /**母亲联系电话*/ | |
163 | + @Excel(name = "母亲联系电话", width = 15) | |
164 | + @ApiModelProperty(value = "母亲联系电话") | |
165 | + private String mPhone; | |
166 | + /**母亲现住址情况*/ | |
167 | + @Excel(name = "母亲现住址情况", width = 15) | |
168 | + @ApiModelProperty(value = "母亲现住址情况") | |
169 | + private String mAddressStatus; | |
170 | + /**母亲户籍所在地*/ | |
171 | + @Excel(name = "母亲户籍所在地", width = 15) | |
172 | + @ApiModelProperty(value = "母亲户籍所在地") | |
173 | + private String mDomicile; | |
174 | + /**母亲现住址*/ | |
175 | + @Excel(name = "母亲现住址", width = 15) | |
176 | + @ApiModelProperty(value = "母亲现住址") | |
177 | + private String mCurrentAddress; | |
178 | + /**母亲健康状况*/ | |
179 | + @Excel(name = "母亲健康状况", width = 15) | |
180 | + @ApiModelProperty(value = "母亲健康状况") | |
181 | + private String mHealth; | |
182 | + /**母亲家庭经济来源*/ | |
183 | + @Excel(name = "母亲家庭经济来源", width = 15) | |
184 | + @ApiModelProperty(value = "母亲家庭经济来源") | |
185 | + private String mEconomicSource; | |
186 | + /**母亲其他特殊情况*/ | |
187 | + @Excel(name = "母亲其他特殊情况", width = 15) | |
188 | + @ApiModelProperty(value = "母亲其他特殊情况") | |
189 | + private String mSpecialCase; | |
190 | + /**委托照料原因情况*/ | |
191 | + @Excel(name = "委托照料原因情况", width = 15) | |
192 | + @ApiModelProperty(value = "委托照料原因情况") | |
193 | + private String reason; | |
194 | + /**父母外出有无委托照料人*/ | |
195 | + @Excel(name = "父母外出有无委托照料人", width = 15) | |
196 | + @ApiModelProperty(value = "父母外出有无委托照料人") | |
197 | + private String falg; | |
198 | + /**委托照料人姓名*/ | |
199 | + @Excel(name = "委托照料人姓名", width = 15) | |
200 | + @ApiModelProperty(value = "委托照料人姓名") | |
201 | + private String zName; | |
202 | + /**委托照料人证件类型*/ | |
203 | + @Excel(name = "委托照料人证件类型", width = 15) | |
204 | + @ApiModelProperty(value = "委托照料人证件类型") | |
205 | + private String zCredentials; | |
206 | + /**委托照料人证件号码*/ | |
207 | + @Excel(name = "委托照料人证件号码", width = 15) | |
208 | + @ApiModelProperty(value = "委托照料人证件号码") | |
209 | + private String zIdentity; | |
210 | + /**委托照料人联系电话*/ | |
211 | + @Excel(name = "委托照料人联系电话", width = 15) | |
212 | + @ApiModelProperty(value = "委托照料人联系电话") | |
213 | + private String zPhone; | |
214 | + /**委托照料人与儿童关系*/ | |
215 | + @Excel(name = "委托照料人与儿童关系", width = 15) | |
216 | + @ApiModelProperty(value = "委托照料人与儿童关系") | |
217 | + private String zRelation; | |
218 | + /**委托照料人健康状况*/ | |
219 | + @Excel(name = "委托照料人健康状况", width = 15) | |
220 | + @ApiModelProperty(value = "委托照料人健康状况") | |
221 | + private String zHealth; | |
222 | + /**委托照料人特殊情况*/ | |
223 | + @Excel(name = "委托照料人特殊情况", width = 15) | |
224 | + @ApiModelProperty(value = "委托照料人特殊情况") | |
225 | + private String zSpecialCase; | |
226 | + /**祖父姓名*/ | |
227 | + @Excel(name = "祖父姓名", width = 15) | |
228 | + @ApiModelProperty(value = "祖父姓名") | |
229 | + private String gfName; | |
230 | + /**祖父出生日期*/ | |
231 | + @Excel(name = "祖父出生日期", width = 15) | |
232 | + @ApiModelProperty(value = "祖父出生日期") | |
233 | + private String gfBirthday; | |
234 | + /**祖母名称*/ | |
235 | + @Excel(name = "祖母名称", width = 15) | |
236 | + @ApiModelProperty(value = "祖母名称") | |
237 | + private String gmName; | |
238 | + /**祖母出生日期*/ | |
239 | + @Excel(name = "祖母出生日期", width = 15) | |
240 | + @ApiModelProperty(value = "祖母出生日期") | |
241 | + private String gmBirthday; | |
242 | + /**外祖父姓名*/ | |
243 | + @Excel(name = "外祖父姓名", width = 15) | |
244 | + @ApiModelProperty(value = "外祖父姓名") | |
245 | + private String wgfName; | |
246 | + /**外祖父出生日期*/ | |
247 | + @Excel(name = "外祖父出生日期", width = 15) | |
248 | + @ApiModelProperty(value = "外祖父出生日期") | |
249 | + private String wgfBirthday; | |
250 | + /**外祖母姓名*/ | |
251 | + @Excel(name = "外祖母姓名", width = 15) | |
252 | + @ApiModelProperty(value = "外祖母姓名") | |
253 | + private String wgmName; | |
254 | + /**外祖母出生日期*/ | |
255 | + @Excel(name = "外祖母出生日期", width = 15) | |
256 | + @ApiModelProperty(value = "外祖母出生日期") | |
257 | + private String gwmBirthday; | |
258 | + /**帮扶建议*/ | |
259 | + @Excel(name = "帮扶建议", width = 15) | |
260 | + @ApiModelProperty(value = "帮扶建议") | |
261 | + private String suggest; | |
262 | + /**2022年春节父母是否回家*/ | |
263 | + @Excel(name = "2022年春节父母是否回家", width = 15) | |
264 | + @ApiModelProperty(value = "2022年春节父母是否回家") | |
265 | + private String goHome; | |
266 | + /**id*/ | |
267 | + @TableId(type = IdType.ASSIGN_ID) | |
268 | + @ApiModelProperty(value = "id") | |
269 | + private Integer id; | |
270 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/MzOrphan.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: 民政_全市在册孤儿数据 | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mz_orphan") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mz_orphan对象", description="mz_orphan") | |
31 | +public class MzOrphan implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**id*/ | |
35 | + @TableId(type = IdType.ASSIGN_ID) | |
36 | + @ApiModelProperty(value = "id") | |
37 | + private Integer id; | |
38 | + /**序号*/ | |
39 | + @Excel(name = "序号", width = 15) | |
40 | + @ApiModelProperty(value = "序号") | |
41 | + private String sort; | |
42 | + /**姓名*/ | |
43 | + @Excel(name = "姓名", width = 15) | |
44 | + @ApiModelProperty(value = "姓名") | |
45 | + private String name; | |
46 | + /**性别*/ | |
47 | + @Excel(name = "性别", width = 15) | |
48 | + @ApiModelProperty(value = "性别") | |
49 | + private String gender; | |
50 | + /**民族*/ | |
51 | + @Excel(name = "民族", width = 15) | |
52 | + @ApiModelProperty(value = "民族") | |
53 | + private String nation; | |
54 | + /**出生日期*/ | |
55 | + @Excel(name = "出生日期", width = 15) | |
56 | + @ApiModelProperty(value = "出生日期") | |
57 | + private String birthday; | |
58 | + /**身份证号*/ | |
59 | + @Excel(name = "身份证号", width = 15) | |
60 | + @ApiModelProperty(value = "身份证号") | |
61 | + private String identity; | |
62 | + /**儿童类别*/ | |
63 | + @Excel(name = "儿童类别", width = 15) | |
64 | + @ApiModelProperty(value = "儿童类别") | |
65 | + private String category; | |
66 | + /**户籍状况*/ | |
67 | + @Excel(name = "户籍状况", width = 15) | |
68 | + @ApiModelProperty(value = "户籍状况") | |
69 | + private String censusStatus; | |
70 | + /**户籍地*/ | |
71 | + @Excel(name = "户籍地", width = 15) | |
72 | + @ApiModelProperty(value = "户籍地") | |
73 | + private String domicile; | |
74 | + /**现住址*/ | |
75 | + @Excel(name = "现住址", width = 15) | |
76 | + @ApiModelProperty(value = "现住址") | |
77 | + private String currentAddress; | |
78 | + /**申请日期*/ | |
79 | + @Excel(name = "申请日期", width = 15) | |
80 | + @ApiModelProperty(value = "申请日期") | |
81 | + private String applyDate; | |
82 | + /**所属机构*/ | |
83 | + @Excel(name = "所属机构", width = 15) | |
84 | + @ApiModelProperty(value = "所属机构") | |
85 | + private String org; | |
86 | + /**养育类型*/ | |
87 | + @Excel(name = "养育类型", width = 15) | |
88 | + @ApiModelProperty(value = "养育类型") | |
89 | + private String parentType; | |
90 | + /**工学情况*/ | |
91 | + @Excel(name = "工学情况", width = 15) | |
92 | + @ApiModelProperty(value = "工学情况") | |
93 | + private String engineerSituation; | |
94 | + /**健康状况*/ | |
95 | + @Excel(name = "健康状况", width = 15) | |
96 | + @ApiModelProperty(value = "健康状况") | |
97 | + private String health; | |
98 | + /**患病类型*/ | |
99 | + @Excel(name = "患病类型", width = 15) | |
100 | + @ApiModelProperty(value = "患病类型") | |
101 | + private String diseaseType; | |
102 | + /**残疾类型*/ | |
103 | + @Excel(name = "残疾类型", width = 15) | |
104 | + @ApiModelProperty(value = "残疾类型") | |
105 | + private String deformityType; | |
106 | + /**残疾级别*/ | |
107 | + @Excel(name = "残疾级别", width = 15) | |
108 | + @ApiModelProperty(value = "残疾级别") | |
109 | + private String deformityLevel; | |
110 | + /**特教类型*/ | |
111 | + @Excel(name = "特教类型", width = 15) | |
112 | + @ApiModelProperty(value = "特教类型") | |
113 | + private String specialEducation; | |
114 | + /**患艾滋病情况*/ | |
115 | + @Excel(name = "患艾滋病情况", width = 15) | |
116 | + @ApiModelProperty(value = "患艾滋病情况") | |
117 | + private String hivStatus; | |
118 | + /**起领年月*/ | |
119 | + @Excel(name = "起领年月", width = 15) | |
120 | + @ApiModelProperty(value = "起领年月") | |
121 | + private String startYear; | |
122 | + /**当前末领年月*/ | |
123 | + @Excel(name = "当前末领年月", width = 15) | |
124 | + @ApiModelProperty(value = "当前末领年月") | |
125 | + private String unReceiveDate; | |
126 | + /**监护人姓名*/ | |
127 | + @Excel(name = "监护人姓名", width = 15) | |
128 | + @ApiModelProperty(value = "监护人姓名") | |
129 | + private String guardianName; | |
130 | + /**监护人身份证号*/ | |
131 | + @Excel(name = "监护人身份证号", width = 15) | |
132 | + @ApiModelProperty(value = "监护人身份证号") | |
133 | + private String guardianIdentity; | |
134 | + /**监护人联系电话*/ | |
135 | + @Excel(name = "监护人联系电话", width = 15) | |
136 | + @ApiModelProperty(value = "监护人联系电话") | |
137 | + private String guardianPhone; | |
138 | + /**与儿童关系*/ | |
139 | + @Excel(name = "与儿童关系", width = 15) | |
140 | + @ApiModelProperty(value = "与儿童关系") | |
141 | + private String relation; | |
142 | + /**是否同住*/ | |
143 | + @Excel(name = "是否同住", width = 15) | |
144 | + @ApiModelProperty(value = "是否同住") | |
145 | + private String liveTogether; | |
146 | + /**数据来源*/ | |
147 | + @Excel(name = "数据来源", width = 15) | |
148 | + @ApiModelProperty(value = "数据来源") | |
149 | + private String source; | |
150 | + /**续发开始日期*/ | |
151 | + @Excel(name = "续发开始日期", width = 15) | |
152 | + @ApiModelProperty(value = "续发开始日期") | |
153 | + private String startDate; | |
154 | + /**续发截止日期*/ | |
155 | + @Excel(name = "续发截止日期", width = 15) | |
156 | + @ApiModelProperty(value = "续发截止日期") | |
157 | + private String endDate; | |
158 | + /**减员日期*/ | |
159 | + @Excel(name = "减员日期", width = 15) | |
160 | + @ApiModelProperty(value = "减员日期") | |
161 | + private String attritionDate; | |
162 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/MzUnsupported.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: 民政_全市在册事实无人抚养儿童数据 | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mz_unsupported") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mz_unsupported对象", description="mz_unsupported") | |
31 | +public class MzUnsupported implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**序号*/ | |
35 | + @Excel(name = "序号", width = 15) | |
36 | + @ApiModelProperty(value = "序号") | |
37 | + private String sort; | |
38 | + /**区域*/ | |
39 | + @Excel(name = "区域", width = 15) | |
40 | + @ApiModelProperty(value = "区域") | |
41 | + private String area; | |
42 | + /**儿童姓名*/ | |
43 | + @Excel(name = "儿童姓名", width = 15) | |
44 | + @ApiModelProperty(value = "儿童姓名") | |
45 | + private String name; | |
46 | + /**儿童性别*/ | |
47 | + @Excel(name = "儿童性别", width = 15) | |
48 | + @ApiModelProperty(value = "儿童性别") | |
49 | + private String gender; | |
50 | + /**民族*/ | |
51 | + @Excel(name = "民族", width = 15) | |
52 | + @ApiModelProperty(value = "民族") | |
53 | + private String nation; | |
54 | + /**出生日期*/ | |
55 | + @Excel(name = "出生日期", width = 15) | |
56 | + @ApiModelProperty(value = "出生日期") | |
57 | + private String birthday; | |
58 | + /**身份证号*/ | |
59 | + @Excel(name = "身份证号", width = 15) | |
60 | + @ApiModelProperty(value = "身份证号") | |
61 | + private String identity; | |
62 | + /**户籍所在地详情*/ | |
63 | + @Excel(name = "户籍所在地详情", width = 15) | |
64 | + @ApiModelProperty(value = "户籍所在地详情") | |
65 | + private String domicile; | |
66 | + /**现住址详情*/ | |
67 | + @Excel(name = "现住址详情", width = 15) | |
68 | + @ApiModelProperty(value = "现住址详情") | |
69 | + private String currentAddress; | |
70 | + /**儿童类别名称*/ | |
71 | + @Excel(name = "儿童类别名称", width = 15) | |
72 | + @ApiModelProperty(value = "儿童类别名称") | |
73 | + private String category; | |
74 | + /**申请日期*/ | |
75 | + @Excel(name = "申请日期", width = 15) | |
76 | + @ApiModelProperty(value = "申请日期") | |
77 | + private String applyDate; | |
78 | + /**审批日期*/ | |
79 | + @Excel(name = "审批日期", width = 15) | |
80 | + @ApiModelProperty(value = "审批日期") | |
81 | + private String approvalDate; | |
82 | + /**户籍状况*/ | |
83 | + @Excel(name = "户籍状况", width = 15) | |
84 | + @ApiModelProperty(value = "户籍状况") | |
85 | + private String censusStatus; | |
86 | + /**健康状况*/ | |
87 | + @Excel(name = "健康状况", width = 15) | |
88 | + @ApiModelProperty(value = "健康状况") | |
89 | + private String health; | |
90 | + /**就学状况*/ | |
91 | + @Excel(name = "就学状况", width = 15) | |
92 | + @ApiModelProperty(value = "就学状况") | |
93 | + private String schoolStatus; | |
94 | + /**数据来源*/ | |
95 | + @Excel(name = "数据来源", width = 15) | |
96 | + @ApiModelProperty(value = "数据来源") | |
97 | + private String source; | |
98 | + /**父亲姓名*/ | |
99 | + @Excel(name = "父亲姓名", width = 15) | |
100 | + @ApiModelProperty(value = "父亲姓名") | |
101 | + private String fName; | |
102 | + /**父亲身份证号*/ | |
103 | + @Excel(name = "父亲身份证号", width = 15) | |
104 | + @ApiModelProperty(value = "父亲身份证号") | |
105 | + private String fIdentity; | |
106 | + /**父亲现状况*/ | |
107 | + @Excel(name = "父亲现状况", width = 15) | |
108 | + @ApiModelProperty(value = "父亲现状况") | |
109 | + private String fStatus; | |
110 | + /**父亲联系电话*/ | |
111 | + @Excel(name = "父亲联系电话", width = 15) | |
112 | + @ApiModelProperty(value = "父亲联系电话") | |
113 | + private String fPhone; | |
114 | + /**父亲是否为监护人*/ | |
115 | + @Excel(name = "父亲是否为监护人", width = 15) | |
116 | + @ApiModelProperty(value = "父亲是否为监护人") | |
117 | + private String fGuardian; | |
118 | + /**母亲姓名*/ | |
119 | + @Excel(name = "母亲姓名", width = 15) | |
120 | + @ApiModelProperty(value = "母亲姓名") | |
121 | + private String mName; | |
122 | + /**母亲身份证号*/ | |
123 | + @Excel(name = "母亲身份证号", width = 15) | |
124 | + @ApiModelProperty(value = "母亲身份证号") | |
125 | + private String mIdentity; | |
126 | + /**母亲现状况*/ | |
127 | + @Excel(name = "母亲现状况", width = 15) | |
128 | + @ApiModelProperty(value = "母亲现状况") | |
129 | + private String mStatus; | |
130 | + /**母亲联系电话*/ | |
131 | + @Excel(name = "母亲联系电话", width = 15) | |
132 | + @ApiModelProperty(value = "母亲联系电话") | |
133 | + private String mPhone; | |
134 | + /**母亲是否为监护人*/ | |
135 | + @Excel(name = "母亲是否为监护人", width = 15) | |
136 | + @ApiModelProperty(value = "母亲是否为监护人") | |
137 | + private String mGuardian; | |
138 | + /**其他监护人姓名*/ | |
139 | + @Excel(name = "其他监护人姓名", width = 15) | |
140 | + @ApiModelProperty(value = "其他监护人姓名") | |
141 | + private String oName; | |
142 | + /**其他监护人身份证号*/ | |
143 | + @Excel(name = "其他监护人身份证号", width = 15) | |
144 | + @ApiModelProperty(value = "其他监护人身份证号") | |
145 | + private String oIdentity; | |
146 | + /**其他监护人联系电话*/ | |
147 | + @Excel(name = "其他监护人联系电话", width = 15) | |
148 | + @ApiModelProperty(value = "其他监护人联系电话") | |
149 | + private String oPhone; | |
150 | + /**其他监护人与儿童关系*/ | |
151 | + @Excel(name = "其他监护人与儿童关系", width = 15) | |
152 | + @ApiModelProperty(value = "其他监护人与儿童关系") | |
153 | + private String oRelation; | |
154 | + /**起领年月*/ | |
155 | + @Excel(name = "起领年月", width = 15) | |
156 | + @ApiModelProperty(value = "起领年月") | |
157 | + private String startYear; | |
158 | + /**当前末领年月*/ | |
159 | + @Excel(name = "当前末领年月", width = 15) | |
160 | + @ApiModelProperty(value = "当前末领年月") | |
161 | + private String unReceiveDate; | |
162 | + /**保障措施*/ | |
163 | + @Excel(name = "保障措施", width = 15) | |
164 | + @ApiModelProperty(value = "保障措施") | |
165 | + private String assure; | |
166 | + /**是否集中供养*/ | |
167 | + @Excel(name = "是否集中供养", width = 15) | |
168 | + @ApiModelProperty(value = "是否集中供养") | |
169 | + private String focusSupport; | |
170 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/PrimarySchool.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: mr_primary_school | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-15 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mr_primary_school") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mr_primary_school对象", description="mr_primary_school") | |
31 | +public class PrimarySchool implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**姓名*/ | |
35 | + @Excel(name = "姓名", width = 15) | |
36 | + @ApiModelProperty(value = "姓名") | |
37 | + private String xm; | |
38 | + /**身份证件号*/ | |
39 | + @Excel(name = "身份证件号", width = 15) | |
40 | + @ApiModelProperty(value = "身份证件号") | |
41 | + private String sfzjh; | |
42 | + /**学校名称*/ | |
43 | + @Excel(name = "学校名称", width = 15) | |
44 | + @ApiModelProperty(value = "学校名称") | |
45 | + private String xxmc; | |
46 | + /**入学日期*/ | |
47 | + @Excel(name = "入学日期", width = 15) | |
48 | + @ApiModelProperty(value = "入学日期") | |
49 | + private String ryrq; | |
50 | + /**班级名称*/ | |
51 | + @Excel(name = "班级名称", width = 15) | |
52 | + @ApiModelProperty(value = "班级名称") | |
53 | + private String bjmc; | |
54 | + /**现住址*/ | |
55 | + @Excel(name = "现住址", width = 15) | |
56 | + @ApiModelProperty(value = "现住址") | |
57 | + private String xzz; | |
58 | + /**成员姓名1*/ | |
59 | + @Excel(name = "成员姓名1", width = 15) | |
60 | + @ApiModelProperty(value = "成员姓名1") | |
61 | + private String cyxm1; | |
62 | + /**联系电话1*/ | |
63 | + @Excel(name = "联系电话1", width = 15) | |
64 | + @ApiModelProperty(value = "联系电话1") | |
65 | + private String lxdh1; | |
66 | + /**手机号码1*/ | |
67 | + @Excel(name = "手机号码1", width = 15) | |
68 | + @ApiModelProperty(value = "手机号码1") | |
69 | + private String sjhm1; | |
70 | + /**成员姓名2*/ | |
71 | + @Excel(name = "成员姓名2", width = 15) | |
72 | + @ApiModelProperty(value = "成员姓名2") | |
73 | + private String cyxm2; | |
74 | + /**联系电话2*/ | |
75 | + @Excel(name = "联系电话2", width = 15) | |
76 | + @ApiModelProperty(value = "联系电话2") | |
77 | + private String lxdh2; | |
78 | + /**手机号码2*/ | |
79 | + @Excel(name = "手机号码2", width = 15) | |
80 | + @ApiModelProperty(value = "手机号码2") | |
81 | + private String sjhm2; | |
82 | + /**id*/ | |
83 | + @TableId(type = IdType.ASSIGN_ID) | |
84 | + @ApiModelProperty(value = "id") | |
85 | + private Integer id; | |
86 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/SourceData.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.util.Date; | |
5 | + | |
6 | +import com.baomidou.mybatisplus.annotation.IdType; | |
7 | +import com.baomidou.mybatisplus.annotation.TableId; | |
8 | +import com.baomidou.mybatisplus.annotation.TableName; | |
9 | +import lombok.Data; | |
10 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
11 | +import org.springframework.format.annotation.DateTimeFormat; | |
12 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
13 | +import io.swagger.annotations.ApiModel; | |
14 | +import io.swagger.annotations.ApiModelProperty; | |
15 | +import lombok.EqualsAndHashCode; | |
16 | +import lombok.experimental.Accessors; | |
17 | + | |
18 | +/** | |
19 | + * @Description: 来源数据管理 | |
20 | + * @Author: jeecg-boot | |
21 | + * @Date: 2022-07-13 | |
22 | + * @Version: V1.0 | |
23 | + */ | |
24 | +@Data | |
25 | +@TableName("mr_source") | |
26 | +@Accessors(chain = true) | |
27 | +@EqualsAndHashCode(callSuper = false) | |
28 | +@ApiModel(value="mr_source对象", description="来源数据管理") | |
29 | +public class SourceData implements Serializable { | |
30 | + private static final long serialVersionUID = 1L; | |
31 | + | |
32 | + /**主键*/ | |
33 | + @TableId(type = IdType.ASSIGN_ID) | |
34 | + @ApiModelProperty(value = "主键") | |
35 | + private String id; | |
36 | + /**创建人*/ | |
37 | + @ApiModelProperty(value = "创建人") | |
38 | + private String createBy; | |
39 | + /**创建日期*/ | |
40 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
41 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
42 | + @ApiModelProperty(value = "创建日期") | |
43 | + private Date createTime; | |
44 | + /**更新人*/ | |
45 | + @ApiModelProperty(value = "更新人") | |
46 | + private String updateBy; | |
47 | + /**更新日期*/ | |
48 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | |
49 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | |
50 | + @ApiModelProperty(value = "更新日期") | |
51 | + private Date updateTime; | |
52 | + /**所属部门*/ | |
53 | + @ApiModelProperty(value = "所属部门") | |
54 | + private String sysOrgCode; | |
55 | + /**单位名称*/ | |
56 | + @Excel(name = "单位名称", width = 15) | |
57 | + @ApiModelProperty(value = "单位名称") | |
58 | + private String name; | |
59 | + /**数据批次*/ | |
60 | + @Excel(name = "数据批次", width = 15) | |
61 | + @ApiModelProperty(value = "数据批次") | |
62 | + private Integer batch; | |
63 | + /**总条数*/ | |
64 | + @Excel(name = "总条数", width = 15) | |
65 | + @ApiModelProperty(value = "总条数") | |
66 | + private Integer total; | |
67 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/SpecialStudent.java
0 → 100644
1 | +package org.jeecg.modules.system.entity; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | +import java.io.UnsupportedEncodingException; | |
5 | +import java.util.Date; | |
6 | +import java.math.BigDecimal; | |
7 | +import com.baomidou.mybatisplus.annotation.IdType; | |
8 | +import com.baomidou.mybatisplus.annotation.TableId; | |
9 | +import com.baomidou.mybatisplus.annotation.TableName; | |
10 | +import lombok.Data; | |
11 | +import com.fasterxml.jackson.annotation.JsonFormat; | |
12 | +import org.springframework.format.annotation.DateTimeFormat; | |
13 | +import org.jeecgframework.poi.excel.annotation.Excel; | |
14 | +import org.jeecg.common.aspect.annotation.Dict; | |
15 | +import io.swagger.annotations.ApiModel; | |
16 | +import io.swagger.annotations.ApiModelProperty; | |
17 | +import lombok.EqualsAndHashCode; | |
18 | +import lombok.experimental.Accessors; | |
19 | + | |
20 | +/** | |
21 | + * @Description: mr_special_student | |
22 | + * @Author: jeecg-boot | |
23 | + * @Date: 2022-07-14 | |
24 | + * @Version: V1.0 | |
25 | + */ | |
26 | +@Data | |
27 | +@TableName("mr_special_student") | |
28 | +@Accessors(chain = true) | |
29 | +@EqualsAndHashCode(callSuper = false) | |
30 | +@ApiModel(value="mr_special_student对象", description="mr_special_student") | |
31 | +public class SpecialStudent implements Serializable { | |
32 | + private static final long serialVersionUID = 1L; | |
33 | + | |
34 | + /**id*/ | |
35 | + @TableId(type = IdType.ASSIGN_ID) | |
36 | + @ApiModelProperty(value = "id") | |
37 | + private Integer id; | |
38 | + /**sort*/ | |
39 | + @Excel(name = "sort", width = 15) | |
40 | + @ApiModelProperty(value = "sort") | |
41 | + private String sort; | |
42 | + /**school*/ | |
43 | + @Excel(name = "school", width = 15) | |
44 | + @ApiModelProperty(value = "school") | |
45 | + private String school; | |
46 | + /**name*/ | |
47 | + @Excel(name = "name", width = 15) | |
48 | + @ApiModelProperty(value = "name") | |
49 | + private String name; | |
50 | + /**class*/ | |
51 | + @Excel(name = "grade ", width = 15) | |
52 | + @ApiModelProperty(value = "class") | |
53 | + private String grade; | |
54 | + /**identity*/ | |
55 | + @Excel(name = "identity", width = 15) | |
56 | + @ApiModelProperty(value = "identity") | |
57 | + private String identity; | |
58 | + /**区域*/ | |
59 | + @Excel(name = "区域", width = 15) | |
60 | + @ApiModelProperty(value = "区域") | |
61 | + private String reason; | |
62 | + /**备注*/ | |
63 | + @Excel(name = "备注", width = 15) | |
64 | + @ApiModelProperty(value = "备注") | |
65 | + private String remark; | |
66 | + /**area*/ | |
67 | + @Excel(name = "area", width = 15) | |
68 | + @ApiModelProperty(value = "area") | |
69 | + private String area; | |
70 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/SysDepart.java
... | ... | @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableId; |
5 | 5 | import com.baomidou.mybatisplus.annotation.TableName; |
6 | 6 | import com.fasterxml.jackson.annotation.JsonFormat; |
7 | +import io.swagger.annotations.ApiModelProperty; | |
7 | 8 | import lombok.Data; |
8 | 9 | import org.jeecg.common.aspect.annotation.Dict; |
9 | 10 | import org.jeecgframework.poi.excel.annotation.Excel; |
... | ... | @@ -85,6 +86,14 @@ public class SysDepart implements Serializable { |
85 | 86 | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
86 | 87 | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
87 | 88 | private Date updateTime; |
89 | + /**常用名称*/ | |
90 | + @Excel(name = "常用名称", width = 15) | |
91 | + @ApiModelProperty(value = "常用名称") | |
92 | + private String abbreviation; | |
93 | + /**常用编码*/ | |
94 | + @Excel(name = "常用编码", width = 15) | |
95 | + @ApiModelProperty(value = "常用编码") | |
96 | + private String commonCode; | |
88 | 97 | |
89 | 98 | /** |
90 | 99 | * 重写equals方法 |
... | ... | @@ -120,7 +129,9 @@ public class SysDepart implements Serializable { |
120 | 129 | Objects.equals(createBy, depart.createBy) && |
121 | 130 | Objects.equals(createTime, depart.createTime) && |
122 | 131 | Objects.equals(updateBy, depart.updateBy) && |
123 | - Objects.equals(updateTime, depart.updateTime); | |
132 | + Objects.equals(updateTime, depart.updateTime)&& | |
133 | + Objects.equals(abbreviation, depart.abbreviation)&& | |
134 | + Objects.equals(commonCode, depart.commonCode); | |
124 | 135 | } |
125 | 136 | |
126 | 137 | /** |
... | ... | @@ -132,6 +143,6 @@ public class SysDepart implements Serializable { |
132 | 143 | return Objects.hash(super.hashCode(), id, parentId, departName, |
133 | 144 | departNameEn, departNameAbbr, departOrder, description,orgCategory, |
134 | 145 | orgType, orgCode, mobile, fax, address, memo, status, |
135 | - delFlag, createBy, createTime, updateBy, updateTime); | |
146 | + delFlag, createBy, createTime, updateBy, updateTime,abbreviation,commonCode); | |
136 | 147 | } |
137 | 148 | } | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/DivisionMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.apache.ibatis.annotations.Param; | |
5 | +import org.jeecg.modules.system.entity.Division; | |
6 | + | |
7 | +/** | |
8 | + * @Description: 行政区划 | |
9 | + * @Author: jeecg-boot | |
10 | + * @Date: 2022-07-12 | |
11 | + * @Version: V1.0 | |
12 | + */ | |
13 | +public interface DivisionMapper extends BaseMapper<Division> { | |
14 | + | |
15 | + /** | |
16 | + * 编辑节点状态 | |
17 | + * @param id | |
18 | + * @param status | |
19 | + */ | |
20 | + void updateTreeNodeStatus(@Param("id") String id,@Param("status") String status); | |
21 | + | |
22 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/FamilyMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.apache.ibatis.annotations.Param; | |
5 | +import org.jeecg.modules.system.entity.Family; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * @Description: 家庭成员表 | |
11 | + * @Author: jeecg-boot | |
12 | + * @Date: 2022-07-13 | |
13 | + * @Version: V1.0 | |
14 | + */ | |
15 | +public interface FamilyMapper extends BaseMapper<Family> { | |
16 | + | |
17 | + public boolean deleteByMainId(@Param("mainId") String mainId); | |
18 | + | |
19 | + public List<Family> selectByMainId(@Param("mainId") String mainId); | |
20 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/GaDemographicMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import io.lettuce.core.dynamic.annotation.Param; | |
5 | +import org.jeecg.modules.system.entity.Family; | |
6 | +import org.jeecg.modules.system.entity.GaDemographic; | |
7 | +import org.jeecg.modules.system.vo.FamilyVo; | |
8 | + | |
9 | +import java.util.List; | |
10 | + | |
11 | +/** | |
12 | + * @Description: ga_demographic | |
13 | + * @Author: jeecg-boot | |
14 | + * @Date: 2022-07-14 | |
15 | + * @Version: V1.0 | |
16 | + */ | |
17 | +public interface GaDemographicMapper extends BaseMapper<GaDemographic> { | |
18 | + | |
19 | + /** | |
20 | + * 分页关联查询人口基础信息和户籍信息 | |
21 | + * @param pageSize | |
22 | + * @param queryNum | |
23 | + * @return | |
24 | + */ | |
25 | + public List<Family> queryPageList(@Param("queryNum") Integer queryNum, @Param("pageSize") Integer pageSize); | |
26 | + | |
27 | + public List<String> getIdentityS(); | |
28 | + | |
29 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/GaHouseholdMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.GaHousehold; | |
5 | + | |
6 | +/** | |
7 | + * @Description: ga_household | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface GaHouseholdMapper extends BaseMapper<GaHousehold> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/GaJuvenilesStayMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.GaJuvenilesStay; | |
5 | + | |
6 | +/** | |
7 | + * @Description: ga_juveniles_stay | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface GaJuvenilesStayMapper extends BaseMapper<GaJuvenilesStay> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/GaPunishMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import io.lettuce.core.dynamic.annotation.Param; | |
5 | +import org.jeecg.modules.system.entity.Family; | |
6 | +import org.jeecg.modules.system.entity.GaPunish; | |
7 | +import org.jeecg.modules.system.vo.GaPunishVo; | |
8 | + | |
9 | +import java.util.List; | |
10 | + | |
11 | +/** | |
12 | + * @Description: ga_punish | |
13 | + * @Author: jeecg-boot | |
14 | + * @Date: 2022-07-14 | |
15 | + * @Version: V1.0 | |
16 | + */ | |
17 | +public interface GaPunishMapper extends BaseMapper<GaPunish> { | |
18 | + | |
19 | + /** | |
20 | + * 查询 | |
21 | + * @return | |
22 | + */ | |
23 | + public List<GaPunishVo> queryAll(); | |
24 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/HighSchoolMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +import org.apache.ibatis.annotations.Param; | |
6 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | +import org.jeecg.modules.system.entity.HighSchool; | |
8 | +import org.jeecg.modules.system.entity.MrSchool; | |
9 | + | |
10 | +/** | |
11 | + * @Description: mr_high_school | |
12 | + * @Author: jeecg-boot | |
13 | + * @Date: 2022-07-15 | |
14 | + * @Version: V1.0 | |
15 | + */ | |
16 | +public interface HighSchoolMapper extends BaseMapper<HighSchool> { | |
17 | + | |
18 | + public List<MrSchool> getList(); | |
19 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MinorMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.Minor; | |
5 | + | |
6 | +/** | |
7 | + * @Description: 未成年人 | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-13 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface MinorMapper extends BaseMapper<Minor> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MrSchoolMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +import org.apache.ibatis.annotations.Param; | |
6 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | +import org.jeecg.modules.system.entity.MrSchool; | |
8 | + | |
9 | +/** | |
10 | + * @Description: 学校 | |
11 | + * @Author: jeecg-boot | |
12 | + * @Date: 2022-07-15 | |
13 | + * @Version: V1.0 | |
14 | + */ | |
15 | +public interface MrSchoolMapper extends BaseMapper<MrSchool> { | |
16 | + | |
17 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MzAdoptionMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.MzAdoption; | |
5 | + | |
6 | +/** | |
7 | + * @Description: mz_adoption | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface MzAdoptionMapper extends BaseMapper<MzAdoption> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MzLeftBehindChildrenMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.MzLeftBehindChildren; | |
5 | + | |
6 | +/** | |
7 | + * @Description: mz_left_behind_children | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface MzLeftBehindChildrenMapper extends BaseMapper<MzLeftBehindChildren> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MzOrphanMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.MzOrphan; | |
5 | + | |
6 | +/** | |
7 | + * @Description: mz_orphan | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface MzOrphanMapper extends BaseMapper<MzOrphan> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MzUnsupportedMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.MzUnsupported; | |
5 | + | |
6 | +/** | |
7 | + * @Description: mz_unsupported | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface MzUnsupportedMapper extends BaseMapper<MzUnsupported> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/PrimarySchoolMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import java.util.List; | |
4 | + | |
5 | +import org.apache.ibatis.annotations.Param; | |
6 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | +import org.jeecg.modules.system.entity.MrSchool; | |
8 | +import org.jeecg.modules.system.entity.PrimarySchool; | |
9 | + | |
10 | +/** | |
11 | + * @Description: mr_primary_school | |
12 | + * @Author: jeecg-boot | |
13 | + * @Date: 2022-07-15 | |
14 | + * @Version: V1.0 | |
15 | + */ | |
16 | +public interface PrimarySchoolMapper extends BaseMapper<PrimarySchool> { | |
17 | + | |
18 | + public List<MrSchool> getList(); | |
19 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SourceMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
5 | +import org.jeecg.modules.system.entity.SourceData; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * @Description: 来源数据管理 | |
11 | + * @Author: jeecg-boot | |
12 | + * @Date: 2022-07-13 | |
13 | + * @Version: V1.0 | |
14 | + */ | |
15 | +public interface SourceMapper extends BaseMapper<SourceData> { | |
16 | + public List<SourceData> getListGroupByName(Page<SourceData> page,String name); | |
17 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SpecialStudentMapper.java
0 → 100644
1 | +package org.jeecg.modules.system.mapper; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import org.jeecg.modules.system.entity.SpecialStudent; | |
5 | +import org.jeecg.modules.system.vo.GaPunishVo; | |
6 | +import org.jeecg.modules.system.vo.SpecialStudentVo; | |
7 | + | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * @Description: mr_special_student | |
12 | + * @Author: jeecg-boot | |
13 | + * @Date: 2022-07-14 | |
14 | + * @Version: V1.0 | |
15 | + */ | |
16 | +public interface SpecialStudentMapper extends BaseMapper<SpecialStudent> { | |
17 | + /** | |
18 | + * 查询 | |
19 | + * @return | |
20 | + */ | |
21 | + public List<SpecialStudentVo> queryList(); | |
22 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysAnnouncementMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
5 | 5 | import org.apache.ibatis.annotations.Param; |
6 | 6 | import org.jeecg.modules.system.entity.SysAnnouncement; |
7 | 7 | |
8 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
9 | -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
8 | +import java.util.List; | |
10 | 9 | |
11 | 10 | /** |
12 | 11 | * @Description: 系统通告表 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysAnnouncementSendMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
5 | 5 | import org.apache.ibatis.annotations.Param; |
6 | 6 | import org.jeecg.modules.system.entity.SysAnnouncementSend; |
7 | 7 | import org.jeecg.modules.system.model.AnnouncementSendModel; |
8 | 8 | |
9 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
10 | -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
9 | +import java.util.List; | |
11 | 10 | |
12 | 11 | /** |
13 | 12 | * @Description: 用户通告阅读标记表 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysCategoryMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | -import java.util.Map; | |
5 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
6 | 4 | import org.apache.ibatis.annotations.Param; |
7 | 5 | import org.apache.ibatis.annotations.Select; |
8 | 6 | import org.jeecg.modules.system.entity.SysCategory; |
9 | 7 | import org.jeecg.modules.system.model.TreeSelectModel; |
10 | 8 | |
11 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
9 | +import java.util.List; | |
10 | +import java.util.Map; | |
12 | 11 | |
13 | 12 | /** |
14 | 13 | * @Description: 分类字典 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDataLogMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
3 | 4 | import org.apache.ibatis.annotations.Param; |
4 | 5 | import org.jeecg.modules.system.entity.SysDataLog; |
5 | 6 | |
6 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | - | |
8 | 7 | public interface SysDataLogMapper extends BaseMapper<SysDataLog>{ |
9 | 8 | /** |
10 | 9 | * 通过表名及数据Id获取最大版本 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartMapper.java
... | ... | @@ -3,8 +3,6 @@ package org.jeecg.modules.system.mapper; |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | 4 | import org.apache.ibatis.annotations.Select; |
5 | 5 | import org.jeecg.modules.system.entity.SysDepart; |
6 | -import org.jeecg.modules.system.model.SysDepartTreeModel; | |
7 | -import org.jeecg.modules.system.model.TreeModel; | |
8 | 6 | import org.springframework.data.repository.query.Param; |
9 | 7 | |
10 | 8 | import java.util.List; | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartPermissionMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
5 | -import org.apache.ibatis.annotations.Param; | |
6 | -import org.jeecg.modules.system.entity.SysDepartPermission; | |
7 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | +import org.jeecg.modules.system.entity.SysDepartPermission; | |
8 | 5 | |
9 | 6 | /** |
10 | 7 | * @Description: 部门权限表 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartRoleMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
5 | 4 | import org.apache.ibatis.annotations.Param; |
6 | 5 | import org.jeecg.modules.system.entity.SysDepartRole; |
7 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
6 | + | |
7 | +import java.util.List; | |
8 | 8 | |
9 | 9 | /** |
10 | 10 | * @Description: 部门角色 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartRolePermissionMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
5 | -import org.apache.ibatis.annotations.Param; | |
6 | -import org.jeecg.modules.system.entity.SysDepartRolePermission; | |
7 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | +import org.jeecg.modules.system.entity.SysDepartRolePermission; | |
8 | 5 | |
9 | 6 | /** |
10 | 7 | * @Description: 部门角色权限 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartRoleUserMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
5 | -import org.apache.ibatis.annotations.Param; | |
6 | -import org.jeecg.modules.system.entity.SysDepartRoleUser; | |
7 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | +import org.jeecg.modules.system.entity.SysDepartRoleUser; | |
8 | 5 | |
9 | 6 | /** |
10 | 7 | * @Description: 部门角色人员信息 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDictItemMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
3 | 4 | import org.apache.ibatis.annotations.Select; |
4 | 5 | import org.jeecg.modules.system.entity.SysDictItem; |
5 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
6 | 6 | |
7 | 7 | import java.util.List; |
8 | 8 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDictMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | -import java.util.Map; | |
5 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
6 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
7 | 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
8 | 6 | import org.apache.ibatis.annotations.Param; |
... | ... | @@ -14,7 +12,8 @@ import org.jeecg.modules.system.entity.SysDict; |
14 | 12 | import org.jeecg.modules.system.model.DuplicateCheckVo; |
15 | 13 | import org.jeecg.modules.system.model.TreeSelectModel; |
16 | 14 | |
17 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
15 | +import java.util.List; | |
16 | +import java.util.Map; | |
18 | 17 | |
19 | 18 | /** |
20 | 19 | * <p> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysLogMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.Date; | |
4 | -import java.util.List; | |
5 | -import java.util.Map; | |
6 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | 4 | import org.apache.ibatis.annotations.Param; |
8 | 5 | import org.jeecg.modules.system.entity.SysLog; |
9 | 6 | |
10 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | +import java.util.Date; | |
8 | +import java.util.List; | |
9 | +import java.util.Map; | |
11 | 10 | |
12 | 11 | /** |
13 | 12 | * <p> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysPermissionDataRuleMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
5 | 4 | import org.apache.ibatis.annotations.Param; |
6 | 5 | import org.jeecg.modules.system.entity.SysPermissionDataRule; |
7 | 6 | |
8 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | +import java.util.List; | |
9 | 8 | |
10 | 9 | /** |
11 | 10 | * <p> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysPermissionMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
5 | 4 | import org.apache.ibatis.annotations.Param; |
6 | 5 | import org.apache.ibatis.annotations.Select; |
7 | 6 | import org.apache.ibatis.annotations.Update; |
8 | 7 | import org.jeecg.modules.system.entity.SysPermission; |
9 | 8 | import org.jeecg.modules.system.model.TreeModel; |
10 | 9 | |
11 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
10 | +import java.util.List; | |
12 | 11 | |
13 | 12 | /** |
14 | 13 | * <p> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysRoleMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
3 | 4 | import org.apache.ibatis.annotations.Delete; |
4 | 5 | import org.apache.ibatis.annotations.Param; |
5 | -import org.apache.ibatis.annotations.Update; | |
6 | 6 | import org.jeecg.modules.system.entity.SysRole; |
7 | 7 | |
8 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
9 | - | |
10 | 8 | /** |
11 | 9 | * <p> |
12 | 10 | * 角色表 Mapper 接口 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysRolePermissionMapper.java
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserAgentMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
4 | - | |
5 | -import org.apache.ibatis.annotations.Param; | |
6 | -import org.jeecg.modules.system.entity.SysUserAgent; | |
7 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | +import org.jeecg.modules.system.entity.SysUserAgent; | |
8 | 5 | |
9 | 6 | /** |
10 | 7 | * @Description: 用户代理人设置 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserDepartMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
5 | 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
6 | 6 | import org.apache.ibatis.annotations.Param; |
7 | 7 | import org.jeecg.modules.system.entity.SysUser; |
8 | 8 | import org.jeecg.modules.system.entity.SysUserDepart; |
9 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
9 | + | |
10 | +import java.util.List; | |
10 | 11 | |
11 | 12 | public interface SysUserDepartMapper extends BaseMapper<SysUserDepart>{ |
12 | 13 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | 5 | import com.baomidou.mybatisplus.core.metadata.IPage; |
5 | 6 | import com.baomidou.mybatisplus.core.toolkit.Constants; |
6 | 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
7 | 8 | import org.apache.ibatis.annotations.Param; |
8 | 9 | import org.jeecg.modules.system.entity.SysUser; |
9 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
10 | 10 | import org.jeecg.modules.system.model.SysUserSysDepartModel; |
11 | 11 | import org.jeecg.modules.system.vo.SysUserDepVo; |
12 | 12 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserRoleMapper.java
1 | 1 | package org.jeecg.modules.system.mapper; |
2 | 2 | |
3 | -import java.util.List; | |
3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
4 | 4 | import org.apache.ibatis.annotations.Param; |
5 | 5 | import org.apache.ibatis.annotations.Select; |
6 | 6 | import org.jeecg.modules.system.entity.SysUserRole; |
7 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |
7 | + | |
8 | +import java.util.List; | |
8 | 9 | |
9 | 10 | /** |
10 | 11 | * <p> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/DivisionMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="package org.jeecg.modules.system.mapper.DivisionMapper"> | |
4 | + | |
5 | + <update id="updateTreeNodeStatus" parameterType="java.lang.String"> | |
6 | + update mr_division set has_child = #{status} where id = #{id} | |
7 | + </update> | |
8 | + | |
9 | +</mapper> | |
0 | 10 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/FamilyMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="package org.jeecg.modules.system.mapper.FamilyMapper"> | |
4 | + | |
5 | + <delete id="deleteByMainId" parameterType="java.lang.String"> | |
6 | + DELETE | |
7 | + FROM mr_family | |
8 | + WHERE | |
9 | + minor_id = #{mainId} </delete> | |
10 | + | |
11 | + <select id="selectByMainId" parameterType="java.lang.String" resultType="org.jeecg.modules.system.entity.Family"> | |
12 | + SELECT * | |
13 | + FROM mr_family | |
14 | + WHERE | |
15 | + minor_id = #{mainId} </select> | |
16 | +</mapper> | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/GaDemographicMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="org.jeecg.modules.system.mapper.GaDemographicMapper"> | |
4 | + <resultMap id="gaHouseholdVo" type="org.jeecg.modules.system.entity.Family"> | |
5 | + <result column="name" property="name"/> | |
6 | + <result column="division" property="division"/> | |
7 | + <result column="identity" property="identity"/> | |
8 | + <result column="household_num" property="householdNum"/> | |
9 | + <result column="relation" property="relation"/> | |
10 | + <result column="num" property="num"/> | |
11 | + <result column="address" property="address"/> | |
12 | + </resultMap> | |
13 | + | |
14 | + <select id="queryPageList" parameterType="java.lang.Integer" resultMap="gaHouseholdVo"> | |
15 | + SELECT h.XM AS NAME, h.HJXZ AS address, h.XZQHMC AS division, h.GMSFHM AS identity, h.HH AS householdNum,h.YHZGXMC AS relation,h.RYBH AS number | |
16 | + FROM ga_demographic d JOIN ga_household h | |
17 | + WHERE ((d.RYBH = h.RYBH) AND (d.id >( SELECT gd.id FROM ga_demographic gd ORDER BY gd.id LIMIT #{queryNum}, 1))) | |
18 | + ORDER BY d.id LIMIT #{pageSize} | |
19 | + </select> | |
20 | + | |
21 | + <select id="getIdentityS" > | |
22 | + SELECT d.GMSFHM FROM ga_demographic d | |
23 | + </select> | |
24 | +</mapper> | |
0 | 25 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/GaHouseholdMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/GaJuvenilesStayMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/GaPunishMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="org.jeecg.modules.system.mapper.GaPunishMapper"> | |
4 | + <resultMap id="gaPunish" type="org.jeecg.modules.system.vo.GaPunishVo"> | |
5 | + <result column="SLDWMC" property="sldwmc"/> | |
6 | + <result column="DXSFZH" property="dxsfzh"/> | |
7 | + <result column="AJMC" property="ajmc"/> | |
8 | + | |
9 | + </resultMap> | |
10 | + <select id="queryAll" resultMap="gaPunish"> | |
11 | + SELECT p.DXSFZH,p.SLDWMC,p.AJMC FROM ga_punish p | |
12 | + </select> | |
13 | +</mapper> | |
0 | 14 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/HighSchoolMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="org.jeecg.modules.system.mapper.HighSchoolMapper"> | |
4 | + | |
5 | + <resultMap id="mrSchool" type="org.jeecg.modules.system.entity.MrSchool"> | |
6 | + <result column="name" property="name"/> | |
7 | + <result column="identity" property="identity"/> | |
8 | + <result column="class_name" property="className"/> | |
9 | + <result column="address" property="address"/> | |
10 | + <result column="school" property="school"/> | |
11 | + <result column="phone" property="phone"/> | |
12 | + <result column="member_one" property="memberOne"/> | |
13 | + <result column="admission_date" property="admissionDate"/> | |
14 | + <result column="connect_one" property="connectOne"/> | |
15 | + <result column="member_two" property="memberTwo"/> | |
16 | + <result column="connect_two" property="connectTwo"/> | |
17 | + </resultMap> | |
18 | + | |
19 | + <select id="getList" resultMap="mrSchool"> | |
20 | + SELECT s.XM as name, s.SFZJH as identity,s.NJMC as className,s.JTZZ as address,s.XXMC as school,s.LXDH as | |
21 | + phone, s.CYXM1 as memberOne, s.RXNF as admissionDate, s.LXDH1 as connectOne, s.CYXM2 as memberTwo, s.LXDH2 as connectTwo | |
22 | + FROM mr_high_school s | |
23 | + WHERE length (s.SFZJH)>14; | |
24 | + </select> | |
25 | +</mapper> | |
0 | 26 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MinorMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MrSchoolMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzAdoptionMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzLeftBehindChildrenMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzOrphanMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzUnsupportedMapper.xml
0 → 100644
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/PrimarySchoolMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="org.jeecg.modules.system.mapper.PrimarySchoolMapper"> | |
4 | + | |
5 | + <resultMap id="mrSchool" type="org.jeecg.modules.system.entity.MrSchool"> | |
6 | + <result column="name" property="name"/> | |
7 | + <result column="identity" property="identity"/> | |
8 | + <result column="class_name" property="className"/> | |
9 | + <result column="address" property="address"/> | |
10 | + <result column="school" property="school"/> | |
11 | + <result column="phone" property="phone"/> | |
12 | + <result column="admission_date" property="admissionDate"/> | |
13 | + <result column="member_one" property="memberOne"/> | |
14 | + <result column="connect_one" property="connectOne"/> | |
15 | + <result column="phone_one" property="phoneOne"/> | |
16 | + <result column="member_two" property="memberTwo"/> | |
17 | + <result column="connect_two" property="connectTwo"/> | |
18 | + <result column="phone_two" property="phoneTwo"/> | |
19 | + </resultMap> | |
20 | + | |
21 | + <select id="getList" resultMap="mrSchool"> | |
22 | + SELECT s.XM as name, s.SFZJH as identity,s.BJMC as className,s.XZZ as address,s.XXMC as school,s.CYXM1 as memberOne,s.RYRQ as admissionDate, | |
23 | + s.LXDH1 as connectOne,s.SJHM1 as phoneOne,s.CYXM2 as memberTwo,s.LXDH2 as connectTwo,s.SJHM2 as phoneTwo | |
24 | + FROM mr_primary_school s | |
25 | + WHERE length (s.SFZJH)>14 | |
26 | + </select> | |
27 | +</mapper> | |
0 | 28 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/SourceMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="org.jeecg.modules.system.mapper.SourceMapper"> | |
4 | + | |
5 | + <resultMap id="sourceData" type="org.jeecg.modules.system.entity.SourceData"> | |
6 | + <id column="id" property="id"/> | |
7 | + <result column="name" property="name"/> | |
8 | + <result column="batch" property="batch"/> | |
9 | + </resultMap> | |
10 | + | |
11 | + <select id="getListGroupByName" resultMap="sourceData"> | |
12 | + SELECT name,COUNT(batch) as batch FROM mr_source | |
13 | + <if test="null != name and '' !=name"> | |
14 | + where name like concat('%',#{name},'%') | |
15 | + </if> | |
16 | + | |
17 | + GROUP BY `name` | |
18 | + </select> | |
19 | +</mapper> | |
0 | 20 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/SpecialStudentMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="org.jeecg.modules.system.mapper.SpecialStudentMapper"> | |
4 | + <resultMap id="specialStudentVo" type="org.jeecg.modules.system.vo.SpecialStudentVo"> | |
5 | + <result column="SLDWMC" property="sldwmc"/> | |
6 | + <result column="DXSFZH" property="dxsfzh"/> | |
7 | + <result column="AJMC" property="ajmc"/> | |
8 | + | |
9 | + </resultMap> | |
10 | + <select id="queryList" resultMap="specialStudentVo"> | |
11 | + SELECT s.identity,s.school,s.reason,s.remark FROM mr_special_student s | |
12 | + </select> | |
13 | +</mapper> | |
0 | 14 | \ No newline at end of file | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/model/DivisionIdModel.java
0 → 100644
1 | +package org.jeecg.modules.system.model; | |
2 | + | |
3 | + | |
4 | +import java.io.Serializable; | |
5 | +import java.util.ArrayList; | |
6 | +import java.util.List; | |
7 | + | |
8 | +/** | |
9 | + * <p> | |
10 | + * 部门表 封装树结构的部门的名称的实体类 | |
11 | + * <p> | |
12 | + * | |
13 | + * @Author Steve | |
14 | + * @Since 2019-01-22 | |
15 | + * | |
16 | + */ | |
17 | +public class DivisionIdModel implements Serializable { | |
18 | + | |
19 | + private static final long serialVersionUID = 1L; | |
20 | + | |
21 | + // 主键ParentCode | |
22 | + private String key; | |
23 | + | |
24 | + // 主键ParentCode | |
25 | + private String value; | |
26 | + | |
27 | + // 部门名称 | |
28 | + private String title; | |
29 | + | |
30 | + List<DivisionIdModel> children = new ArrayList<>(); | |
31 | + | |
32 | + /** | |
33 | + * 将SysDepartTreeModel的部分数据放在该对象当中 | |
34 | + * @param treeModel | |
35 | + * @return | |
36 | + */ | |
37 | + public DivisionIdModel convert(DivisionModel treeModel) { | |
38 | + this.key = treeModel.getKey(); | |
39 | + this.value = treeModel.getValue(); | |
40 | + this.title = treeModel.getTitle(); | |
41 | + return this; | |
42 | + } | |
43 | + | |
44 | + /** | |
45 | + * 该方法为用户部门的实现类所使用 | |
46 | + * @param treeModel | |
47 | + * @return | |
48 | + */ | |
49 | + public DivisionIdModel convertByUserDepart(DivisionModel treeModel) { | |
50 | + this.key = treeModel.getKey(); | |
51 | + this.value = treeModel.getValue(); | |
52 | + this.title = treeModel.getTitle(); | |
53 | + return this; | |
54 | + } | |
55 | + | |
56 | + public List<DivisionIdModel> getChildren() { | |
57 | + return children; | |
58 | + } | |
59 | + | |
60 | + public void setChildren(List<DivisionIdModel> children) { | |
61 | + this.children = children; | |
62 | + } | |
63 | + | |
64 | + public static long getSerialVersionUID() { | |
65 | + return serialVersionUID; | |
66 | + } | |
67 | + | |
68 | + public String getKey() { | |
69 | + return key; | |
70 | + } | |
71 | + | |
72 | + public void setKey(String key) { | |
73 | + this.key = key; | |
74 | + } | |
75 | + | |
76 | + public String getValue() { | |
77 | + return value; | |
78 | + } | |
79 | + | |
80 | + public void setValue(String value) { | |
81 | + this.value = value; | |
82 | + } | |
83 | + | |
84 | + public String getTitle() { | |
85 | + return title; | |
86 | + } | |
87 | + | |
88 | + public void setTitle(String title) { | |
89 | + this.title = title; | |
90 | + } | |
91 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/model/DivisionModel.java
0 → 100644
1 | +package org.jeecg.modules.system.model; | |
2 | + | |
3 | + | |
4 | + | |
5 | +import org.jeecg.modules.system.entity.Division; | |
6 | + | |
7 | +import java.io.Serializable; | |
8 | +import java.util.ArrayList; | |
9 | +import java.util.Date; | |
10 | +import java.util.List; | |
11 | +import java.util.Objects; | |
12 | + | |
13 | +/** | |
14 | + * <p> | |
15 | + * 部门表 存储树结构数据的实体类 | |
16 | + * <p> | |
17 | + * | |
18 | + * @Author Steve | |
19 | + * @Since 2019-01-22 | |
20 | + */ | |
21 | +public class DivisionModel implements Serializable{ | |
22 | + | |
23 | + private static final long serialVersionUID = 1L; | |
24 | + | |
25 | + /** 对应SysDepart中的id字段,前端数据树中的key*/ | |
26 | + private String key; | |
27 | + | |
28 | + /** 对应SysDepart中的id字段,前端数据树中的value*/ | |
29 | + private String value; | |
30 | + | |
31 | + /** 对应depart_name字段,前端数据树中的title*/ | |
32 | + private String title; | |
33 | + | |
34 | + | |
35 | + private boolean isLeaf; | |
36 | + // 以下所有字段均与division相同 | |
37 | + | |
38 | + /** | |
39 | + * 主键 | |
40 | + */ | |
41 | + private String id; | |
42 | + | |
43 | + private String name; | |
44 | + | |
45 | + private String abbreviation; | |
46 | + | |
47 | + private String code; | |
48 | + | |
49 | + private String commonCode; | |
50 | + | |
51 | + private String pid; | |
52 | + | |
53 | + /** | |
54 | + * 创建人 | |
55 | + */ | |
56 | + private String createBy; | |
57 | + /** | |
58 | + * 创建日期 | |
59 | + */ | |
60 | + private Date createTime; | |
61 | + /** | |
62 | + * 更新人 | |
63 | + */ | |
64 | + private String updateBy; | |
65 | + /** | |
66 | + * 更新日期 | |
67 | + */ | |
68 | + private Date updateTime; | |
69 | + | |
70 | + | |
71 | + private String hasChild; | |
72 | + | |
73 | + private List<DivisionModel> children = new ArrayList<>(); | |
74 | + | |
75 | + | |
76 | + public DivisionModel(Division division) { | |
77 | + this.key = division.getId(); | |
78 | + this.value = division.getId(); | |
79 | + this.title = division.getName(); | |
80 | + this.id = division.getId(); | |
81 | + this.pid = division.getPid(); | |
82 | + this.name=division.getName(); | |
83 | + this.code=division.getCode(); | |
84 | + this.abbreviation=division.getAbbreviation(); | |
85 | + this.commonCode=division.getCommonCode(); | |
86 | + this.createBy = division.getCreateBy(); | |
87 | + this.createTime = division.getCreateTime(); | |
88 | + this.updateBy = division.getUpdateBy(); | |
89 | + this.updateTime = division.getUpdateTime(); | |
90 | + this.hasChild=division.getHasChild(); | |
91 | + } | |
92 | + | |
93 | + public String getKey() { | |
94 | + return key; | |
95 | + } | |
96 | + | |
97 | + public void setKey(String key) { | |
98 | + this.key = key; | |
99 | + } | |
100 | + | |
101 | + public String getValue() { | |
102 | + return value; | |
103 | + } | |
104 | + | |
105 | + public void setValue(String value) { | |
106 | + this.value = value; | |
107 | + } | |
108 | + | |
109 | + public String getTitle() { | |
110 | + return title; | |
111 | + } | |
112 | + | |
113 | + public void setTitle(String title) { | |
114 | + this.title = title; | |
115 | + } | |
116 | + | |
117 | + public boolean getIsLeaf() { | |
118 | + return isLeaf; | |
119 | + } | |
120 | + | |
121 | + public void setIsLeaf(boolean isleaf) { | |
122 | + this.isLeaf = isleaf; | |
123 | + } | |
124 | + | |
125 | + public String getId() { | |
126 | + return id; | |
127 | + } | |
128 | + | |
129 | + public void setId(String id) { | |
130 | + this.id = id; | |
131 | + } | |
132 | + | |
133 | + public String getName() { | |
134 | + return name; | |
135 | + } | |
136 | + | |
137 | + public void setName(String name) { | |
138 | + this.name = name; | |
139 | + } | |
140 | + | |
141 | + public String getAbbreviation() { | |
142 | + return abbreviation; | |
143 | + } | |
144 | + | |
145 | + public void setAbbreviation(String abbreviation) { | |
146 | + this.abbreviation = abbreviation; | |
147 | + } | |
148 | + | |
149 | + public String getCode() { | |
150 | + return code; | |
151 | + } | |
152 | + | |
153 | + public void setCode(String code) { | |
154 | + this.code = code; | |
155 | + } | |
156 | + | |
157 | + public String getCommonCode() { | |
158 | + return commonCode; | |
159 | + } | |
160 | + | |
161 | + public void setCommonCode(String commonCode) { | |
162 | + this.commonCode = commonCode; | |
163 | + } | |
164 | + | |
165 | + public String getPid() { | |
166 | + return pid; | |
167 | + } | |
168 | + | |
169 | + public void setPid(String pid) { | |
170 | + this.pid = pid; | |
171 | + } | |
172 | + | |
173 | + public String getCreateBy() { | |
174 | + return createBy; | |
175 | + } | |
176 | + | |
177 | + public void setCreateBy(String createBy) { | |
178 | + this.createBy = createBy; | |
179 | + } | |
180 | + | |
181 | + public Date getCreateTime() { | |
182 | + return createTime; | |
183 | + } | |
184 | + | |
185 | + public void setCreateTime(Date createTime) { | |
186 | + this.createTime = createTime; | |
187 | + } | |
188 | + | |
189 | + public String getUpdateBy() { | |
190 | + return updateBy; | |
191 | + } | |
192 | + | |
193 | + public void setUpdateBy(String updateBy) { | |
194 | + this.updateBy = updateBy; | |
195 | + } | |
196 | + | |
197 | + public Date getUpdateTime() { | |
198 | + return updateTime; | |
199 | + } | |
200 | + | |
201 | + public void setUpdateTime(Date updateTime) { | |
202 | + this.updateTime = updateTime; | |
203 | + } | |
204 | + | |
205 | + public String getHasChild() { | |
206 | + return hasChild; | |
207 | + } | |
208 | + | |
209 | + public void setHasChild(String hasChild) { | |
210 | + this.hasChild = hasChild; | |
211 | + } | |
212 | + | |
213 | + public List<DivisionModel> getChildren() { | |
214 | + return children; | |
215 | + } | |
216 | + | |
217 | + public void setChildren(List<DivisionModel> children) { | |
218 | + if (children==null){ | |
219 | + this.isLeaf=true; | |
220 | + } | |
221 | + this.children = children; | |
222 | + } | |
223 | + | |
224 | + /** | |
225 | + * 重写equals方法 | |
226 | + */ | |
227 | + @Override | |
228 | + public boolean equals(Object o) { | |
229 | + if (this == o) { | |
230 | + return true; | |
231 | + } | |
232 | + if (o == null || getClass() != o.getClass()) { | |
233 | + return false; | |
234 | + } | |
235 | + DivisionModel model = (DivisionModel) o; | |
236 | + return Objects.equals(id, model.id) && | |
237 | + Objects.equals(name, model.name) && | |
238 | + Objects.equals(abbreviation, model.abbreviation) && | |
239 | + Objects.equals(code, model.code) && | |
240 | + Objects.equals(commonCode, model.commonCode) && | |
241 | + Objects.equals(pid, model.pid) && | |
242 | + Objects.equals(createBy, model.createBy) && | |
243 | + Objects.equals(createTime, model.createTime) && | |
244 | + Objects.equals(updateBy, model.updateBy) && | |
245 | + Objects.equals(updateTime, model.updateTime) && | |
246 | + Objects.equals(hasChild,model.hasChild) && | |
247 | + Objects.equals(children, model.children); | |
248 | + } | |
249 | + | |
250 | + /** | |
251 | + * 重写hashCode方法 | |
252 | + */ | |
253 | + @Override | |
254 | + public int hashCode() { | |
255 | + | |
256 | + return Objects.hash(id,name, abbreviation, code, | |
257 | + commonCode, pid, createBy, createTime, updateBy, updateTime,hasChild, | |
258 | + children); | |
259 | + } | |
260 | + | |
261 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/model/SysDepartTreeModel.java
... | ... | @@ -75,6 +75,10 @@ public class SysDepartTreeModel implements Serializable{ |
75 | 75 | |
76 | 76 | private Date updateTime; |
77 | 77 | |
78 | + private String abbreviation; | |
79 | + | |
80 | + private String commonCode; | |
81 | + | |
78 | 82 | private List<SysDepartTreeModel> children = new ArrayList<>(); |
79 | 83 | |
80 | 84 | |
... | ... | @@ -107,6 +111,8 @@ public class SysDepartTreeModel implements Serializable{ |
107 | 111 | this.createTime = sysDepart.getCreateTime(); |
108 | 112 | this.updateBy = sysDepart.getUpdateBy(); |
109 | 113 | this.updateTime = sysDepart.getUpdateTime(); |
114 | + this.abbreviation = sysDepart.getAbbreviation(); | |
115 | + this.commonCode = sysDepart.getCommonCode(); | |
110 | 116 | } |
111 | 117 | |
112 | 118 | public boolean getIsLeaf() { |
... | ... | @@ -330,6 +336,22 @@ public class SysDepartTreeModel implements Serializable{ |
330 | 336 | this.updateTime = updateTime; |
331 | 337 | } |
332 | 338 | |
339 | + public String getAbbreviation() { | |
340 | + return abbreviation; | |
341 | + } | |
342 | + | |
343 | + public void setAbbreviation(String abbreviation) { | |
344 | + this.abbreviation = abbreviation; | |
345 | + } | |
346 | + | |
347 | + public String getCommonCode() { | |
348 | + return commonCode; | |
349 | + } | |
350 | + | |
351 | + public void setCommonCode(String commonCode) { | |
352 | + this.commonCode = commonCode; | |
353 | + } | |
354 | + | |
333 | 355 | public SysDepartTreeModel() { } |
334 | 356 | |
335 | 357 | /** |
... | ... | @@ -365,7 +387,9 @@ public class SysDepartTreeModel implements Serializable{ |
365 | 387 | Objects.equals(createTime, model.createTime) && |
366 | 388 | Objects.equals(updateBy, model.updateBy) && |
367 | 389 | Objects.equals(updateTime, model.updateTime) && |
368 | - Objects.equals(children, model.children); | |
390 | + Objects.equals(children, model.children) && | |
391 | + Objects.equals(abbreviation, model.abbreviation)&& | |
392 | + Objects.equals(commonCode, model.commonCode); | |
369 | 393 | } |
370 | 394 | |
371 | 395 | /** |
... | ... | @@ -376,7 +400,7 @@ public class SysDepartTreeModel implements Serializable{ |
376 | 400 | |
377 | 401 | return Objects.hash(id, parentId, departName, departNameEn, departNameAbbr, |
378 | 402 | departOrder, description, orgCategory, orgType, orgCode, mobile, fax, address, |
379 | - memo, status, delFlag, qywxIdentifier, createBy, createTime, updateBy, updateTime, | |
403 | + memo, status, delFlag, qywxIdentifier, createBy, createTime, updateBy, updateTime,abbreviation,commonCode, | |
380 | 404 | children); |
381 | 405 | } |
382 | 406 | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IDivisionService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.common.exception.JeecgBootException; | |
5 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
6 | +import org.jeecg.modules.system.entity.Division; | |
7 | +import org.jeecg.modules.system.model.DivisionModel; | |
8 | + | |
9 | +import java.util.List; | |
10 | + | |
11 | +/** | |
12 | + * @Description: 行政区划 | |
13 | + * @Author: jeecg-boot | |
14 | + * @Date: 2022-07-12 | |
15 | + * @Version: V1.0 | |
16 | + */ | |
17 | +public interface IDivisionService extends IService<Division> { | |
18 | + | |
19 | + /**根节点父ID的值*/ | |
20 | + public static final String ROOT_PID_VALUE = "0"; | |
21 | + | |
22 | + /**树节点有子节点状态值*/ | |
23 | + public static final String HASCHILD = "1"; | |
24 | + | |
25 | + /**树节点无子节点状态值*/ | |
26 | + public static final String NOCHILD = "0"; | |
27 | + | |
28 | + /**新增节点*/ | |
29 | + void addDivision(Division division); | |
30 | + | |
31 | + /**修改节点*/ | |
32 | + void updateDivision(Division division) throws JeecgBootException; | |
33 | + | |
34 | + /** | |
35 | + * 根据部门id删除并删除其可能存在的子级部门 | |
36 | + * @param id | |
37 | + * @return | |
38 | + */ | |
39 | + boolean delete(String id); | |
40 | + | |
41 | + | |
42 | + void deleteBatchWithChildren(List<String> ids); | |
43 | + | |
44 | + /** | |
45 | + * 查询所有部门信息,并分节点进行显示 | |
46 | + * @return | |
47 | + */ | |
48 | + List<DivisionModel> queryTreeList(String ids); | |
49 | + | |
50 | + /** | |
51 | + * 查询所有部门信息,并分节点进行显示 | |
52 | + * @return | |
53 | + */ | |
54 | + List<DivisionModel> queryTreeList(); | |
55 | + | |
56 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IFamilyService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.Family; | |
5 | + | |
6 | +import java.util.List; | |
7 | + | |
8 | +/** | |
9 | + * @Description: 家庭成员表 | |
10 | + * @Author: jeecg-boot | |
11 | + * @Date: 2022-07-13 | |
12 | + * @Version: V1.0 | |
13 | + */ | |
14 | +public interface IFamilyService extends IService<Family> { | |
15 | + | |
16 | + public List<Family> selectByMainId(String mainId); | |
17 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IGaDemographicService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.Family; | |
5 | +import org.jeecg.modules.system.entity.GaDemographic; | |
6 | +import org.jeecg.modules.system.vo.FamilyVo; | |
7 | + | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * @Description: 公安_人口基础信息 | |
12 | + * @Author: jeecg-boot | |
13 | + * @Date: 2022-07-14 | |
14 | + * @Version: V1.0 | |
15 | + */ | |
16 | +public interface IGaDemographicService extends IService<GaDemographic> { | |
17 | + | |
18 | + /** | |
19 | + * 分页关联查询人口基础信息和户籍信息 | |
20 | + * @param startNum | |
21 | + * @param endNum | |
22 | + * @return | |
23 | + */ | |
24 | + public List<Family> queryPageList(Integer startNum, Integer endNum); | |
25 | + | |
26 | + public List<String> getIdentityS(); | |
27 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IGaHouseholdService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.GaHousehold; | |
5 | + | |
6 | +/** | |
7 | + * @Description: 公安_居民户籍信息 | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface IGaHouseholdService extends IService<GaHousehold> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IGaJuvenilesStayService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.GaJuvenilesStay; | |
5 | + | |
6 | +/** | |
7 | + * @Description: 公安_未成年人住宿信息 | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface IGaJuvenilesStayService extends IService<GaJuvenilesStay> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IGaPunishService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.GaPunish; | |
5 | +import org.jeecg.modules.system.vo.GaPunishVo; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * @Description: 公安_行政处罚打处人员信息 | |
11 | + * @Author: jeecg-boot | |
12 | + * @Date: 2022-07-14 | |
13 | + * @Version: V1.0 | |
14 | + */ | |
15 | +public interface IGaPunishService extends IService<GaPunish> { | |
16 | + /** | |
17 | + * 查询数据 | |
18 | + * @return | |
19 | + */ | |
20 | + public List<GaPunishVo> queryAll(); | |
21 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IHighSchoolService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | + | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | +import org.jeecg.modules.system.entity.HighSchool; | |
6 | +import org.jeecg.modules.system.entity.MrSchool; | |
7 | + | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * @Description: mr_high_school | |
12 | + * @Author: jeecg-boot | |
13 | + * @Date: 2022-07-15 | |
14 | + * @Version: V1.0 | |
15 | + */ | |
16 | +public interface IHighSchoolService extends IService<HighSchool> { | |
17 | + public List<MrSchool> getList(); | |
18 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMinorService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.Family; | |
5 | +import org.jeecg.modules.system.entity.Minor; | |
6 | + | |
7 | +import java.io.Serializable; | |
8 | +import java.util.Collection; | |
9 | +import java.util.List; | |
10 | + | |
11 | +/** | |
12 | + * @Description: 未成年人 | |
13 | + * @Author: jeecg-boot | |
14 | + * @Date: 2022-07-13 | |
15 | + * @Version: V1.0 | |
16 | + */ | |
17 | +public interface IMinorService extends IService<Minor> { | |
18 | + | |
19 | + /** | |
20 | + * 添加一对多 | |
21 | + * | |
22 | + */ | |
23 | + public void saveMain(Minor minor,List<Family> familyList) ; | |
24 | + | |
25 | + /** | |
26 | + * 修改一对多 | |
27 | + * | |
28 | + */ | |
29 | + public void updateMain(Minor minor,List<Family> familyList); | |
30 | + | |
31 | + /** | |
32 | + * 删除一对多 | |
33 | + */ | |
34 | + public void delMain (String id); | |
35 | + | |
36 | + /** | |
37 | + * 批量删除一对多 | |
38 | + */ | |
39 | + public void delBatchMain (Collection<? extends Serializable> idList); | |
40 | + | |
41 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMrSchoolService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.MrSchool; | |
5 | + | |
6 | +/** | |
7 | + * @Description: 学校 | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-15 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface IMrSchoolService extends IService<MrSchool> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMzAdoptionService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.MzAdoption; | |
5 | + | |
6 | +/** | |
7 | + * @Description:民政_全市收养登记数据 | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface IMzAdoptionService extends IService<MzAdoption> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMzLeftBehindChildrenService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | + | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | +import org.jeecg.modules.system.entity.MzLeftBehindChildren; | |
6 | + | |
7 | +/** | |
8 | + * @Description: 民政_全市在册农村留守儿童数据 | |
9 | + * @Author: jeecg-boot | |
10 | + * @Date: 2022-07-14 | |
11 | + * @Version: V1.0 | |
12 | + */ | |
13 | +public interface IMzLeftBehindChildrenService extends IService<MzLeftBehindChildren> { | |
14 | + | |
15 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMzOrphanService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.MzOrphan; | |
5 | + | |
6 | +/** | |
7 | + * @Description: 民政_全市在册孤儿数据 | |
8 | + * @Author: jeecg-boot | |
9 | + * @Date: 2022-07-14 | |
10 | + * @Version: V1.0 | |
11 | + */ | |
12 | +public interface IMzOrphanService extends IService<MzOrphan> { | |
13 | + | |
14 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMzUnsupportedService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | + | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | +import org.jeecg.modules.system.entity.MzUnsupported; | |
6 | + | |
7 | +/** | |
8 | + * @Description: 民政_全市在册事实无人抚养儿童数据 | |
9 | + * @Author: jeecg-boot | |
10 | + * @Date: 2022-07-14 | |
11 | + * @Version: V1.0 | |
12 | + */ | |
13 | +public interface IMzUnsupportedService extends IService<MzUnsupported> { | |
14 | + | |
15 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IPrimarySchoolService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | + | |
4 | +import com.baomidou.mybatisplus.extension.service.IService; | |
5 | +import org.jeecg.modules.system.entity.MrSchool; | |
6 | +import org.jeecg.modules.system.entity.PrimarySchool; | |
7 | + | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * @Description: mr_primary_school | |
12 | + * @Author: jeecg-boot | |
13 | + * @Date: 2022-07-15 | |
14 | + * @Version: V1.0 | |
15 | + */ | |
16 | +public interface IPrimarySchoolService extends IService<PrimarySchool> { | |
17 | + public List<MrSchool> getList(); | |
18 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/ISourceService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.metadata.IPage; | |
4 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | |
5 | +import com.baomidou.mybatisplus.extension.service.IService; | |
6 | +import org.jeecg.modules.system.entity.SourceData; | |
7 | + | |
8 | +/** | |
9 | + * @Description: 来源数据管理 | |
10 | + * @Author: jeecg-boot | |
11 | + * @Date: 2022-07-13 | |
12 | + * @Version: V1.0 | |
13 | + */ | |
14 | +public interface ISourceService extends IService<SourceData> { | |
15 | + /** | |
16 | + * 根据单位名称分组查询数据 | |
17 | + * @param page | |
18 | + * @return | |
19 | + */ | |
20 | + public IPage<SourceData> getListGroupByName(Page<SourceData> page,String name); | |
21 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/ISpecialStudentService.java
0 → 100644
1 | +package org.jeecg.modules.system.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import org.jeecg.modules.system.entity.SpecialStudent; | |
5 | +import org.jeecg.modules.system.vo.SpecialStudentVo; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * @Description: mr_special_student | |
11 | + * @Author: jeecg-boot | |
12 | + * @Date: 2022-07-14 | |
13 | + * @Version: V1.0 | |
14 | + */ | |
15 | +public interface ISpecialStudentService extends IService<SpecialStudent> { | |
16 | + /** | |
17 | + * 查询 | |
18 | + * @return | |
19 | + */ | |
20 | + public List<SpecialStudentVo> queryList(); | |
21 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/DivisionServiceImpl.java
0 → 100644
1 | +package org.jeecg.modules.system.service.impl; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
4 | +import org.apache.logging.log4j.util.Strings; | |
5 | +import org.apache.shiro.SecurityUtils; | |
6 | +import org.jeecg.common.constant.CommonConstant; | |
7 | +import org.jeecg.common.exception.JeecgBootException; | |
8 | +import org.jeecg.common.system.vo.LoginUser; | |
9 | +import org.jeecg.common.util.oConvertUtils; | |
10 | +import org.jeecg.modules.system.entity.Division; | |
11 | +import org.jeecg.modules.system.mapper.DivisionMapper; | |
12 | +import org.jeecg.modules.system.model.DivisionModel; | |
13 | +import org.jeecg.modules.system.service.IDivisionService; | |
14 | +import org.jeecg.modules.system.util.FindsDivisionsChildrenUtil; | |
15 | +import org.springframework.stereotype.Service; | |
16 | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |
17 | +import org.springframework.transaction.annotation.Transactional; | |
18 | +import java.util.ArrayList; | |
19 | +import java.util.Arrays; | |
20 | +import java.util.List; | |
21 | + | |
22 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
23 | + | |
24 | +/** | |
25 | + * @Description: 行政区划 | |
26 | + * @Author: jeecg-boot | |
27 | + * @Date: 2022-07-12 | |
28 | + * @Version: V1.0 | |
29 | + */ | |
30 | +@Service | |
31 | +public class DivisionServiceImpl extends ServiceImpl<DivisionMapper, Division> implements IDivisionService { | |
32 | + | |
33 | + @Override | |
34 | + public void addDivision(Division division) { | |
35 | + //新增时设置hasChild为0 | |
36 | + division.setHasChild(IDivisionService.NOCHILD); | |
37 | + if(oConvertUtils.isEmpty(division.getPid())){ | |
38 | + division.setPid(IDivisionService.ROOT_PID_VALUE); | |
39 | + }else{ | |
40 | + //如果当前节点父ID不为空 则设置父节点的hasChildren 为1 | |
41 | + LambdaQueryWrapper<Division> query = new LambdaQueryWrapper<Division>(); | |
42 | + query.eq(Division::getId, division.getPid()); | |
43 | + Division parent = baseMapper.selectOne(query); | |
44 | + if(parent!=null && !"1".equals(parent.getHasChild())){ | |
45 | + parent.setHasChild("1"); | |
46 | + baseMapper.updateById(parent); | |
47 | + } | |
48 | + } | |
49 | + baseMapper.insert(division); | |
50 | + } | |
51 | + | |
52 | + @Override | |
53 | + public void updateDivision(Division division) { | |
54 | + baseMapper.updateById(division); | |
55 | + } | |
56 | + | |
57 | + @Override | |
58 | + @Transactional(rollbackFor = Exception.class) | |
59 | + public boolean delete(String id) { | |
60 | + List<String> idList = new ArrayList<>(); | |
61 | + idList.add(id); | |
62 | + this.checkChildrenExists(id, idList); | |
63 | + boolean ok = this.removeByIds(idList); | |
64 | + | |
65 | + return ok; | |
66 | + } | |
67 | + | |
68 | + @Override | |
69 | + @Transactional(rollbackFor = Exception.class) | |
70 | + public void deleteBatchWithChildren(List<String> ids) { | |
71 | + List<String> idList = new ArrayList<String>(); | |
72 | + for(String id: ids) { | |
73 | + idList.add(id); | |
74 | + this.checkChildrenExists(id, idList); | |
75 | + } | |
76 | + this.removeByIds(idList); | |
77 | + } | |
78 | + /** | |
79 | + * delete 方法调用 | |
80 | + * @param id | |
81 | + * @param idList | |
82 | + */ | |
83 | + private void checkChildrenExists(String id, List<String> idList) { | |
84 | + LambdaQueryWrapper<Division> query = new LambdaQueryWrapper<Division>(); | |
85 | + query.eq(Division::getPid,id); | |
86 | + List<Division> facilityList = this.list(query); | |
87 | + if(facilityList != null && facilityList.size() > 0) { | |
88 | + for(Division facility : facilityList) { | |
89 | + idList.add(facility.getId()); | |
90 | + this.checkChildrenExists(facility.getId(), idList); | |
91 | + } | |
92 | + } | |
93 | + } | |
94 | + | |
95 | + /** | |
96 | + * 根据所传pid查询旧的父级节点的子节点并修改相应状态值 | |
97 | + * @param pid | |
98 | + */ | |
99 | + private void updateOldParentNode(String pid) { | |
100 | + if(!IDivisionService.ROOT_PID_VALUE.equals(pid)) { | |
101 | + Integer count = baseMapper.selectCount(new QueryWrapper<Division>().eq("pid", pid)); | |
102 | + if(count==null || count<=1) { | |
103 | + baseMapper.updateTreeNodeStatus(pid, IDivisionService.NOCHILD); | |
104 | + } | |
105 | + } | |
106 | + } | |
107 | + | |
108 | + /** | |
109 | + * 递归查询节点的根节点 | |
110 | + * @param pidVal | |
111 | + * @return | |
112 | + */ | |
113 | + private Division getTreeRoot(String pidVal){ | |
114 | + Division data = baseMapper.selectById(pidVal); | |
115 | + if(data != null && !"0".equals(data.getPid())){ | |
116 | + return this.getTreeRoot(data.getPid()); | |
117 | + }else{ | |
118 | + return data; | |
119 | + } | |
120 | + } | |
121 | + | |
122 | + /** | |
123 | + * 根据id查询所有子节点id | |
124 | + * @param ids | |
125 | + * @return | |
126 | + */ | |
127 | + private String queryTreeChildIds(String ids) { | |
128 | + //获取id数组 | |
129 | + String[] idArr = ids.split(","); | |
130 | + StringBuffer sb = new StringBuffer(); | |
131 | + for (String pidVal : idArr) { | |
132 | + if(pidVal != null){ | |
133 | + if(!sb.toString().contains(pidVal)){ | |
134 | + if(sb.toString().length() > 0){ | |
135 | + sb.append(","); | |
136 | + } | |
137 | + sb.append(pidVal); | |
138 | + this.getTreeChildIds(pidVal,sb); | |
139 | + } | |
140 | + } | |
141 | + } | |
142 | + return sb.toString(); | |
143 | + } | |
144 | + | |
145 | + /** | |
146 | + * 递归查询所有子节点 | |
147 | + * @param pidVal | |
148 | + * @param sb | |
149 | + * @return | |
150 | + */ | |
151 | + private StringBuffer getTreeChildIds(String pidVal,StringBuffer sb){ | |
152 | + List<Division> dataList = baseMapper.selectList(new QueryWrapper<Division>().eq("pid", pidVal)); | |
153 | + if(dataList != null && dataList.size()>0){ | |
154 | + for(Division tree : dataList) { | |
155 | + if(!sb.toString().contains(tree.getId())){ | |
156 | + sb.append(",").append(tree.getId()); | |
157 | + } | |
158 | + this.getTreeChildIds(tree.getId(),sb); | |
159 | + } | |
160 | + } | |
161 | + return sb; | |
162 | + } | |
163 | + | |
164 | + /** | |
165 | + * queryTreeList 对应 queryTreeList 查询所有的部门数据,以树结构形式响应给前端 | |
166 | + */ | |
167 | + @Override | |
168 | + public List<DivisionModel> queryTreeList() { | |
169 | + LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); | |
170 | + | |
171 | + LambdaQueryWrapper<Division> query = new LambdaQueryWrapper<Division>(); | |
172 | + List<Division> list = this.list(query); | |
173 | + | |
174 | + // 调用wrapTreeDataToTreeList方法生成树状数据 | |
175 | + List<DivisionModel> listResult = FindsDivisionsChildrenUtil.wrapTreeDataToTreeList(list); | |
176 | + return listResult; | |
177 | + } | |
178 | + | |
179 | + /** | |
180 | + * queryTreeList 根据部门id查询,前端回显调用 | |
181 | + */ | |
182 | + @Override | |
183 | + public List<DivisionModel> queryTreeList(String ids) { | |
184 | + List<DivisionModel> listResult=new ArrayList<>(); | |
185 | + LambdaQueryWrapper<Division> query = new LambdaQueryWrapper<Division>(); | |
186 | + if(oConvertUtils.isNotEmpty(ids)){ | |
187 | + query.in(true,Division::getId,ids.split(",")); | |
188 | + } | |
189 | + List<Division> list= this.list(query); | |
190 | + for (Division depart : list) { | |
191 | + listResult.add(new DivisionModel(depart)); | |
192 | + } | |
193 | + return listResult; | |
194 | + | |
195 | + } | |
196 | + | |
197 | + | |
198 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/FamilyServiceImpl.java
0 → 100644
1 | +package org.jeecg.modules.system.service.impl; | |
2 | + | |
3 | +import org.jeecg.modules.system.entity.Family; | |
4 | +import org.jeecg.modules.system.mapper.FamilyMapper; | |
5 | +import org.jeecg.modules.system.service.IFamilyService; | |
6 | +import org.springframework.stereotype.Service; | |
7 | +import java.util.List; | |
8 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
9 | +import org.springframework.beans.factory.annotation.Autowired; | |
10 | + | |
11 | +import javax.annotation.Resource; | |
12 | + | |
13 | +/** | |
14 | + * @Description: 家庭成员表 | |
15 | + * @Author: jeecg-boot | |
16 | + * @Date: 2022-07-13 | |
17 | + * @Version: V1.0 | |
18 | + */ | |
19 | +@Service | |
20 | +public class FamilyServiceImpl extends ServiceImpl<FamilyMapper, Family> implements IFamilyService { | |
21 | + | |
22 | + @Resource | |
23 | + private FamilyMapper familyMapper; | |
24 | + | |
25 | + @Override | |
26 | + public List<Family> selectByMainId(String mainId) { | |
27 | + return familyMapper.selectByMainId(mainId); | |
28 | + } | |
29 | +} | ... | ... |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/GaDemographicServiceImpl.java
0 → 100644
1 | +package org.jeecg.modules.system.service.impl; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
4 | +import org.jeecg.modules.system.entity.Family; | |
5 | +import org.jeecg.modules.system.entity.GaDemographic; | |
6 | +import org.jeecg.modules.system.mapper.GaDemographicMapper; | |
7 | +import org.jeecg.modules.system.service.IGaDemographicService; | |
8 | +import org.jeecg.modules.system.vo.FamilyVo; | |
9 | +import org.springframework.stereotype.Service; | |
10 | + | |
11 | +import javax.annotation.Resource; | |
12 | +import java.util.List; | |
13 | + | |
14 | +/** | |
15 | + * @Description: ga_demographic | |
16 | + * @Author: jeecg-boot | |
17 | + * @Date: 2022-07-14 | |
18 | + * @Version: V1.0 | |
19 | + */ | |
20 | +@Service | |
21 | +public class GaDemographicServiceImpl extends ServiceImpl<GaDemographicMapper, GaDemographic> implements IGaDemographicService { | |
22 | + @Resource | |
23 | + private GaDemographicMapper gaDemographicMapper; | |
24 | + | |
25 | + /** | |
26 | + * 分页关联查询人口基础信息和户籍信息 | |
27 | + * @param startNum | |
28 | + * @param endNum | |
29 | + * @return | |
30 | + */ | |
31 | + @Override | |
32 | + public List<Family> queryPageList(Integer startNum, Integer endNum) { | |
33 | + return gaDemographicMapper.queryPageList(startNum,endNum); | |
34 | + } | |
35 | + | |
36 | + @Override | |
37 | + public List<String> getIdentityS() { | |
38 | + return gaDemographicMapper.getIdentityS(); | |
39 | + } | |
40 | + | |
41 | + | |
42 | +} | ... | ... |