这是错误-
TypeError: Customer.findById is not a function
at exports.findById (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-mySql\app\controller\customer.controller.js:25:12)at Layer.handle [as handle_request(E:\Angular7\anguar_NodeJs_Mysql\NodeJs
-MySql\node_modules\express\lib\router\layer.js:95:5)
at next (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-MySql\node_modules\express\
lib\router\route.js:137:13)
at Route.dispatch (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-MySql\node_module
s\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs
-MySql\node_modules\express\lib\router\layer.js:95:5)
at E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-MySql\node_modules\express\lib\ro
uter\index.js:281:22
at param (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-MySql\node_modules\express
\lib\router\index.js:354:14)
at param (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-MySql\node_modules\express
\lib\router\index.js:365:14)
at Function.process_params (E:\Angular 7\anguar_NodeJs_Mysql\NodeJs-MySql\no
de_modules\express\lib\router\index.js:410:3)