当前位置:网站首页>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));
}
边栏推荐
- 实现前缀树
- Xmeter newsletter 2022-06 enterprise v3.2.3 release, error log and test report chart optimization
- Alo who likes TestMan
- 谈谈 SAP 系统的权限管控和事务记录功能的实现
- Talk about the cloud deployment of local projects created by SAP IRPA studio
- 2022年5月互联网医疗领域月度观察
- JVM memory and garbage collection -4-string
- mysql报错ORDER BY clause is not in SELECT list, references column ‘‘which is not in SELECT list解决方案
- [recommendation system paper reading] recommendation simulation user feedback based on Reinforcement Learning
- 阿锅鱼的大度
猜你喜欢
入侵检测——jsql
image enhancement
2022年5月互联网医疗领域月度观察
Deeppath: a reinforcement learning method of knowledge graph reasoning
Talk about the realization of authority control and transaction record function of SAP system
力争做到国内赛事应办尽办,国家体育总局明确安全有序恢复线下体育赛事
Introduction to grpc for cloud native application development
牛熊周期与加密的未来如何演变?看看红杉资本怎么说
Introduction to QT: video player
#797div3 A---C
随机推荐
Yolov5 Lite: yolov5, which is lighter, faster and easy to deploy
Project deployment (I): selection of mobile operators
Common disk formats and the differences between them
Histogram-2 (add 50 pixels and subtract 50 pixels and grayscale histogram mask for each pixel value in the picture)
Keras' deep learning practice -- gender classification based on inception V3
Leetcode question brushing record | 283_ Move zero
Yolov5 Lite: experiment and thinking of repovgg re parameterization on the industrial landing of Yolo
Learn face detection from scratch: retinaface (including magic modified ghostnet+mbv2)
Deep understanding of softmax
Industrial deployment II: the recurrence of picodet network structure on yolov5 Lite
Random walk reasoning and learning in large-scale knowledge base
谈谈 SAP 系统的权限管控和事务记录功能的实现
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
Xiaobai tutorial: Raspberry pie 3b+onnxruntime+scrfd+flask to realize public face detection system
Analysis ideas after discovering that the on duty equipment is attacked
Ml backward propagation
Completion report of communication software development and Application
数据链路层及网络层协议要点
XMeter Newsletter 2022-06|企业版 v3.2.3 发布,错误日志与测试报告图表优化
咋吃都不胖的朋友,Nature告诉你原因:是基因突变了