Commit 0465fe82 authored by caotao's avatar caotao

更新使用登记编码错误问题修改

parent 2410d9c3
......@@ -360,7 +360,8 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
* @param currentDocumentId
*/
public void updateTechparamsByEquIdAndCurrentDoucumentId(String equipId, String currentDocumentId){
ResponseModel<String> responseModel = tzsServiceFeignClient.useRegistrationCode(idxBizJgOtherInfoMapper.getSupervisoryCodeByEquipmentCode(equipId));
String useOrgCode = idxBizJgOtherInfoMapper.getSupervisoryCodeByEquipmentCode(equipId).split("-")[0];
ResponseModel<String> responseModel = tzsServiceFeignClient.useRegistrationCode(useOrgCode);
String newUseRegistrationCertificateNumber=responseModel.getResult();
IdxBizJgTechParamsElevator idxBizJgTechParamsElevator =idxBizJgTechParamsElevatorMapper.selectOne(new QueryWrapper<IdxBizJgTechParamsElevator>().eq("RECORD",equipId));
JgRegistrationHistory jgRegistrationHistory=jgRegistrationHistoryMapper.selectOne(new QueryWrapper<JgRegistrationHistory>()
......
......@@ -16,6 +16,6 @@ public interface IdxBizJgRegisterInfoMapper extends BaseMapper<IdxBizJgRegisterI
@Select("select use_org_code from idx_biz_jg_register_info where record = #{equipCode}")
String getUseOrgCodeByEquip(@Param("equipCode") String equipCode);
@Select("updateidx_biz_jg_register_info set use_org_code = #{useOrgCode} where record = #{equipCode}")
@Select("update idx_biz_jg_register_info set use_org_code = #{useOrgCode} where record = #{equipCode}")
Boolean updateUseOrgCodeByEquip(@Param("equipCode") String equipCode,@Param("useOrgCode") String useOrgCode);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment