Commit 50565778936409d19f2306eecdfa2c04afcf55a8
1 parent
7848a244
新增未成年人、户籍信息、特殊学校、学籍信息等相关文件
Showing
148 changed files
with
6983 additions
and
125 deletions
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,8 +39,13 @@ | ||
| 39 | <artifactId>jeewx-api</artifactId> | 39 | <artifactId>jeewx-api</artifactId> |
| 40 | <version>1.4.2</version> | 40 | <version>1.4.2</version> |
| 41 | </dependency> | 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 | <!--<groupId>org.jeecgframework.boot</groupId>--> | 49 | <!--<groupId>org.jeecgframework.boot</groupId>--> |
| 45 | <!--<artifactId>jeecg-boot-module-demo</artifactId>--> | 50 | <!--<artifactId>jeecg-boot-module-demo</artifactId>--> |
| 46 | <!--<version>${jeecgboot.version}</version>--> | 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,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType; | ||
| 4 | import com.baomidou.mybatisplus.annotation.TableId; | 4 | import com.baomidou.mybatisplus.annotation.TableId; |
| 5 | import com.baomidou.mybatisplus.annotation.TableName; | 5 | import com.baomidou.mybatisplus.annotation.TableName; |
| 6 | import com.fasterxml.jackson.annotation.JsonFormat; | 6 | import com.fasterxml.jackson.annotation.JsonFormat; |
| 7 | +import io.swagger.annotations.ApiModelProperty; | ||
| 7 | import lombok.Data; | 8 | import lombok.Data; |
| 8 | import org.jeecg.common.aspect.annotation.Dict; | 9 | import org.jeecg.common.aspect.annotation.Dict; |
| 9 | import org.jeecgframework.poi.excel.annotation.Excel; | 10 | import org.jeecgframework.poi.excel.annotation.Excel; |
| @@ -85,6 +86,14 @@ public class SysDepart implements Serializable { | @@ -85,6 +86,14 @@ public class SysDepart implements Serializable { | ||
| 85 | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | 86 | @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") |
| 86 | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | 87 | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| 87 | private Date updateTime; | 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 | * 重写equals方法 | 99 | * 重写equals方法 |
| @@ -120,7 +129,9 @@ public class SysDepart implements Serializable { | @@ -120,7 +129,9 @@ public class SysDepart implements Serializable { | ||
| 120 | Objects.equals(createBy, depart.createBy) && | 129 | Objects.equals(createBy, depart.createBy) && |
| 121 | Objects.equals(createTime, depart.createTime) && | 130 | Objects.equals(createTime, depart.createTime) && |
| 122 | Objects.equals(updateBy, depart.updateBy) && | 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,6 +143,6 @@ public class SysDepart implements Serializable { | ||
| 132 | return Objects.hash(super.hashCode(), id, parentId, departName, | 143 | return Objects.hash(super.hashCode(), id, parentId, departName, |
| 133 | departNameEn, departNameAbbr, departOrder, description,orgCategory, | 144 | departNameEn, departNameAbbr, departOrder, description,orgCategory, |
| 134 | orgType, orgCode, mobile, fax, address, memo, status, | 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 | package org.jeecg.modules.system.mapper; | 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 | import org.apache.ibatis.annotations.Param; | 5 | import org.apache.ibatis.annotations.Param; |
| 6 | import org.jeecg.modules.system.entity.SysAnnouncement; | 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 | * @Description: 系统通告表 | 11 | * @Description: 系统通告表 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysAnnouncementSendMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import org.apache.ibatis.annotations.Param; | 5 | import org.apache.ibatis.annotations.Param; |
| 6 | import org.jeecg.modules.system.entity.SysAnnouncementSend; | 6 | import org.jeecg.modules.system.entity.SysAnnouncementSend; |
| 7 | import org.jeecg.modules.system.model.AnnouncementSendModel; | 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 | * @Description: 用户通告阅读标记表 | 12 | * @Description: 用户通告阅读标记表 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysCategoryMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 7 | import org.apache.ibatis.annotations.Select; | 5 | import org.apache.ibatis.annotations.Select; |
| 8 | import org.jeecg.modules.system.entity.SysCategory; | 6 | import org.jeecg.modules.system.entity.SysCategory; |
| 9 | import org.jeecg.modules.system.model.TreeSelectModel; | 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 | * @Description: 分类字典 | 13 | * @Description: 分类字典 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDataLogMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 3 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 4 | import org.jeecg.modules.system.entity.SysDataLog; | 5 | import org.jeecg.modules.system.entity.SysDataLog; |
| 5 | 6 | ||
| 6 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 7 | - | ||
| 8 | public interface SysDataLogMapper extends BaseMapper<SysDataLog>{ | 7 | public interface SysDataLogMapper extends BaseMapper<SysDataLog>{ |
| 9 | /** | 8 | /** |
| 10 | * 通过表名及数据Id获取最大版本 | 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,8 +3,6 @@ package org.jeecg.modules.system.mapper; | ||
| 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | import org.apache.ibatis.annotations.Select; | 4 | import org.apache.ibatis.annotations.Select; |
| 5 | import org.jeecg.modules.system.entity.SysDepart; | 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 | import org.springframework.data.repository.query.Param; | 6 | import org.springframework.data.repository.query.Param; |
| 9 | 7 | ||
| 10 | import java.util.List; | 8 | import java.util.List; |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartPermissionMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | +import org.jeecg.modules.system.entity.SysDepartPermission; | ||
| 8 | 5 | ||
| 9 | /** | 6 | /** |
| 10 | * @Description: 部门权限表 | 7 | * @Description: 部门权限表 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartRoleMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | -import java.util.List; | ||
| 4 | - | 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 5 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 6 | import org.jeecg.modules.system.entity.SysDepartRole; | 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 | * @Description: 部门角色 | 10 | * @Description: 部门角色 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartRolePermissionMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | +import org.jeecg.modules.system.entity.SysDepartRolePermission; | ||
| 8 | 5 | ||
| 9 | /** | 6 | /** |
| 10 | * @Description: 部门角色权限 | 7 | * @Description: 部门角色权限 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDepartRoleUserMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | +import org.jeecg.modules.system.entity.SysDepartRoleUser; | ||
| 8 | 5 | ||
| 9 | /** | 6 | /** |
| 10 | * @Description: 部门角色人员信息 | 7 | * @Description: 部门角色人员信息 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysDictItemMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 3 | import org.apache.ibatis.annotations.Select; | 4 | import org.apache.ibatis.annotations.Select; |
| 4 | import org.jeecg.modules.system.entity.SysDictItem; | 5 | import org.jeecg.modules.system.entity.SysDictItem; |
| 5 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 6 | 6 | ||
| 7 | import java.util.List; | 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 | package org.jeecg.modules.system.mapper; | 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 | import com.baomidou.mybatisplus.core.metadata.IPage; | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 8 | import org.apache.ibatis.annotations.Param; | 6 | import org.apache.ibatis.annotations.Param; |
| @@ -14,7 +12,8 @@ import org.jeecg.modules.system.entity.SysDict; | @@ -14,7 +12,8 @@ import org.jeecg.modules.system.entity.SysDict; | ||
| 14 | import org.jeecg.modules.system.model.DuplicateCheckVo; | 12 | import org.jeecg.modules.system.model.DuplicateCheckVo; |
| 15 | import org.jeecg.modules.system.model.TreeSelectModel; | 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 | * <p> | 19 | * <p> |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysLogMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 8 | import org.jeecg.modules.system.entity.SysLog; | 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 | * <p> | 12 | * <p> |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysPermissionDataRuleMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | -import java.util.List; | ||
| 4 | - | 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 5 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 6 | import org.jeecg.modules.system.entity.SysPermissionDataRule; | 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 | * <p> | 10 | * <p> |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysPermissionMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | -import java.util.List; | ||
| 4 | - | 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 5 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 6 | import org.apache.ibatis.annotations.Select; | 5 | import org.apache.ibatis.annotations.Select; |
| 7 | import org.apache.ibatis.annotations.Update; | 6 | import org.apache.ibatis.annotations.Update; |
| 8 | import org.jeecg.modules.system.entity.SysPermission; | 7 | import org.jeecg.modules.system.entity.SysPermission; |
| 9 | import org.jeecg.modules.system.model.TreeModel; | 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 | * <p> | 13 | * <p> |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysRoleMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 3 | import org.apache.ibatis.annotations.Delete; | 4 | import org.apache.ibatis.annotations.Delete; |
| 4 | import org.apache.ibatis.annotations.Param; | 5 | import org.apache.ibatis.annotations.Param; |
| 5 | -import org.apache.ibatis.annotations.Update; | ||
| 6 | import org.jeecg.modules.system.entity.SysRole; | 6 | import org.jeecg.modules.system.entity.SysRole; |
| 7 | 7 | ||
| 8 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 9 | - | ||
| 10 | /** | 8 | /** |
| 11 | * <p> | 9 | * <p> |
| 12 | * 角色表 Mapper 接口 | 10 | * 角色表 Mapper 接口 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysRolePermissionMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | -import org.jeecg.modules.system.entity.SysRolePermission; | ||
| 4 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | +import org.jeecg.modules.system.entity.SysRolePermission; | ||
| 5 | 5 | ||
| 6 | /** | 6 | /** |
| 7 | * <p> | 7 | * <p> |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserAgentMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 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 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | +import org.jeecg.modules.system.entity.SysUserAgent; | ||
| 8 | 5 | ||
| 9 | /** | 6 | /** |
| 10 | * @Description: 用户代理人设置 | 7 | * @Description: 用户代理人设置 |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/SysUserDepartMapper.java
| 1 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | -import java.util.List; | 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | import com.baomidou.mybatisplus.core.metadata.IPage; | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 5 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 6 | import org.apache.ibatis.annotations.Param; | 6 | import org.apache.ibatis.annotations.Param; |
| 7 | import org.jeecg.modules.system.entity.SysUser; | 7 | import org.jeecg.modules.system.entity.SysUser; |
| 8 | import org.jeecg.modules.system.entity.SysUserDepart; | 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 | public interface SysUserDepartMapper extends BaseMapper<SysUserDepart>{ | 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 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | import com.baomidou.mybatisplus.core.conditions.Wrapper; | 3 | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| 4 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 4 | import com.baomidou.mybatisplus.core.metadata.IPage; | 5 | import com.baomidou.mybatisplus.core.metadata.IPage; |
| 5 | import com.baomidou.mybatisplus.core.toolkit.Constants; | 6 | import com.baomidou.mybatisplus.core.toolkit.Constants; |
| 6 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 7 | import org.apache.ibatis.annotations.Param; | 8 | import org.apache.ibatis.annotations.Param; |
| 8 | import org.jeecg.modules.system.entity.SysUser; | 9 | import org.jeecg.modules.system.entity.SysUser; |
| 9 | -import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
| 10 | import org.jeecg.modules.system.model.SysUserSysDepartModel; | 10 | import org.jeecg.modules.system.model.SysUserSysDepartModel; |
| 11 | import org.jeecg.modules.system.vo.SysUserDepVo; | 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 | package org.jeecg.modules.system.mapper; | 1 | package org.jeecg.modules.system.mapper; |
| 2 | 2 | ||
| 3 | -import java.util.List; | 3 | +import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| 4 | import org.apache.ibatis.annotations.Param; | 4 | import org.apache.ibatis.annotations.Param; |
| 5 | import org.apache.ibatis.annotations.Select; | 5 | import org.apache.ibatis.annotations.Select; |
| 6 | import org.jeecg.modules.system.entity.SysUserRole; | 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 | * <p> | 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 | \ No newline at end of file | 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 | \ No newline at end of file | 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
| 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.GaHouseholdMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/GaJuvenilesStayMapper.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.GaJuvenilesStayMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
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 | \ No newline at end of file | 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 | \ No newline at end of file | 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
| 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.MinorMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MrSchoolMapper.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.MrSchoolMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzAdoptionMapper.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.MzAdoptionMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzLeftBehindChildrenMapper.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.MzLeftBehindChildrenMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzOrphanMapper.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.MzOrphanMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MzUnsupportedMapper.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.MzUnsupportedMapper"> | ||
| 4 | + | ||
| 5 | +</mapper> | ||
| 0 | \ No newline at end of file | 6 | \ No newline at end of file |
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 | \ No newline at end of file | 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 | \ No newline at end of file | 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 | \ No newline at end of file | 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,6 +75,10 @@ public class SysDepartTreeModel implements Serializable{ | ||
| 75 | 75 | ||
| 76 | private Date updateTime; | 76 | private Date updateTime; |
| 77 | 77 | ||
| 78 | + private String abbreviation; | ||
| 79 | + | ||
| 80 | + private String commonCode; | ||
| 81 | + | ||
| 78 | private List<SysDepartTreeModel> children = new ArrayList<>(); | 82 | private List<SysDepartTreeModel> children = new ArrayList<>(); |
| 79 | 83 | ||
| 80 | 84 | ||
| @@ -107,6 +111,8 @@ public class SysDepartTreeModel implements Serializable{ | @@ -107,6 +111,8 @@ public class SysDepartTreeModel implements Serializable{ | ||
| 107 | this.createTime = sysDepart.getCreateTime(); | 111 | this.createTime = sysDepart.getCreateTime(); |
| 108 | this.updateBy = sysDepart.getUpdateBy(); | 112 | this.updateBy = sysDepart.getUpdateBy(); |
| 109 | this.updateTime = sysDepart.getUpdateTime(); | 113 | this.updateTime = sysDepart.getUpdateTime(); |
| 114 | + this.abbreviation = sysDepart.getAbbreviation(); | ||
| 115 | + this.commonCode = sysDepart.getCommonCode(); | ||
| 110 | } | 116 | } |
| 111 | 117 | ||
| 112 | public boolean getIsLeaf() { | 118 | public boolean getIsLeaf() { |
| @@ -330,6 +336,22 @@ public class SysDepartTreeModel implements Serializable{ | @@ -330,6 +336,22 @@ public class SysDepartTreeModel implements Serializable{ | ||
| 330 | this.updateTime = updateTime; | 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 | public SysDepartTreeModel() { } | 355 | public SysDepartTreeModel() { } |
| 334 | 356 | ||
| 335 | /** | 357 | /** |
| @@ -365,7 +387,9 @@ public class SysDepartTreeModel implements Serializable{ | @@ -365,7 +387,9 @@ public class SysDepartTreeModel implements Serializable{ | ||
| 365 | Objects.equals(createTime, model.createTime) && | 387 | Objects.equals(createTime, model.createTime) && |
| 366 | Objects.equals(updateBy, model.updateBy) && | 388 | Objects.equals(updateBy, model.updateBy) && |
| 367 | Objects.equals(updateTime, model.updateTime) && | 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,7 +400,7 @@ public class SysDepartTreeModel implements Serializable{ | ||
| 376 | 400 | ||
| 377 | return Objects.hash(id, parentId, departName, departNameEn, departNameAbbr, | 401 | return Objects.hash(id, parentId, departName, departNameEn, departNameAbbr, |
| 378 | departOrder, description, orgCategory, orgType, orgCode, mobile, fax, address, | 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 | children); | 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 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/GaHouseholdServiceImpl.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.GaHousehold; | ||
| 5 | +import org.jeecg.modules.system.mapper.GaHouseholdMapper; | ||
| 6 | +import org.jeecg.modules.system.service.IGaHouseholdService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @Description: ga_household | ||
| 11 | + * @Author: jeecg-boot | ||
| 12 | + * @Date: 2022-07-14 | ||
| 13 | + * @Version: V1.0 | ||
| 14 | + */ | ||
| 15 | +@Service | ||
| 16 | +public class GaHouseholdServiceImpl extends ServiceImpl<GaHouseholdMapper, GaHousehold> implements IGaHouseholdService { | ||
| 17 | + | ||
| 18 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/GaJuvenilesStayServiceImpl.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.GaJuvenilesStay; | ||
| 5 | +import org.jeecg.modules.system.mapper.GaJuvenilesStayMapper; | ||
| 6 | +import org.jeecg.modules.system.service.IGaJuvenilesStayService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @Description: ga_juveniles_stay | ||
| 11 | + * @Author: jeecg-boot | ||
| 12 | + * @Date: 2022-07-14 | ||
| 13 | + * @Version: V1.0 | ||
| 14 | + */ | ||
| 15 | +@Service | ||
| 16 | +public class GaJuvenilesStayServiceImpl extends ServiceImpl<GaJuvenilesStayMapper, GaJuvenilesStay> implements IGaJuvenilesStayService { | ||
| 17 | + | ||
| 18 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/GaPunishServiceImpl.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.GaPunish; | ||
| 5 | +import org.jeecg.modules.system.mapper.GaDemographicMapper; | ||
| 6 | +import org.jeecg.modules.system.mapper.GaPunishMapper; | ||
| 7 | +import org.jeecg.modules.system.service.IGaPunishService; | ||
| 8 | +import org.jeecg.modules.system.vo.GaPunishVo; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @Description: ga_punish | ||
| 16 | + * @Author: jeecg-boot | ||
| 17 | + * @Date: 2022-07-14 | ||
| 18 | + * @Version: V1.0 | ||
| 19 | + */ | ||
| 20 | +@Service | ||
| 21 | +public class GaPunishServiceImpl extends ServiceImpl<GaPunishMapper, GaPunish> implements IGaPunishService { | ||
| 22 | + | ||
| 23 | + @Resource | ||
| 24 | + private GaPunishMapper gaPunishMapper; | ||
| 25 | + /** | ||
| 26 | + * 查询数据 | ||
| 27 | + * @return | ||
| 28 | + */ | ||
| 29 | + @Override | ||
| 30 | + public List<GaPunishVo> queryList() { | ||
| 31 | + return gaPunishMapper.queryList(); | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/HighSchoolServiceImpl.java
0 → 100644
| 1 | +package org.jeecg.modules.system.service.impl; | ||
| 2 | + | ||
| 3 | +import org.jeecg.modules.system.entity.HighSchool; | ||
| 4 | +import org.jeecg.modules.system.entity.MrSchool; | ||
| 5 | +import org.jeecg.modules.system.mapper.GaDemographicMapper; | ||
| 6 | +import org.jeecg.modules.system.mapper.HighSchoolMapper; | ||
| 7 | +import org.jeecg.modules.system.service.IHighSchoolService; | ||
| 8 | +import org.springframework.stereotype.Service; | ||
| 9 | + | ||
| 10 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
| 11 | + | ||
| 12 | +import javax.annotation.Resource; | ||
| 13 | +import java.util.List; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * @Description: mr_high_school | ||
| 17 | + * @Author: jeecg-boot | ||
| 18 | + * @Date: 2022-07-15 | ||
| 19 | + * @Version: V1.0 | ||
| 20 | + */ | ||
| 21 | +@Service | ||
| 22 | +public class HighSchoolServiceImpl extends ServiceImpl<HighSchoolMapper, HighSchool> implements IHighSchoolService { | ||
| 23 | + | ||
| 24 | + @Resource | ||
| 25 | + private HighSchoolMapper highSchoolMapper; | ||
| 26 | + | ||
| 27 | + @Override | ||
| 28 | + public List<MrSchool> getList() { | ||
| 29 | + return highSchoolMapper.getList(); | ||
| 30 | + } | ||
| 31 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MinorServiceImpl.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.Minor; | ||
| 6 | +import org.jeecg.modules.system.mapper.FamilyMapper; | ||
| 7 | +import org.jeecg.modules.system.mapper.MinorMapper; | ||
| 8 | +import org.jeecg.modules.system.service.IMinorService; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | +import org.springframework.transaction.annotation.Transactional; | ||
| 11 | + | ||
| 12 | +import javax.annotation.Resource; | ||
| 13 | +import java.io.Serializable; | ||
| 14 | +import java.util.Collection; | ||
| 15 | +import java.util.List; | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * @Description: 未成年人 | ||
| 19 | + * @Author: jeecg-boot | ||
| 20 | + * @Date: 2022-07-13 | ||
| 21 | + * @Version: V1.0 | ||
| 22 | + */ | ||
| 23 | +@Service | ||
| 24 | +public class MinorServiceImpl extends ServiceImpl<MinorMapper, Minor> implements IMinorService { | ||
| 25 | + | ||
| 26 | + @Resource | ||
| 27 | + private MinorMapper minorMapper; | ||
| 28 | + @Resource | ||
| 29 | + private FamilyMapper familyMapper; | ||
| 30 | + | ||
| 31 | + @Override | ||
| 32 | + @Transactional | ||
| 33 | + public void saveMain(Minor minor, List<Family> familyList) { | ||
| 34 | + minorMapper.insert(minor); | ||
| 35 | + if(familyList!=null && familyList.size()>0) { | ||
| 36 | + for(Family entity:familyList) { | ||
| 37 | + //外键设置 | ||
| 38 | + entity.setMinorId(minor.getId()); | ||
| 39 | + familyMapper.insert(entity); | ||
| 40 | + } | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + @Override | ||
| 45 | + @Transactional | ||
| 46 | + public void updateMain(Minor minor,List<Family> familyList) { | ||
| 47 | + minorMapper.updateById(minor); | ||
| 48 | + | ||
| 49 | + //1.先删除子表数据 | ||
| 50 | + familyMapper.deleteByMainId(minor.getId()); | ||
| 51 | + | ||
| 52 | + //2.子表数据重新插入 | ||
| 53 | + if(familyList!=null && familyList.size()>0) { | ||
| 54 | + for(Family entity:familyList) { | ||
| 55 | + //外键设置 | ||
| 56 | + entity.setMinorId(minor.getId()); | ||
| 57 | + familyMapper.insert(entity); | ||
| 58 | + } | ||
| 59 | + } | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + @Override | ||
| 63 | + @Transactional | ||
| 64 | + public void delMain(String id) { | ||
| 65 | + familyMapper.deleteByMainId(id); | ||
| 66 | + minorMapper.deleteById(id); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + @Override | ||
| 70 | + @Transactional | ||
| 71 | + public void delBatchMain(Collection<? extends Serializable> idList) { | ||
| 72 | + for(Serializable id:idList) { | ||
| 73 | + familyMapper.deleteByMainId(id.toString()); | ||
| 74 | + minorMapper.deleteById(id); | ||
| 75 | + } | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MrSchoolServiceImpl.java
0 → 100644
| 1 | +package org.jeecg.modules.system.service.impl; | ||
| 2 | + | ||
| 3 | +import org.jeecg.modules.system.entity.MrSchool; | ||
| 4 | +import org.jeecg.modules.system.mapper.MrSchoolMapper; | ||
| 5 | +import org.jeecg.modules.system.service.IMrSchoolService; | ||
| 6 | +import org.springframework.stereotype.Service; | ||
| 7 | + | ||
| 8 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * @Description: 学校 | ||
| 12 | + * @Author: jeecg-boot | ||
| 13 | + * @Date: 2022-07-15 | ||
| 14 | + * @Version: V1.0 | ||
| 15 | + */ | ||
| 16 | +@Service | ||
| 17 | +public class MrSchoolServiceImpl extends ServiceImpl<MrSchoolMapper, MrSchool> implements IMrSchoolService { | ||
| 18 | + | ||
| 19 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MzAdoptionServiceImpl.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.MzAdoption; | ||
| 5 | +import org.jeecg.modules.system.mapper.MzAdoptionMapper; | ||
| 6 | +import org.jeecg.modules.system.service.IMzAdoptionService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @Description: mz_adoption | ||
| 11 | + * @Author: jeecg-boot | ||
| 12 | + * @Date: 2022-07-14 | ||
| 13 | + * @Version: V1.0 | ||
| 14 | + */ | ||
| 15 | +@Service | ||
| 16 | +public class MzAdoptionServiceImpl extends ServiceImpl<MzAdoptionMapper, MzAdoption> implements IMzAdoptionService { | ||
| 17 | + | ||
| 18 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MzLeftBehindChildrenServiceImpl.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.MzLeftBehindChildren; | ||
| 5 | +import org.jeecg.modules.system.mapper.MzLeftBehindChildrenMapper; | ||
| 6 | +import org.jeecg.modules.system.service.IMzLeftBehindChildrenService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @Description: mz_left_behind_children | ||
| 11 | + * @Author: jeecg-boot | ||
| 12 | + * @Date: 2022-07-14 | ||
| 13 | + * @Version: V1.0 | ||
| 14 | + */ | ||
| 15 | +@Service | ||
| 16 | +public class MzLeftBehindChildrenServiceImpl extends ServiceImpl<MzLeftBehindChildrenMapper, MzLeftBehindChildren> implements IMzLeftBehindChildrenService { | ||
| 17 | + | ||
| 18 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MzOrphanServiceImpl.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.MzOrphan; | ||
| 5 | +import org.jeecg.modules.system.mapper.MzOrphanMapper; | ||
| 6 | +import org.jeecg.modules.system.service.IMzOrphanService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @Description: mz_orphan | ||
| 11 | + * @Author: jeecg-boot | ||
| 12 | + * @Date: 2022-07-14 | ||
| 13 | + * @Version: V1.0 | ||
| 14 | + */ | ||
| 15 | +@Service | ||
| 16 | +public class MzOrphanServiceImpl extends ServiceImpl<MzOrphanMapper, MzOrphan> implements IMzOrphanService { | ||
| 17 | + | ||
| 18 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MzUnsupportedServiceImpl.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.MzUnsupported; | ||
| 5 | +import org.jeecg.modules.system.mapper.MzUnsupportedMapper; | ||
| 6 | +import org.jeecg.modules.system.service.IMzUnsupportedService; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @Description: mz_unsupported | ||
| 11 | + * @Author: jeecg-boot | ||
| 12 | + * @Date: 2022-07-14 | ||
| 13 | + * @Version: V1.0 | ||
| 14 | + */ | ||
| 15 | +@Service | ||
| 16 | +public class MzUnsupportedServiceImpl extends ServiceImpl<MzUnsupportedMapper, MzUnsupported> implements IMzUnsupportedService { | ||
| 17 | + | ||
| 18 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/PrimarySchoolServiceImpl.java
0 → 100644
| 1 | +package org.jeecg.modules.system.service.impl; | ||
| 2 | + | ||
| 3 | +import org.jeecg.modules.system.entity.MrSchool; | ||
| 4 | +import org.jeecg.modules.system.entity.PrimarySchool; | ||
| 5 | +import org.jeecg.modules.system.mapper.HighSchoolMapper; | ||
| 6 | +import org.jeecg.modules.system.mapper.PrimarySchoolMapper; | ||
| 7 | +import org.jeecg.modules.system.service.IPrimarySchoolService; | ||
| 8 | +import org.springframework.stereotype.Service; | ||
| 9 | + | ||
| 10 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
| 11 | + | ||
| 12 | +import javax.annotation.Resource; | ||
| 13 | +import java.util.List; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * @Description: mr_primary_school | ||
| 17 | + * @Author: jeecg-boot | ||
| 18 | + * @Date: 2022-07-15 | ||
| 19 | + * @Version: V1.0 | ||
| 20 | + */ | ||
| 21 | +@Service | ||
| 22 | +public class PrimarySchoolServiceImpl extends ServiceImpl<PrimarySchoolMapper, PrimarySchool> implements IPrimarySchoolService { | ||
| 23 | + @Resource | ||
| 24 | + private HighSchoolMapper highSchoolMapper; | ||
| 25 | + | ||
| 26 | + @Override | ||
| 27 | + public List<MrSchool> getList() { | ||
| 28 | + return highSchoolMapper.getList(); | ||
| 29 | + } | ||
| 30 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SourceServiceImpl.java
0 → 100644
| 1 | +package org.jeecg.modules.system.service.impl; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.core.metadata.IPage; | ||
| 4 | +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
| 5 | +import org.jeecg.modules.system.entity.SourceData; | ||
| 6 | +import org.jeecg.modules.system.mapper.SourceMapper; | ||
| 7 | +import org.jeecg.modules.system.service.ISourceService; | ||
| 8 | +import org.springframework.stereotype.Service; | ||
| 9 | + | ||
| 10 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
| 11 | + | ||
| 12 | +import javax.annotation.Resource; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @Description: 来源数据管理 | ||
| 16 | + * @Author: jeecg-boot | ||
| 17 | + * @Date: 2022-07-13 | ||
| 18 | + * @Version: V1.0 | ||
| 19 | + */ | ||
| 20 | +@Service | ||
| 21 | +public class SourceServiceImpl extends ServiceImpl<SourceMapper, SourceData> implements ISourceService { | ||
| 22 | + @Resource | ||
| 23 | + private SourceMapper sourceMapper; | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public IPage<SourceData> getListGroupByName(Page<SourceData> page,String name) { | ||
| 27 | + return page.setRecords(sourceMapper.getListGroupByName(page,name)); | ||
| 28 | + } | ||
| 29 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SpecialStudentServiceImpl.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.SpecialStudent; | ||
| 5 | +import org.jeecg.modules.system.mapper.GaPunishMapper; | ||
| 6 | +import org.jeecg.modules.system.mapper.SpecialStudentMapper; | ||
| 7 | +import org.jeecg.modules.system.service.ISpecialStudentService; | ||
| 8 | +import org.jeecg.modules.system.vo.SpecialStudentVo; | ||
| 9 | +import org.springframework.stereotype.Service; | ||
| 10 | + | ||
| 11 | +import javax.annotation.Resource; | ||
| 12 | +import java.util.List; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @Description: mr_special_student | ||
| 16 | + * @Author: jeecg-boot | ||
| 17 | + * @Date: 2022-07-14 | ||
| 18 | + * @Version: V1.0 | ||
| 19 | + */ | ||
| 20 | +@Service | ||
| 21 | +public class SpecialStudentServiceImpl extends ServiceImpl<SpecialStudentMapper, SpecialStudent> implements ISpecialStudentService { | ||
| 22 | + @Resource | ||
| 23 | + private SpecialStudentMapper specialStudentMapper; | ||
| 24 | + @Override | ||
| 25 | + public List<SpecialStudentVo> queryList() { | ||
| 26 | + return specialStudentMapper.queryList(); | ||
| 27 | + } | ||
| 28 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/util/FindsDivisionsChildrenUtil.java
0 → 100644
| 1 | +package org.jeecg.modules.system.util; | ||
| 2 | + | ||
| 3 | +import org.jeecg.common.util.oConvertUtils; | ||
| 4 | +import org.jeecg.modules.system.entity.Division; | ||
| 5 | +import org.jeecg.modules.system.model.DivisionIdModel; | ||
| 6 | +import org.jeecg.modules.system.model.DivisionModel; | ||
| 7 | +import org.jeecg.modules.system.service.IDivisionService; | ||
| 8 | + | ||
| 9 | +import java.util.ArrayList; | ||
| 10 | +import java.util.List; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * <P> | ||
| 14 | + * 对应部门的表,处理并查找树级数据 | ||
| 15 | + * <P> | ||
| 16 | + * | ||
| 17 | + * @Author: Steve | ||
| 18 | + * @Date: 2019-01-22 | ||
| 19 | + */ | ||
| 20 | +public class FindsDivisionsChildrenUtil { | ||
| 21 | + | ||
| 22 | + //部门树信息-树结构 | ||
| 23 | + //private static List<CorrectionalFacilityModel> sysDepartTreeList = new ArrayList<CorrectionalFacilityModel>(); | ||
| 24 | + | ||
| 25 | + //部门树id-树结构 | ||
| 26 | + //private static List<FacilityIdModel> idList = new ArrayList<>(); | ||
| 27 | + | ||
| 28 | + | ||
| 29 | + /** | ||
| 30 | + * queryTreeList的子方法 ====1===== | ||
| 31 | + * 该方法是s将SysDepart类型的list集合转换成CorrectionalFacilityModel类型的集合 | ||
| 32 | + */ | ||
| 33 | + public static List<DivisionModel> wrapTreeDataToTreeList(List<Division> recordList) { | ||
| 34 | + // 在该方法每请求一次,都要对全局list集合进行一次清理 | ||
| 35 | + //idList.clear(); | ||
| 36 | + List<DivisionIdModel> idList = new ArrayList<DivisionIdModel>(); | ||
| 37 | + List<DivisionModel> records = new ArrayList<>(); | ||
| 38 | + for (int i = 0; i < recordList.size(); i++) { | ||
| 39 | + Division depart = recordList.get(i); | ||
| 40 | + records.add(new DivisionModel(depart)); | ||
| 41 | + } | ||
| 42 | + List<DivisionModel> tree = findChildren(records, idList); | ||
| 43 | + setEmptyChildrenAsNull(tree); | ||
| 44 | + return tree; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + /** | ||
| 48 | + * 获取 FacilityIdModel | ||
| 49 | + * @param recordList | ||
| 50 | + * @return | ||
| 51 | + */ | ||
| 52 | + public static List<DivisionIdModel> wrapTreeDataToDepartIdTreeList(List<Division> recordList) { | ||
| 53 | + // 在该方法每请求一次,都要对全局list集合进行一次清理 | ||
| 54 | + //idList.clear(); | ||
| 55 | + List<DivisionIdModel> idList = new ArrayList<DivisionIdModel>(); | ||
| 56 | + List<DivisionModel> records = new ArrayList<>(); | ||
| 57 | + for (int i = 0; i < recordList.size(); i++) { | ||
| 58 | + Division depart = recordList.get(i); | ||
| 59 | + records.add(new DivisionModel(depart)); | ||
| 60 | + } | ||
| 61 | + findChildren(records, idList); | ||
| 62 | + return idList; | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + /** | ||
| 66 | + * queryTreeList的子方法 ====2===== | ||
| 67 | + * 该方法是找到并封装顶级父类的节点到TreeList集合 | ||
| 68 | + */ | ||
| 69 | + private static List<DivisionModel> findChildren(List<DivisionModel> recordList, | ||
| 70 | + List<DivisionIdModel> departIdList) { | ||
| 71 | + List<DivisionModel> treeList = new ArrayList<>(); | ||
| 72 | + for (int i = 0; i < recordList.size(); i++) { | ||
| 73 | + DivisionModel branch = recordList.get(i); | ||
| 74 | + if (oConvertUtils.isEmpty(branch.getPid()) || branch.getPid().equals(IDivisionService.ROOT_PID_VALUE)) { | ||
| 75 | + treeList.add(branch); | ||
| 76 | + DivisionIdModel departIdModel = new DivisionIdModel().convert(branch); | ||
| 77 | + departIdList.add(departIdModel); | ||
| 78 | + } | ||
| 79 | + } | ||
| 80 | + getGrandChildren(treeList,recordList,departIdList); | ||
| 81 | + | ||
| 82 | + //idList = departIdList; | ||
| 83 | + return treeList; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + /** | ||
| 87 | + * queryTreeList的子方法====3==== | ||
| 88 | + *该方法是找到顶级父类下的所有子节点集合并封装到TreeList集合 | ||
| 89 | + */ | ||
| 90 | + private static void getGrandChildren(List<DivisionModel> treeList,List<DivisionModel> recordList,List<DivisionIdModel> idList) { | ||
| 91 | + | ||
| 92 | + for (int i = 0; i < treeList.size(); i++) { | ||
| 93 | + DivisionModel model = treeList.get(i); | ||
| 94 | + DivisionIdModel idModel = idList.get(i); | ||
| 95 | + for (int i1 = 0; i1 < recordList.size(); i1++) { | ||
| 96 | + DivisionModel m = recordList.get(i1); | ||
| 97 | + if (m.getPid()!=null && m.getPid().equals(model.getId())) { | ||
| 98 | + model.getChildren().add(m); | ||
| 99 | + DivisionIdModel dim = new DivisionIdModel().convert(m); | ||
| 100 | + idModel.getChildren().add(dim); | ||
| 101 | + } | ||
| 102 | + } | ||
| 103 | + getGrandChildren(treeList.get(i).getChildren(), recordList, idList.get(i).getChildren()); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + } | ||
| 107 | + | ||
| 108 | + | ||
| 109 | + /** | ||
| 110 | + * queryTreeList的子方法 ====4==== | ||
| 111 | + * 该方法是将子节点为空的List集合设置为Null值 | ||
| 112 | + */ | ||
| 113 | + private static void setEmptyChildrenAsNull(List<DivisionModel> treeList) { | ||
| 114 | + | ||
| 115 | + for (int i = 0; i < treeList.size(); i++) { | ||
| 116 | + DivisionModel model = treeList.get(i); | ||
| 117 | + if (model.getChildren().size() == 0) { | ||
| 118 | + model.setChildren(null); | ||
| 119 | + model.setIsLeaf(true); | ||
| 120 | + }else{ | ||
| 121 | + setEmptyChildrenAsNull(model.getChildren()); | ||
| 122 | + model.setIsLeaf(false); | ||
| 123 | + } | ||
| 124 | + } | ||
| 125 | + // sysDepartTreeList = treeList; | ||
| 126 | + } | ||
| 127 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/util/IDNumberUtil.java
0 → 100644
| 1 | +package org.jeecg.modules.system.util; | ||
| 2 | + | ||
| 3 | +import javax.imageio.ImageIO; | ||
| 4 | +import javax.servlet.http.HttpServletResponse; | ||
| 5 | +import java.awt.*; | ||
| 6 | +import java.awt.image.BufferedImage; | ||
| 7 | +import java.io.ByteArrayOutputStream; | ||
| 8 | +import java.io.IOException; | ||
| 9 | +import java.text.SimpleDateFormat; | ||
| 10 | +import java.util.Base64; | ||
| 11 | +import java.util.Date; | ||
| 12 | +import java.util.Random; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * 登录验证码工具类 | ||
| 16 | + */ | ||
| 17 | +public class IDNumberUtil { | ||
| 18 | + | ||
| 19 | + /** | ||
| 20 | + * 根据身份证号判断性别 | ||
| 21 | + * @param idNumber | ||
| 22 | + * @return | ||
| 23 | + */ | ||
| 24 | + public static String judgeGender(String idNumber) throws IllegalArgumentException{ | ||
| 25 | + System.out.println(idNumber.length()); | ||
| 26 | + if(idNumber.length() != 18 && idNumber.length() != 15){ | ||
| 27 | + throw new IllegalArgumentException("身份证号长度错误"); | ||
| 28 | + } | ||
| 29 | + int gender = 0; | ||
| 30 | + if(idNumber.length() == 18){ | ||
| 31 | + //如果身份证号18位,取身份证号倒数第二位 | ||
| 32 | + char c = idNumber.charAt(idNumber.length() - 2); | ||
| 33 | + gender = Integer.parseInt(String.valueOf(c)); | ||
| 34 | + }else{ | ||
| 35 | + //如果身份证号15位,取身份证号最后一位 | ||
| 36 | + char c = idNumber.charAt(idNumber.length() - 1); | ||
| 37 | + gender = Integer.parseInt(String.valueOf(c)); | ||
| 38 | + } | ||
| 39 | + System.out.println("gender = " + gender); | ||
| 40 | + if(gender % 2 == 1){ | ||
| 41 | + return "男"; | ||
| 42 | + }else{ | ||
| 43 | + return "女"; | ||
| 44 | + } | ||
| 45 | + } | ||
| 46 | + /** | ||
| 47 | + * 根据身份证的号码算出当前身份证持有者的年龄 | ||
| 48 | + * | ||
| 49 | + * @return | ||
| 50 | + */ | ||
| 51 | + public static int countAge(String idNumber) { | ||
| 52 | + if(idNumber.length() != 18 && idNumber.length() != 15){ | ||
| 53 | + throw new IllegalArgumentException("身份证号长度错误"); | ||
| 54 | + } | ||
| 55 | + String year; | ||
| 56 | + String yue; | ||
| 57 | + String day; | ||
| 58 | + if(idNumber.length() == 18){ | ||
| 59 | + year = idNumber.substring(6).substring(0, 4);// 得到年份 | ||
| 60 | + yue = idNumber.substring(10).substring(0, 2);// 得到月份 | ||
| 61 | + day = idNumber.substring(12).substring(0,2);//得到日 | ||
| 62 | + }else{ | ||
| 63 | + year = "19" + idNumber.substring(6, 8);// 年份 | ||
| 64 | + yue = idNumber.substring(8, 10);// 月份 | ||
| 65 | + day = idNumber.substring(10, 12);//日 | ||
| 66 | + } | ||
| 67 | + Date date = new Date();// 得到当前的系统时间 | ||
| 68 | + SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); | ||
| 69 | + String fyear = format.format(date).substring(0, 4);// 当前年份 | ||
| 70 | + String fyue = format.format(date).substring(5, 7);// 月份 | ||
| 71 | + String fday=format.format(date).substring(8,10);// | ||
| 72 | + int age = 0; | ||
| 73 | + if(Integer.parseInt(yue) == Integer.parseInt(fyue)){//如果月份相同 | ||
| 74 | + if(Integer.parseInt(day) <= Integer.parseInt(fday)){//说明已经过了生日或者今天是生日 | ||
| 75 | + age = Integer.parseInt(fyear) - Integer.parseInt(year); | ||
| 76 | + } | ||
| 77 | + }else{ | ||
| 78 | + | ||
| 79 | + if(Integer.parseInt(yue) < Integer.parseInt(fyue)){ | ||
| 80 | + //如果当前月份大于出生月份 | ||
| 81 | + age = Integer.parseInt(fyear) - Integer.parseInt(year); | ||
| 82 | + }else{ | ||
| 83 | + //如果当前月份小于出生月份,说明生日还没过 | ||
| 84 | + age = Integer.parseInt(fyear) - Integer.parseInt(year) - 1; | ||
| 85 | + } | ||
| 86 | + } | ||
| 87 | + System.out.println("age = " + age); | ||
| 88 | + return age; | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/util/MultiThreadUtil.java
0 → 100644
| 1 | +package org.jeecg.modules.system.util;//package org.jeecg.modules.system.util; | ||
| 2 | +// | ||
| 3 | +//import java.util.ArrayList; | ||
| 4 | +//import java.util.List; | ||
| 5 | +//import java.util.concurrent.*; | ||
| 6 | +// | ||
| 7 | +///** | ||
| 8 | +// * @param <H> 为被处理的数据类型 | ||
| 9 | +// * @param <T>返回数据类型 | ||
| 10 | +// */ | ||
| 11 | +//public abstract class MultiThreadUtil<H,T>{ | ||
| 12 | +// private final ExecutorService exec; //线程池 | ||
| 13 | +// private final BlockingQueue<Future<T>> queue = new LinkedBlockingQueue<>(); | ||
| 14 | +// private final CountDownLatch startLock = new CountDownLatch(1); //启动门,当所有线程就绪时调用countDown | ||
| 15 | +// private final CountDownLatch endLock; //结束门 | ||
| 16 | +// private final List<H> listData;//被处理的数据 | ||
| 17 | +// | ||
| 18 | +// | ||
| 19 | +// /** | ||
| 20 | +// * @param list list.size()为多少个线程处理,list里面的H为被处理的数据 | ||
| 21 | +// */ | ||
| 22 | +// public MultiThreadUtil(List<H> list){ | ||
| 23 | +// if(list!=null&&list.size()>0){ | ||
| 24 | +// this.listData = list; | ||
| 25 | +// exec = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()); //创建线程池,线程池共有nThread个线程 | ||
| 26 | +// endLock = new CountDownLatch(list.size()); //设置结束门计数器,当一个线程结束时调用countDown | ||
| 27 | +// }else{ | ||
| 28 | +// listData = null; | ||
| 29 | +// exec = null; | ||
| 30 | +// endLock = null; | ||
| 31 | +// } | ||
| 32 | +// } | ||
| 33 | +// | ||
| 34 | +// /** | ||
| 35 | +// * | ||
| 36 | +// * @return 获取每个线程处理结速的数组 | ||
| 37 | +// * @throws InterruptedException | ||
| 38 | +// * @throws ExecutionException | ||
| 39 | +// */ | ||
| 40 | +// public List<T> getResult() throws InterruptedException, ExecutionException{ | ||
| 41 | +// List<T> resultList = new ArrayList<>(); | ||
| 42 | +// if(listData!=null&&listData.size()>0){ | ||
| 43 | +// int nThread = listData.size(); //线程数量 | ||
| 44 | +// for(int i = 0; i < nThread; i++){ | ||
| 45 | +// H data = listData.get(i); | ||
| 46 | +// Future<T> future = exec.submit(new Task(i,data){ | ||
| 47 | +// @Override | ||
| 48 | +// public T execute(int currentThread,H data) { | ||
| 49 | +// return outExecute(currentThread,data); | ||
| 50 | +// } | ||
| 51 | +// }); //将任务提交到线程池 | ||
| 52 | +// queue.add(future); //将Future实例添加至队列 | ||
| 53 | +// } | ||
| 54 | +// startLock.countDown(); //所有任务添加完毕,启动门计数器减1,这时计数器为0,所有添加的任务开始执行 | ||
| 55 | +// endLock.await(); //主线程阻塞,直到所有线程执行完成 | ||
| 56 | +// for(Future<T> future : queue) { | ||
| 57 | +// resultList.add(future.get()); | ||
| 58 | +// } | ||
| 59 | +// exec.shutdown(); //关闭线程池 | ||
| 60 | +// } | ||
| 61 | +// return resultList; | ||
| 62 | +// } | ||
| 63 | +// /** | ||
| 64 | +// * 每一个线程执行的功能,需要调用者来实现 | ||
| 65 | +// * @param currentThread 线程号 | ||
| 66 | +// * @param data 每个线程被处理的数据 | ||
| 67 | +// * @return T返回对象 | ||
| 68 | +// */ | ||
| 69 | +// public abstract T outExecute(int currentThread,H data); | ||
| 70 | +// | ||
| 71 | +// /** | ||
| 72 | +// * 线程类 | ||
| 73 | +// */ | ||
| 74 | +// private abstract class Task implements Callable<T>{ | ||
| 75 | +// private int currentThread;//当前线程号 | ||
| 76 | +// private H data; | ||
| 77 | +// public Task(int currentThread,H data){ | ||
| 78 | +// this.currentThread=currentThread; | ||
| 79 | +// this.data=data; | ||
| 80 | +// } | ||
| 81 | +// @Override | ||
| 82 | +// public T call() throws Exception { | ||
| 83 | +// startLock.await(); //线程启动后调用await,当前线程阻塞,只有启动门计数器为0时当前线程才会往下执行 | ||
| 84 | +// T t =null; | ||
| 85 | +// try{ | ||
| 86 | +// t = execute(currentThread,data); | ||
| 87 | +// }finally{ | ||
| 88 | +// endLock.countDown(); //线程执行完毕,结束门计数器减1 | ||
| 89 | +// } | ||
| 90 | +// return t; | ||
| 91 | +// } | ||
| 92 | +// | ||
| 93 | +// /** | ||
| 94 | +// * 每一个线程执行的功能 | ||
| 95 | +// * @param currentThread 线程号 | ||
| 96 | +// * @param data 每个线程被处理的数据 | ||
| 97 | +// * @return T返回对象 | ||
| 98 | +// */ | ||
| 99 | +// public abstract T execute(int currentThread,H data); | ||
| 100 | +// } | ||
| 101 | +// | ||
| 102 | +// | ||
| 103 | +// | ||
| 104 | +//} | ||
| 105 | +// | ||
| 106 | + | ||
| 107 | + | ||
| 108 | +import com.google.common.util.concurrent.ThreadFactoryBuilder; | ||
| 109 | + | ||
| 110 | +import java.util.concurrent.LinkedBlockingQueue; | ||
| 111 | +import java.util.concurrent.ThreadFactory; | ||
| 112 | +import java.util.concurrent.ThreadPoolExecutor; | ||
| 113 | +import java.util.concurrent.TimeUnit; | ||
| 114 | + | ||
| 115 | +public class MultiThreadUtil { | ||
| 116 | + | ||
| 117 | + public static ThreadPoolExecutor createThread(int runSize) | ||
| 118 | + { | ||
| 119 | + ThreadFactory namedThreadFactory = new ThreadFactoryBuilder() | ||
| 120 | + .setNameFormat("测试信息").build();//创建线程工厂 | ||
| 121 | + | ||
| 122 | + //创建线程池 | ||
| 123 | + ThreadPoolExecutor executor = new ThreadPoolExecutor(runSize, | ||
| 124 | + runSize, | ||
| 125 | + 0L, | ||
| 126 | + TimeUnit.MILLISECONDS, | ||
| 127 | + new LinkedBlockingQueue<>(1024), | ||
| 128 | + namedThreadFactory, | ||
| 129 | + new ThreadPoolExecutor.AbortPolicy()); | ||
| 130 | + return executor; | ||
| 131 | + } | ||
| 132 | +} | ||
| 0 | \ No newline at end of file | 133 | \ No newline at end of file |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/FamilyVo.java
0 → 100644
| 1 | +package org.jeecg.modules.system.vo; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 4 | +import io.swagger.annotations.ApiModel; | ||
| 5 | +import io.swagger.annotations.ApiModelProperty; | ||
| 6 | +import lombok.Data; | ||
| 7 | +import lombok.EqualsAndHashCode; | ||
| 8 | +import lombok.experimental.Accessors; | ||
| 9 | +import org.jeecgframework.poi.excel.annotation.Excel; | ||
| 10 | + | ||
| 11 | +import java.io.Serializable; | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + * @Description: | ||
| 15 | + * @Author: jeecg-boot | ||
| 16 | + * @Date: 2022-07-14 | ||
| 17 | + * @Version: V1.0 | ||
| 18 | + */ | ||
| 19 | +@Data | ||
| 20 | +@TableName("ga_household") | ||
| 21 | +@Accessors(chain = true) | ||
| 22 | +@EqualsAndHashCode(callSuper = false) | ||
| 23 | +@ApiModel(value="ga_household对象", description="ga_household") | ||
| 24 | +public class FamilyVo implements Serializable { | ||
| 25 | + private static final long serialVersionUID = 1L; | ||
| 26 | + | ||
| 27 | + /**姓名*/ | ||
| 28 | + @Excel(name = "姓名", width = 15) | ||
| 29 | + @ApiModelProperty(value = "姓名") | ||
| 30 | + private String name; | ||
| 31 | + /**身份证号*/ | ||
| 32 | + @Excel(name = "身份证号", width = 15) | ||
| 33 | + @ApiModelProperty(value = "身份证号") | ||
| 34 | + private String identity; | ||
| 35 | + /**户号*/ | ||
| 36 | + @Excel(name = "户号", width = 15) | ||
| 37 | + @ApiModelProperty(value = "户号") | ||
| 38 | + private String householdNum; | ||
| 39 | + /**人员编号*/ | ||
| 40 | + @Excel(name = "人员编号", width = 15) | ||
| 41 | + @ApiModelProperty(value = "人员编号") | ||
| 42 | + private String num; | ||
| 43 | + /**行政区划*/ | ||
| 44 | + @Excel(name = "行政区划", width = 15) | ||
| 45 | + @ApiModelProperty(value = "行政区划") | ||
| 46 | + private String division; | ||
| 47 | + @Excel(name = "与户主的关系", width = 15) | ||
| 48 | + @ApiModelProperty(value = "与户主的关系") | ||
| 49 | + private String relation; | ||
| 50 | + @Excel(name = "现住址", width = 15) | ||
| 51 | + @ApiModelProperty(value = "现住址") | ||
| 52 | + private String address; | ||
| 53 | + | ||
| 54 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/GaPunishVo.java
0 → 100644
| 1 | +package org.jeecg.modules.system.vo; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.IdType; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import io.swagger.annotations.ApiModel; | ||
| 7 | +import io.swagger.annotations.ApiModelProperty; | ||
| 8 | +import lombok.Data; | ||
| 9 | +import lombok.EqualsAndHashCode; | ||
| 10 | +import lombok.experimental.Accessors; | ||
| 11 | +import org.jeecgframework.poi.excel.annotation.Excel; | ||
| 12 | + | ||
| 13 | +import java.io.Serializable; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * @Description: 公安_行政处罚打处人员信息 | ||
| 17 | + * @Author: jeecg-boot | ||
| 18 | + * @Date: 2022-07-14 | ||
| 19 | + * @Version: V1.0 | ||
| 20 | + */ | ||
| 21 | +@Data | ||
| 22 | +@TableName("ga_punish") | ||
| 23 | +@Accessors(chain = true) | ||
| 24 | +@EqualsAndHashCode(callSuper = false) | ||
| 25 | +@ApiModel(value="ga_punish对象", description="ga_punish") | ||
| 26 | +public class GaPunishVo implements Serializable { | ||
| 27 | + private static final long serialVersionUID = 1L; | ||
| 28 | + | ||
| 29 | + /**身份证号*/ | ||
| 30 | + @Excel(name = "身份证号", width = 15) | ||
| 31 | + @ApiModelProperty(value = "身份证号") | ||
| 32 | + private String dxsfzh; | ||
| 33 | + /**案件名称*/ | ||
| 34 | + @Excel(name = "案件名称", width = 15) | ||
| 35 | + @ApiModelProperty(value = "案件名称") | ||
| 36 | + private String ajmc; | ||
| 37 | + /**sldwmc*/ | ||
| 38 | + @Excel(name = "sldwmc", width = 15) | ||
| 39 | + @ApiModelProperty(value = "sldwmc") | ||
| 40 | + private String sldwmc; | ||
| 41 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/MinorPage.java
0 → 100644
| 1 | +package org.jeecg.modules.system.vo; | ||
| 2 | + | ||
| 3 | +import java.util.List; | ||
| 4 | +import lombok.Data; | ||
| 5 | +import org.jeecg.modules.system.entity.Family; | ||
| 6 | +import org.jeecgframework.poi.excel.annotation.Excel; | ||
| 7 | +import org.jeecgframework.poi.excel.annotation.ExcelEntity; | ||
| 8 | +import org.jeecgframework.poi.excel.annotation.ExcelCollection; | ||
| 9 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 10 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 11 | +import java.util.Date; | ||
| 12 | +import org.jeecg.common.aspect.annotation.Dict; | ||
| 13 | +import io.swagger.annotations.ApiModel; | ||
| 14 | +import io.swagger.annotations.ApiModelProperty; | ||
| 15 | + | ||
| 16 | +/** | ||
| 17 | + * @Description: 未成年人 | ||
| 18 | + * @Author: jeecg-boot | ||
| 19 | + * @Date: 2022-07-13 | ||
| 20 | + * @Version: V1.0 | ||
| 21 | + */ | ||
| 22 | +@Data | ||
| 23 | +@ApiModel(value="mr_minorPage对象", description="未成年人") | ||
| 24 | +public class MinorPage { | ||
| 25 | + | ||
| 26 | + /**主键*/ | ||
| 27 | + @ApiModelProperty(value = "主键") | ||
| 28 | + private String id; | ||
| 29 | + /**创建人*/ | ||
| 30 | + @ApiModelProperty(value = "创建人") | ||
| 31 | + private String createBy; | ||
| 32 | + /**创建日期*/ | ||
| 33 | + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") | ||
| 34 | + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") | ||
| 35 | + @ApiModelProperty(value = "创建日期") | ||
| 36 | + private Date createTime; | ||
| 37 | + /**更新人*/ | ||
| 38 | + @ApiModelProperty(value = "更新人") | ||
| 39 | + private String updateBy; | ||
| 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 updateTime; | ||
| 45 | + /**所属部门*/ | ||
| 46 | + @ApiModelProperty(value = "所属部门") | ||
| 47 | + @Dict(dictTable ="sys_depart",dicText = "depart_name",dicCode = "id") | ||
| 48 | + private String sysOrgCode; | ||
| 49 | + /**姓名*/ | ||
| 50 | + @Excel(name = "姓名", width = 15) | ||
| 51 | + @ApiModelProperty(value = "姓名") | ||
| 52 | + private String name; | ||
| 53 | + /**性别*/ | ||
| 54 | + @Excel(name = "性别", width = 15,dicCode = "sex") | ||
| 55 | + @ApiModelProperty(value = "性别") | ||
| 56 | + @Dict(dicCode = "sex") | ||
| 57 | + private Integer gender; | ||
| 58 | + /**家庭住址*/ | ||
| 59 | + @Excel(name = "家庭住址", width = 15) | ||
| 60 | + @ApiModelProperty(value = "家庭住址") | ||
| 61 | + private String address; | ||
| 62 | + /**身份证号*/ | ||
| 63 | + @Excel(name = "身份证号", width = 15) | ||
| 64 | + @ApiModelProperty(value = "身份证号") | ||
| 65 | + private String identity; | ||
| 66 | + /**重点关注原因*/ | ||
| 67 | + @Excel(name = "重点关注原因", width = 15) | ||
| 68 | + @ApiModelProperty(value = "重点关注原因") | ||
| 69 | + private String reason; | ||
| 70 | + /**备注*/ | ||
| 71 | + @Excel(name = "备注", width = 15) | ||
| 72 | + @ApiModelProperty(value = "备注") | ||
| 73 | + private String remark; | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * 监护人 | ||
| 77 | + */ | ||
| 78 | + @Excel(name = "监护人", width = 15) | ||
| 79 | + @ApiModelProperty(value = "监护人") | ||
| 80 | + private String guardian; | ||
| 81 | + | ||
| 82 | + /**是否失学*/ | ||
| 83 | + @Excel(name = "是否失学", width = 15,dicCode = "school_status") | ||
| 84 | + @ApiModelProperty(value = "是否失学") | ||
| 85 | + @Dict(dicCode = "school_status") | ||
| 86 | + private Integer school; | ||
| 87 | + | ||
| 88 | + /** | ||
| 89 | + * 监护人关系 | ||
| 90 | + */ | ||
| 91 | + @Excel(name = "监护人关系", width = 15) | ||
| 92 | + @ApiModelProperty(value = "监护人关系") | ||
| 93 | + private String relation; | ||
| 94 | + | ||
| 95 | + /**人员编号*/ | ||
| 96 | + @Excel(name = "人员编号", width = 15) | ||
| 97 | + @ApiModelProperty(value = "人员编号") | ||
| 98 | + private String number; | ||
| 99 | + | ||
| 100 | + /**户号*/ | ||
| 101 | + @Excel(name = "户号", width = 15) | ||
| 102 | + @ApiModelProperty(value = "户号") | ||
| 103 | + private String householdNum; | ||
| 104 | + | ||
| 105 | + @ExcelCollection(name="家庭成员表") | ||
| 106 | + @ApiModelProperty(value = "家庭成员表") | ||
| 107 | + private List<Family> familyList; | ||
| 108 | + | ||
| 109 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/vo/SpecialStudentVo.java
0 → 100644
| 1 | +package org.jeecg.modules.system.vo; | ||
| 2 | + | ||
| 3 | +import com.baomidou.mybatisplus.annotation.IdType; | ||
| 4 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 6 | +import io.swagger.annotations.ApiModel; | ||
| 7 | +import io.swagger.annotations.ApiModelProperty; | ||
| 8 | +import lombok.Data; | ||
| 9 | +import lombok.EqualsAndHashCode; | ||
| 10 | +import lombok.experimental.Accessors; | ||
| 11 | +import org.jeecgframework.poi.excel.annotation.Excel; | ||
| 12 | + | ||
| 13 | +import java.io.Serializable; | ||
| 14 | + | ||
| 15 | +/** | ||
| 16 | + * @Description: mr_special_student | ||
| 17 | + * @Author: jeecg-boot | ||
| 18 | + * @Date: 2022-07-14 | ||
| 19 | + * @Version: V1.0 | ||
| 20 | + */ | ||
| 21 | +@Data | ||
| 22 | +@TableName("mr_special_student") | ||
| 23 | +@Accessors(chain = true) | ||
| 24 | +@EqualsAndHashCode(callSuper = false) | ||
| 25 | +@ApiModel(value="mr_special_student对象", description="mr_special_student") | ||
| 26 | +public class SpecialStudentVo implements Serializable { | ||
| 27 | + private static final long serialVersionUID = 1L; | ||
| 28 | + /**school*/ | ||
| 29 | + @Excel(name = "school", width = 15) | ||
| 30 | + @ApiModelProperty(value = "school") | ||
| 31 | + private String school; | ||
| 32 | + /**identity*/ | ||
| 33 | + @Excel(name = "identity", width = 15) | ||
| 34 | + @ApiModelProperty(value = "identity") | ||
| 35 | + private String identity; | ||
| 36 | + /**原因*/ | ||
| 37 | + @Excel(name = "区域", width = 15) | ||
| 38 | + @ApiModelProperty(value = "区域") | ||
| 39 | + private String reason; | ||
| 40 | + /**备注*/ | ||
| 41 | + @Excel(name = "备注", width = 15) | ||
| 42 | + @ApiModelProperty(value = "备注") | ||
| 43 | + private String remark; | ||
| 44 | +} |
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/quartz/controller/QuartzJobController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/CommonController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysAnnouncementController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysCategoryController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysDepartController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysDictController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysPositionController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysRoleController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysUserAgentController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/controller/SysUserController.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/entity/SysDepart.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/model/SysDepartTreeModel.class
No preview for this file type
juvenile-prosecution-boot/jeecg-boot-module-system/target/classes/org/jeecg/modules/system/service/impl/SysBaseApiImpl.class
No preview for this file type
juvenile-prosecution-vue/public/index.html
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <meta charset="utf-8"> | 5 | <meta charset="utf-8"> |
| 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 7 | <meta name="viewport" content="width=device-width,initial-scale=1.0"> | 7 | <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
| 8 | - <title>Boot平台</title> | 8 | + <title>阳新检察大数据平台</title> |
| 9 | <link rel="icon" href="<%= BASE_URL %>logo.png"> | 9 | <link rel="icon" href="<%= BASE_URL %>logo.png"> |
| 10 | <script src="<%= BASE_URL %>cdn/babel-polyfill/polyfill_7_2_5.js"></script> | 10 | <script src="<%= BASE_URL %>cdn/babel-polyfill/polyfill_7_2_5.js"></script> |
| 11 | <style> | 11 | <style> |
juvenile-prosecution-vue/src/components/layouts/TabLayout.vue
| @@ -165,7 +165,7 @@ | @@ -165,7 +165,7 @@ | ||
| 165 | 165 | ||
| 166 | // update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题 | 166 | // update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题 |
| 167 | changeTitle(title) { | 167 | changeTitle(title) { |
| 168 | - let projectTitle = "Boot 平台" | 168 | + let projectTitle = "阳新检察大数据平台" |
| 169 | // 首页特殊处理 | 169 | // 首页特殊处理 |
| 170 | if (this.$route.path === indexKey) { | 170 | if (this.$route.path === indexKey) { |
| 171 | document.title = projectTitle | 171 | document.title = projectTitle |
juvenile-prosecution-vue/src/components/page/GlobalHeader.vue
| @@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
| 17 | :type="collapsed ? 'menu-unfold' : 'menu-fold'" | 17 | :type="collapsed ? 'menu-unfold' : 'menu-fold'" |
| 18 | @click="toggle"/> | 18 | @click="toggle"/> |
| 19 | 19 | ||
| 20 | - <span v-else>Jeecg-Boot</span> | 20 | + <span v-else>阳新检察大数据平台</span> |
| 21 | 21 | ||
| 22 | <user-menu :theme="theme"/> | 22 | <user-menu :theme="theme"/> |
| 23 | </div> | 23 | </div> |
juvenile-prosecution-vue/src/components/tools/Logo.vue
juvenile-prosecution-vue/src/utils/rules.js
juvenile-prosecution-vue/src/utils/util.js
| @@ -559,4 +559,41 @@ export function removeArrayElement(array, prod, value) { | @@ -559,4 +559,41 @@ export function removeArrayElement(array, prod, value) { | ||
| 559 | if(index>=0){ | 559 | if(index>=0){ |
| 560 | array.splice(index, 1); | 560 | array.splice(index, 1); |
| 561 | } | 561 | } |
| 562 | -} | ||
| 563 | \ No newline at end of file | 562 | \ No newline at end of file |
| 563 | +} | ||
| 564 | + | ||
| 565 | +/** | ||
| 566 | + * 根据身份证号获取年龄 | ||
| 567 | + * @param identityCard | ||
| 568 | + * @returns {number} | ||
| 569 | + * @constructor | ||
| 570 | + */ | ||
| 571 | +export function GetAge(identityCard) { | ||
| 572 | + var len = (identityCard + "").length; | ||
| 573 | + if (len == 0) { | ||
| 574 | + return 0; | ||
| 575 | + } else { | ||
| 576 | + if ((len != 15) && (len != 18))//身份证号码只能为15位或18位其它不合法 | ||
| 577 | + { | ||
| 578 | + return 0; | ||
| 579 | + } | ||
| 580 | + } | ||
| 581 | + var strBirthday = ""; | ||
| 582 | + if (len == 18)//处理18位的身份证号码从号码中得到生日和性别代码 | ||
| 583 | + { | ||
| 584 | + strBirthday = identityCard.substr(6, 4) + "/" + identityCard.substr(10, 2) + "/" + identityCard.substr(12, 2); | ||
| 585 | + } | ||
| 586 | + if (len == 15) { | ||
| 587 | + strBirthday = "19" + identityCard.substr(6, 2) + "/" + identityCard.substr(8, 2) + "/" + identityCard.substr(10, 2); | ||
| 588 | + } | ||
| 589 | + //时间字符串里,必须是“/” | ||
| 590 | + var birthDate = new Date(strBirthday); | ||
| 591 | + var nowDateTime = new Date(); | ||
| 592 | + var age = nowDateTime.getFullYear() - birthDate.getFullYear(); | ||
| 593 | + //再考虑月、天的因素;.getMonth()获取的是从0开始的,这里进行比较,不需要加1 | ||
| 594 | + if (nowDateTime.getMonth() < birthDate.getMonth() || (nowDateTime.getMonth() == birthDate.getMonth() && nowDateTime.getDate() < birthDate.getDate())) { | ||
| 595 | + age--; | ||
| 596 | + } | ||
| 597 | + return age; | ||
| 598 | +} | ||
| 599 | + | ||
| 600 | + |
juvenile-prosecution-vue/src/views/business/DivisionList.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <a-row :gutter="10"> | ||
| 3 | + <a-col :md="14" :sm="24"> | ||
| 4 | + <a-card :bordered="false"> | ||
| 5 | + | ||
| 6 | + <!-- 按钮操作区域 --> | ||
| 7 | + <a-row style="margin-left: 14px"> | ||
| 8 | + <a-button @click="handleAdd(1)" type="primary">添加区域</a-button> | ||
| 9 | + <a-button @click="handleAdd(2)" type="primary">添加下级</a-button> | ||
| 10 | +<!-- <a-button type="primary" icon="download" @click="handleExportXls('机构信息')">导出</a-button>--> | ||
| 11 | +<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> | ||
| 12 | +<!-- <a-button type="primary" icon="import">导入</a-button>--> | ||
| 13 | +<!-- </a-upload>--> | ||
| 14 | + <a-button title="删除多条数据" @click="batchDel" type="default">批量删除</a-button> | ||
| 15 | + </a-row> | ||
| 16 | + <div style="background: #fff;padding-left:16px;height: 100%; margin-top: 5px"> | ||
| 17 | + <a-alert type="info" :showIcon="true"> | ||
| 18 | + <div slot="message"> | ||
| 19 | + 当前选择:<span v-if="this.currSelected.title">{{ getCurrSelectedTitle() }}</span> | ||
| 20 | + <a v-if="this.currSelected.title" style="margin-left: 10px" @click="onClearSelected">取消选择</a> | ||
| 21 | + </div> | ||
| 22 | + </a-alert> | ||
| 23 | +<!-- <a-input-search @search="onSearch" style="width:100%;margin-top: 10px" placeholder="请输入名称"/>--> | ||
| 24 | + <!-- 树--> | ||
| 25 | + <a-col :md="10" :sm="24"> | ||
| 26 | + <template> | ||
| 27 | + <a-dropdown :trigger="[this.dropTrigger]" @visibleChange="dropStatus"> | ||
| 28 | + <span style="user-select: none"> | ||
| 29 | + <a-tree | ||
| 30 | + checkable | ||
| 31 | + multiple | ||
| 32 | + @select="onSelect" | ||
| 33 | + @check="onCheck" | ||
| 34 | + @rightClick="rightHandle" | ||
| 35 | + :selectedKeys="selectedKeys" | ||
| 36 | + :checkedKeys="checkedKeys" | ||
| 37 | + :treeData="departTree" | ||
| 38 | + :checkStrictly="checkStrictly" | ||
| 39 | + :expandedKeys="iExpandedKeys" | ||
| 40 | + :autoExpandParent="autoExpandParent" | ||
| 41 | + @expand="onExpand"/> | ||
| 42 | + </span> | ||
| 43 | + <!--新增右键点击事件,和增加添加和删除功能--> | ||
| 44 | + <a-menu slot="overlay"> | ||
| 45 | + <a-menu-item @click="handleAdd(3)" key="1">添加</a-menu-item> | ||
| 46 | + <a-menu-item @click="handleDelete" key="2">删除</a-menu-item> | ||
| 47 | + <a-menu-item @click="closeDrop" key="3">取消</a-menu-item> | ||
| 48 | + </a-menu> | ||
| 49 | + </a-dropdown> | ||
| 50 | + </template> | ||
| 51 | + </a-col> | ||
| 52 | + </div> | ||
| 53 | + </a-card> | ||
| 54 | + </a-col> | ||
| 55 | + <a-col :md="10" :sm="24"> | ||
| 56 | + <a-tabs defaultActiveKey="1"> | ||
| 57 | + <a-tab-pane tab="基本信息" key="1" > | ||
| 58 | + <a-card :bordered="false" v-if="selectedKeys.length>0"> | ||
| 59 | + <a-form-model ref="form" :model="model" :rules="validatorRules"> | ||
| 60 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name" label="区域名称"> | ||
| 61 | + <a-input placeholder="请输入区域名称" v-model="model.name" /> | ||
| 62 | + </a-form-model-item> | ||
| 63 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="上级"> | ||
| 64 | + <a-tree-select | ||
| 65 | + style="width:100%" | ||
| 66 | + :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" | ||
| 67 | + :treeData="treeData" | ||
| 68 | + :disabled="disable" | ||
| 69 | + v-model="model.pid" | ||
| 70 | + placeholder="无"> | ||
| 71 | + </a-tree-select> | ||
| 72 | + </a-form-model-item> | ||
| 73 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="abbreviation" label="常用名称"> | ||
| 74 | + <a-textarea placeholder="请输入常用名称,多个','分割" v-model="model.abbreviation" /> | ||
| 75 | + </a-form-model-item> | ||
| 76 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="编码"> | ||
| 77 | + <a-input placeholder="请输入编码" v-model="model.code" /> | ||
| 78 | + </a-form-model-item> | ||
| 79 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="常用编码"> | ||
| 80 | + <a-textarea placeholder="请输入常用编码,多个','分割" v-model="model.common_code"/> | ||
| 81 | + </a-form-model-item> | ||
| 82 | + </a-form-model> | ||
| 83 | + <div class="anty-form-btn"> | ||
| 84 | + <a-button @click="submitCurrForm" type="primary" htmlType="button" icon="form">保存</a-button> | ||
| 85 | + </div> | ||
| 86 | + </a-card> | ||
| 87 | + <a-card v-else > | ||
| 88 | + <a-empty> | ||
| 89 | + <span slot="description"> 请先选择一个区域! </span> | ||
| 90 | + </a-empty> | ||
| 91 | + </a-card> | ||
| 92 | + </a-tab-pane> | ||
| 93 | + </a-tabs> | ||
| 94 | + </a-col> | ||
| 95 | + <division-modal ref="departModal" @ok="loadTree"></division-modal> | ||
| 96 | + </a-row> | ||
| 97 | +</template> | ||
| 98 | + | ||
| 99 | +<script> | ||
| 100 | + | ||
| 101 | +import { getAction, deleteAction, httpAction } from '@/api/manage' | ||
| 102 | +import { JeecgListMixin } from '@/mixins/JeecgListMixin' | ||
| 103 | +import DivisionModal from '@views/business/modules/DivisionModal' | ||
| 104 | +let validatorCodeTimer = null | ||
| 105 | +const columns= [ | ||
| 106 | + { | ||
| 107 | + title:'名称', | ||
| 108 | + align:"left", | ||
| 109 | + dataIndex: 'name' | ||
| 110 | + }, | ||
| 111 | + { | ||
| 112 | + title:'常用名称', | ||
| 113 | + align:"left", | ||
| 114 | + dataIndex: 'abbreviation' | ||
| 115 | + }, | ||
| 116 | + { | ||
| 117 | + title:'编码', | ||
| 118 | + align:"left", | ||
| 119 | + dataIndex: 'code' | ||
| 120 | + }, | ||
| 121 | + { | ||
| 122 | + title:'常用编码', | ||
| 123 | + align:"left", | ||
| 124 | + dataIndex: 'commonCode' | ||
| 125 | + }, | ||
| 126 | + { | ||
| 127 | + title: '操作', | ||
| 128 | + dataIndex: 'action', | ||
| 129 | + align:"center", | ||
| 130 | + fixed:"right", | ||
| 131 | + width:147, | ||
| 132 | + scopedSlots: { customRender: 'action' }, | ||
| 133 | + } | ||
| 134 | +] | ||
| 135 | +export default { | ||
| 136 | + name: "DivisionList", | ||
| 137 | + mixins:[JeecgListMixin], | ||
| 138 | + components: { | ||
| 139 | + DivisionModal, | ||
| 140 | + }, | ||
| 141 | + data () { | ||
| 142 | + return { | ||
| 143 | + description: '区域管理页面', | ||
| 144 | + iExpandedKeys: [], | ||
| 145 | + loading: false, | ||
| 146 | + autoExpandParent: true, | ||
| 147 | + currFlowId: '', | ||
| 148 | + currFlowName: '', | ||
| 149 | + disable: true, | ||
| 150 | + treeData: [], | ||
| 151 | + visible: false, | ||
| 152 | + departTree: [], | ||
| 153 | + rightClickSelectedKey: '', | ||
| 154 | + rightClickSelectedOrgCode: '', | ||
| 155 | + hiding: true, | ||
| 156 | + model: {}, | ||
| 157 | + dropTrigger: '', | ||
| 158 | + depart: {}, | ||
| 159 | + columns: columns, | ||
| 160 | + disableSubmit: false, | ||
| 161 | + checkedKeys: [], | ||
| 162 | + selectedKeys: [], | ||
| 163 | + autoIncr: 1, | ||
| 164 | + currSelected: {}, | ||
| 165 | + allTreeKeys:[], | ||
| 166 | + checkStrictly: true, | ||
| 167 | + labelCol: { | ||
| 168 | + xs: {span: 24}, | ||
| 169 | + sm: {span: 5} | ||
| 170 | + }, | ||
| 171 | + wrapperCol: { | ||
| 172 | + xs: {span: 24}, | ||
| 173 | + sm: {span: 16} | ||
| 174 | + }, | ||
| 175 | + graphDatasource: { | ||
| 176 | + nodes: [], | ||
| 177 | + edges: [] | ||
| 178 | + }, | ||
| 179 | + validatorRules: { | ||
| 180 | + name:[ { required: true, message: '请输入区域名称' },], | ||
| 181 | + }, | ||
| 182 | + url: { | ||
| 183 | + queryTreeList: "/sys/division/queryTreeList", | ||
| 184 | + childList: "/sys/division/childList", | ||
| 185 | + getChildListBatch: "/sys/division/getChildListBatch", | ||
| 186 | + delete: "/sys/division/delete", | ||
| 187 | + deleteBatch: "/sys/division/deleteBatch", | ||
| 188 | + exportXlsUrl: "/sys/division/exportXls", | ||
| 189 | + importExcelUrl: "sys/division/importExcel", | ||
| 190 | + edit: "/sys/division/edit", | ||
| 191 | + }, | ||
| 192 | + orgCategoryDisabled:false, | ||
| 193 | + readOnly:false, | ||
| 194 | + selectedKeysCode:'', | ||
| 195 | + } | ||
| 196 | + }, | ||
| 197 | + created() { | ||
| 198 | + this.currFlowId = this.$route.params.id | ||
| 199 | + this.currFlowName = this.$route.params.name | ||
| 200 | + }, | ||
| 201 | + computed: { | ||
| 202 | + importExcelUrl(){ | ||
| 203 | + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; | ||
| 204 | + }, | ||
| 205 | + tableProps() { | ||
| 206 | + let _this = this | ||
| 207 | + return { | ||
| 208 | + // 列表项是否可选择 | ||
| 209 | + rowSelection: { | ||
| 210 | + selectedRowKeys: _this.selectedRowKeys, | ||
| 211 | + onChange: (selectedRowKeys) => _this.selectedRowKeys = selectedRowKeys | ||
| 212 | + } | ||
| 213 | + } | ||
| 214 | + } | ||
| 215 | + }, | ||
| 216 | + methods: { | ||
| 217 | + loadData() { | ||
| 218 | + this.refresh(); | ||
| 219 | + }, | ||
| 220 | + loadTree() { | ||
| 221 | + var that = this | ||
| 222 | + that.treeData = [] | ||
| 223 | + that.departTree = [] | ||
| 224 | + console.log(that.url.queryTreeList) | ||
| 225 | + getAction(that.url.queryTreeList,{}).then((res) => { | ||
| 226 | + console.log(res) | ||
| 227 | + if (res.success) { | ||
| 228 | + //机构全选后,再添加机构,选中数量增多 | ||
| 229 | + this.allTreeKeys = []; | ||
| 230 | + for (let i = 0; i < res.result.length; i++) { | ||
| 231 | + let temp = res.result[i] | ||
| 232 | + that.treeData.push(temp) | ||
| 233 | + that.departTree.push(temp) | ||
| 234 | + that.setThisExpandedKeys(temp) | ||
| 235 | + that.getAllKeys(temp); | ||
| 236 | + // console.log(temp.id) | ||
| 237 | + } | ||
| 238 | + this.loading = false | ||
| 239 | + } | ||
| 240 | + }) | ||
| 241 | + }, | ||
| 242 | + setThisExpandedKeys(node) { | ||
| 243 | + if (node.children && node.children.length > 0) { | ||
| 244 | + this.iExpandedKeys.push(node.key) | ||
| 245 | + for (let a = 0; a < node.children.length; a++) { | ||
| 246 | + this.setThisExpandedKeys(node.children[a]) | ||
| 247 | + } | ||
| 248 | + } | ||
| 249 | + }, | ||
| 250 | + refresh() { | ||
| 251 | + this.loading = true | ||
| 252 | + this.loadTree() | ||
| 253 | + }, | ||
| 254 | + // 右键操作方法 | ||
| 255 | + rightHandle(node) { | ||
| 256 | + this.dropTrigger = 'contextmenu' | ||
| 257 | + console.log(node.node) | ||
| 258 | + this.rightClickSelectedKey = node.node.eventKey | ||
| 259 | + this.rightClickSelectedOrgCode = node.node.dataRef.value | ||
| 260 | + }, | ||
| 261 | + onExpand(expandedKeys) { | ||
| 262 | + console.log('onExpand', expandedKeys) | ||
| 263 | + this.iExpandedKeys = expandedKeys | ||
| 264 | + this.autoExpandParent = false | ||
| 265 | + }, | ||
| 266 | + backFlowList() { | ||
| 267 | + this.$router.back(-1) | ||
| 268 | + }, | ||
| 269 | + // 右键点击下拉框改变事件 | ||
| 270 | + dropStatus(visible) { | ||
| 271 | + if (visible == false) { | ||
| 272 | + this.dropTrigger = '' | ||
| 273 | + } | ||
| 274 | + }, | ||
| 275 | + // 右键下拉关闭下拉框 | ||
| 276 | + closeDrop() { | ||
| 277 | + this.dropTrigger = '' | ||
| 278 | + }, | ||
| 279 | + addRootNode() { | ||
| 280 | + this.$refs.nodeModal.add(this.currFlowId, '') | ||
| 281 | + }, | ||
| 282 | + batchDel: function () { | ||
| 283 | + console.log(this.checkedKeys) | ||
| 284 | + if (this.checkedKeys.length <= 0) { | ||
| 285 | + this.$message.warning('请选择一条记录!') | ||
| 286 | + } else { | ||
| 287 | + var ids = '' | ||
| 288 | + for (var a = 0; a < this.checkedKeys.length; a++) { | ||
| 289 | + ids += this.checkedKeys[a] + ',' | ||
| 290 | + } | ||
| 291 | + var that = this | ||
| 292 | + this.$confirm({ | ||
| 293 | + title: '确认删除', | ||
| 294 | + content: '确定要删除所选中的 ' + this.checkedKeys.length + ' 条数据,以及子节点数据吗?', | ||
| 295 | + onOk: function () { | ||
| 296 | + deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => { | ||
| 297 | + if (res.success) { | ||
| 298 | + that.$message.success(res.message) | ||
| 299 | + that.loadTree() | ||
| 300 | + that.onClearSelected() | ||
| 301 | + } else { | ||
| 302 | + that.$message.warning(res.message) | ||
| 303 | + } | ||
| 304 | + }) | ||
| 305 | + } | ||
| 306 | + }) | ||
| 307 | + } | ||
| 308 | + }, | ||
| 309 | + onSearch(value) { | ||
| 310 | + let that = this | ||
| 311 | + if (value) { | ||
| 312 | + getAction(that.url.queryTreeList,{keyWord: value}).then((res) => { | ||
| 313 | + console.log(res) | ||
| 314 | + if (res.success) { | ||
| 315 | + that.departTree = [] | ||
| 316 | + for (let i = 0; i < res.result.length; i++) { | ||
| 317 | + let temp = res.result[i] | ||
| 318 | + that.departTree.push(temp) | ||
| 319 | + } | ||
| 320 | + }else { | ||
| 321 | + that.$message.warning(res.message) | ||
| 322 | + } | ||
| 323 | + }) | ||
| 324 | + } else { | ||
| 325 | + that.loadTree() | ||
| 326 | + } | ||
| 327 | + | ||
| 328 | + }, | ||
| 329 | + nodeModalOk() { | ||
| 330 | + this.loadTree() | ||
| 331 | + }, | ||
| 332 | + nodeModalClose() { | ||
| 333 | + }, | ||
| 334 | + hide() { | ||
| 335 | + console.log(111) | ||
| 336 | + this.visible = false | ||
| 337 | + }, | ||
| 338 | + onCheck(checkedKeys, info) { | ||
| 339 | + console.log('onCheck', checkedKeys, info) | ||
| 340 | + this.hiding = false | ||
| 341 | + //---- author:os_chengtgen -- date:20190827 -- for:切换父子勾选模式 =======------ | ||
| 342 | + if(this.checkStrictly){ | ||
| 343 | + this.checkedKeys = checkedKeys.checked; | ||
| 344 | + }else{ | ||
| 345 | + this.checkedKeys = checkedKeys | ||
| 346 | + } | ||
| 347 | + //---- author:os_chengtgen -- date:20190827 -- for:切换父子勾选模式 =======------ | ||
| 348 | + }, | ||
| 349 | + onSelect(selectedKeys, e) { | ||
| 350 | + console.log('selected', selectedKeys, e) | ||
| 351 | + this.hiding = false | ||
| 352 | + let record = e.node.dataRef | ||
| 353 | + console.log('onSelect-record', record) | ||
| 354 | + this.currSelected = Object.assign({}, record) | ||
| 355 | + this.model = this.currSelected | ||
| 356 | + this.selectedKeys = [record.key] | ||
| 357 | + console.log(record) | ||
| 358 | + this.model.pid = record.pid | ||
| 359 | + this.selectedKeysCode=record.id | ||
| 360 | + this.seachKeyword='' | ||
| 361 | + this.setValuesToForm(record) | ||
| 362 | + | ||
| 363 | + }, | ||
| 364 | + // 触发onSelect事件时,为机构树右侧的form表单赋值 | ||
| 365 | + setValuesToForm(record) { | ||
| 366 | + if(record.orgCategory == '1'){ | ||
| 367 | + this.orgCategoryDisabled = true; | ||
| 368 | + }else{ | ||
| 369 | + this.orgCategoryDisabled = false; | ||
| 370 | + } | ||
| 371 | + }, | ||
| 372 | + getCurrSelectedTitle() { | ||
| 373 | + return !this.currSelected.title ? '' : this.currSelected.title | ||
| 374 | + }, | ||
| 375 | + onClearSelected() { | ||
| 376 | + this.hiding = true | ||
| 377 | + this.checkedKeys = [] | ||
| 378 | + this.currSelected = {} | ||
| 379 | + this.selectedKeys = [] | ||
| 380 | + }, | ||
| 381 | + handleNodeTypeChange(val) { | ||
| 382 | + this.currSelected.nodeType = val | ||
| 383 | + }, | ||
| 384 | + notifyTriggerTypeChange(value) { | ||
| 385 | + this.currSelected.notifyTriggerType = value | ||
| 386 | + }, | ||
| 387 | + receiptTriggerTypeChange(value) { | ||
| 388 | + this.currSelected.receiptTriggerType = value | ||
| 389 | + }, | ||
| 390 | + submitCurrForm() { | ||
| 391 | + console.log('提交数据++++++++++++++') | ||
| 392 | + console.log(this.$refs.form) | ||
| 393 | + this.$refs.form.validate(valid => { | ||
| 394 | + console.log(valid) | ||
| 395 | + if (valid) { | ||
| 396 | + if (!this.currSelected.id) { | ||
| 397 | + this.$message.warning('请点击选择要修改的区域!') | ||
| 398 | + return | ||
| 399 | + } | ||
| 400 | + console.log(this.url.edit) | ||
| 401 | + console.log(this.currSelected) | ||
| 402 | + httpAction(this.url.edit, this.currSelected, 'put').then((res) => { | ||
| 403 | + if (res.success) { | ||
| 404 | + this.$message.success('保存成功!') | ||
| 405 | + this.loadTree() | ||
| 406 | + } else { | ||
| 407 | + this.$message.error(res.message) | ||
| 408 | + } | ||
| 409 | + }) | ||
| 410 | + } | ||
| 411 | + }) | ||
| 412 | + }, | ||
| 413 | + emptyCurrForm() { | ||
| 414 | + this.$refs.form.resetFields(); | ||
| 415 | + this.model={} | ||
| 416 | + }, | ||
| 417 | + nodeSettingFormSubmit() { | ||
| 418 | + this.$refs.form.validate(valid => { | ||
| 419 | + if (valid) { | ||
| 420 | + console.log('Received values of form: ', this.model) | ||
| 421 | + } | ||
| 422 | + }) | ||
| 423 | + }, | ||
| 424 | + openSelect() { | ||
| 425 | + this.$refs.sysDirectiveModal.show() | ||
| 426 | + }, | ||
| 427 | + handleAdd(num) { | ||
| 428 | + console.log(num) | ||
| 429 | + if (num == 1) { | ||
| 430 | + this.$refs.departModal.add() | ||
| 431 | + this.$refs.departModal.title = '新增' | ||
| 432 | + } else if (num == 2) { | ||
| 433 | + let key = this.currSelected.key | ||
| 434 | + if (!key) { | ||
| 435 | + this.$message.warning('请先点击选中上级机构!') | ||
| 436 | + return false | ||
| 437 | + } | ||
| 438 | + console.log(this.selectedKeys,this.selectedKeysCode) | ||
| 439 | + this.$refs.departModal.add(this.selectedKeys,this.selectedKeysCode) | ||
| 440 | + this.$refs.departModal.title = '新增' | ||
| 441 | + } else { | ||
| 442 | + console.log(this.rightClickSelectedKey,this.rightClickSelectedOrgCode) | ||
| 443 | + this.$refs.departModal.add(this.rightClickSelectedKey,this.rightClickSelectedOrgCode ) | ||
| 444 | + this.$refs.departModal.title = '新增' | ||
| 445 | + } | ||
| 446 | + }, | ||
| 447 | + handleDelete() { | ||
| 448 | + var that = this | ||
| 449 | + this.$confirm({ | ||
| 450 | + title: '确认删除', | ||
| 451 | + content: '确定要删除此机构以及子节点数据吗?', | ||
| 452 | + onOk: function () { | ||
| 453 | + deleteAction(that.url.delete, {id: that.rightClickSelectedKey}).then((resp) => { | ||
| 454 | + if (resp.success) { | ||
| 455 | + //删除成功后,去除已选中中的数据 | ||
| 456 | + that.checkedKeys.splice(that.checkedKeys.findIndex(key => key === that.rightClickSelectedKey), 1); | ||
| 457 | + that.$message.success('删除成功!') | ||
| 458 | + that.loadTree() | ||
| 459 | + //删除后同步清空右侧基本信息内容 | ||
| 460 | + let orgCode=that.model.institutionCode; | ||
| 461 | + if(orgCode && orgCode === that.rightClickSelectedOrgCode){ | ||
| 462 | + that.onClearSelected() | ||
| 463 | + } | ||
| 464 | + that.currSelected.title='' | ||
| 465 | + } else { | ||
| 466 | + that.$message.warning('删除失败!') | ||
| 467 | + } | ||
| 468 | + }) | ||
| 469 | + } | ||
| 470 | + }) | ||
| 471 | + }, | ||
| 472 | + selectDirectiveOk(record) { | ||
| 473 | + console.log('选中指令数据', record) | ||
| 474 | + this.nodeSettingForm.setFieldsValue({directiveCode: record.directiveCode}) | ||
| 475 | + this.currSelected.sysCode = record.sysCode | ||
| 476 | + }, | ||
| 477 | + getFlowGraphData(node) { | ||
| 478 | + this.graphDatasource.nodes.push({ | ||
| 479 | + id: node.id, | ||
| 480 | + text: node.flowNodeName | ||
| 481 | + }) | ||
| 482 | + if (node.children.length > 0) { | ||
| 483 | + for (let a = 0; a < node.children.length; a++) { | ||
| 484 | + let temp = node.children[a] | ||
| 485 | + this.graphDatasource.edges.push({ | ||
| 486 | + source: node.id, | ||
| 487 | + target: temp.id | ||
| 488 | + }) | ||
| 489 | + this.getFlowGraphData(temp) | ||
| 490 | + } | ||
| 491 | + } | ||
| 492 | + }, | ||
| 493 | + //---- author:os_chengtgen -- date:20190827 -- for:切换父子勾选模式 =======------ | ||
| 494 | + expandAll () { | ||
| 495 | + this.iExpandedKeys = this.allTreeKeys | ||
| 496 | + }, | ||
| 497 | + closeAll () { | ||
| 498 | + this.iExpandedKeys = [] | ||
| 499 | + }, | ||
| 500 | + checkALL () { | ||
| 501 | + this.checkStriccheckStrictlytly = false | ||
| 502 | + this.checkedKeys = this.allTreeKeys | ||
| 503 | + }, | ||
| 504 | + cancelCheckALL () { | ||
| 505 | + //this.checkedKeys = this.defaultCheckedKeys | ||
| 506 | + this.checkedKeys = [] | ||
| 507 | + }, | ||
| 508 | + switchCheckStrictly (v) { | ||
| 509 | + if(v==1){ | ||
| 510 | + this.checkStrictly = false | ||
| 511 | + }else if(v==2){ | ||
| 512 | + this.checkStrictly = true | ||
| 513 | + } | ||
| 514 | + }, | ||
| 515 | + getAllKeys(node) { | ||
| 516 | + // console.log('node',node); | ||
| 517 | + this.allTreeKeys.push(node.key) | ||
| 518 | + if (node.children && node.children.length > 0) { | ||
| 519 | + for (let a = 0; a < node.children.length; a++) { | ||
| 520 | + this.getAllKeys(node.children[a]) | ||
| 521 | + } | ||
| 522 | + } | ||
| 523 | + }, | ||
| 524 | + } | ||
| 525 | +} | ||
| 526 | +</script> | ||
| 527 | +<style scoped> | ||
| 528 | +@import '~@assets/less/common.less'; | ||
| 529 | +.ant-card-body .table-operator { | ||
| 530 | + margin: 15px; | ||
| 531 | +} | ||
| 532 | + | ||
| 533 | +.anty-form-btn { | ||
| 534 | + width: 100%; | ||
| 535 | + text-align: center; | ||
| 536 | +} | ||
| 537 | + | ||
| 538 | +.anty-form-btn button { | ||
| 539 | + margin: 0 5px; | ||
| 540 | +} | ||
| 541 | + | ||
| 542 | +.anty-node-layout .ant-layout-header { | ||
| 543 | + padding-right: 0 | ||
| 544 | +} | ||
| 545 | + | ||
| 546 | +.header { | ||
| 547 | + padding: 0 8px; | ||
| 548 | +} | ||
| 549 | + | ||
| 550 | +.header button { | ||
| 551 | + margin: 0 3px | ||
| 552 | +} | ||
| 553 | + | ||
| 554 | +.ant-modal-cust-warp { | ||
| 555 | + height: 100% | ||
| 556 | +} | ||
| 557 | + | ||
| 558 | +.ant-modal-cust-warp .ant-modal-body { | ||
| 559 | + height: calc(100% - 110px) !important; | ||
| 560 | + overflow-y: auto | ||
| 561 | +} | ||
| 562 | + | ||
| 563 | +.ant-modal-cust-warp .ant-modal-content { | ||
| 564 | + height: 90% !important; | ||
| 565 | + overflow-y: hidden | ||
| 566 | +} | ||
| 567 | + | ||
| 568 | +#app .desktop { | ||
| 569 | + height: auto !important; | ||
| 570 | +} | ||
| 571 | + | ||
| 572 | +/** Button按钮间距 */ | ||
| 573 | +.ant-btn { | ||
| 574 | + margin-left: 3px | ||
| 575 | +} | ||
| 576 | + | ||
| 577 | +.drawer-bootom-button { | ||
| 578 | + /*position: absolute;*/ | ||
| 579 | + bottom: 0; | ||
| 580 | + width: 100%; | ||
| 581 | + border-top: 1px solid #e8e8e8; | ||
| 582 | + padding: 10px 16px; | ||
| 583 | + text-align: left; | ||
| 584 | + left: 0; | ||
| 585 | + background: #fff; | ||
| 586 | + border-radius: 0 0 2px 2px; | ||
| 587 | +} | ||
| 588 | +.map_search{ | ||
| 589 | + width: 100%; | ||
| 590 | + margin-top: -40px | ||
| 591 | +} | ||
| 592 | + | ||
| 593 | +</style> | ||
| 594 | +<style> | ||
| 595 | +.anchorBL{ | ||
| 596 | + display: none !important; | ||
| 597 | +} | ||
| 598 | + | ||
| 599 | +.BMap_bubble_title p a{ | ||
| 600 | + display: none !important; | ||
| 601 | +} | ||
| 602 | +</style> | ||
| 0 | \ No newline at end of file | 603 | \ No newline at end of file |
juvenile-prosecution-vue/src/views/business/MinorList.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <a-card :bordered="false"> | ||
| 3 | + <!-- 查询区域 --> | ||
| 4 | + <div class="table-page-search-wrapper"> | ||
| 5 | + <a-form layout="inline" @keyup.enter.native="searchQuery"> | ||
| 6 | + <a-row :gutter="24"> | ||
| 7 | + <a-col :md="6" :sm="12"> | ||
| 8 | + <a-form-item label="姓名"> | ||
| 9 | + <j-input placeholder="输入姓名查询" v-model="queryParam.name"></j-input> | ||
| 10 | + </a-form-item> | ||
| 11 | + </a-col> | ||
| 12 | + <a-col :md="6" :sm="8"> | ||
| 13 | + <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> | ||
| 14 | + <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> | ||
| 15 | + </span> | ||
| 16 | + </a-col> | ||
| 17 | + </a-row> | ||
| 18 | + </a-form> | ||
| 19 | + | ||
| 20 | + <a-button @click="handleAdd" type="primary" icon="plus" >新增</a-button> | ||
| 21 | + <a-button type="primary" icon="download" @click="handleExportXls('未成年人')" style="margin-left:8px;">导出</a-button> | ||
| 22 | + <a-upload style="margin-left:8px;" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> | ||
| 23 | + <a-button type="primary" icon="import">导入</a-button> | ||
| 24 | + </a-upload> | ||
| 25 | + <a-dropdown v-if="selectedRowKeys.length > 0" style="margin-left:8px;"> | ||
| 26 | + <a-menu slot="overlay"> | ||
| 27 | + <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> | ||
| 28 | + </a-menu> | ||
| 29 | + <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> | ||
| 30 | + </a-dropdown> | ||
| 31 | + </div> | ||
| 32 | + <!-- 查询区域-END --> | ||
| 33 | + | ||
| 34 | + <!-- table区域-begin --> | ||
| 35 | + <div> | ||
| 36 | + <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;margin-top: 16px;"> | ||
| 37 | + <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 | ||
| 38 | + <a style="margin-left: 24px" @click="onClearSelected">清空</a> | ||
| 39 | + </div> | ||
| 40 | + | ||
| 41 | + <a-table | ||
| 42 | + ref="table" | ||
| 43 | + size="middle" | ||
| 44 | + bordered | ||
| 45 | + rowKey="id" | ||
| 46 | + class="j-table-force-nowrap" | ||
| 47 | + :scroll="{x:true}" | ||
| 48 | + :columns="columns" | ||
| 49 | + :dataSource="dataSource" | ||
| 50 | + :pagination="ipagination" | ||
| 51 | + :loading="loading" | ||
| 52 | + :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" | ||
| 53 | + @change="handleTableChange"> | ||
| 54 | + | ||
| 55 | + <template slot="htmlSlot" slot-scope="text"> | ||
| 56 | + <div v-html="text"></div> | ||
| 57 | + </template> | ||
| 58 | + <template slot="imgSlot" slot-scope="text"> | ||
| 59 | + <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span> | ||
| 60 | + <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> | ||
| 61 | + </template> | ||
| 62 | + <template slot="fileSlot" slot-scope="text"> | ||
| 63 | + <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span> | ||
| 64 | + <a-button | ||
| 65 | + v-else | ||
| 66 | + :ghost="true" | ||
| 67 | + type="primary" | ||
| 68 | + icon="download" | ||
| 69 | + size="small" | ||
| 70 | + @click="downloadFile(text)"> | ||
| 71 | + 下载 | ||
| 72 | + </a-button> | ||
| 73 | + </template> | ||
| 74 | + | ||
| 75 | + <span slot="action" slot-scope="text, record"> | ||
| 76 | + <a @click="handleEdit(record)">编辑</a> | ||
| 77 | + | ||
| 78 | + <a-divider type="vertical" /> | ||
| 79 | + <a-dropdown> | ||
| 80 | + <a class="ant-dropdown-link">更多 <a-icon type="down" /></a> | ||
| 81 | + <a-menu slot="overlay"> | ||
| 82 | + <a-menu-item> | ||
| 83 | + <a @click="handleDetail(record)">详情</a> | ||
| 84 | + </a-menu-item> | ||
| 85 | + <a-menu-item> | ||
| 86 | + <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> | ||
| 87 | + <a>删除</a> | ||
| 88 | + </a-popconfirm> | ||
| 89 | + </a-menu-item> | ||
| 90 | + </a-menu> | ||
| 91 | + </a-dropdown> | ||
| 92 | + </span> | ||
| 93 | + | ||
| 94 | + </a-table> | ||
| 95 | + </div> | ||
| 96 | + | ||
| 97 | + <minor-modal ref="modalForm" @ok="modalFormOk"/> | ||
| 98 | + </a-card> | ||
| 99 | +</template> | ||
| 100 | + | ||
| 101 | +<script> | ||
| 102 | + | ||
| 103 | + import { JeecgListMixin } from '@/mixins/JeecgListMixin' | ||
| 104 | + import { GetAge } from '@/utils/util' | ||
| 105 | + import MinorModal from './modules/MinorModal' | ||
| 106 | + import '@/assets/less/TableExpand.less' | ||
| 107 | + | ||
| 108 | + export default { | ||
| 109 | + name: "MinorList", | ||
| 110 | + mixins:[JeecgListMixin], | ||
| 111 | + components: { | ||
| 112 | + MinorModal | ||
| 113 | + }, | ||
| 114 | + data () { | ||
| 115 | + return { | ||
| 116 | + description: '未成年人管理页面', | ||
| 117 | + // 表头 | ||
| 118 | + columns: [ | ||
| 119 | + { | ||
| 120 | + title: '序号', | ||
| 121 | + dataIndex: '', | ||
| 122 | + key:'rowIndex', | ||
| 123 | + width:60, | ||
| 124 | + align:"center", | ||
| 125 | + customRender:function (t,r,index) { | ||
| 126 | + return parseInt(index)+1; | ||
| 127 | + } | ||
| 128 | + }, | ||
| 129 | + { | ||
| 130 | + title:'姓名', | ||
| 131 | + align:"center", | ||
| 132 | + dataIndex: 'name' | ||
| 133 | + }, | ||
| 134 | + { | ||
| 135 | + title:'年龄', | ||
| 136 | + align:"center", | ||
| 137 | + dataIndex: 'age', | ||
| 138 | + customRender:function (text, record) { | ||
| 139 | + return !text? GetAge:0 | ||
| 140 | + } | ||
| 141 | + }, | ||
| 142 | + { | ||
| 143 | + title:'性别', | ||
| 144 | + align:"center", | ||
| 145 | + dataIndex: 'gender_dictText' | ||
| 146 | + }, | ||
| 147 | + { | ||
| 148 | + title:'是否失学', | ||
| 149 | + align:"center", | ||
| 150 | + dataIndex: 'school_dictText' | ||
| 151 | + }, | ||
| 152 | + { | ||
| 153 | + title:'家庭住址', | ||
| 154 | + align:"center", | ||
| 155 | + dataIndex: 'address' | ||
| 156 | + }, | ||
| 157 | + { | ||
| 158 | + title:'身份证号', | ||
| 159 | + align:"center", | ||
| 160 | + dataIndex: 'identity' | ||
| 161 | + }, | ||
| 162 | + { | ||
| 163 | + title:'监护人关系', | ||
| 164 | + align:"center", | ||
| 165 | + dataIndex: 'relation' | ||
| 166 | + }, | ||
| 167 | + { | ||
| 168 | + title:'监护人', | ||
| 169 | + align:"center", | ||
| 170 | + dataIndex: 'guardian' | ||
| 171 | + }, | ||
| 172 | + { | ||
| 173 | + title:'重点关注原因', | ||
| 174 | + align:"center", | ||
| 175 | + dataIndex: 'reason' | ||
| 176 | + }, | ||
| 177 | + { | ||
| 178 | + title:'备注', | ||
| 179 | + align:"center", | ||
| 180 | + dataIndex: 'remark' | ||
| 181 | + }, | ||
| 182 | + { | ||
| 183 | + title: '操作', | ||
| 184 | + dataIndex: 'action', | ||
| 185 | + align:"center", | ||
| 186 | + fixed:"right", | ||
| 187 | + width:147, | ||
| 188 | + scopedSlots: { customRender: 'action' }, | ||
| 189 | + } | ||
| 190 | + ], | ||
| 191 | + url: { | ||
| 192 | + list: "/sys/minor/list", | ||
| 193 | + delete: "/sys/minor/delete", | ||
| 194 | + deleteBatch: "/sys/minor/deleteBatch", | ||
| 195 | + exportXlsUrl: "/sys/minor/exportXls", | ||
| 196 | + importExcelUrl: "sys/minor/importExcel", | ||
| 197 | + | ||
| 198 | + }, | ||
| 199 | + dictOptions:{}, | ||
| 200 | + superFieldList:[], | ||
| 201 | + } | ||
| 202 | + }, | ||
| 203 | + created() { | ||
| 204 | + this.getSuperFieldList(); | ||
| 205 | + }, | ||
| 206 | + computed: { | ||
| 207 | + importExcelUrl: function(){ | ||
| 208 | + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; | ||
| 209 | + } | ||
| 210 | + }, | ||
| 211 | + methods: { | ||
| 212 | + initDictConfig(){ | ||
| 213 | + }, | ||
| 214 | + getSuperFieldList(){ | ||
| 215 | + let fieldList=[]; | ||
| 216 | + fieldList.push({type:'string',value:'name',text:'姓名',dictCode:''}) | ||
| 217 | + fieldList.push({type:'int',value:'gender',text:'性别',dictCode:''}) | ||
| 218 | + fieldList.push({type:'string',value:'address',text:'家庭住址',dictCode:''}) | ||
| 219 | + fieldList.push({type:'string',value:'identity',text:'身份证号',dictCode:''}) | ||
| 220 | + fieldList.push({type:'Text',value:'reason',text:'重点关注原因',dictCode:''}) | ||
| 221 | + fieldList.push({type:'Text',value:'remark',text:'备注',dictCode:''}) | ||
| 222 | + this.superFieldList = fieldList | ||
| 223 | + } | ||
| 224 | + } | ||
| 225 | + } | ||
| 226 | +</script> | ||
| 227 | +<style scoped> | ||
| 228 | + @import '~@assets/less/common.less'; | ||
| 229 | +</style> | ||
| 0 | \ No newline at end of file | 230 | \ No newline at end of file |
juvenile-prosecution-vue/src/views/business/SourceList.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <a-card :bordered="false"> | ||
| 3 | + <a-page-header | ||
| 4 | + class="demo-page-header" | ||
| 5 | + style="border: 1px solid rgb(235, 237, 240)" | ||
| 6 | + title="返回" | ||
| 7 | + sub-title="数据批次" | ||
| 8 | + @back="() => $router.go(-1)" | ||
| 9 | + ></a-page-header> | ||
| 10 | + | ||
| 11 | + <!-- table区域-begin --> | ||
| 12 | + <div> | ||
| 13 | + <a-table | ||
| 14 | + ref="table" | ||
| 15 | + size="middle" | ||
| 16 | + :scroll="{x:true}" | ||
| 17 | + bordered | ||
| 18 | + rowKey="id" | ||
| 19 | + :columns="columns" | ||
| 20 | + :dataSource="dataSource" | ||
| 21 | + :pagination="ipagination" | ||
| 22 | + :loading="loading" | ||
| 23 | + class="j-table-force-nowrap" | ||
| 24 | + @change="handleTableChange"> | ||
| 25 | + | ||
| 26 | + | ||
| 27 | + <span slot="action" slot-scope="text, record"> | ||
| 28 | + <a @click="handleDetail(record)">查看</a> | ||
| 29 | + </span> | ||
| 30 | + | ||
| 31 | + </a-table> | ||
| 32 | + </div> | ||
| 33 | + | ||
| 34 | + </a-card> | ||
| 35 | +</template> | ||
| 36 | + | ||
| 37 | +<script> | ||
| 38 | + | ||
| 39 | + import '@/assets/less/TableExpand.less' | ||
| 40 | + import { mixinDevice } from '@/utils/mixin' | ||
| 41 | + import { JeecgListMixin } from '@/mixins/JeecgListMixin' | ||
| 42 | + | ||
| 43 | + export default { | ||
| 44 | + name: 'SourceStatistics', | ||
| 45 | + mixins:[JeecgListMixin, mixinDevice], | ||
| 46 | + components: { | ||
| 47 | + | ||
| 48 | + }, | ||
| 49 | + data () { | ||
| 50 | + return { | ||
| 51 | + description: '来源数据管理管理页面', | ||
| 52 | + // 表头 | ||
| 53 | + columns: [ | ||
| 54 | + { | ||
| 55 | + title: '序号', | ||
| 56 | + dataIndex: '', | ||
| 57 | + key:'rowIndex', | ||
| 58 | + width:60, | ||
| 59 | + align:"center", | ||
| 60 | + customRender:function (t,r,index) { | ||
| 61 | + return parseInt(index)+1; | ||
| 62 | + } | ||
| 63 | + }, | ||
| 64 | + { | ||
| 65 | + title:'单位名称', | ||
| 66 | + align:"center", | ||
| 67 | + dataIndex: 'name' | ||
| 68 | + }, | ||
| 69 | + { | ||
| 70 | + title:'数据批次', | ||
| 71 | + align:"center", | ||
| 72 | + dataIndex: 'batch' | ||
| 73 | + }, | ||
| 74 | + { | ||
| 75 | + title:'总条数', | ||
| 76 | + align:"center", | ||
| 77 | + dataIndex: 'total' | ||
| 78 | + }, | ||
| 79 | + { | ||
| 80 | + title: '操作', | ||
| 81 | + dataIndex: 'action', | ||
| 82 | + align:"center", | ||
| 83 | + fixed:"right", | ||
| 84 | + width:147, | ||
| 85 | + scopedSlots: { customRender: 'action' } | ||
| 86 | + } | ||
| 87 | + ], | ||
| 88 | + url: { | ||
| 89 | + list: "/sys/source/list", | ||
| 90 | + delete: "/sys/source/delete", | ||
| 91 | + deleteBatch: "/sys/source/deleteBatch", | ||
| 92 | + exportXlsUrl: "/sys/source/exportXls", | ||
| 93 | + importExcelUrl: "sys/source/importExcel", | ||
| 94 | + | ||
| 95 | + }, | ||
| 96 | + dictOptions:{}, | ||
| 97 | + superFieldList:[], | ||
| 98 | + } | ||
| 99 | + }, | ||
| 100 | + created() { | ||
| 101 | + this.getSuperFieldList(); | ||
| 102 | + }, | ||
| 103 | + computed: { | ||
| 104 | + importExcelUrl: function(){ | ||
| 105 | + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; | ||
| 106 | + }, | ||
| 107 | + }, | ||
| 108 | + methods: { | ||
| 109 | + initDictConfig(){ | ||
| 110 | + }, | ||
| 111 | + getSuperFieldList(){ | ||
| 112 | + let fieldList=[]; | ||
| 113 | + fieldList.push({type:'string',value:'name',text:'单位名称',dictCode:''}) | ||
| 114 | + fieldList.push({type:'int',value:'batch',text:'数据批次',dictCode:''}) | ||
| 115 | + fieldList.push({type:'int',value:'total',text:'总条数',dictCode:''}) | ||
| 116 | + this.superFieldList = fieldList | ||
| 117 | + } | ||
| 118 | + } | ||
| 119 | + } | ||
| 120 | +</script> | ||
| 121 | +<style scoped> | ||
| 122 | + @import '~@assets/less/common.less'; | ||
| 123 | +</style> | ||
| 0 | \ No newline at end of file | 124 | \ No newline at end of file |
juvenile-prosecution-vue/src/views/business/SourceStatistics.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <a-card :bordered="false"> | ||
| 3 | + <!-- 查询区域 --> | ||
| 4 | + <div class="table-page-search-wrapper"> | ||
| 5 | + <a-form layout="inline" @keyup.enter.native="searchQuery"> | ||
| 6 | + <a-row :gutter="24"> | ||
| 7 | + <a-col :md="6" :sm="12"> | ||
| 8 | + <a-form-item label="单位名称"> | ||
| 9 | + <a-input placeholder="输入单位名称查询" v-model="queryParam.name"></a-input> | ||
| 10 | + </a-form-item> | ||
| 11 | + </a-col> | ||
| 12 | + <a-col :md="6" :sm="8"> | ||
| 13 | + <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> | ||
| 14 | + <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> | ||
| 15 | + </span> | ||
| 16 | + </a-col> | ||
| 17 | + </a-row> | ||
| 18 | + </a-form> | ||
| 19 | + </div> | ||
| 20 | + <!-- 查询区域-END --> | ||
| 21 | + | ||
| 22 | + <!-- table区域-begin --> | ||
| 23 | + <div> | ||
| 24 | + <a-table | ||
| 25 | + ref="table" | ||
| 26 | + size="middle" | ||
| 27 | + :scroll="{x:true}" | ||
| 28 | + rowKey="name" | ||
| 29 | + bordered | ||
| 30 | + :columns="columns" | ||
| 31 | + :dataSource="dataSource" | ||
| 32 | + :pagination="ipagination" | ||
| 33 | + :loading="loading" | ||
| 34 | + class="j-table-force-nowrap" | ||
| 35 | + @change="handleTableChange"> | ||
| 36 | + | ||
| 37 | + | ||
| 38 | + <span slot="action" slot-scope="text, record"> | ||
| 39 | + <a @click="handleDetail(record)">查看</a> | ||
| 40 | + </span> | ||
| 41 | + | ||
| 42 | + </a-table> | ||
| 43 | + </div> | ||
| 44 | + </a-card> | ||
| 45 | +</template> | ||
| 46 | + | ||
| 47 | +<script> | ||
| 48 | + | ||
| 49 | + import '@/assets/less/TableExpand.less' | ||
| 50 | + import { mixinDevice } from '@/utils/mixin' | ||
| 51 | + import { JeecgListMixin } from '@/mixins/JeecgListMixin' | ||
| 52 | + | ||
| 53 | + export default { | ||
| 54 | + name: 'SourceList', | ||
| 55 | + mixins:[JeecgListMixin, mixinDevice], | ||
| 56 | + components: { | ||
| 57 | + | ||
| 58 | + }, | ||
| 59 | + data () { | ||
| 60 | + return { | ||
| 61 | + description: '来源数据管理管理页面', | ||
| 62 | + // 表头 | ||
| 63 | + columns: [ | ||
| 64 | + { | ||
| 65 | + title: '序号', | ||
| 66 | + dataIndex: '', | ||
| 67 | + key:'rowIndex', | ||
| 68 | + width:60, | ||
| 69 | + align:"center", | ||
| 70 | + customRender:function (t,r,index) { | ||
| 71 | + return parseInt(index)+1; | ||
| 72 | + } | ||
| 73 | + }, | ||
| 74 | + { | ||
| 75 | + title:'单位名称', | ||
| 76 | + align:"center", | ||
| 77 | + dataIndex: 'name' | ||
| 78 | + }, | ||
| 79 | + { | ||
| 80 | + title:'数据批次', | ||
| 81 | + align:"center", | ||
| 82 | + dataIndex: 'batch' | ||
| 83 | + }, | ||
| 84 | + { | ||
| 85 | + title: '操作', | ||
| 86 | + dataIndex: 'action', | ||
| 87 | + align:"center", | ||
| 88 | + fixed:"right", | ||
| 89 | + width:147, | ||
| 90 | + scopedSlots: { customRender: 'action' } | ||
| 91 | + } | ||
| 92 | + ], | ||
| 93 | + url: { | ||
| 94 | + list: "/sys/source/getListGroupByName", | ||
| 95 | + delete: "/sys/source/delete", | ||
| 96 | + deleteBatch: "/sys/source/deleteBatch", | ||
| 97 | + exportXlsUrl: "/sys/source/exportXls", | ||
| 98 | + importExcelUrl: "sys/source/importExcel", | ||
| 99 | + | ||
| 100 | + }, | ||
| 101 | + dictOptions:{}, | ||
| 102 | + superFieldList:[], | ||
| 103 | + } | ||
| 104 | + }, | ||
| 105 | + created() { | ||
| 106 | + this.getSuperFieldList(); | ||
| 107 | + }, | ||
| 108 | + computed: { | ||
| 109 | + importExcelUrl: function(){ | ||
| 110 | + return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; | ||
| 111 | + }, | ||
| 112 | + }, | ||
| 113 | + methods: { | ||
| 114 | + handleDetail(){ | ||
| 115 | + this.$router.push({ path: '/business/SourceList' }) | ||
| 116 | + }, | ||
| 117 | + initDictConfig(){ | ||
| 118 | + }, | ||
| 119 | + getSuperFieldList(){ | ||
| 120 | + let fieldList=[]; | ||
| 121 | + fieldList.push({type:'string',value:'name',text:'单位名称',dictCode:''}) | ||
| 122 | + fieldList.push({type:'int',value:'batch',text:'数据批次',dictCode:''}) | ||
| 123 | + fieldList.push({type:'int',value:'total',text:'总条数',dictCode:''}) | ||
| 124 | + this.superFieldList = fieldList | ||
| 125 | + } | ||
| 126 | + } | ||
| 127 | + } | ||
| 128 | +</script> | ||
| 129 | +<style scoped> | ||
| 130 | + @import '~@assets/less/common.less'; | ||
| 131 | +</style> | ||
| 0 | \ No newline at end of file | 132 | \ No newline at end of file |
juvenile-prosecution-vue/src/views/business/modules/DivisionModal.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <j-modal | ||
| 3 | + :title="title" | ||
| 4 | + :width="width" | ||
| 5 | + :visible="visible" | ||
| 6 | + :confirmLoading="confirmLoading" | ||
| 7 | + switchFullscreen | ||
| 8 | + @ok="handleOk" | ||
| 9 | + @cancel="handleCancel" | ||
| 10 | + cancelText="关闭"> | ||
| 11 | + <a-spin :spinning="confirmLoading"> | ||
| 12 | + <a-form-model ref="form" :model="model" :rules="validatorRules"> | ||
| 13 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="institutionName" label="区域名称"> | ||
| 14 | + <a-input placeholder="请输入区域名称" v-model="model.name" /> | ||
| 15 | + </a-form-model-item> | ||
| 16 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" :hidden="seen" label="父级"> | ||
| 17 | + <a-tree-select | ||
| 18 | + style="width:100%" | ||
| 19 | + :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" | ||
| 20 | + :treeData="treeData" | ||
| 21 | + v-model="model.pid" | ||
| 22 | + placeholder="请选择父级" | ||
| 23 | + :disabled="condition"> | ||
| 24 | + </a-tree-select> | ||
| 25 | + </a-form-model-item> | ||
| 26 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="abbreviation" label="常用名称"> | ||
| 27 | + <a-textarea placeholder="请输入常用名称,多个','分割" v-model="model.abbreviation" /> | ||
| 28 | + </a-form-model-item> | ||
| 29 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="编码"> | ||
| 30 | + <a-input placeholder="请输入编码" v-model="model.code" /> | ||
| 31 | + </a-form-model-item> | ||
| 32 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="常用编码"> | ||
| 33 | + <a-textarea placeholder="请输入常用编码,多个','分割" v-model="model.common_code"/> | ||
| 34 | + </a-form-model-item> | ||
| 35 | + </a-form-model> | ||
| 36 | + </a-spin> | ||
| 37 | + </j-modal> | ||
| 38 | +</template> | ||
| 39 | + | ||
| 40 | +<script> | ||
| 41 | + | ||
| 42 | + import { httpAction,getAction } from '@/api/manage' | ||
| 43 | + import { validateDuplicateValue } from '@/utils/util' | ||
| 44 | + export default { | ||
| 45 | + name: "DivisionModal", | ||
| 46 | + components: { | ||
| 47 | + }, | ||
| 48 | + data () { | ||
| 49 | + return { | ||
| 50 | + condition:true, | ||
| 51 | + seen:false, | ||
| 52 | + title:"操作", | ||
| 53 | + width:800, | ||
| 54 | + visible: false, | ||
| 55 | + model:{ | ||
| 56 | + pid:'', | ||
| 57 | + }, | ||
| 58 | + labelCol: { | ||
| 59 | + xs: { span: 24 }, | ||
| 60 | + sm: { span: 5 }, | ||
| 61 | + }, | ||
| 62 | + wrapperCol: { | ||
| 63 | + xs: { span: 24 }, | ||
| 64 | + sm: { span: 16 }, | ||
| 65 | + }, | ||
| 66 | + treeData:[], | ||
| 67 | + disable: true, | ||
| 68 | + confirmLoading: false, | ||
| 69 | + validatorRules: { | ||
| 70 | + name:[ { required: true, message: '请输入区域名称' },], | ||
| 71 | + }, | ||
| 72 | + url: { | ||
| 73 | + add: "/sys/division/add", | ||
| 74 | + edit: "/sys/division/edit", | ||
| 75 | + queryTreeList: "/sys/division/queryTreeList", | ||
| 76 | + }, | ||
| 77 | + expandedRowKeys:[], | ||
| 78 | + pidField:"pid", | ||
| 79 | + defaultModel:{ | ||
| 80 | + sortOrder:0, | ||
| 81 | + }, | ||
| 82 | + } | ||
| 83 | + }, | ||
| 84 | + created () { | ||
| 85 | + //备份model原始值 | ||
| 86 | + this.modelDefault = JSON.parse(JSON.stringify(this.model)); | ||
| 87 | + }, | ||
| 88 | + methods: { | ||
| 89 | + loadTreeData(){ | ||
| 90 | + var that = this; | ||
| 91 | + getAction(that.url.queryTreeList,{}).then((res)=>{ | ||
| 92 | + console.log(res) | ||
| 93 | + if(res.success){ | ||
| 94 | + that.treeData = []; | ||
| 95 | + for (let i = 0; i < res.result.length; i++) { | ||
| 96 | + let temp = res.result[i]; | ||
| 97 | + that.treeData.push(temp); | ||
| 98 | + } | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + }) | ||
| 102 | + }, | ||
| 103 | + add (id,pid) { | ||
| 104 | + console.log(id,pid) | ||
| 105 | + this.model={}; | ||
| 106 | + this.seachKeyword=''; | ||
| 107 | + if(pid){ | ||
| 108 | + console.log('++++++++++++++'+pid) | ||
| 109 | + this.condition = true; | ||
| 110 | + this.seen=false; | ||
| 111 | + }else{ | ||
| 112 | + console.log('**********'+pid) | ||
| 113 | + this.condition = false; | ||
| 114 | + this.seen=true; | ||
| 115 | + } | ||
| 116 | + this.edit(id,pid); | ||
| 117 | + }, | ||
| 118 | + edit(record,pid) { | ||
| 119 | + this.model = Object.assign({}, this.defaultModel, record) | ||
| 120 | + console.log(this.model) | ||
| 121 | + this.visible = true | ||
| 122 | + this.loadTreeData(); | ||
| 123 | + console.log(record) | ||
| 124 | + this.model.pid = pid!=null?pid.toString():null; | ||
| 125 | + }, | ||
| 126 | + close() { | ||
| 127 | + this.$emit('close'); | ||
| 128 | + this.disableSubmit = false; | ||
| 129 | + this.visible = false; | ||
| 130 | + this.$refs.form.resetFields(); | ||
| 131 | + }, | ||
| 132 | + handleOk() { | ||
| 133 | + const that = this | ||
| 134 | + console.log(that.model) | ||
| 135 | + // 触发表单验证 | ||
| 136 | + this.$refs.form.validate(valid => { | ||
| 137 | + if (valid) { | ||
| 138 | + that.confirmLoading = true | ||
| 139 | + let httpurl = '' | ||
| 140 | + let method = '' | ||
| 141 | + if (!that.model.id) { | ||
| 142 | + httpurl += this.url.add | ||
| 143 | + method = 'post' | ||
| 144 | + } else { | ||
| 145 | + httpurl += this.url.edit | ||
| 146 | + method = 'put' | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + httpAction(httpurl, that.model, method).then((res) => { | ||
| 150 | + if (res.success) { | ||
| 151 | + that.$message.success(res.message) | ||
| 152 | + that.loadTreeData(); | ||
| 153 | + that.$emit('ok'); | ||
| 154 | + } else { | ||
| 155 | + that.$message.warning(res.message) | ||
| 156 | + } | ||
| 157 | + }).finally(() => { | ||
| 158 | + that.confirmLoading = false | ||
| 159 | + that.close() | ||
| 160 | + }) | ||
| 161 | + }else{ | ||
| 162 | + return false; | ||
| 163 | + } | ||
| 164 | + }) | ||
| 165 | + }, | ||
| 166 | + handleCancel() { | ||
| 167 | + this.close() | ||
| 168 | + }, | ||
| 169 | + | ||
| 170 | + } | ||
| 171 | + } | ||
| 172 | +</script> | ||
| 0 | \ No newline at end of file | 173 | \ No newline at end of file |
juvenile-prosecution-vue/src/views/business/modules/MinorModal.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <j-modal | ||
| 3 | + :confirmLoading="confirmLoading" | ||
| 4 | + :title="title" | ||
| 5 | + :width="1200" | ||
| 6 | + :visible="visible" | ||
| 7 | + :maskClosable="false" | ||
| 8 | + switchFullscreen | ||
| 9 | + @ok="handleOk" | ||
| 10 | + :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" | ||
| 11 | + @cancel="handleCancel"> | ||
| 12 | + <a-spin :spinning="confirmLoading"> | ||
| 13 | + <j-form-container :disabled="formDisabled"> | ||
| 14 | + <!-- 主表单区域 --> | ||
| 15 | + <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> | ||
| 16 | + <a-row> | ||
| 17 | + <a-col :span="12"> | ||
| 18 | + <a-form-model-item label="姓名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name"> | ||
| 19 | + <a-input v-model="model.name" placeholder="请输入姓名"></a-input> | ||
| 20 | + </a-form-model-item> | ||
| 21 | + </a-col> | ||
| 22 | + <a-col :span="12"> | ||
| 23 | + <a-form-model-item label="性别" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="gender"> | ||
| 24 | + <j-dict-select-tag v-model="model.gender" dictCode="sex" placeholder="请选择性别" /> | ||
| 25 | + </a-form-model-item> | ||
| 26 | + </a-col> | ||
| 27 | + </a-row> | ||
| 28 | + <a-row> | ||
| 29 | + <a-col :span="12"> | ||
| 30 | + <a-form-model-item label="身份证号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="identity"> | ||
| 31 | + <a-input v-model="model.identity" placeholder="请输入身份证号"></a-input> | ||
| 32 | + </a-form-model-item> | ||
| 33 | + </a-col> | ||
| 34 | + <a-col :span="12"> | ||
| 35 | + <a-form-model-item label="年龄" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="age"> | ||
| 36 | + <a-input v-model="model.age" disabled></a-input> | ||
| 37 | + </a-form-model-item> | ||
| 38 | + </a-col> | ||
| 39 | + </a-row> | ||
| 40 | + <a-row> | ||
| 41 | + <a-col :span="12"> | ||
| 42 | + <a-form-model-item label="是否失学" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="school"> | ||
| 43 | + <j-dict-select-tag v-model="model.school" dictCode="school_status" placeholder="请选择是否失学" /> | ||
| 44 | + </a-form-model-item> | ||
| 45 | + </a-col> | ||
| 46 | + <a-col :span="12"> | ||
| 47 | + <a-form-model-item label="家庭住址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="address"> | ||
| 48 | + <a-textarea v-model="model.address" placeholder="请输入家庭住址" :rows="1" ></a-textarea> | ||
| 49 | + </a-form-model-item> | ||
| 50 | + </a-col> | ||
| 51 | + </a-row> | ||
| 52 | + <a-row> | ||
| 53 | + <a-col :span="12"> | ||
| 54 | + <a-form-model-item label="监护人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="guardian"> | ||
| 55 | + <a-input v-model="model.guardian" placeholder="请输入监护人"></a-input> | ||
| 56 | + </a-form-model-item> | ||
| 57 | + </a-col> | ||
| 58 | + <a-col :span="12"> | ||
| 59 | + <a-form-model-item label="监护人关系" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="relation"> | ||
| 60 | + <a-input v-model="model.relation" placeholder="请输入监护人关系"></a-input> | ||
| 61 | + </a-form-model-item> | ||
| 62 | + </a-col> | ||
| 63 | + </a-row> | ||
| 64 | + <a-row> | ||
| 65 | + <a-col :span="12"> | ||
| 66 | + <a-form-model-item label="重点关注原因" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="reason"> | ||
| 67 | + <a-textarea v-model="model.reason" placeholder="请输入重点关注原因"></a-textarea> | ||
| 68 | + </a-form-model-item> | ||
| 69 | + </a-col> | ||
| 70 | + <a-col :span="12"> | ||
| 71 | + <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark"> | ||
| 72 | + <a-textarea v-model="model.remark" placeholder="请输入备注"></a-textarea> | ||
| 73 | + </a-form-model-item> | ||
| 74 | + </a-col> | ||
| 75 | + </a-row> | ||
| 76 | + </a-form-model> | ||
| 77 | + </j-form-container> | ||
| 78 | + <!-- 子表单区域 --> | ||
| 79 | + <a-tabs activeKey="1" style="margin-top: -20px"> | ||
| 80 | + <a-tab-pane tab="家庭成员" key="1" :forceRender="true"> | ||
| 81 | + <j-editable-table | ||
| 82 | + ref="editableTable" | ||
| 83 | + :loading="familyLoading" | ||
| 84 | + sticky :columns="columns" | ||
| 85 | + :dataSource="dataSource" | ||
| 86 | + :maxHeight="190" | ||
| 87 | + :rowNumber="true" | ||
| 88 | + :rowSelection="true" | ||
| 89 | + :actionButton="true" /> | ||
| 90 | + | ||
| 91 | + </a-tab-pane> | ||
| 92 | + | ||
| 93 | + </a-tabs> | ||
| 94 | + </a-spin> | ||
| 95 | + </j-modal> | ||
| 96 | +</template> | ||
| 97 | + | ||
| 98 | +<script> | ||
| 99 | +import { getAction, httpAction } from '@/api/manage' | ||
| 100 | +import { FormTypes, VALIDATE_NO_PASSED, getRefPromise, validateFormModelAndTables } from '@/utils/JEditableTableUtil' | ||
| 101 | +import JEditableTable from '@/components/jeecg/JEditableTable' | ||
| 102 | +import JDate from '@/components/jeecg/JDate' | ||
| 103 | + | ||
| 104 | +export default { | ||
| 105 | + name: 'MinorModal', | ||
| 106 | + components: { | ||
| 107 | + JEditableTable, JDate | ||
| 108 | + }, | ||
| 109 | + data() { | ||
| 110 | + return { | ||
| 111 | + confirmLoading: false, | ||
| 112 | + title: '', | ||
| 113 | + width: 800, | ||
| 114 | + visible: false, | ||
| 115 | + disableSubmit: false, | ||
| 116 | + model: {}, | ||
| 117 | + labelCol: { | ||
| 118 | + xs: { span: 24 }, | ||
| 119 | + sm: { span: 6 } | ||
| 120 | + }, | ||
| 121 | + wrapperCol: { | ||
| 122 | + xs: { span: 24 }, | ||
| 123 | + sm: { span: 16 } | ||
| 124 | + }, | ||
| 125 | + labelCol2: { | ||
| 126 | + xs: { span: 24 }, | ||
| 127 | + sm: { span: 3 } | ||
| 128 | + }, | ||
| 129 | + wrapperCol2: { | ||
| 130 | + xs: { span: 24 }, | ||
| 131 | + sm: { span: 20 } | ||
| 132 | + }, | ||
| 133 | + validatorRules: { | ||
| 134 | + name:[ { required: true, message: '请输入姓名' },], | ||
| 135 | + gender:[ { required: true, message: '请选择性别' },], | ||
| 136 | + identity:[ {required: true,validator:this.validateIdCard}], | ||
| 137 | + relation:[ { required: true, message: '请输入监护人关系' },], | ||
| 138 | + guardian:[ { required: true, message: '请输入监护人' },], | ||
| 139 | + }, | ||
| 140 | + url: { | ||
| 141 | + add: '/sys/minor/add', | ||
| 142 | + edit: '/sys/minor/edit', | ||
| 143 | + queryById: '/sys/minor/queryById', | ||
| 144 | + familys: '/sys/minor/queryFamilyByMainId' | ||
| 145 | + }, | ||
| 146 | + familyLoading: false, | ||
| 147 | + dataSource: [], | ||
| 148 | + columns: [ | ||
| 149 | + { | ||
| 150 | + title: '户号', | ||
| 151 | + key: 'householdNum', | ||
| 152 | + width: '250px', | ||
| 153 | + type: FormTypes.input, | ||
| 154 | + fixed: 'left', | ||
| 155 | + defaultValue: '', | ||
| 156 | + placeholder: '请输入${title}', | ||
| 157 | + validateRules: [{ required: true, message: '${title}不能为空' }] | ||
| 158 | + }, | ||
| 159 | + { | ||
| 160 | + title: '姓名', | ||
| 161 | + key: 'name', | ||
| 162 | + width: '180px', | ||
| 163 | + fixed: 'left', | ||
| 164 | + type: FormTypes.input, | ||
| 165 | + defaultValue: '', | ||
| 166 | + placeholder: '请输入${title}', | ||
| 167 | + validateRules: [{ required: true, message: '${title}不能为空' }] | ||
| 168 | + }, | ||
| 169 | + { | ||
| 170 | + title: '身份证号', | ||
| 171 | + key: 'identity', | ||
| 172 | + width: '200px', | ||
| 173 | + type: FormTypes.input, | ||
| 174 | + defaultValue: '', | ||
| 175 | + placeholder: '请输入${title}', | ||
| 176 | + validateRules: [{ | ||
| 177 | + pattern: '/(^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$)|(^[1-9]\\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}$)/', | ||
| 178 | + message: '${title}格式不正确' | ||
| 179 | + }] | ||
| 180 | + }, | ||
| 181 | + { | ||
| 182 | + title: '婚姻状况', | ||
| 183 | + key: 'marital', | ||
| 184 | + width: '200px', | ||
| 185 | + type: FormTypes.select, | ||
| 186 | + options: [], | ||
| 187 | + dictCode: 'marital_status', | ||
| 188 | + placeholder: '请选择${title}', | ||
| 189 | + validateRules: [{ required: true, message: '${title}不能为空' }] | ||
| 190 | + }, | ||
| 191 | + { | ||
| 192 | + title: '是否犯罪', | ||
| 193 | + key: 'crime', | ||
| 194 | + width: '200px', | ||
| 195 | + type: FormTypes.select, | ||
| 196 | + options: [], | ||
| 197 | + dictCode: 'is_crime', | ||
| 198 | + placeholder: '请选择${title}', | ||
| 199 | + validateRules: [{ required: true, message: '${title}不能为空' }] | ||
| 200 | + }, | ||
| 201 | + { | ||
| 202 | + title: '犯罪原因', | ||
| 203 | + key: 'reason', | ||
| 204 | + width: '250px', | ||
| 205 | + type: FormTypes.input_pop, | ||
| 206 | + defaultValue: '', | ||
| 207 | + placeholder: '请输入${title}', | ||
| 208 | + validateRules: [{ required: true, message: '${title}不能为空' }] | ||
| 209 | + }, | ||
| 210 | + { | ||
| 211 | + title: '其他参考信息', | ||
| 212 | + key: 'other', | ||
| 213 | + width: '250px', | ||
| 214 | + type: FormTypes.input_pop, | ||
| 215 | + defaultValue: '', | ||
| 216 | + placeholder: '请输入${title}', | ||
| 217 | + validateRules: [{ required: true, message: '${title}不能为空' }] | ||
| 218 | + } | ||
| 219 | + ] | ||
| 220 | + } | ||
| 221 | + }, | ||
| 222 | + props: { | ||
| 223 | + //表单禁用 | ||
| 224 | + disabled: { | ||
| 225 | + type: Boolean, | ||
| 226 | + default: false, | ||
| 227 | + required: false | ||
| 228 | + } | ||
| 229 | + }, | ||
| 230 | + computed: { | ||
| 231 | + formDisabled() { | ||
| 232 | + return this.disabled | ||
| 233 | + } | ||
| 234 | + }, | ||
| 235 | + created() { | ||
| 236 | + //备份model原始值 | ||
| 237 | + this.modelDefault = JSON.parse(JSON.stringify(this.model)) | ||
| 238 | + }, | ||
| 239 | + methods: { | ||
| 240 | + validateIdCard(rule,value,callback){ | ||
| 241 | + console.log(value) | ||
| 242 | + if(undefined==value || null==value || ''==value){ | ||
| 243 | + callback("请输入正确的公民身份号码!"); | ||
| 244 | + }else if ( !value || new RegExp(/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/).test(value)){ | ||
| 245 | + callback(); | ||
| 246 | + }else{ | ||
| 247 | + callback("请输入正确的公民身份号码!"); | ||
| 248 | + } | ||
| 249 | + }, | ||
| 250 | + // 获取所有的editableTable实例 | ||
| 251 | + getAllTable() { | ||
| 252 | + return Promise.all([ | ||
| 253 | + getRefPromise(this, 'editableTable') | ||
| 254 | + ]) | ||
| 255 | + }, | ||
| 256 | + | ||
| 257 | + add() { | ||
| 258 | + // 默认新增一条数据 | ||
| 259 | + this.getAllTable().then(editableTables => { | ||
| 260 | + editableTables[0].add() | ||
| 261 | + }) | ||
| 262 | + | ||
| 263 | + this.edit({}) | ||
| 264 | + }, | ||
| 265 | + edit(record) { | ||
| 266 | + this.model = Object.assign({}, record) | ||
| 267 | + this.visible = true | ||
| 268 | + // 加载子表数据 | ||
| 269 | + if (this.model.id) { | ||
| 270 | + let params = { id: this.model.id } | ||
| 271 | + this.requestTableData(this.url.familys, params) | ||
| 272 | + } | ||
| 273 | + }, | ||
| 274 | + /** 查询某个tab的数据 */ | ||
| 275 | + requestTableData(url, params) { | ||
| 276 | + this.familyLoading = true | ||
| 277 | + getAction(url, params).then(res => { | ||
| 278 | + this.dataSource = res.result || [] | ||
| 279 | + }).finally(() => { | ||
| 280 | + this.familyLoading = false | ||
| 281 | + }) | ||
| 282 | + }, | ||
| 283 | + handleCancel() { | ||
| 284 | + this.close() | ||
| 285 | + }, | ||
| 286 | + close() { | ||
| 287 | + this.visible = false | ||
| 288 | + this.getAllTable().then(editableTables => { | ||
| 289 | + editableTables[0].initialize() | ||
| 290 | + }) | ||
| 291 | + this.$emit('close') | ||
| 292 | + this.$refs.form.resetFields() | ||
| 293 | + }, | ||
| 294 | + handleOk() { | ||
| 295 | + this.validateFields() | ||
| 296 | + }, | ||
| 297 | + /** 触发表单验证 */ | ||
| 298 | + validateFields() { | ||
| 299 | + this.getAllTable().then(tables => { | ||
| 300 | + /** 一次性验证主表和所有的次表 */ | ||
| 301 | + return validateFormModelAndTables(this.$refs.form, this.model, tables) | ||
| 302 | + }).then(allValues => { | ||
| 303 | + let formData = this.classifyIntoFormData(allValues) | ||
| 304 | + // 发起请求 | ||
| 305 | + return this.requestAddOrEdit(formData) | ||
| 306 | + }).catch(e => { | ||
| 307 | + if (e.error === VALIDATE_NO_PASSED) { | ||
| 308 | + // 如果有未通过表单验证的子表,就自动跳转到它所在的tab | ||
| 309 | + this.activeKey = e.index == null ? this.activeKey : (e.index + 1).toString() | ||
| 310 | + } else { | ||
| 311 | + console.error(e) | ||
| 312 | + } | ||
| 313 | + }) | ||
| 314 | + }, | ||
| 315 | + /** 整理成formData */ | ||
| 316 | + classifyIntoFormData(allValues) { | ||
| 317 | + let MinorPage = Object.assign(this.model, allValues.formValue) | ||
| 318 | + return { | ||
| 319 | + ...MinorPage, // 展开 | ||
| 320 | + familyList: allValues.tablesValue[0].values | ||
| 321 | + } | ||
| 322 | + }, | ||
| 323 | + /** 发起新增或修改的请求 */ | ||
| 324 | + requestAddOrEdit(formData) { | ||
| 325 | + let url = this.url.add, method = 'post' | ||
| 326 | + if (this.model.id) { | ||
| 327 | + url = this.url.edit | ||
| 328 | + method = 'put' | ||
| 329 | + } | ||
| 330 | + this.confirmLoading = true | ||
| 331 | + httpAction(url, formData, method).then((res) => { | ||
| 332 | + if (res.success) { | ||
| 333 | + this.$message.success(res.message) | ||
| 334 | + this.$emit('ok') | ||
| 335 | + this.close() | ||
| 336 | + } else { | ||
| 337 | + this.$message.warning(res.message) | ||
| 338 | + } | ||
| 339 | + }).finally(() => { | ||
| 340 | + this.confirmLoading = false | ||
| 341 | + }) | ||
| 342 | + } | ||
| 343 | + } | ||
| 344 | +} | ||
| 345 | +</script> | ||
| 346 | + | ||
| 347 | +<style scoped> | ||
| 348 | + | ||
| 349 | +</style> | ||
| 0 | \ No newline at end of file | 350 | \ No newline at end of file |
juvenile-prosecution-vue/src/views/system/DepartList.vue
| @@ -76,9 +76,9 @@ | @@ -76,9 +76,9 @@ | ||
| 76 | <a-card :bordered="false" v-if="selectedKeys.length>0"> | 76 | <a-card :bordered="false" v-if="selectedKeys.length>0"> |
| 77 | <a-form-model ref="form" :model="model" :rules="validatorRules"> | 77 | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| 78 | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departName" label="机构名称"> | 78 | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departName" label="机构名称"> |
| 79 | - <a-input placeholder="请输入机构/部门名称" v-model="model.departName" /> | 79 | + <a-input placeholder="请输入机构名称" v-model="model.departName" /> |
| 80 | </a-form-model-item> | 80 | </a-form-model-item> |
| 81 | - <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="上级部门"> | 81 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="上级机构"> |
| 82 | <a-tree-select | 82 | <a-tree-select |
| 83 | style="width:100%" | 83 | style="width:100%" |
| 84 | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" | 84 | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" |
| @@ -91,24 +91,11 @@ | @@ -91,24 +91,11 @@ | ||
| 91 | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orgCode" label="机构编码"> | 91 | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orgCode" label="机构编码"> |
| 92 | <a-input disabled placeholder="请输入机构编码" v-model="model.orgCode" /> | 92 | <a-input disabled placeholder="请输入机构编码" v-model="model.orgCode" /> |
| 93 | </a-form-model-item> | 93 | </a-form-model-item> |
| 94 | - <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orgCategory" label="机构类型"> | ||
| 95 | - <template v-if="orgCategoryDisabled"> | ||
| 96 | - <a-radio-group v-model="model.orgCategory" placeholder="请选择机构类型"> | ||
| 97 | - <a-radio value="1"> | ||
| 98 | - 公司 | ||
| 99 | - </a-radio> | ||
| 100 | - </a-radio-group> | ||
| 101 | - </template> | ||
| 102 | - <template v-else> | ||
| 103 | - <a-radio-group v-model="model.orgCategory" placeholder="请选择机构类型"> | ||
| 104 | - <a-radio value="2"> | ||
| 105 | - 部门 | ||
| 106 | - </a-radio> | ||
| 107 | - <a-radio value="3"> | ||
| 108 | - 岗位 | ||
| 109 | - </a-radio> | ||
| 110 | - </a-radio-group> | ||
| 111 | - </template> | 94 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="abbreviation" label="常用名称"> |
| 95 | + <a-textarea placeholder="请输入常用名称,多个','分割" v-model="model.abbreviation" /> | ||
| 96 | + </a-form-model-item> | ||
| 97 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="常用编码"> | ||
| 98 | + <a-textarea placeholder="请输入常用编码,多个','分割" v-model="model.common_code"/> | ||
| 112 | </a-form-model-item> | 99 | </a-form-model-item> |
| 113 | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="排序"> | 100 | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="排序"> |
| 114 | <a-input-number v-model="model.departOrder" /> | 101 | <a-input-number v-model="model.departOrder" /> |
| @@ -130,11 +117,11 @@ | @@ -130,11 +117,11 @@ | ||
| 130 | </a-card> | 117 | </a-card> |
| 131 | <a-card v-else > | 118 | <a-card v-else > |
| 132 | <a-empty> | 119 | <a-empty> |
| 133 | - <span slot="description"> 请先选择一个部门! </span> | 120 | + <span slot="description"> 请先选择一个机构! </span> |
| 134 | </a-empty> | 121 | </a-empty> |
| 135 | </a-card> | 122 | </a-card> |
| 136 | </a-tab-pane> | 123 | </a-tab-pane> |
| 137 | - <a-tab-pane tab="部门权限" key="2" forceRender> | 124 | + <a-tab-pane tab="机构权限" key="2" forceRender> |
| 138 | <depart-auth-modal ref="departAuth"/> | 125 | <depart-auth-modal ref="departAuth"/> |
| 139 | </a-tab-pane> | 126 | </a-tab-pane> |
| 140 | </a-tabs> | 127 | </a-tabs> |
| @@ -156,15 +143,20 @@ | @@ -156,15 +143,20 @@ | ||
| 156 | dataIndex: 'departName' | 143 | dataIndex: 'departName' |
| 157 | }, | 144 | }, |
| 158 | { | 145 | { |
| 159 | - title: '机构类型', | ||
| 160 | - align: 'center', | ||
| 161 | - dataIndex: 'orgType' | ||
| 162 | - }, | ||
| 163 | - { | ||
| 164 | title: '机构编码', | 146 | title: '机构编码', |
| 165 | dataIndex: 'orgCode', | 147 | dataIndex: 'orgCode', |
| 166 | }, | 148 | }, |
| 167 | { | 149 | { |
| 150 | + title:'常用名称', | ||
| 151 | + align:"left", | ||
| 152 | + dataIndex: 'abbreviation' | ||
| 153 | + }, | ||
| 154 | + { | ||
| 155 | + title:'常用编码', | ||
| 156 | + align:"left", | ||
| 157 | + dataIndex: 'commonCode' | ||
| 158 | + }, | ||
| 159 | + { | ||
| 168 | title: '手机号', | 160 | title: '手机号', |
| 169 | dataIndex: 'mobile' | 161 | dataIndex: 'mobile' |
| 170 | }, | 162 | }, |
| @@ -550,7 +542,7 @@ | @@ -550,7 +542,7 @@ | ||
| 550 | } | 542 | } |
| 551 | } | 543 | } |
| 552 | //---- author:os_chengtgen -- date:20190827 -- for:切换父子勾选模式 =======------ | 544 | //---- author:os_chengtgen -- date:20190827 -- for:切换父子勾选模式 =======------ |
| 553 | - | 545 | + |
| 554 | }, | 546 | }, |
| 555 | created() { | 547 | created() { |
| 556 | this.currFlowId = this.$route.params.id | 548 | this.currFlowId = this.$route.params.id |
juvenile-prosecution-vue/src/views/system/UserList.vue
| @@ -93,6 +93,7 @@ | @@ -93,6 +93,7 @@ | ||
| 93 | </a-button> | 93 | </a-button> |
| 94 | </a-dropdown> | 94 | </a-dropdown> |
| 95 | <j-super-query :fieldList="superQueryFieldList" @handleSuperQuery="handleSuperQuery"/> | 95 | <j-super-query :fieldList="superQueryFieldList" @handleSuperQuery="handleSuperQuery"/> |
| 96 | + <a-button @click="doAnalyze" type="primary" icon="control-outlined" >数据分析</a-button> | ||
| 96 | </div> | 97 | </div> |
| 97 | 98 | ||
| 98 | <!-- table区域-begin --> | 99 | <!-- table区域-begin --> |
| @@ -184,7 +185,7 @@ | @@ -184,7 +185,7 @@ | ||
| 184 | <script> | 185 | <script> |
| 185 | import UserModal from './modules/UserModal' | 186 | import UserModal from './modules/UserModal' |
| 186 | import PasswordModal from './modules/PasswordModal' | 187 | import PasswordModal from './modules/PasswordModal' |
| 187 | - import {putAction,getFileAccessHttpUrl} from '@/api/manage'; | 188 | + import { putAction, getFileAccessHttpUrl, getAction } from '@/api/manage' |
| 188 | import {frozenBatch} from '@/api/api' | 189 | import {frozenBatch} from '@/api/api' |
| 189 | import {JeecgListMixin} from '@/mixins/JeecgListMixin' | 190 | import {JeecgListMixin} from '@/mixins/JeecgListMixin' |
| 190 | import SysUserAgentModal from "./modules/SysUserAgentModal"; | 191 | import SysUserAgentModal from "./modules/SysUserAgentModal"; |
| @@ -309,6 +310,13 @@ | @@ -309,6 +310,13 @@ | ||
| 309 | } | 310 | } |
| 310 | }, | 311 | }, |
| 311 | methods: { | 312 | methods: { |
| 313 | + doAnalyze(){ | ||
| 314 | + getAction('/sys/analyze/doAnalyzeData', {}).then(res => { | ||
| 315 | + console.log(res) | ||
| 316 | + }).finally(() => { | ||
| 317 | + | ||
| 318 | + }) | ||
| 319 | + }, | ||
| 312 | getAvatarView: function (avatar) { | 320 | getAvatarView: function (avatar) { |
| 313 | return getFileAccessHttpUrl(avatar) | 321 | return getFileAccessHttpUrl(avatar) |
| 314 | }, | 322 | }, |
juvenile-prosecution-vue/src/views/system/modules/DepartModal.vue
| @@ -19,39 +19,23 @@ | @@ -19,39 +19,23 @@ | ||
| 19 | prop="departName" | 19 | prop="departName" |
| 20 | :hidden="false" | 20 | :hidden="false" |
| 21 | hasFeedback > | 21 | hasFeedback > |
| 22 | - <a-input id="departName" placeholder="请输入机构/部门名称" v-model="model.departName"/> | 22 | + <a-input id="departName" placeholder="请输入机构名称" v-model="model.departName"/> |
| 23 | </a-form-model-item> | 23 | </a-form-model-item> |
| 24 | - <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" :hidden="seen" label="上级部门" hasFeedback> | 24 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" :hidden="seen" label="上级机构" hasFeedback> |
| 25 | <a-tree-select | 25 | <a-tree-select |
| 26 | style="width:100%" | 26 | style="width:100%" |
| 27 | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" | 27 | :dropdownStyle="{maxHeight:'200px',overflow:'auto'}" |
| 28 | :treeData="departTree" | 28 | :treeData="departTree" |
| 29 | v-model="model.parentId" | 29 | v-model="model.parentId" |
| 30 | - placeholder="请选择上级部门" | 30 | + placeholder="请选择上级机构" |
| 31 | :disabled="condition"> | 31 | :disabled="condition"> |
| 32 | </a-tree-select> | 32 | </a-tree-select> |
| 33 | </a-form-model-item> | 33 | </a-form-model-item> |
| 34 | - <a-form-model-item | ||
| 35 | - :labelCol="labelCol" | ||
| 36 | - :wrapperCol="wrapperCol" | ||
| 37 | - label="机构类型"> | ||
| 38 | - <template v-if="seen"> | ||
| 39 | - <a-radio-group v-model="model.orgCategory" placeholder="请选择机构类型"> | ||
| 40 | - <a-radio value="1"> | ||
| 41 | - 公司 | ||
| 42 | - </a-radio> | ||
| 43 | - </a-radio-group> | ||
| 44 | - </template> | ||
| 45 | - <template v-else> | ||
| 46 | - <a-radio-group v-model="model.orgCategory" placeholder="请选择机构类型"> | ||
| 47 | - <a-radio value="2"> | ||
| 48 | - 部门 | ||
| 49 | - </a-radio> | ||
| 50 | - <a-radio value="3"> | ||
| 51 | - 岗位 | ||
| 52 | - </a-radio> | ||
| 53 | - </a-radio-group> | ||
| 54 | - </template> | 34 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="abbreviation" label="常用名称"> |
| 35 | + <a-textarea placeholder="请输入常用名称,多个','分割" v-model="model.abbreviation" /> | ||
| 36 | + </a-form-model-item> | ||
| 37 | + <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="常用编码"> | ||
| 38 | + <a-textarea placeholder="请输入常用编码,多个','分割" v-model="model.common_code"/> | ||
| 55 | </a-form-model-item> | 39 | </a-form-model-item> |
| 56 | <a-form-model-item | 40 | <a-form-model-item |
| 57 | :labelCol="labelCol" | 41 | :labelCol="labelCol" |
| @@ -127,10 +111,9 @@ | @@ -127,10 +111,9 @@ | ||
| 127 | 111 | ||
| 128 | confirmLoading: false, | 112 | confirmLoading: false, |
| 129 | validatorRules:{ | 113 | validatorRules:{ |
| 130 | - departName:[{ required: true, message: '请输入机构/部门名称!' }], | 114 | + departName:[{ required: true, message: '请输入机构名称!' }], |
| 131 | orgCode:[{ required: true, message: '请输入机构编码!' }], | 115 | orgCode:[{ required: true, message: '请输入机构编码!' }], |
| 132 | mobile: [{validator:this.validateMobile}], | 116 | mobile: [{validator:this.validateMobile}], |
| 133 | - orgCategory:[{required: true, message: '请输入机构类型!'}] | ||
| 134 | }, | 117 | }, |
| 135 | url: { | 118 | url: { |
| 136 | add: "/sys/sysDepart/add", | 119 | add: "/sys/sysDepart/add", |