添加接口 通过nuId获取单元信息
This commit is contained in:
parent
556c9f3a11
commit
8c63f3f367
|
|
@ -100,4 +100,14 @@ public class InvoicingApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiOperation(value = "通过nuId获取单元信息", notes = "通过nuId获取单元信息")
|
||||||
|
@AutoLog(value = "通过nuId获取单元信息")
|
||||||
|
@GetMapping(value = "/queryNuInfoByNuId")
|
||||||
|
public Result<NuBaseInfoEntity> queryNuInfoByNuId(NuBaseInfoEntity nuBaseInfoEntityDto,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
NuBaseInfoEntity info = invoicingApi.queryNuInfoByNuId(nuBaseInfoEntityDto);
|
||||||
|
return Result.OK(info);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,12 @@ public class NuBaseInfoEntity implements Serializable {
|
||||||
//长者信息
|
//长者信息
|
||||||
private ElderInfoEntity elderInfo;
|
private ElderInfoEntity elderInfo;
|
||||||
|
|
||||||
|
private java.lang.String fzr;
|
||||||
|
|
||||||
|
private java.lang.String fzrTel;
|
||||||
|
|
||||||
|
private java.lang.String fzrHeadPath;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,6 @@ public interface IInvoicingApi {
|
||||||
List<Map<String, Object>> getMaterialTreeData(MaterialCategoryEntity configMaterialCategory);
|
List<Map<String, Object>> getMaterialTreeData(MaterialCategoryEntity configMaterialCategory);
|
||||||
|
|
||||||
void updateKfstatus(NuBaseInfoEntity nuBaseInfoEntity);
|
void updateKfstatus(NuBaseInfoEntity nuBaseInfoEntity);
|
||||||
|
|
||||||
|
NuBaseInfoEntity queryNuInfoByNuId(NuBaseInfoEntity nuBaseInfoEntityDto);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -389,4 +389,13 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl<NuInvoicingCgdMai
|
||||||
BeanUtils.copyProperties(nuBaseInfoEntity,nuBaseInfo);
|
BeanUtils.copyProperties(nuBaseInfoEntity,nuBaseInfo);
|
||||||
nuBaseInfoMapper.updateById(nuBaseInfo);
|
nuBaseInfoMapper.updateById(nuBaseInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public NuBaseInfoEntity queryNuInfoByNuId(NuBaseInfoEntity nuBaseInfoEntityDto) {
|
||||||
|
QueryWrapper<NuBaseInfo> queryWrapper = new QueryWrapper<>();
|
||||||
|
queryWrapper.eq("nu_id",nuBaseInfoEntityDto.getNuId());
|
||||||
|
NuBaseInfo nuBaseInfo = nuBaseInfoMapper.selectOne(queryWrapper);
|
||||||
|
BeanUtils.copyProperties(nuBaseInfo,nuBaseInfoEntityDto);
|
||||||
|
return nuBaseInfoEntityDto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue