|
|
@@ -7,6 +7,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jeecg.common.Enum.ResultCode;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
+import org.jeecg.modules.rooms.DTO.CesGoodsUnitDeleteBatchDTO;
|
|
|
import org.jeecg.modules.rooms.DTO.CesGoodsUnitDto;
|
|
|
import org.jeecg.modules.rooms.DTO.CesGoodsUnitSearchDto;
|
|
|
import org.jeecg.modules.rooms.DTO.CesRoomLayoutRemoveDto;
|
|
|
@@ -82,7 +83,7 @@ public class CesGoodsUnitController {
|
|
|
@AutoLog(value = "修改单位")
|
|
|
@ApiOperation(value="修改单位", notes="修改单位")
|
|
|
@PutMapping(value = "/modify")
|
|
|
- public Result modifyCesRoomLayout(@RequestBody CesGoodsUnitDto dto){
|
|
|
+ public Result modifyCesGoodsUnit(@RequestBody CesGoodsUnitDto dto){
|
|
|
if(StringUtils.isBlank(dto.getId())){
|
|
|
return Result.error(ResultCode.PARAM_MISS,"数据ID 必传!");
|
|
|
}
|
|
|
@@ -120,12 +121,12 @@ public class CesGoodsUnitController {
|
|
|
@AutoLog(value = "批量删除单位")
|
|
|
@ApiOperation(value="批量删除单位", notes="批量删除单位")
|
|
|
@PostMapping(value = "/deleteBatch")
|
|
|
- public Result deleteBatch(String idsStr){
|
|
|
- if(StringUtils.isBlank(idsStr)){
|
|
|
+ public Result deleteBatch(@RequestBody CesGoodsUnitDeleteBatchDTO dto){
|
|
|
+ if(StringUtils.isBlank(dto.getIdsStr())){
|
|
|
return Result.error(ResultCode.PARAM_MISS,"数据IDStr 必传!");
|
|
|
}
|
|
|
try{
|
|
|
- List<String> ids = Arrays.stream(idsStr.split(",")).collect(Collectors.toList());
|
|
|
+ List<String> ids = Arrays.stream(dto.getIdsStr().split(",")).collect(Collectors.toList());
|
|
|
return cesGoodsUnitService.deleteBatch(ids);
|
|
|
}catch (Exception e){
|
|
|
return Result.error(e.getMessage());
|