|
|
@@ -229,7 +229,10 @@ public class AgentStorehouseController {
|
|
229
|
229
|
@ApiImplicitParam(name = "storehouseId", value = "仓房id", paramType = "form")
|
|
230
|
230
|
})
|
|
231
|
231
|
public void removeStoreHouse(Integer depotId,Integer storehouseId){
|
|
232
|
|
- agentDepotService.updateDeleteById(depotId,2);
|
|
|
232
|
+ Integer houseNum = agentDepotService.getIdHouse(depotId);
|
|
|
233
|
+ if(houseNum == 1){
|
|
|
234
|
+ agentDepotService.updateDeleteById(depotId,2);
|
|
|
235
|
+ }
|
|
233
|
236
|
agentStorehouseService.updateStoreDeleteById(storehouseId,2);
|
|
234
|
237
|
this.removeWareList(storehouseId);
|
|
235
|
238
|
}
|