小程序查询可入住护理单元增加区域属性筛选:必须是护理单元类型
This commit is contained in:
parent
b6fca0d966
commit
20a19c23dc
|
|
@ -6,7 +6,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public interface INuBaseInfoApi {
|
public interface INuBaseInfoApi {
|
||||||
NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId);
|
NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId, String areaType);
|
||||||
|
|
||||||
List<NuBaseInfoEntity> queryByOpenId(String openId);
|
List<NuBaseInfoEntity> queryByOpenId(String openId);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,11 @@ public class NuBaseInfoServiceImpl extends ServiceImpl<NuBaseInfoMapper, NuBaseI
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@DS("#orgCode")
|
@DS("#orgCode")
|
||||||
public NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId) {
|
public NuBaseInfoEntity queryInfoByNuId(String orgCode, String nuId, String areaType) {
|
||||||
|
|
||||||
QueryWrapper<NuBaseInfo> qw = new QueryWrapper<>();
|
QueryWrapper<NuBaseInfo> qw = new QueryWrapper<>();
|
||||||
qw.eq("nu_id", nuId);
|
qw.eq("nu_id", nuId);
|
||||||
|
qw.eq("area_flag",areaType);//区域属性
|
||||||
qw.eq("del_flag", "0");
|
qw.eq("del_flag", "0");
|
||||||
NuBaseInfo nuBaseInfo = baseMapper.selectOne(qw);
|
NuBaseInfo nuBaseInfo = baseMapper.selectOne(qw);
|
||||||
if (nuBaseInfo == null) {
|
if (nuBaseInfo == null) {
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ public class NuCommonApi {
|
||||||
* @param code 数据字典编码
|
* @param code 数据字典编码
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/queryAreaNameById")
|
@GetMapping("/queryDictItemByCode")
|
||||||
public Result<Object> queryDictItemByCode(@RequestParam("code") String code) {
|
public Result<Object> queryDictItemByCode(@RequestParam("code") String code) {
|
||||||
return Result.ok();
|
return Result.ok();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ public class ElderApi {
|
||||||
return Result.ok(null);
|
return Result.ok(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
NuBaseInfoEntity baseInfo = nuBaseInfoApi.queryInfoByNuId(orgCode, nuId);
|
NuBaseInfoEntity baseInfo = nuBaseInfoApi.queryInfoByNuId(orgCode, nuId, "1");
|
||||||
if (baseInfo == null) {
|
if (baseInfo == null) {
|
||||||
return Result.ok(null);
|
return Result.ok(null);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue