Commit 8312c0f74b27ab394c3bb70862dccabe993af404

Authored by wxy
1 parent 1d604b47

未成年人查询过滤

juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/AnalyzeController.java
@@ -70,10 +70,10 @@ public class AnalyzeController extends JeecgController<GaDemographic, IGaDemogra @@ -70,10 +70,10 @@ public class AnalyzeController extends JeecgController<GaDemographic, IGaDemogra
70 @Resource 70 @Resource
71 private ISysDictService dictService; 71 private ISysDictService dictService;
72 72
73 -// private final List<Family> resultFamily = new ArrayList<>();//分析后家庭的数据  
74 - private final List<Minor> resultMinor = new ArrayList<>();//分析后未成年人的信息  
75 - private final List<MrSchool> resultSchools = new ArrayList<>();//分析后学籍的信息  
76 - private final Set<String> testIdCards = new HashSet<>();//存储户号 73 +// private List<Family> resultFamily = new ArrayList<>();//分析后家庭的数据
  74 + private List<Minor> resultMinor = new ArrayList<>();//分析后未成年人的信息
  75 + private List<MrSchool> resultSchools = new ArrayList<>();//分析后学籍的信息
  76 + private Set<String> testIdCards = new HashSet<>();//存储户号
77 private static final int corePoolSize = Runtime.getRuntime().availableProcessors(); 77 private static final int corePoolSize = Runtime.getRuntime().availableProcessors();
78 private static final ThreadPoolExecutor executor = new ThreadPoolExecutor(corePoolSize, corePoolSize + 1, 10L, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(1000)); 78 private static final ThreadPoolExecutor executor = new ThreadPoolExecutor(corePoolSize, corePoolSize + 1, 10L, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(1000));
79 private Integer random_number=000000; 79 private Integer random_number=000000;
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/MinorController.java
@@ -107,7 +107,11 @@ public class MinorController { @@ -107,7 +107,11 @@ public class MinorController {
107 if(oConvertUtils.isNotEmpty(sysUser) && oConvertUtils.isNotEmpty(sysUser.getOrgCode())){ 107 if(oConvertUtils.isNotEmpty(sysUser) && oConvertUtils.isNotEmpty(sysUser.getOrgCode())){
108 sysOrgCode=sysUser.getOrgCode(); 108 sysOrgCode=sysUser.getOrgCode();
109 } 109 }
110 - IPage<Minor> pageList = minorService.queryPageList(page,minor.getName(),sysOrgCode); 110 + String isReason="";
  111 + if(oConvertUtils.isNotEmpty(minor) && oConvertUtils.isNotEmpty(minor.getIsReason()) && minor.getIsReason().equals("1")){
  112 + isReason=minor.getIsReason();
  113 + }
  114 + IPage<Minor> pageList = minorService.queryPageList(page,minor.getName(),sysOrgCode,isReason);
111 return Result.OK(pageList); 115 return Result.OK(pageList);
112 } 116 }
113 117
@@ -230,7 +234,7 @@ public class MinorController { @@ -230,7 +234,7 @@ public class MinorController {
230 if(oConvertUtils.isNotEmpty(sysUser) && oConvertUtils.isNotEmpty(sysUser.getOrgCode())){ 234 if(oConvertUtils.isNotEmpty(sysUser) && oConvertUtils.isNotEmpty(sysUser.getOrgCode())){
231 sysOrgCode=sysUser.getOrgCode(); 235 sysOrgCode=sysUser.getOrgCode();
232 } 236 }
233 - IPage<Minor> pageList = minorService.queryPageList(page,minor.getName(),sysOrgCode); 237 + IPage<Minor> pageList = minorService.queryPageList(page,minor.getName(),sysOrgCode,minor.getIsReason());
234 //Step.2 获取导出数据 238 //Step.2 获取导出数据
235 List<Minor> queryList = pageList.getRecords(); 239 List<Minor> queryList = pageList.getRecords();
236 // 过滤选中数据 240 // 过滤选中数据
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/Family.java
@@ -77,7 +77,6 @@ public class Family implements Serializable { @@ -77,7 +77,6 @@ public class Family implements Serializable {
77 @ApiModelProperty(value = "与户主的关系") 77 @ApiModelProperty(value = "与户主的关系")
78 private String relation; 78 private String relation;
79 /**行政区划*/ 79 /**行政区划*/
80 - @Excel(name = "行政区划", width = 25)  
81 @ApiModelProperty(value = "行政区划") 80 @ApiModelProperty(value = "行政区划")
82 private String division; 81 private String division;
83 /**现住址*/ 82 /**现住址*/
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/entity/Minor.java
@@ -131,7 +131,6 @@ public class Minor implements Serializable { @@ -131,7 +131,6 @@ public class Minor implements Serializable {
131 @ApiModelProperty(value = "备注") 131 @ApiModelProperty(value = "备注")
132 private String remark; 132 private String remark;
133 133
134 - @Excel(name = "行政区划", width = 15)  
135 @ApiModelProperty(value = "行政区划") 134 @ApiModelProperty(value = "行政区划")
136 private String division; 135 private String division;
137 136
@@ -140,4 +139,7 @@ public class Minor implements Serializable { @@ -140,4 +139,7 @@ public class Minor implements Serializable {
140 139
141 @TableField(exist = false) 140 @TableField(exist = false)
142 private String age; 141 private String age;
  142 +
  143 + @TableField(exist = false)
  144 + private String isReason;
143 } 145 }
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/MinorMapper.java
@@ -26,7 +26,7 @@ public interface MinorMapper extends BaseMapper&lt;Minor&gt; { @@ -26,7 +26,7 @@ public interface MinorMapper extends BaseMapper&lt;Minor&gt; {
26 * @param page 26 * @param page
27 * @return 27 * @return
28 */ 28 */
29 - IPage<Minor> queryPageList(Page page,@Param("name") String name,@Param("sysOrgCode") String sysOrgCode); 29 + IPage<Minor> queryPageList(Page page,@Param("name") String name,@Param("sysOrgCode") String sysOrgCode,@Param("isReason")String isReason);
30 30
31 /** 31 /**
32 * 根据身份证号查询总数 32 * 根据身份证号查询总数
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/mapper/xml/MinorMapper.xml
@@ -43,6 +43,9 @@ @@ -43,6 +43,9 @@
43 <if test="sysOrgCode!=null and sysOrgCode!=''"> 43 <if test="sysOrgCode!=null and sysOrgCode!=''">
44 and sys_org_code like concat(#{sysOrgCode},'%') 44 and sys_org_code like concat(#{sysOrgCode},'%')
45 </if> 45 </if>
  46 + <if test="isReason!=null and isReason!=''">
  47 + and reason !=''
  48 + </if>
46 ORDER BY create_time desc 49 ORDER BY create_time desc
47 </select> 50 </select>
48 51
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/IMinorService.java
@@ -46,7 +46,7 @@ public interface IMinorService extends IService&lt;Minor&gt; { @@ -46,7 +46,7 @@ public interface IMinorService extends IService&lt;Minor&gt; {
46 46
47 public Integer insertBatch(List<Minor> list); 47 public Integer insertBatch(List<Minor> list);
48 48
49 - IPage<Minor> queryPageList(Page<Minor> page,String name,String sysOrgCode); 49 + IPage<Minor> queryPageList(Page<Minor> page,String name,String sysOrgCode,String isReason);
50 50
51 /** 51 /**
52 * 添加多对多 52 * 添加多对多
juvenile-prosecution-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/MinorServiceImpl.java
@@ -167,8 +167,8 @@ public class MinorServiceImpl extends ServiceImpl&lt;MinorMapper, Minor&gt; implements @@ -167,8 +167,8 @@ public class MinorServiceImpl extends ServiceImpl&lt;MinorMapper, Minor&gt; implements
167 } 167 }
168 168
169 @Override 169 @Override
170 - public IPage<Minor> queryPageList(Page<Minor> page,String name,String sysOrgCode) {  
171 - return minorMapper.queryPageList(page,name,sysOrgCode); 170 + public IPage<Minor> queryPageList(Page<Minor> page,String name,String sysOrgCode,String isReason) {
  171 + return minorMapper.queryPageList(page,name,sysOrgCode,isReason);
172 } 172 }
173 173
174 174
@@ -209,12 +209,13 @@ public class MinorServiceImpl extends ServiceImpl&lt;MinorMapper, Minor&gt; implements @@ -209,12 +209,13 @@ public class MinorServiceImpl extends ServiceImpl&lt;MinorMapper, Minor&gt; implements
209 Family family=houseFamily.get(houseNum); 209 Family family=houseFamily.get(houseNum);
210 if(oConvertUtils.isNotEmpty(family) && oConvertUtils.isNotEmpty(family.getSysOrgCode())){ 210 if(oConvertUtils.isNotEmpty(family) && oConvertUtils.isNotEmpty(family.getSysOrgCode())){
211 minor.setSysOrgCode(family.getSysOrgCode()); 211 minor.setSysOrgCode(family.getSysOrgCode());
  212 + String reason="家庭成员有犯罪记录";
212 if(oConvertUtils.isNotEmpty(minor.getReason())){ 213 if(oConvertUtils.isNotEmpty(minor.getReason())){
213 - if(!minor.getReason().contains(String.valueOf(Minor.ATTENTION_REASON_CRIME))){  
214 - minor.setReason(minor.getReason()+","+Minor.ATTENTION_REASON_CRIME); 214 + if(!minor.getReason().contains(reason)){
  215 + minor.setReason(minor.getReason()+","+reason);
215 } 216 }
216 }else { 217 }else {
217 - minor.setReason(String.valueOf(Minor.ATTENTION_REASON_CRIME)); 218 + minor.setReason(reason);
218 } 219 }
219 }else { 220 }else {
220 minor.setSysOrgCode(finalSysOrgCode); 221 minor.setSysOrgCode(finalSysOrgCode);
juvenile-prosecution-vue/src/views/business/MinorList.vue
@@ -9,6 +9,14 @@ @@ -9,6 +9,14 @@
9 <a-input placeholder="输入姓名查询" v-model="queryParam.name"></a-input> 9 <a-input placeholder="输入姓名查询" v-model="queryParam.name"></a-input>
10 </a-form-item> 10 </a-form-item>
11 </a-col> 11 </a-col>
  12 + <a-col :md="6" :sm="12">
  13 + <a-form-item label="是否重点关注">
  14 + <a-select v-model="queryParam.isReason" placeholder="请选择" >
  15 + <a-select-option value="1">是</a-select-option>
  16 + <a-select-option value="2">否</a-select-option>
  17 + </a-select>
  18 + </a-form-item>
  19 + </a-col>
12 <a-col :md="6" :sm="8"> 20 <a-col :md="6" :sm="8">
13 <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> 21 <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
14 <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> 22 <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>