小程序查询可入住护理单元增加区域属性筛选:必须是护理单元类型
This commit is contained in:
parent
b6fca0d966
commit
20a19c23dc
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue