|
|
@@ -89,6 +89,14 @@ public class BusOtherRoomCardController extends JeecgController<BusOtherRoomCard
|
|
|
//@RequiresPermissions("business:bus_other_room_card_info:add")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<String> add(@RequestBody BusOtherRoomCard busOtherRoomCard) {
|
|
|
+ if(busOtherRoomCard.getTenantId() == null || busOtherRoomCard.getTenantId().equals("")){
|
|
|
+ LoginUser user = TokenUtils.getAuthUser();
|
|
|
+ if(user.getRelTenantIds() != null && !user.getRelTenantIds().equals("")){
|
|
|
+ busOtherRoomCard.setTenantId(user.getRelTenantIds());
|
|
|
+ } else {
|
|
|
+ throw new JeecgBootException("当前登录人租户信息错误");
|
|
|
+ }
|
|
|
+ }
|
|
|
busOtherRoomCardService.save(busOtherRoomCard);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|