Browse Source

Merge remote-tracking branch 'origin/v5' into v5

v5
庄锐波 5 months ago
parent
commit
312408f40c
  1. 11
      lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/IdCardCryptoUtil.java
  2. 2
      lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/jasypt/JasyptUtils.java
  3. 3
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml
  4. 2
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/enterprise_pub_qrcode/enterprisePubQrcodeList.html
  5. 1
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/ThirdLoginService.java
  6. 37
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java
  7. 30
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/utils/ZwSmsClient.java
  8. 16
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementRegistrationMapper.xml
  9. 17
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseInformationMapper.xml
  10. 2
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/SsztJbxx110497Mapper.xml

11
lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/IdCardCryptoUtil.java

@ -32,7 +32,7 @@ public class IdCardCryptoUtil {
String key = "VRJHzFqJpsSZhwnsKTWNspv_GZMxTWl-bgH6DyE9Ty0"; String key = "VRJHzFqJpsSZhwnsKTWNspv_GZMxTWl-bgH6DyE9Ty0";
System.out.println("====================== 示例 ======================"); System.out.println("====================== 示例 ======================");
// 加密 // 加密
String source_dec = "18676981102"; String source_dec = "15118142870";
String enc = IdCardCryptoUtil.symmetricEncryptIdCard(key, source_dec); String enc = IdCardCryptoUtil.symmetricEncryptIdCard(key, source_dec);
System.out.println(source_dec+" 加密后 : "+enc); System.out.println(source_dec+" 加密后 : "+enc);
// 解密 // 解密
@ -51,12 +51,9 @@ public class IdCardCryptoUtil {
System.out.println("====================== 实用 ======================"); System.out.println("====================== 实用 ======================");
String[] strings={ String[] strings={
"13360957126", "13316581687",
"16688211945", "15302630206",
"17339838670", "13923735911",
"18460319603",
"15626498490",
"18080147218",
}; };
// 刘义 13410900924 19020722074 // 刘义 13410900924 19020722074

2
lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/jasypt/JasyptUtils.java

@ -53,7 +53,7 @@ public final class JasyptUtils {
String s = encryptWithMD5("jdbc:mysql://10.76.108.1:15144/zfjd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8", "ATPfOhpnAVp6yBas7RU"); String s = encryptWithMD5("jdbc:mysql://10.76.108.1:15144/zfjd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8", "ATPfOhpnAVp6yBas7RU");
System.out.println(s); System.out.println(s);
String channelcs1 = decryptWithMD5("Y8AuVzQ311FOgJ4h07zjkLH8ArJBED3Xxz3Ug0ncPzuLXIVCuB25DA==", "ATPfOhpnAVp6yBas7RU"); String channelcs1 = decryptWithMD5("Y8AuVzQ311FOgJ4h07zjkLH8ArJBED3Xxz3Ug0ncPzuLXIVCuB25DA==", "ATPfOhpnAVp6yBas7RU");
String channelcs2 = decryptWithMD5("jGDVr5PtJpE/xa9FyHzmV2PhFrtctWjETGP5lrUlOyZ68APa81+jbQYA9RNKMI/dldAm7xxTQian8370eQqlYSAyoQV9EYlhsK3MgJkn4+OmnfBNmg227+/hizsmt1swxyW2uQbdlhzw6QaXYJ175Rjtlq1yVx+NOiamEoeSO4hzHWqxKTJT/y19fHg6QTuQc3r+PEsAFQp503HsvC5lgA==", "ATPfOhpnAVp6yBas7RU"); String channelcs2 = decryptWithMD5("nCzTixQexFdZNVhREOMMps2pNJ5gxrZb", "ATPfOhpnAVp6yBas7RU");
System.out.println(channelcs1); System.out.println(channelcs1);
System.out.println(channelcs2); System.out.println(channelcs2);
} }

3
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml

@ -10,7 +10,8 @@ ruoyi:
demoEnabled: true demoEnabled: true
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
# profile: C:/ruoyi/uploadPath # profile: C:/ruoyi/uploadPath
profile: /usr/local/uploadPath # profile: /usr/local/uploadPath
profile: /data/upload
# profile: /Users/kylin_stone/Workspaces/uploads # profile: /Users/kylin_stone/Workspaces/uploads
# 获取ip地址开关 # 获取ip地址开关
addressEnabled: false addressEnabled: false

2
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/enterprise_pub_qrcode/enterprisePubQrcodeList.html

@ -68,7 +68,7 @@
<a class="btn btn-info" onclick="importData()"> <a class="btn btn-info" onclick="importData()">
<i class="fa fa-upload"></i> 批量导入 <i class="fa fa-upload"></i> 批量导入
</a> </a>
<a class="btn btn-default" onclick="downloadTemplate()"> <a class="btn btn-warning" style="color: #F54927; background-color: #FCC6BB; border-color: #F54927" onclick="downloadTemplate()">
<i class="fa fa-file-excel-o"></i> 下载模板 <i class="fa fa-file-excel-o"></i> 下载模板
</a> </a>
<a class="btn btn-warning" onclick="matchData()"> <a class="btn btn-warning" onclick="matchData()">

1
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/ThirdLoginService.java

@ -45,6 +45,7 @@ public interface ThirdLoginService {
* @return * @return
*/ */
Boolean checkIsLawOfficer(String userIdCard); Boolean checkIsLawOfficer(String userIdCard);
String checkIsLawOfficer2(String userIdCard);
/** /**
* 获取市场监督管理局H5页面企业信息 * 获取市场监督管理局H5页面企业信息

37
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java

@ -179,12 +179,17 @@ public class ThirdLoginServiceImpl implements ThirdLoginService {
// 获取执法主体 // 获取执法主体
user.setBureauDept(deptApi.iterationDeptParentToBureau(user.getDeptId())); user.setBureauDept(deptApi.iterationDeptParentToBureau(user.getDeptId()));
// 判断是否执法人员 // 判断是否执法人员
if(StrUtil.isNotEmpty(user.getCertificateNumber())){ log.info("-----------> {} - 执法证件号: {}", user.getUserName(), user.getLawCertificateNum());
user.setLawOfficer(this.checkIsLawOfficer(user.getCertificateNumber())); if(StrUtil.isNotEmpty(user.getLawCertificateNum())){
log.info("-----------> {} - 判断是否执法人员: {}", user.getUserId(), user.getLawOfficer()); // user.setLawOfficer(this.checkIsLawOfficer(user.getCertificateNumber()));
user.setLawOfficer(true);
}else if (StrUtil.isNotEmpty(user.getCertificateNumber())){ // 没有身份证的话就用执法证去找下 }else if (StrUtil.isNotEmpty(user.getCertificateNumber())){ // 没有身份证的话就用执法证去找下
List<Zfryjdm2405301> zfryjdm2405301s = xzjcjbxx025711Mapper.queryZFRYByzfcode(user.getLawCertificateNum()); String zfcode = this.checkIsLawOfficer2(user.getCertificateNumber());
if (zfryjdm2405301s.size() > 0) { if (zfcode.length() > 0) {
UserBean tmpUser = new UserBean();
tmpUser.setUserId(user.getUserId());
tmpUser.setLawCertificateNum(zfcode);
userApi.updateUser(tmpUser);
user.setLawOfficer(true); user.setLawOfficer(true);
} else { } else {
user.setLawOfficer(false); user.setLawOfficer(false);
@ -454,6 +459,28 @@ public class ThirdLoginServiceImpl implements ThirdLoginService {
return Boolean.FALSE; return Boolean.FALSE;
} }
@Override
public String checkIsLawOfficer2(String userIdCard) {
//证件号解密
String s = IdCardCryptoUtil.symmetricDecryptIdCard(srzSecretKey, userIdCard);
log.error("----> 打印出身份证解密用盐: {}", srzSecretKey);
System.out.println("======身份证解密========");
log.info(s);
System.out.println("==============");
List<Zfryjdm2405301> zfryjdm2405301s = xzjcjbxx025711Mapper.queryZFRYByIdCard(s);
System.out.println("======解密后查询========");
System.out.println(zfryjdm2405301s);
System.out.println("==============");
if(zfryjdm2405301s.size() > 0 ){
if(BeanUtil.isNotEmpty(zfryjdm2405301s.get(0).getZfcode())){
return zfryjdm2405301s.get(0).getZfcode();
}else{
return "";
}
}
return "";
}
@Override @Override
public String getSjEnterpriseInfo(String url) { public String getSjEnterpriseInfo(String url) {
HttpClient httpClient = HttpClients.createDefault(); HttpClient httpClient = HttpClients.createDefault();

30
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/utils/ZwSmsClient.java

@ -34,21 +34,21 @@ public class ZwSmsClient {
// password = Azdg.encrypt(password); // password = Azdg.encrypt(password);
// ConnMas(); // ConnMas();
sendMessage("18520089969", "【测试短信】尊敬的 石磊先生 , 您有一条于: 今天 的执法预约信息, 请查收"); sendMessage("18520089969", "【测试短信】尊敬的 石磊先生 , 您有一条于: 今天 的执法预约信息, 请查收");
String orgCode = "10"; // 发送用户标记 一般两位数字 // String orgCode = "10"; // 发送用户标记 一般两位数字
String mobileNum = "17608416852,18520089969"; //接收号码, 多个逗号分隔 // String mobileNum = "17608416852,18520089969"; //接收号码, 多个逗号分隔
String content = "测试内容:xxx"; // 短信内容 // String content = "测试内容:xxx"; // 短信内容
Integer needReport = 1; // 是否需要短信报告 1 需要 其他不需要 // Integer needReport = 1; // 是否需要短信报告 1 需要 其他不需要
//
String sendbody = "<sendbody>\n" + // String sendbody = "<sendbody>\n" +
"\t<message>\n" + // "\t<message>\n" +
"\t<orgaddr></orgaddr><mobile>%s</mobile>" + // "\t<orgaddr></orgaddr><mobile>%s</mobile>" +
"<content><![CDATA[%s]]></content>" + // "<content><![CDATA[%s]]></content>" +
"<sendtime></sendtime>" + // "<sendtime></sendtime>" +
"<needreport>%s</needreport>\n" + // "<needreport>%s</needreport>\n" +
"\t</message>\n" + // "\t</message>\n" +
"\t<publicContent></publicContent>\n" + // "\t<publicContent></publicContent>\n" +
"</sendbody>"; // "</sendbody>";
InsertDownSms(String.format(sendbody, mobileNum, content, needReport)); // InsertDownSms(String.format(sendbody, mobileNum, content, needReport));
} }
/** /**

16
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnforcementRegistrationMapper.xml

@ -175,7 +175,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and (law_enforcer_id = #{dataScopeId} or user_id = #{dataScopeId} or law_enforcer_id = #{dataScopeId} or FIND_IN_SET(#{dataScopeId}, law_enforcer_id_two)) and (law_enforcer_id = #{dataScopeId} or user_id = #{dataScopeId} or law_enforcer_id = #{dataScopeId} or FIND_IN_SET(#{dataScopeId}, law_enforcer_id_two))
</if> </if>
</where> </where>
order by enforcement_time desc order by enforcement_time desc, id DESC
<if test="params.pageNum != null and params.pageSize != null"><!-- 开始时间检索 --> <if test="params.pageNum != null and params.pageSize != null"><!-- 开始时间检索 -->
LIMIT #{params.pageNum}, #{params.pageSize} LIMIT #{params.pageNum}, #{params.pageSize}
</if> </if>
@ -276,7 +276,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and (law_enforcer_id = #{dataScopeId} or user_id = #{dataScopeId} or law_enforcer_id = #{dataScopeId} or FIND_IN_SET(#{dataScopeId}, law_enforcer_id_two)) and (law_enforcer_id = #{dataScopeId} or user_id = #{dataScopeId} or law_enforcer_id = #{dataScopeId} or FIND_IN_SET(#{dataScopeId}, law_enforcer_id_two))
</if> </if>
</where> </where>
order by enforcement_time desc order by enforcement_time desc, id DESC
</select> </select>
<select id="selectEnforcementRegistrationListNew" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult"> <select id="selectEnforcementRegistrationListNew" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult">
@ -363,7 +363,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
${params.dataScope} ${params.dataScope}
</if> </if>
</where> </where>
GROUP BY enterprise_number order by enforcement_time desc) t GROUP BY enterprise_number order by enforcement_time desc, id DESC) t
<where> <where>
<if test="numLeft != null and numLeft != ''"> <if test="numLeft != null and numLeft != ''">
and t.num &gt;= #{numLeft} and t.num &gt;= #{numLeft}
@ -449,7 +449,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- ${params.dataScope}--> <!-- ${params.dataScope}-->
<!-- </if>--> <!-- </if>-->
</where> </where>
order by enforcement_time desc order by enforcement_time desc, id DESC
</select> </select>
@ -524,7 +524,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
${params.dataScope} ${params.dataScope}
</if> </if>
</where> </where>
order by enforcement_time desc order by enforcement_time desc, id DESC
</select> </select>
<select id="selectEnforcementRegistrationAndAddressList" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult"> <select id="selectEnforcementRegistrationAndAddressList" parameterType="EnforcementRegistration" resultMap="EnforcementRegistrationResult">
@ -687,7 +687,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if> </if>
</where> </where>
GROUP BY IFNULL(union_no, RAND()) GROUP BY IFNULL(union_no, RAND())
order by enforcement_time desc order by enforcement_time desc, id DESC
</select> </select>
@ -1279,7 +1279,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="unionNo != null and unionNo !=''"> and union_no = #{unionNo}</if> <if test="unionNo != null and unionNo !=''"> and union_no = #{unionNo}</if>
and union_no is not null and union_no is not null
</where> </where>
order by enforcement_time desc order by enforcement_time desc, id DESC
</select> </select>
<select id="outTimeByUnion" parameterType="EnforcementRegistration" resultType="int"> <select id="outTimeByUnion" parameterType="EnforcementRegistration" resultType="int">
@ -1293,7 +1293,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="unionNo != null and unionNo !=''"> and union_no = #{unionNo}</if> <if test="unionNo != null and unionNo !=''"> and union_no = #{unionNo}</if>
and union_no is not null and union_no is not null
</where> </where>
order by enforcement_time desc order by enforcement_time desc, id DESC
</select> </select>
<update id="updateRegToUnionFlag" parameterType="EnforcementRegistration"> <update id="updateRegToUnionFlag" parameterType="EnforcementRegistration">

17
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseInformationMapper.xml

@ -29,9 +29,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="qrCodeUrl" column="qr_code_url" /> <result property="qrCodeUrl" column="qr_code_url" />
</resultMap> </resultMap>
<sql id="selectEnterpriseInformationColumns">
id, enterprise_name, enterprise_number, enterprise_type, company_org_type, enterprise_address, legal_person, registered_capital, establishment_time,
operating_term, business_scope, create_time, create_by, user_id, dept_id, is_unsubscribe, is_delete, salt, enterprise_tel, industry, operating_term_end
</sql>
<sql id="selectEnterpriseInformationColumnsWithAlias">
ei.id, ei.enterprise_name, ei.enterprise_number, ei.enterprise_type, ei.company_org_type, ei.enterprise_address, ei.legal_person, ei.registered_capital, ei.establishment_time,
ei.operating_term, ei.business_scope, ei.create_time, ei.create_by, ei.user_id, ei.dept_id, ei.is_unsubscribe, ei.is_delete, ei.salt, ei.enterprise_tel, ei.industry, ei.operating_term_end
</sql>
<sql id="selectEnterpriseInformationVo"> <sql id="selectEnterpriseInformationVo">
select id, enterprise_name, enterprise_number, enterprise_type, company_org_type, enterprise_address, legal_person, registered_capital, establishment_time, select <include refid="selectEnterpriseInformationColumns"/> from enterprise_information
operating_term, business_scope, create_time, create_by, user_id, dept_id,is_unsubscribe ,is_delete,salt,enterprise_tel,industry,operating_term_end from enterprise_information
</sql> </sql>
<select id="selectEnterpriseInformationList" parameterType="EnterpriseInformation" resultMap="EnterpriseInformationResult"> <select id="selectEnterpriseInformationList" parameterType="EnterpriseInformation" resultMap="EnterpriseInformationResult">
@ -107,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectEnterpriseInformationAndQrInfo" parameterType="EnterpriseInformation" resultMap="EnterpriseInformationResult"> <select id="selectEnterpriseInformationAndQrInfo" parameterType="EnterpriseInformation" resultMap="EnterpriseInformationResult">
SELECT SELECT
ei.*,gh.qr_code_url <include refid="selectEnterpriseInformationColumnsWithAlias"/>, gh.qr_code_url
FROM FROM
enterprise_information ei enterprise_information ei
LEFT JOIN ( LEFT JOIN (
@ -126,7 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND (ei.enterprise_name like concat('%', #{searchValue}, '%') AND (ei.enterprise_name like concat('%', #{searchValue}, '%')
or ei.enterprise_number like concat('%', #{searchValue}, '%')) or ei.enterprise_number like concat('%', #{searchValue}, '%'))
</if> </if>
<if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if> <if test="enterpriseName != null and enterpriseName != ''"> and ei.enterprise_name like concat('%', #{enterpriseName}, '%')</if>
</where> </where>
ORDER BY ei.create_time DESC ORDER BY ei.create_time DESC

2
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/SsztJbxx110497Mapper.xml

@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectSsztJbxx110497Vo"> <sql id="selectSsztJbxx110497Vo">
select JYFW, ZCZB, FWBM, YYZT, SSZTLX, NDBGXX, BYZD1, BZ, ZCH, CLRQ, NJQK, JYCS, ZZJGDM, BIZHONG, HYDM, BYZD3, BYZD2, HZRQ, JYQXQ, JYQXZ, TYSHXYDM, SBSSZB, SWZH, FDDBR, LSQYZCH, LSQYMC, HYML, QYMC, RECORDID, DJJGDH, PRIPID, INS, SEQ, UPDATESTATUS, UPDATETIME from sszt_jbxx110497_new select JYFW, ZCZB, FWBM, YYZT, SSZTLX, NDBGXX, BYZD1, BZ, ZCH, CLRQ, NJQK, JYCS, ZZJGDM, BIZHONG, HYDM, BYZD3, BYZD2, HZRQ, JYQXQ, JYQXZ, TYSHXYDM, SBSSZB, SWZH, FDDBR, LSQYZCH, LSQYMC, HYML, QYMC, RECORDID, DJJGDH, PRIPID, INS, SEQ, UPDATESTATUS from sszt_jbxx110497_new
</sql> </sql>
<select id="selectSsztJbxx110497List" parameterType="SsztJbxx110497" resultMap="SsztJbxx110497Result"> <select id="selectSsztJbxx110497List" parameterType="SsztJbxx110497" resultMap="SsztJbxx110497Result">

Loading…
Cancel
Save