5 changed files with 152 additions and 3 deletions
@ -0,0 +1,40 @@ |
|||
package com.kms.yg.sk.controller; |
|||
|
|||
import com.kms.yg.sk.service.AttResRwacdrService; |
|||
import com.shuili.common.core.controller.BaseController; |
|||
import com.shuili.common.core.domain.AjaxResult; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.Arrays; |
|||
|
|||
|
|||
/** |
|||
* 水库水位、面积和库容关系Controller |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/sk/rwacdr") |
|||
@Api(tags = "水库水位、面积和库容关系") |
|||
public class AttResRwacdrController extends BaseController { |
|||
|
|||
@Autowired |
|||
private AttResRwacdrService attResRwacdrService; |
|||
|
|||
/** |
|||
* 查询【请填写功能名称】列表 |
|||
*/ |
|||
@GetMapping("/{resCode}") |
|||
@ApiOperation("水库水位、面积和库容关系列表") |
|||
public AjaxResult list(@PathVariable("resCode") String resCode) { |
|||
return AjaxResult.success(attResRwacdrService.listByIds(Arrays.asList(resCode))); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
package com.kms.yg.sk.domain; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.shuili.common.annotation.Excel; |
|||
import com.shuili.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】对象 att_res_rspp |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@TableName("att_res_rwacdr") |
|||
@Data |
|||
@ApiModel("水库水位、面积和库容关系表") |
|||
public class AttResRwacdr extends BaseEntity implements Serializable { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 水库代码 |
|||
*/ |
|||
@ApiModelProperty("水库编码") |
|||
private String resCode; |
|||
|
|||
/** |
|||
* 水位 |
|||
*/ |
|||
@Excel(name = "水位") |
|||
@ApiModelProperty("水位") |
|||
private Double wl; |
|||
|
|||
/** |
|||
* 面积 |
|||
*/ |
|||
@Excel(name = "面积") |
|||
@ApiModelProperty("面积") |
|||
private Double ar; |
|||
|
|||
/** |
|||
* 库容 |
|||
*/ |
|||
@Excel(name = "库容") |
|||
@ApiModelProperty("库容") |
|||
private Double stcp; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
@Excel(name = "备注") |
|||
@ApiModelProperty("备注") |
|||
private String note; |
|||
|
|||
/** |
|||
* 记录生效时间 |
|||
*/ |
|||
@Excel(name = "记录生效时间") |
|||
@ApiModelProperty("记录生效时间") |
|||
private Date effDate; |
|||
|
|||
/** |
|||
* 记录更新时间 |
|||
*/ |
|||
@Excel(name = "记录更新时间") |
|||
@ApiModelProperty("记录更新时间") |
|||
private Date updateDate; |
|||
|
|||
@TableField(exist = false) |
|||
private String remark; |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.sk.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.kms.yg.sk.domain.AttResRwacdr; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
|
|||
/** |
|||
* 【请填写功能名称】Mapper接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Repository |
|||
public interface AttResRwacdrMapper extends BaseMapper<AttResRwacdr> { |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.kms.yg.sk.service; |
|||
|
|||
import com.kms.yg.sk.domain.AttResRwacdr; |
|||
import com.kms.yg.sk.mapper.AttResRwacdrMapper; |
|||
import com.shuili.common.core.service.BaseService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 【请填写功能名称】Service接口 |
|||
* |
|||
* @author kms |
|||
* @date 2024-04-24 |
|||
*/ |
|||
@Service |
|||
public class AttResRwacdrService extends BaseService<AttResRwacdrMapper, AttResRwacdr> { |
|||
|
|||
} |
Loading…
Reference in new issue