Commit 39e3180c authored by fangxinjiang's avatar fangxinjiang

户查询接口-fxj

parent 9097e2a4
......@@ -312,4 +312,27 @@ public class SysHouseHoldInfoController {
return R.ok(houseHold);
}
/**
* @param name 户名(必填)
* @param delFlag 启用禁用状态 0启用 1禁用(可选,默认0启用)
* @param type 账户性质 0社保 1公积金(可选,默认0社保)
* @Description: 通过户名称查询,支持启用禁用和户性质筛选
* @Author: AI Assistant
* @Date: 2026/4/28
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.List<com.yifu.cloud.plus.v1.yifu.social.entity.SysHouseHoldInfo>>
**/
@GetMapping("/getHouseByName")
@Operation(summary = "通过户名称查询", description = "通过户名称查询,支持启用禁用和户性质筛选")
public R<List<SysHouseHoldInfo>> getHouseByName(
@RequestParam String name,
@RequestParam(required = false, defaultValue = "0") String delFlag,
@RequestParam(required = false, defaultValue = "0") String type) {
LambdaQueryWrapper<SysHouseHoldInfo> wrapper = Wrappers.lambdaQuery();
wrapper.eq(SysHouseHoldInfo::getName, name);
wrapper.eq(SysHouseHoldInfo::getDelFlag, delFlag);
wrapper.eq(SysHouseHoldInfo::getType, type);
List<SysHouseHoldInfo> houseHoldList = sysHouseHoldInfoService.list(wrapper);
return R.ok(houseHoldList);
}
}
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