修改上报逻辑等

This commit is contained in:
wans 2021-07-04 12:53:58 +08:00
parent 12484e067b
commit 3e23958fcc
6 changed files with 31 additions and 38 deletions

View File

@ -47,7 +47,7 @@ public class ReportCaseAutoAppServiceImpl extends BaseService implements IReport
params.put("caseReporter", appToken.getAppTokenUser().getName()); params.put("caseReporter", appToken.getAppTokenUser().getName());
setSaveInfo(token, params); setSaveInfo(token, params);
//2020-12-22 添加案件分类wans //2020-12-22 添加案件分类wans
// caseFlowType 1 职能部门案件 2 街镇案件 3 其他类型案件 // caseFlowType 1 职能部门案件 2 街镇案件
// caseFlowForward 转发状态 0未转发 1转发 2回退 // caseFlowForward 转发状态 0未转发 1转发 2回退
String caseFlowType = StringUtils.isEmpty(params.get("caseFlowType"))? "" : params.get("caseFlowType").toString(); String caseFlowType = StringUtils.isEmpty(params.get("caseFlowType"))? "" : params.get("caseFlowType").toString();
params.put("caseFlowType",caseFlowType); params.put("caseFlowType",caseFlowType);

View File

@ -227,8 +227,6 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer
page.getParams().put("reporterId", appTokenUser.getId()); page.getParams().put("reporterId", appTokenUser.getId());
} }
PageHelper.startPage(page.getPage(), page.getRows()); PageHelper.startPage(page.getPage(), page.getRows());
//标记只查询只能部门案件
page.getParams().put("caseFlowType", "normal");
List<ReportCaseDTO> reportCaseDTOs = reportCaseDao.listReportCase(page.getParams()); List<ReportCaseDTO> reportCaseDTOs = reportCaseDao.listReportCase(page.getParams());
PageInfo<ReportCaseDTO> pageInfo = new PageInfo<>(reportCaseDTOs); PageInfo<ReportCaseDTO> pageInfo = new PageInfo<>(reportCaseDTOs);
return new SuccessResultList<>(reportCaseDTOs, pageInfo.getPageNum(), pageInfo.getTotal()); return new SuccessResultList<>(reportCaseDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
@ -482,6 +480,17 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer
LOG.debug("新增案件下派信息"); LOG.debug("新增案件下派信息");
params.put("isHandle", 0); params.put("isHandle", 0);
params.put("assignUserName", securityComponent.getCurrentUser().getUserName()); params.put("assignUserName", securityComponent.getCurrentUser().getUserName());
/**
* 2021-07-04 wangshuai
* 因handle_user_id为communitybossid
* 现在需要修改为user_id
*/
String handleUserId = params.get("handleUserId").toString();
Map<String, Object> queryMap = getHashMap(8);
queryMap.put("communityBossId",handleUserId);
CommunityBossDTO communityBoss = communityBossService.getCommunityBoss(queryMap);
params.put("handleUserId", communityBoss.getCommunityBossUserId());
params.put("handleUserName", communityBoss.getCommunityBossName());
setSaveInfo(params); setSaveInfo(params);
reportCaseDao.saveReportCaseAssign(params); reportCaseDao.saveReportCaseAssign(params);

View File

@ -1,6 +1,6 @@
server: server:
port: 8083 port: 8083
url: http://127.0.0.1:8083/servicecity url: http://192.168.0.109:8083/servicecity
title: 稀土高新区社会治理综合管理平台 title: 稀土高新区社会治理综合管理平台
servlet: servlet:
context-path: /servicecity context-path: /servicecity
@ -25,13 +25,13 @@ spring:
datasource: datasource:
druid: druid:
# url: jdbc:mysql://49.233.36.36:6688/db_cloud_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false # url: jdbc:mysql://49.233.36.36:6688/db_cloud_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
url: jdbc:mysql://127.0.0.1:3306/db_cloud_v2_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false url: jdbc:mysql://127.0.0.1:3306/db_cloud_servicecity?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false
db-type: mysql db-type: mysql
driver-class-name: com.mysql.jdbc.Driver driver-class-name: com.mysql.jdbc.Driver
# username: wanggeng # username: wanggeng
username: root username: root
# password: WenG>2132997 # password: WenG>2132997
password: root password: 123456
initial-size: 2 initial-size: 2
min-idle: 2 min-idle: 2
max-active: 10 max-active: 10
@ -73,7 +73,7 @@ swagger:
# 文件 # 文件
file: file:
uploadPath: C:\Users\wenc0\Desktop\UploadFiles\ uploadPath: D:\ideaWorkspace\uploadfiles\pianzhang
imageTypes: png,jpg,jpeg,gif,blob imageTypes: png,jpg,jpeg,gif,blob
videoTypes: mp4,rmvb videoTypes: mp4,rmvb
audioTypes: mp3,wmv,wav audioTypes: mp3,wmv,wav
@ -82,7 +82,7 @@ file:
# 安全 # 安全
security: security:
oauth2: oauth2:
oauth-server: http://127.0.0.1:7001/usercenter oauth-server: http://219.147.99.164:8082/usercenter
oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url} oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url}
client: client:
client-id: c024a89b35b04d4d8b5b4ea4d66a8acb client-id: c024a89b35b04d4d8b5b4ea4d66a8acb
@ -99,7 +99,7 @@ security:
check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key check-token-access: ${security.oauth2.oauth-server}/oauth_client/token_key
api-path: api-path:
user-center: http://127.0.0.1:7001/usercenter user-center: http://219.147.99.164:8082/usercenter
# 访问控制 # 访问控制
access-control: access-control:
@ -134,6 +134,7 @@ access-control:
# 日志 # 日志
logging: logging:
file: D:\ideaWorkspace\logs\pianzhang\pianzhang-logs.log
level: level:
root: error root: error
com.cm: debug com.cm: debug

View File

@ -324,7 +324,7 @@
</if> </if>
<!-- 查询镇街案件 --> <!-- 查询镇街案件 -->
<if test="caseFlowType == 'other'"> <if test="caseFlowType == 'other'">
AND (t1.case_flow_type = '2' OR t1.case_flow_type = '3') AND (t1.case_flow_type = '2')
AND (t1.case_flow_forward = '0' OR t1.case_flow_forward = '2') AND (t1.case_flow_forward = '0' OR t1.case_flow_forward = '2')
</if> </if>
ORDER BY t1.gmt_create DESC ORDER BY t1.gmt_create DESC
@ -1224,31 +1224,16 @@
t3.handle_opinion, t3.handle_opinion,
t3.handle_photos, t3.handle_photos,
LEFT(t3.gmt_create, 19) handle_date LEFT(t3.gmt_create, 19) handle_date
FROM FROM city_report_case t1
city_report_case t1 LEFT JOIN city_report_case_assign t2 ON t1.report_case_id = t2.case_id AND t2.is_delete = 0
LEFT JOIN LEFT JOIN city_report_case_handle t3 ON t1.report_case_id = t3.case_id AND t3.is_delete = 0
city_report_case_assign t2
ON
t1.report_case_id = t2.case_id
AND
t2.is_delete = 0
LEFT JOIN
city_report_case_handle t3
ON
t1.report_case_id = t3.case_id
AND
t3.is_delete = 0
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
AND ( AND (
( (
t1.case_status = 3 t1.case_status = 3 AND t2.handle_user_id = #{userId}
AND
t2.handle_user_id = #{userId}
) OR ( ) OR (
t1.case_status = 4 t1.case_status = 4 AND t1.creator = #{userId}
AND
t1.creator = #{userId}
) )
) )
ORDER BY ORDER BY

View File

@ -364,7 +364,7 @@
area: ['1200px', '700px'], area: ['1200px', '700px'],
shadeClose: true, shadeClose: true,
anim: 2, anim: 2,
content: top.restAjax.path('route/specialReportcase/show.html?reportCaseId={id}', content: top.restAjax.path('route/specialreportcase/show.html?reportCaseId={id}',
[obj.data.reportCaseId]), [obj.data.reportCaseId]),
end: function() { end: function() {
} }

View File

@ -24,7 +24,7 @@ public class SystemCityApplicationTests {
@Test @Test
public void importCommunityBoss() throws SQLException, ClassNotFoundException { public void importCommunityBoss() throws SQLException, ClassNotFoundException {
Class.forName("com.mysql.jdbc.Driver"); Class.forName("com.mysql.jdbc.Driver");
Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/db_cloud_v2_city?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false", "root", "root"); Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/db_cloud_servicecity?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false", "root", "123456");
// 所有用户 // 所有用户
String sql = "SELECT * FROM sys_user WHERE is_delete = '0'"; String sql = "SELECT * FROM sys_user WHERE is_delete = '0'";
PreparedStatement preparedStatement = connection.prepareStatement(sql); PreparedStatement preparedStatement = connection.prepareStatement(sql);
@ -46,11 +46,9 @@ public class SystemCityApplicationTests {
List<CommunityBossExcel> noLeaderUsernameList = new ArrayList<>(); List<CommunityBossExcel> noLeaderUsernameList = new ArrayList<>();
List<CommunityBossExcel> noAreaList = new ArrayList<>(); List<CommunityBossExcel> noAreaList = new ArrayList<>();
List<CommunityBossExcel> noCommunityList = new ArrayList<>(); List<CommunityBossExcel> noCommunityList = new ArrayList<>();
String wsqExcel = "H:\\工作资料\\项目\\文档资料\\包头-网格长制城市管理服务平台\\2期\\网格信息(新)\\万水泉镇网格员模板1(2)(1).xlsx"; String wsqExcel = "D:\\腾狮科技\\城市综合治理操作视频\\1.xlsx";
String xtlExcel = "H:\\工作资料\\项目\\文档资料\\包头-网格长制城市管理服务平台\\2期\\网格信息(新)\\网格划分信息(稀土路街道)(1)(3)(1).xlsx"; String xtlExcel = "D:\\腾狮科技\\城市综合治理操作视频\\2.xlsx";
String mxExcel = "H:\\工作资料\\项目\\文档资料\\包头-网格长制城市管理服务平台\\2期\\网格信息(新)\\网格划分信息6.16(民馨路街道).xlsx"; EasyExcel.read(new File(xtlExcel), CommunityBossExcel.class, new CommunityBossExcelListener() {
String allExcel = "H:\\工作资料\\项目\\文档资料\\包头-网格长制城市管理服务平台\\2期\\网格信息(新)\\全部网格员.xlsx";
EasyExcel.read(new File(allExcel), CommunityBossExcel.class, new CommunityBossExcelListener() {
@Override @Override
public void listExcel(List<CommunityBossExcel> communityBossExcels) throws Exception { public void listExcel(List<CommunityBossExcel> communityBossExcels) throws Exception {
for (CommunityBossExcel communityBossExcel : communityBossExcels) { for (CommunityBossExcel communityBossExcel : communityBossExcels) {
@ -216,7 +214,7 @@ public class SystemCityApplicationTests {
} }
} }
} }
}).headRowNumber(2).sheet(0).doRead(); }).headRowNumber(1).sheet(0).doRead();
System.out.println("无用户名网格长"); System.out.println("无用户名网格长");
noUsernameList.forEach(System.out::println); noUsernameList.forEach(System.out::println);
System.out.println("无领导用户名网格长"); System.out.println("无领导用户名网格长");