提交 e64ebef1 authored 作者: linzhenjie's avatar linzhenjie

接口参数错误修复

上级 0f1b1d2a
...@@ -68,8 +68,8 @@ public class ShFamilyController { ...@@ -68,8 +68,8 @@ public class ShFamilyController {
@GetMapping("index") @GetMapping("index")
@ApiOperation("首页") @ApiOperation("首页")
@ApiLog("首页") @ApiLog("首页")
public R index(@RequestParam Map<String, Object> params, @LoginUser AppUserEntity user) { public R index(@RequestParam Map<String, String> params, @LoginUser AppUserEntity user) {
return otherShFamilyService.index(user.getId(), Integer.valueOf((String) params.get("familyId"))); return otherShFamilyService.index(user.getId(), params.get("familyId"));
} }
} }
\ No newline at end of file
...@@ -35,5 +35,5 @@ public interface OtherShFamilyDao extends BaseMapper<ShFamilyEntity> { ...@@ -35,5 +35,5 @@ public interface OtherShFamilyDao extends BaseMapper<ShFamilyEntity> {
ShFamilyDto familyInfo(@Param("params")Integer id); ShFamilyDto familyInfo(@Param("params")Integer id);
ShFamilyIndex index(@Param("userId")Integer userId, @Param("familyId")Integer familyId); ShFamilyIndex index(@Param("userId")Integer userId, @Param("familyId")String familyId);
} }
...@@ -23,5 +23,5 @@ public interface OtherShFamilyService extends IService<ShFamilyEntity> { ...@@ -23,5 +23,5 @@ public interface OtherShFamilyService extends IService<ShFamilyEntity> {
R info(Integer id); R info(Integer id);
R index(Integer userId, Integer familyId); R index(Integer userId, String familyId);
} }
...@@ -90,7 +90,7 @@ public class OtherShFamilyServiceImpl extends ServiceImpl<OtherShFamilyDao, ShFa ...@@ -90,7 +90,7 @@ public class OtherShFamilyServiceImpl extends ServiceImpl<OtherShFamilyDao, ShFa
} }
@Override @Override
public R index(Integer userId, Integer familyId) { public R index(Integer userId, String familyId) {
ShFamilyIndex index = this.baseMapper.index(userId, familyId); ShFamilyIndex index = this.baseMapper.index(userId, familyId);
return R.ok().put("data", index); return R.ok().put("data", index);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论