| | |
| | | |
| | | import cn.huge.base.common.utils.ReturnFailUtils; |
| | | import cn.huge.base.common.utils.ReturnSucUtils; |
| | | import cn.huge.module.kind.domain.dto.RegionSelectJSDTO; |
| | | import cn.huge.module.kind.domain.dto.RegionSelectSaveDTO; |
| | | import cn.huge.module.kind.domain.po.SyRegion; |
| | | import cn.huge.module.kind.service.SyRegionService; |
| | | import com.google.common.collect.Maps; |
| | |
| | | * @description: 地域字典表接口api-web端 |
| | | * @company: hugeinfo |
| | | * @author: liyj |
| | | * @time: 2024-08-28 20:06:20 |
| | | * @time: 2024-09-09 14:31:22 |
| | | * @version: 1.0.0 |
| | | */ |
| | | @Slf4j |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * js数据入库 |
| | | * @url {ctx}/api/web/syRegion/saveByJS |
| | | * @param regionSelectJSDTO 实体对象 |
| | | * @return Object |
| | | */ |
| | | @PostMapping("/saveByJS") |
| | | public Object saveByJS(@RequestBody RegionSelectSaveDTO regionSelectJSDTO) { |
| | | try { |
| | | service.webSaveByJSTree(regionSelectJSDTO.getRegionList(), regionSelectJSDTO.getStartLevel()); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | } |