|
|
@@ -10,6 +10,7 @@ import com.github.zuihou.business.productionResourceCenter.dto.ZZoneUpdateDTO;
|
|
|
import com.github.zuihou.business.productionResourceCenter.dto.ZZonePageDTO;
|
|
|
import com.github.zuihou.business.productionResourceCenter.service.ZZoneService;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
@@ -20,6 +21,7 @@ import com.github.zuihou.database.mybatis.conditions.query.LbqWrapper;
|
|
|
import com.github.zuihou.database.mybatis.conditions.query.QueryWrap;
|
|
|
import com.github.zuihou.log.annotation.SysLog;
|
|
|
import com.github.zuihou.tenant.entity.Productionresource;
|
|
|
+import com.qiniu.common.Zone;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -63,6 +65,19 @@ public class ZZoneController extends SuperController<ZZoneService, Long, ZZone,
|
|
|
return success(baseService.list());
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "查询区域管理", notes = "查询区域管理")
|
|
|
+ @GetMapping("/allSelect")
|
|
|
+ public R<List<ZZone>> allSelect() {
|
|
|
+ List<ZZone> zZones = new ArrayList<>();
|
|
|
+ ZZone zone = new ZZone();
|
|
|
+ zone.setId(new Long(0));
|
|
|
+ zone.setName("全部");
|
|
|
+ zZones.add(zone);
|
|
|
+ List<ZZone> zones = baseService.list();
|
|
|
+ zZones.addAll(zones);
|
|
|
+ return success(zZones);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public R<ZZone> handlerSave(ZZoneSaveDTO model) {
|
|
|
ZZone zZone = baseService.save(model);
|