| | |
| | | |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.db.gen.entity.AreaCode2022; |
| | | import com.dg.core.db.gen.entity.OrganizationChartEntity; |
| | | import com.dg.core.service.IAreaCodeService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"所属地区接口"}) |
| | | @RestController |
| | |
| | | public TableDataInfo getAreaCodeByTransactionId(@RequestParam("transactionId") Integer transactionId){ |
| | | return getDataTable(iAreaCodeService.getAreaCodeByTransactionId(transactionId)); |
| | | } |
| | | |
| | | /** |
| | | * 获取攀枝花所有所属地区 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取攀枝花所有所属地区",response = AreaCode2022.class) |
| | | @GetMapping("/getListByPCode") |
| | | public TableDataInfo getListByPCode(){ |
| | | return getDataTable(iAreaCodeService.getListByPCode("510400000000")); |
| | | } |
| | | } |