|
@@ -26,6 +26,7 @@ import org.springframework.stereotype.Controller;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -138,9 +139,15 @@ public class CesRoomLayoutController extends JeecgController<CesRoomLayout, CesR
|
|
|
@AutoLog(value = "删除房型房型")
|
|
@AutoLog(value = "删除房型房型")
|
|
|
@ApiOperation(value="删除房型房型", notes="删除房型")
|
|
@ApiOperation(value="删除房型房型", notes="删除房型")
|
|
|
@DeleteMapping(value = "/remove")
|
|
@DeleteMapping(value = "/remove")
|
|
|
- public Result removeRoomLayout(@RequestBody CesRoomLayoutRemoveDto dto){
|
|
|
|
|
|
|
+ public Result removeRoomLayout(CesRoomLayoutRemoveDto dto){
|
|
|
if(CollectionUtil.isEmpty(dto.getRoomLayoutIds())){
|
|
if(CollectionUtil.isEmpty(dto.getRoomLayoutIds())){
|
|
|
- return Result.error(ResultCode.PARAM_MISS);
|
|
|
|
|
|
|
+ if(dto.getId() != null) {
|
|
|
|
|
+ List<String> ids = new ArrayList<>();
|
|
|
|
|
+ ids.add(dto.getId());
|
|
|
|
|
+ dto.setRoomLayoutIds(ids);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return Result.error(ResultCode.PARAM_MISS);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
try{
|
|
try{
|
|
|
return cesRoomLayoutService.removeRoomLayout(dto);
|
|
return cesRoomLayoutService.removeRoomLayout(dto);
|