小程序查询可入住护理单元增加区域属性筛选:必须是护理单元类型

This commit is contained in:
1378012178@qq.com 2026-01-07 09:39:46 +08:00
parent b6fca0d966
commit 20a19c23dc
4 changed files with 21 additions and 20 deletions

View File

@ -6,7 +6,7 @@ import java.util.List;
import java.util.Map;
public interface INuBaseInfoApi {
NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId);
NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId, String areaType);
List<NuBaseInfoEntity> queryByOpenId(String openId);

View File

@ -35,10 +35,11 @@ public class NuBaseInfoServiceImpl extends ServiceImpl<NuBaseInfoMapper, NuBaseI
@Override
@DS("#orgCode")
public NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId) {
public NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId, String areaType) {
QueryWrapper<NuBaseInfo> qw = new QueryWrapper<>();
qw.eq("nu_id", nuId);
qw.eq("area_flag",areaType);//区域属性
qw.eq("del_flag", "0");
NuBaseInfo nuBaseInfo = baseMapper.selectOne(qw);
if (nuBaseInfo == null) {

View File

@ -88,7 +88,7 @@ public class NuCommonApi {
* @param code 数据字典编码
* @return
*/
@GetMapping("/queryAreaNameById")
@GetMapping("/queryDictItemByCode")
public Result<Object> queryDictItemByCode(@RequestParam("code") String code) {
return Result.ok();
}

View File

@ -205,7 +205,7 @@ public class ElderApi {
return Result.ok(null);
}
NuBaseInfoEntity baseInfo = nuBaseInfoApi.queryInfoByNuId(orgCode, nuId);
NuBaseInfoEntity baseInfo = nuBaseInfoApi.queryInfoByNuId(orgCode, nuId, "1");
if (baseInfo == null) {
return Result.ok(null);
}