Browse Source

提交执法投诉 检查时间,执法部门选择和回显

v3
chenrui 2 years ago
parent
commit
62a79612f8
  1. 3
      lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppThirdLoginController.java
  2. 71
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application-druidDev.yml
  3. 71
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application-druidPro.yml
  4. 38
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java
  5. 11
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/utils/HttpUtil.java
  6. 12
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseComplaintMapper.xml

3
lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppThirdLoginController.java

@ -246,6 +246,7 @@ public class AppThirdLoginController {
@ResponseBody @ResponseBody
public ZDResponse siqLogin(@RequestBody SiqLogin siqLogin){ public ZDResponse siqLogin(@RequestBody SiqLogin siqLogin){
Map<String, String> params = new HashMap<>(); Map<String, String> params = new HashMap<>();
log.info("获取深i企登录用户code:{}",siqLogin.getCode());
String secret = IdCardCryptoUtil.symmetricEncryptIdCard(secretKey, siqLogin.getCode()); String secret = IdCardCryptoUtil.symmetricEncryptIdCard(secretKey, siqLogin.getCode());
params.put("accessKeySign",secret); params.put("accessKeySign",secret);
params.put("appCode",code); params.put("appCode",code);
@ -343,7 +344,7 @@ public class AppThirdLoginController {
@PostMapping("/sendMessage") @PostMapping("/sendMessage")
@ResponseBody @ResponseBody
public void sendMessage(String phone,String content) throws Exception { public void sendMessage(String phone,String content) throws Exception {
zwSmsClient.sendMessage(phone,content); ZwSmsClient.sendMessage(phone,content);
} }
@GetMapping("/queryByIdCard") @GetMapping("/queryByIdCard")

71
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application-druidDev.yml

@ -0,0 +1,71 @@
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://146.56.223.227:3306/zfjd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: ENC(XZ0cNb5wfN9GkTEq+SgVNA==)
password: ENC(+bxT7W35PF0k/5FZBYV0uwFLN+I9kZsF)
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username:
login-password:
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# MybatisPlus
mybatis-plus:
config-location: classpath:mapper/mybatis-config.xml
mapper-locations: classpath*:mapper/**/*Mapper.xml
typeAliasesPackage: com.zdxt.**.domain
largeScreenConfig: DatasourcesCofig.xml

71
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application-druidPro.yml

@ -0,0 +1,71 @@
# 数据源配置
spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: ENC(v3oHIZvpj5ZRTcLc41PnMXUVZbXK7dp+IKwsOlJ2bRUf5E5bagEjlB3qNwT7KiAnX3+ugTUeKWt1cVPh1iVLlQE1ELVNILu6k0X4/uH9ao53b4pLlyJsim67HozUikmKDQ/wDMxVUSkBW21g6jcKeEzXgSphxUQvPz/L8KJzzHJvkpDarGwYUZH+sV1VnSkHCHpPqW9wkbD/AN8K+iNiLw==)
username: ENC(E5mY10bkGFBgN1Pljgzggg==)
password: ENC(oqD1IasQS57qOeOHFtBdAAemGwJ2I7BV)
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username:
login-password:
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# MybatisPlus
mybatis-plus:
config-location: classpath:mapper/mybatis-config.xml
mapper-locations: classpath*:mapper/**/*Mapper.xml
typeAliasesPackage: com.zdxt.**.domain
largeScreenConfig: DatasourcesCofig.xml

38
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java

@ -57,6 +57,27 @@ public class EnterpriseComplaint extends BaseDomain
*/ */
private String evaluateTime; private String evaluateTime;
/**
* 执法时间 - 入企不扫码 使用
*/
private String enforcementTime;
/**
* 入企不扫码投诉-投诉部门 多个逗号隔开
*/
private String complaintDepartments;
/**
* 入企不扫码投诉-投诉部门ID 多个逗号隔开
*/
private String complaintDepartmentIds;
public String getEnforcementTime() {
return enforcementTime;
}
public void setEnforcementTime(String enforcementTime) {
this.enforcementTime = enforcementTime;
}
public String getProWoCode() { public String getProWoCode() {
return proWoCode; return proWoCode;
@ -296,6 +317,23 @@ public class EnterpriseComplaint extends BaseDomain
this.mssqOrderFlows = mssqOrderFlows; this.mssqOrderFlows = mssqOrderFlows;
} }
public String getComplaintDepartments() {
return complaintDepartments;
}
public void setComplaintDepartments(String complaintDepartments) {
this.complaintDepartments = complaintDepartments;
}
public String getComplaintDepartmentIds() {
return complaintDepartmentIds;
}
public void setComplaintDepartmentIds(String complaintDepartmentIds) {
this.complaintDepartmentIds = complaintDepartmentIds;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

11
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/utils/HttpUtil.java

@ -42,6 +42,7 @@ import java.net.HttpURLConnection;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.net.URLConnection; import java.net.URLConnection;
import java.nio.charset.StandardCharsets;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -186,17 +187,15 @@ public class HttpUtil {
// 对value进行相应的操作 // 对value进行相应的操作
connection.setRequestProperty(entry.getKey(), String.valueOf(entry.getValue())); connection.setRequestProperty(entry.getKey(), String.valueOf(entry.getValue()));
} }
// connection.setRequestProperty("x-auth-channel",IdUtil.simpleUUID());
// connection.setRequestProperty("x-auth-app-code","zfjdm");
connection.setDoOutput(true); connection.setDoOutput(true);
DataOutputStream out = new DataOutputStream(connection.getOutputStream()); DataOutputStream out = new DataOutputStream(connection.getOutputStream());
// out.writeBytes(params); // out.writeBytes(params);
out.write(params.getBytes("utf-8")); //解决中文乱码 out.write(params.getBytes(StandardCharsets.UTF_8)); //解决中文乱码
out.flush(); out.flush();
out.close(); out.close();
int responseCode = connection.getResponseCode(); int responseCode = connection.getResponseCode();
if(responseCode == HttpURLConnection.HTTP_OK){ if(responseCode == HttpURLConnection.HTTP_OK){
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8")); BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream(), StandardCharsets.UTF_8));
String inputLine; String inputLine;
StringBuffer response = new StringBuffer(); StringBuffer response = new StringBuffer();
@ -204,10 +203,12 @@ public class HttpUtil {
response.append(inputLine); response.append(inputLine);
} }
in.close(); in.close();
System.out.println(new String(response.toString())); System.out.println(response.toString());
System.out.println("请求成功"); System.out.println("请求成功");
return response.toString(); return response.toString();
}else{ }else{
log.error("深i企接口获取用户信息接口调用失败,失败码:{}",responseCode);
// BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream(), "UTF-8"));
System.out.println("请求失败"); System.out.println("请求失败");
} }
} catch (Exception e) { } catch (Exception e) {

12
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseComplaintMapper.xml

@ -20,12 +20,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="enterpriseName" column="enterprise_name" /> <result property="enterpriseName" column="enterprise_name" />
<result property="status" column="status" /> <result property="status" column="status" />
<result property="evaluateTime" column="evaluate_time" /> <result property="evaluateTime" column="evaluate_time" />
<result property="complaintDepartments" column="complaint_departments" />
<result property="complaintDepartmentIds" column="complaint_department_ids" />
<result property="enforcementTime" column="enforcement_time" />
</resultMap> </resultMap>
<sql id="selectEnterpriseComplaintVo"> <sql id="selectEnterpriseComplaintVo">
select id, rel_id, enforce_type, problem_description, enterprise_address, linkman, select id, rel_id, enforce_type, problem_description, enterprise_address, linkman,
linkman_tel, com_or_opi, authorization, create_time, pro_wo_code,enterprise_number, linkman_tel, com_or_opi, authorization, create_time, pro_wo_code,enterprise_number,
enterprise_name,status,evaluate_time enterprise_name,status,evaluate_time,complaint_departments,complaint_department_ids,
enforcement_time
from enterprise_complaint from enterprise_complaint
</sql> </sql>
@ -69,6 +73,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="proWoCode != null and proWoCode != ''">pro_wo_code,</if> <if test="proWoCode != null and proWoCode != ''">pro_wo_code,</if>
<if test="enterpriseName != null and enterpriseName != ''">enterprise_name,</if> <if test="enterpriseName != null and enterpriseName != ''">enterprise_name,</if>
<if test="enterpriseNumber != null and enterpriseNumber != ''">enterprise_number,</if> <if test="enterpriseNumber != null and enterpriseNumber != ''">enterprise_number,</if>
<if test="complaintDepartments != null and complaintDepartments != ''">complaint_departments,</if>
<if test="complaintDepartmentIds != null and complaintDepartmentIds != ''">complaint_department_ids,</if>
<if test="enforcementTime != null and enforcementTime != ''">enforcement_time,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if> <if test="id != null and id != ''">#{id},</if>
@ -84,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="proWoCode != null and proWoCode != ''">#{proWoCode},</if> <if test="proWoCode != null and proWoCode != ''">#{proWoCode},</if>
<if test="enterpriseName != null and enterpriseName != ''">#{enterpriseName},</if> <if test="enterpriseName != null and enterpriseName != ''">#{enterpriseName},</if>
<if test="enterpriseNumber != null and enterpriseNumber != ''">#{enterpriseNumber},</if> <if test="enterpriseNumber != null and enterpriseNumber != ''">#{enterpriseNumber},</if>
<if test="complaintDepartments != null and complaintDepartments != ''">#{complaintDepartments},</if>
<if test="complaintDepartmentIds != null and complaintDepartmentIds != ''">#{complaintDepartmentIds},</if>
<if test="enforcementTime != null and enforcementTime != ''">#{enforcementTime},</if>
</trim> </trim>
</insert> </insert>

Loading…
Cancel
Save