Browse Source

根据身份证号同步执法码改身份证为条件

v2
蟑螂恶霸 2 years ago
parent
commit
eeae5e71ee
  1. 11
      lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java
  2. 2
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/application.yml
  3. 1
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/Zqyjjdm137344Mapper.java
  4. 1
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IZqyjjdm137344Service.java
  5. 5
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/Zqyjjdm137344ServiceImpl.java
  6. 2
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Zfryjdm2405301Mapper.xml
  7. 5
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Zqyjjdm137344Mapper.xml

11
lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java

@ -3,8 +3,10 @@ package com.zdxt.app.controller;
import com.zdxt.code.domain.EnforceRegCount;
import com.zdxt.code.domain.EnforcementRegistration;
import com.zdxt.code.domain.LinkageDict;
import com.zdxt.code.domain.Zqyjjdm137344;
import com.zdxt.code.service.IEnforcementRegistrationService;
import com.zdxt.code.service.ILinkageDictService;
import com.zdxt.code.service.IZqyjjdm137344Service;
import com.zdxt.common.ZDResponse;
import com.zdxt.common.controller.BaseController;
import com.zdxt.common.util.StringUtils;
@ -35,6 +37,7 @@ public class AppEnforcementRegistrationController extends BaseController
@Autowired
private IEnforcementRegistrationService enforcementRegistrationService;
@Autowired private ILinkageDictService iLinkageDictService;
@Autowired private IZqyjjdm137344Service iZqyjjdm137344Service;
@RequiresPermissions("code:registration:view")
@GetMapping()
@ -174,10 +177,12 @@ public class AppEnforcementRegistrationController extends BaseController
public ZDResponse queryById(@PathVariable("id") String id)
{
EnforcementRegistration enforcementRegistration = enforcementRegistrationService.selectEnforcementRegistrationById(id);
if (null != enforcementRegistration) {
LinkageDict ld1 = iLinkageDictService.selectLinkageDictById(enforcementRegistration.getLawEnforcementItem());
LinkageDict ld2 = iLinkageDictService.selectLinkageDictById(enforcementRegistration.getLawEnforcementBasis());
enforcementRegistration.setLawEnforcementItemText(ld1.getTitle());
enforcementRegistration.setLawEnforcementBasisText(ld2.getTitle());
Zqyjjdm137344 zq = iZqyjjdm137344Service.getZqyjjdmById(enforcementRegistration.getLawEnforcementBasis());
enforcementRegistration.setLawEnforcementItemText(null==ld1?"":ld1.getTitle());
enforcementRegistration.setLawEnforcementBasisText(null==zq?"":zq.getLawName());
}
return ZDResponse.success("查询成功",enforcementRegistration);
}

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

@ -208,7 +208,7 @@ security:
allowed:
servernames: 10.76.108.1,10.76.108.3,10.132.108.3,139.186.135.156,jdm.szssfj.cn,58.250.157.161
servernames: 10.76.108.1,10.76.108.3,10.132.108.3,139.186.135.156,jdm.szssfj.cn,58.250.157.161,127.0.0.1
excel:
export: true

1
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/mapper/Zqyjjdm137344Mapper.java

@ -19,4 +19,5 @@ public interface Zqyjjdm137344Mapper
* @return 集合
*/
public List<Zqyjjdm137344> selectZqyjjdmList(String searchValue);
public Zqyjjdm137344 getZqyjjdmById(String id);
}

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

@ -21,4 +21,5 @@ public interface IZqyjjdm137344Service
* @return 集合
*/
public List<Zqyjjdm137344> selectZqyjjdmList(String searchValue);
public Zqyjjdm137344 getZqyjjdmById(String id);
}

5
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/Zqyjjdm137344ServiceImpl.java

@ -36,4 +36,9 @@ public class Zqyjjdm137344ServiceImpl implements IZqyjjdm137344Service
public List<Zqyjjdm137344> selectZqyjjdmList(String searchValue) {
return zqyjjdm137344Mapper.selectZqyjjdmList(searchValue);
}
@Override
public Zqyjjdm137344 getZqyjjdmById(String id) {
return zqyjjdm137344Mapper.getZqyjjdmById(id);
}
}

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

@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="SET" suffixOverrides=",">
<if test="sfzcodeEncrypt != null and sfzcodeEncrypt != ''">sfzcode_encrypt = #{sfzcodeEncrypt},</if>
</trim>
where id = #{id}
where sfzcode = #{sfzcode}
</update>
</mapper>

5
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/Zqyjjdm137344Mapper.xml

@ -45,4 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="getZqyjjdmById" parameterType="string" resultMap="ZqyjjdmResult">
<include refid="selectZqyjjdmVo"/>
where id = #{id}
</select>
</mapper>
Loading…
Cancel
Save