当前位置:网站首页>Interface: compléter la nouvelle fonction et ajouter une interface
Interface: compléter la nouvelle fonction et ajouter une interface
2022-07-08 02:21:00 【Ahyo】
L'arrière - plan est de fournir des données de documentation d'interface pour l'avant - plan,Quant à la mise en page d'une page Web, elle n'a pas besoin d'arrière - plan,Seules les données présentées sur la page,Et ces autres modules doivent renvoyer des données.
Pour l'écriture d'interface de l'interface de nouvelle fonction CréationserviceCouche etcontrollerHeure de la couche,Correspondant à l'héritageMyBatis-plusDans les génériques de la classe d'outils préparéemapperC'est différent..C'est - à - dire UnserviceL'interface correspond à unImpl.
Écrivez les classes pertinentes comme base de mise en œuvre de l'interface:
@Service
public class BizScheduleRecordServiceImplDemo extends ServiceImpl<BizScheduleRecordMapper, BizScheduleRecord> implements IBizScheduleRecordServiceDemo {
@Resource
private BizTunnelMapper tunnelMapper;
@Override
public ScheduleInfoModelDemo jinchiInfo(Integer tunnelId) {
BizTunnel tunnel = tunnelMapper.selectById(tunnelId);
ScheduleInfoModelDemo demo=new ScheduleInfoModelDemo();
demo.setTunnelId(tunnelId);
demo.setTunnelName(tunnel.getName());
demo.setLength(7.0);
if(tunnel.getName().equals(""))
{
ScheduleInfoModelDemo.DataDetail dataDetail=new ScheduleInfoModelDemo.DataDetail();
dataDetail.setZhangzmRatio(0.50)
.setErcRatio(0.50)
.setErceWholejinchi(3171)
.setZzmWholejinchi(3171);
demo.setPdx(dataDetail);
demo.setPdd(dataDetail);
}
if(tunnel.getName().equals(""))
{
ScheduleInfoModelDemo.DataDetail dataDetail=new ScheduleInfoModelDemo.DataDetail();
dataDetail.setZhangzmRatio(0.50)
.setErcRatio(0.50)
.setErceWholejinchi(3171)
.setZzmWholejinchi(3171);
demo.setEnter(dataDetail);
demo.setExit(dataDetail);
}
return demo;
}
}
Interface:
@RequestMapping(value = "/**", method = RequestMethod.GET)
@ApiOperation(value = "")
@ApiOperationSupport(order = 8)
public ResponseData<ScheduleInfoModelDemo> tunnelschedule(@ApiParam(name = "tunnelId",value = "id", required = true) Integer tunnelId) {
return new ResponseData<>(scheduleRecordService.jinchiInfo(tunnelId));
}
边栏推荐
- Learn CV two loss function from scratch (1)
- 关于TXE和TC标志位的小知识
- Master go game through deep neural network and tree search
- VIM string substitution
- Key points of data link layer and network layer protocol
- leetcode 866. Prime Palindrome | 866. 回文素数
- Installing and using mpi4py
- 【每日一题】736. Lisp 语法解析
- 入侵检测——WebCrack
- 牛熊周期与加密的未来如何演变?看看红杉资本怎么说
猜你喜欢

线程死锁——死锁产生的条件

Yolov5 Lite: yolov5, which is lighter, faster and easy to deploy

leetcode 865. Smallest Subtree with all the Deepest Nodes | 865. The smallest subtree with all the deepest nodes (BFs of the tree, parent reverse index map)

Deep understanding of softmax

Leetcode featured 200 channels -- array article

Talk about the cloud deployment of local projects created by SAP IRPA studio

Which detector is more important, backbone or neck? The new work of Dharma hall has different answers

1331:【例1-2】后缀表达式的值

Completion report of communication software development and Application

《通信软件开发与应用》课程结业报告
随机推荐
Xiaobai tutorial: Raspberry pie 3b+onnxruntime+scrfd+flask to realize public face detection system
Force buckle 4_ 412. Fizz Buzz
1331:【例1-2】后缀表达式的值
VIM use
Keras' deep learning practice -- gender classification based on inception V3
阿南的判断
CBAM for in-depth understanding of the attention mechanism in CV
Direct addition is more appropriate
Common disk formats and the differences between them
Yolov5 lite: how to speed up the Yolo model on CPU?
Strive to ensure that domestic events should be held as much as possible, and the State General Administration of sports has made it clear that offline sports events should be resumed safely and order
Principle of least square method and matlab code implementation
鱼和虾走的路
2022年5月互联网医疗领域月度观察
[knowledge map] interpretable recommendation based on knowledge map through deep reinforcement learning
力扣4_412. Fizz Buzz
Clickhouse principle analysis and application practice "reading notes (8)
Leetcode question brushing record | 283_ Move zero
Disk rust -- add a log to the program
EMQX 5.0 发布:单集群支持 1 亿 MQTT 连接的开源物联网消息服务器