Browse Source

提交双系统人员数据查询

v2
chenrui 2 years ago
parent
commit
0c13abc34e
  1. 61
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/Zfryjdm2405301.java
  2. 15
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/Xzjcjbxx025711Mapper.java
  3. 7
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ThirdLoginServiceImpl.java
  4. 8
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Xzjcjbxx025711Mapper.xml

61
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/Zfryjdm2405301.java

@ -0,0 +1,61 @@
package com.zdxt.code.domain;
/**
* 执法人员数据
*/
public class Zfryjdm2405301 {
/**
* 执法人员姓名
*/
private String name;
/**
* 执法单位
*/
private String zfzzfdw;
/**
* 身份证号码
*/
private String sfzcode;
/**
* 执法证编号
*/
private String zfcode;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getZfzzfdw() {
return zfzzfdw;
}
public void setZfzzfdw(String zfzzfdw) {
this.zfzzfdw = zfzzfdw;
}
public String getSfzcode() {
return sfzcode;
}
public void setSfzcode(String sfzcode) {
this.sfzcode = sfzcode;
}
public String getZfcode() {
return zfcode;
}
public void setZfcode(String zfcode) {
this.zfcode = zfcode;
}
}

15
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/Xzjcjbxx025711Mapper.java

@ -3,6 +3,7 @@ package com.zdxt.code.mapper;
import com.zdxt.code.domain.Xzjcjbxx025711;
import com.zdxt.code.domain.Xzcfajjbxx026705;
import com.zdxt.code.domain.Xzqzjbxx173774;
import com.zdxt.code.domain.Zfryjdm2405301;
import java.util.List;
@ -66,4 +67,18 @@ public interface Xzjcjbxx025711Mapper
* @return
*/
public List<Xzcfajjbxx026705> queryCFAJByEnterpriseNumber(String enterpriseNumber);
/**
* 查询行政处罚案件
* @param
* @return 查询所有执法人员数据
*/
public List<Zfryjdm2405301> queryZFRY();
/**
* 通过身份证查询是否为执法人员
* @return
*/
public List<Zfryjdm2405301> queryZFRYByIdCard(String userIdCard);
}

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

@ -1,5 +1,6 @@
package com.zdxt.code.service.impl;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.zdxt.auth.dto.DeptBean;
@ -163,8 +164,10 @@ public class ThirdLoginServiceImpl implements ThirdLoginService {
//结束时间 返回为空表示为永久
String termEnd = jsonObject.getString("termEnd");
try {
Date termEndD = format.parse(termEnd);
termEnd = format.format(termEndD);
if(StrUtil.isNotEmpty(termEnd)){
Date termEndD = format.parse(termEnd);
termEnd = format.format(termEndD);
}
} catch (Exception e) {
termEnd = "永久";
}

8
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Xzjcjbxx025711Mapper.xml

@ -316,5 +316,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN XZCFAJDSRXX594019 c on a.c201000 = c.c201000
where c.c201016 = #{enterpriseNumber} order by c.c201016 desc limit 10
</select>
<select id="queryZFRY" parameterType="String" resultType="com.zdxt.code.domain.Zfryjdm2405301">
select `name`,zfzzfdw,sfzcode,zfcode from ZFRYJDM2405301
</select>
<select id="queryZFRYByIdCard" parameterType="String" resultType="com.zdxt.code.domain.Zfryjdm2405301">
select `name`,zfzzfdw,sfzcode,zfcode from ZFRYJDM2405301 where SFZCODE = #{userIdCard}
</select>
</mapper>
Loading…
Cancel
Save