Browse Source

修改需求

v6
Chendy 1 year ago
parent
commit
f143c2b286
  1. 13
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html
  2. 36
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementRegistrationServiceImpl.java

13
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html

@ -169,7 +169,6 @@
<li id="a" th:fragment="a"> <li id="a" th:fragment="a">
<p><span id="timeString"></span></p> <p><span id="timeString"></span></p>
<p><label th:text="涉企执法总数"></label><b th:text="${total}"></b></p> <p><label th:text="涉企执法总数"></label><b th:text="${total}"></b></p>
<p><label th:text="联合执法"></label><b th:text="${unite}"></b><span th:text="占比"></span><b th:text="${uniteDouble}"></b></p>
<p><label th:text="${check}"></label><b th:text="${checkNumber}"></b><span th:text="占比"></span><b th:text="${checkDouble}"></b></p> <p><label th:text="${check}"></label><b th:text="${checkNumber}"></b><span th:text="占比"></span><b th:text="${checkDouble}"></b></p>
</li> </li>
</ul> </ul>
@ -397,18 +396,6 @@
field : 'enforcementTime', field : 'enforcementTime',
title : '执法时间' title : '执法时间'
}, },
{
field : 'uniteCheck',
title : '联合执法',
formatter:function (value,row,index) {
if(value !=null && value!=''){
/*return "<span>是</span>";*/
return '<span style="cursor: pointer;color: blue;" ONCLICK="selectUnite(\'' + index + '\')">'+'是'+'</span>';
}else{
return "<span>否</span>";
}
}
},
{ {
field : 'uniteCheck', field : 'uniteCheck',
title : '受委托', title : '受委托',

36
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementRegistrationServiceImpl.java

@ -889,7 +889,7 @@ public class EnforcementRegistrationServiceImpl implements IEnforcementRegistrat
styleRow2.setBorderLeft(BorderStyle.THIN); styleRow2.setBorderLeft(BorderStyle.THIN);
styleRow2.setFont(font2); styleRow2.setFont(font2);
//设置表头 //设置表头
String[] headerList = {"被执法企业名称","企业所属区域", "企业所属街道", "执法单位", "执法人员","执法事项","执法时间","联合执法","行政执法类别","任务来源","是否扫码","未扫码原因","是否投诉"}; String[] headerList = {"被执法企业名称","企业所属区域", "企业所属街道", "执法单位", "执法人员","执法事项","执法时间","行政执法类别","任务来源","是否扫码","未扫码原因","是否投诉"};
HSSFRow headerRow = sheet.createRow(0); HSSFRow headerRow = sheet.createRow(0);
for (int i = 0; i < headerList.length; i++) { for (int i = 0; i < headerList.length; i++) {
HSSFCell cell = headerRow.createCell(i); HSSFCell cell = headerRow.createCell(i);
@ -929,35 +929,35 @@ public class EnforcementRegistrationServiceImpl implements IEnforcementRegistrat
cell12.setCellValue(e.getCreateTime()); cell12.setCellValue(e.getCreateTime());
cell12.setCellStyle(dateStyle); cell12.setCellStyle(dateStyle);
// HSSFCell cell7 = row.createCell(7);
// if(e.getUniteCheck()!=null&&!"".equals(e.getUniteCheck())){
// cell7.setCellValue("是");
// }else {
// cell7.setCellValue("否");
// }
HSSFCell cell7 = row.createCell(7); HSSFCell cell7 = row.createCell(7);
if(e.getUniteCheck()!=null&&!"".equals(e.getUniteCheck())){
cell7.setCellValue("是");
}else {
cell7.setCellValue("否");
}
HSSFCell cell8 = row.createCell(8);
if(lawMap.containsKey(e.getLawEnforceCategory())){ if(lawMap.containsKey(e.getLawEnforceCategory())){
cell8.setCellValue(lawMap.get(e.getLawEnforceCategory()).getDictLabel()); cell7.setCellValue(lawMap.get(e.getLawEnforceCategory()).getDictLabel());
} }
HSSFCell cell9 = row.createCell(9); HSSFCell cell8 = row.createCell(8);
if(dictDataMap1.containsKey(e.getCheckCategory())){ if(dictDataMap1.containsKey(e.getCheckCategory())){
cell9.setCellValue(dictDataMap1.get(e.getCheckCategory()).getDictLabel()); cell8.setCellValue(dictDataMap1.get(e.getCheckCategory()).getDictLabel());
} }
HSSFCell cell10 = row.createCell(10); HSSFCell cell9 = row.createCell(9);
if(e.getCheckCss()!=null&&!"".equals(e.getCheckCss())){ if(e.getCheckCss()!=null&&!"".equals(e.getCheckCss())){
cell10.setCellValue("否"); cell9.setCellValue("否");
}else { }else {
cell10.setCellValue("是"); cell9.setCellValue("是");
} }
HSSFCell cell11 = row.createCell(11); HSSFCell cell10 = row.createCell(10);
if(dictDataMap2.containsKey(e.getCheckCss())){ if(dictDataMap2.containsKey(e.getCheckCss())){
cell11.setCellValue(dictDataMap2.get(e.getCheckCss()).getDictLabel()); cell10.setCellValue(dictDataMap2.get(e.getCheckCss()).getDictLabel());
} }
HSSFCell cell13 = row.createCell(12); HSSFCell cell11 = row.createCell(11);
if(e.getIsComplaint()==0){ if(e.getIsComplaint()==0){
cell13.setCellValue("否"); cell11.setCellValue("否");
}else { }else {
cell13.setCellValue("是"); cell11.setCellValue("是");
} }
} }

Loading…
Cancel
Save