2 changed files with 60 additions and 0 deletions
@ -0,0 +1,43 @@ |
|||
package com.kms.yxgh.base.df.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.kms.yxgh.base.cz.domain.AttStBaseCz; |
|||
import com.kms.yxgh.base.cz.service.AttStBaseCzService; |
|||
import com.kms.yxgh.base.df.domain.AttDikeBaseDf; |
|||
import com.kms.yxgh.base.df.service.AttDikeBaseDfService; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import com.shuili.common.core.domain.SearchParam; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
|
|||
/** |
|||
* 测站基础信息Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/df/s/base") |
|||
@Api(tags = "堤防基础信息") |
|||
public class AttDikeBaseDfController extends BaseController { |
|||
@Autowired |
|||
private AttDikeBaseDfService attStSyServiceImpl; |
|||
|
|||
@PostMapping("/list") |
|||
@ApiOperation("堤防基础信息列表") |
|||
public IPage list(@RequestBody SearchParam<AttDikeBaseDf> sp) { |
|||
return attStSyServiceImpl.selectPage(sp); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("堤防基础信息详情") |
|||
@GetMapping(value = "/{id}") |
|||
public AjaxResult getInfo(@PathVariable("id") String id) { |
|||
return AjaxResult.success(attStSyServiceImpl.getById(id)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yxgh.base.df.service; |
|||
|
|||
import com.kms.yxgh.base.df.domain.AttDikeBaseDf; |
|||
import com.kms.yxgh.base.df.mapper.AttDikeBaseDfMapper; |
|||
import com.kms.yxgh.business.common.service.SyServiceImpl; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 【请填写功能名称】Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Service |
|||
public class AttDikeBaseDfService extends SyServiceImpl<AttDikeBaseDfMapper, AttDikeBaseDf> { |
|||
|
|||
} |
Loading…
Reference in new issue